/* ============================================================
   GACP LLC — hero.css
   Panoramic 3-zone hero section
   ============================================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 960px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero__panoramic {
  position: absolute;
  inset: 0;
  display: flex;
}

.hero__zone {
  flex: 1;
  position: relative; /* anchor for .hero__zone-label */
  overflow: hidden;
  transition: flex var(--dur-slower) var(--ease-out);
  isolation: isolate; /* create stacking context so labels stay within zone */
}

.hero__zone:hover {
  flex: 1.6;
}

.hero__zone-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.hero__zone:hover .hero__zone-img {
  transform: scale(1.05);
}

/* Overlays & gradients per zone */
.hero__zone::after {
  content: '';
  position: absolute;
  inset: 0;
  transition: opacity var(--dur-slow) var(--ease-smooth);
}

.hero__zone--tropical::after {
  background: linear-gradient(
    to bottom,
    rgba(78, 138, 86, 0.15),
    rgba(12, 16, 14, 0.5) 70%,
    rgba(12, 16, 14, 0.9)
  );
}

.hero__zone--arable::after {
  background: linear-gradient(
    to bottom,
    rgba(224, 149, 64, 0.1),
    rgba(12, 16, 14, 0.5) 70%,
    rgba(12, 16, 14, 0.9)
  );
}

.hero__zone--lab::after {
  background: linear-gradient(
    to bottom,
    rgba(212, 98, 62, 0.1),
    rgba(12, 16, 14, 0.5) 70%,
    rgba(12, 16, 14, 0.9)
  );
}

/* Zone labels */
.hero__zone-label {
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  text-align: center;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  transform: translateX(-50%) translateY(-10px);
  background: rgba(12, 16, 14, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(244, 240, 232, 0.08);
}

.hero__zone:hover .hero__zone-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hero__zone-label span {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--cream);
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.hero__zone-label small {
  display: block;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 4px;
}

.hero__zone--tropical .hero__zone-label small { color: var(--green); }
.hero__zone--arable .hero__zone-label small   { color: var(--amber); }
.hero__zone--lab .hero__zone-label small       { color: var(--terra); }

/* Zone divider lines */
.hero__zone + .hero__zone::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(244, 240, 232, 0.1);
  z-index: 3;
}

/* Content overlay */
.hero__content {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 0 var(--sp-xl) var(--sp-4xl);
  max-width: var(--max-w);
  margin: 0 auto;
  pointer-events: none;
}

.hero__content > * {
  pointer-events: auto;
}

.hero__actions {
  pointer-events: auto;
}

.hero__eyebrow {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green);
  font-weight: 500;
  margin-bottom: var(--sp-md);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-5xl);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.1;
  max-width: 14ch;
  margin-bottom: var(--sp-lg);
}

.hero__subtitle {
  font-size: var(--fs-md);
  color: var(--cream-dim);
  max-width: 50ch;
  margin-bottom: var(--sp-2xl);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

/* Stats bar */
.hero__stats {
  position: relative;
  z-index: 5;
  background: rgba(12, 16, 14, 0.8);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero__stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero__stat {
  padding: var(--sp-xl) var(--sp-lg);
  text-align: center;
  border-right: 1px solid var(--border);
}

.hero__stat:last-child {
  border-right: none;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--cream);
}

.hero__stat-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-top: 2px;
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 1024px) {
  .hero__title { font-size: var(--fs-4xl); }
}

@media (max-width: 768px) {
  .hero {
    height: 85vh;
    min-height: 540px;
    max-height: unset;
  }

  /* Single-image background */
  .hero__panoramic {
    position: absolute;
    inset: 0;
    display: block;
  }

  .hero__zone { display: none; }
  .hero__zone:first-child {
    display: block;
    position: absolute;
    inset: 0;
  }
  .hero__zone:first-child::after {
    background: linear-gradient(
      to bottom,
      rgba(12, 16, 14, 0.3) 0%,
      rgba(12, 16, 14, 0.6) 50%,
      rgba(12, 16, 14, 0.92) 85%
    );
  }
  .hero__zone-label { display: none; }

  .hero__eyebrow { display: none; }

  .hero__content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 0 var(--sp-lg) var(--sp-2xl);
  }

  .hero__title { font-size: var(--fs-3xl); max-width: none; }

  .hero__subtitle {
    font-size: var(--fs-sm);
    max-width: none;
    margin-bottom: var(--sp-xl);
  }

  .hero__actions {
    flex-direction: column;
  }
  .hero__actions .btn { width: 100%; }

  /* Hide stats bar on mobile */
  .hero__stats { display: none; }
}

/* --- Mobile-Only Sections ---------------------------------- */
.trust-strip { display: none; }
.mobile-categories { display: none; }
.mobile-cta { display: none; }

@media (max-width: 768px) {
  /* Trust strip */
  .trust-strip {
    display: flex;
    gap: var(--sp-md);
    padding: var(--sp-md) var(--sp-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(12, 16, 14, 0.95);
    border-bottom: 1px solid var(--border);
  }
  .trust-strip::-webkit-scrollbar { display: none; }
  .trust-pill {
    display: flex;
    align-items: center;
    gap: var(--sp-xs);
    white-space: nowrap;
    font-size: var(--fs-xs);
    color: var(--cream-dim);
    padding: var(--sp-xs) var(--sp-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    flex-shrink: 0;
  }
  .trust-pill svg { flex-shrink: 0; }

  /* Mobile category grid */
  .mobile-categories {
    display: block;
    padding: var(--sp-2xl) var(--sp-lg);
  }
  .mobile-categories__title {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    color: var(--cream);
    margin-bottom: var(--sp-lg);
  }
  .mobile-categories__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-sm);
  }
  .mobile-cat-card {
    display: block;
    padding: var(--sp-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--green);
    text-decoration: none;
  }
  .mobile-cat-card__name {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 2px;
  }
  .mobile-cat-card__desc {
    font-size: var(--fs-xs);
    color: var(--text-dim);
    line-height: 1.4;
  }

  /* Mobile CTA */
  .mobile-cta {
    display: block;
    padding: var(--sp-3xl) var(--sp-lg);
    text-align: center;
  }
  .mobile-cta h2 {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    color: var(--cream);
    margin-bottom: var(--sp-lg);
  }
  .mobile-cta .btn { width: 100%; }
  .mobile-cta .btn + .btn { margin-top: var(--sp-sm); }

  /* Hide sourcing sections on mobile */
  .sourcing-section { display: none; }
  .desktop-cta { display: none; }
}
