/* ═══════════════════════════════════════════
   Home Page Styles
   ═══════════════════════════════════════════ */

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-5xl) var(--gutter) var(--space-3xl);
  position: relative;
  overflow: hidden;
}

/* Video background support */
.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0,0,0,0.4) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(0,0,0,0.3) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Decorative wave lines */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background:
    repeating-linear-gradient(
      -30deg,
      transparent,
      transparent 80px,
      rgba(255,255,255,0.02) 80px,
      rgba(255,255,255,0.02) 81px
    );
  pointer-events: none;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

/* Staggered hero entrance (#37) */
.hero__badge,
.hero h1,
.hero__subtitle,
.hero__actions,
.hero__scroll {
  opacity: 0;
  transform: translateY(24px);
  animation: heroReveal 0.7s ease-out forwards;
}
.hero__badge      { animation-delay: 0s; }
.hero h1          { animation-delay: 0.12s; }
.hero__subtitle   { animation-delay: 0.24s; }
.hero__actions    { animation-delay: 0.36s; }
.hero__scroll     { animation-delay: 0.48s; }

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__badge {
  margin-bottom: var(--space-xl);
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero h1 .accent {
  color: var(--color-accent);
  display: block;
}

.hero__subtitle {
  font-size: clamp(var(--text-lg), 2.2vw, var(--text-xl));
  color: var(--text-on-dark-muted);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
  line-height: var(--leading-loose);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-4xl);
}

.hero__scroll {
  position: relative;
  z-index: 2;
}

/* ── About Preview (on home) ── */
.about-preview {
  text-align: center;
}

.about-preview p {
  margin-inline: auto;
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
}

/* ── Services Preview ── */
.services-preview {
  padding-block: clamp(var(--space-4xl), 10vw, var(--space-5xl));
}

.services-preview .card-icon svg {
  width: 28px;
  height: 28px;
}

/* Staggered scroll animation for cards */
.grid-3 .card {
  transition-delay: 0s;
}

.grid-3 .card:nth-child(2) {
  transition-delay: 0.15s;
}

.grid-3 .card:nth-child(3) {
  transition-delay: 0.3s;
}

/* ── CTA Section ── */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(196,133,108,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  position: relative;
  z-index: 1;
}

.cta-section p {
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.cta-section .hero__actions {
  position: relative;
  z-index: 1;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero {
    min-height: 90vh;
    padding-top: var(--space-4xl);
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}
