/* ============================================================
   pages/home.css — Home Page Styles
   ============================================================ */


/* ============================================================
   HERO SECTION
   Full-viewport layout: video container takes most of the screen,
   CTA buttons sit below on the ivory background.

   Layout (matches wireframe):
   ┌──────────────────────────────────┐
   │  Nav (transparent, overlaid)     │
   │  ┌────────────────────────────┐  │
   │  │                            │  │
   │  │   30-sec video (looping)   │  │
   │  │                            │  │
   │  └────────────────────────────┘  │
   │  [View Our Work]  [Get In Touch] │
   └──────────────────────────────────┘

   TO ADD VIDEO:
   Upload hero-video.mp4 to minterra-assets/site/ and update the
   <video> src in index.html (replace minterra-design-studio).
   Until then, a Forest Green fallback shows in the video container.
   ============================================================ */
.hero {
  min-height: 100vh;
  background-color: var(--color-bg);     /* Ivory — frames the video */
  display: flex;
  flex-direction: column;
  /* padding: calc(var(--nav-height) + var(--sp-4)) var(--sp-6) var(--sp-8); */
  padding: 0;
  gap: var(--sp-5);
}

/* Video container — rounded card, fills available space */
.hero__video-container {
  flex: 1;
  min-height: 0;                          /* Allows flex child to shrink */
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  position: relative;
  background-color: var(--color-primary); /* Fallback color while video loads */
}

/* Video element fills container */
.hero__video-bg {
  position: absolute;
  inset: 0;
}

.hero__video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Subtle dark overlay — keeps the video readable, adds depth */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(36, 48, 32, 0.25);    /* Forest green tint */
  z-index: 1;
}

/* CTA buttons — sit on the ivory background BELOW the video */
.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  opacity: 0;
  animation: heroButtonsFade 0.6s ease 0.4s forwards;
  padding: var(--sp-5) var(--sp-6) var(--sp-10);
}

@keyframes heroButtonsFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .hero {
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
  }
  .hero__video-container {
    border-radius: 8px;
  }
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ============================================================
   ABOUT GLIMPSE (Home)
   Split layout: left = intro text, right = stats
   ============================================================ */
.home-about {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.home-about__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sp-20);
  align-items: start;
}

.home-about__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 300;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--sp-6);
}

.home-about__body {
  margin-bottom: var(--sp-8);
  max-width: 55ch;
}

.home-about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

@media (max-width: 900px) {
  .home-about__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-12);
  }
}


/* ============================================================
   SERVICES PREVIEW (Home)
   3-column grid of service cards.
   ============================================================ */
.home-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-10);
}

.home-services__footer {
  text-align: center;
}

@media (max-width: 900px) {
  .home-services__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .home-services__grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   FEATURED PROJECTS (Home)
   Asymmetric grid: one large left + two stacked right.
   ============================================================ */
.home-projects__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--sp-6);
}

/* First card spans both rows on the left */
.home-projects__grid .project-card:first-child {
  grid-row: span 2;
}

.home-projects__grid .project-card:first-child .project-card__image-wrap {
  aspect-ratio: 3 / 4;   /* Portrait format for the big left card */
}

.home-projects__footer {
  text-align: center;
  margin-top: var(--sp-10);
}

@media (max-width: 768px) {
  .home-projects__grid {
    grid-template-columns: 1fr;
  }
  .home-projects__grid .project-card:first-child {
    grid-row: span 1;
  }
  .home-projects__grid .project-card:first-child .project-card__image-wrap {
    aspect-ratio: 4 / 3;
  }
}


/* ============================================================
   CTA BANNER (Home)
   Dark green full-bleed strip.
   ============================================================ */
.home-cta {
  padding: var(--sp-24) 0;
  background-color: var(--color-primary);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Decorative large text watermark */
.home-cta::before {
  content: 'MINTERRA';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 22rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.05em;
}

.home-cta__inner {
  position: relative;
  z-index: 1;
}

.home-cta__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 300;
  color: var(--color-white);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  max-width: 22ch;
  margin: 0 auto var(--sp-6);
}

.home-cta__title em {
  font-style: italic;
  color: var(--color-accent);
}

.home-cta__body {
  color: rgba(255, 255, 255, 0.6);
  max-width: 50ch;
  margin: 0 auto var(--sp-10);
}

.home-cta__actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
