/* =========================================================
   HERO — homepage
   Mobile-first: base = banner image above text (mobile),
   desktop (>=1024px) = 2-column with abstract visual.
   ========================================================= */

/* ---------------------------------------------------------
   BASE (mobile) — banner + text
   --------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--green-deep);
  color: var(--white);
  min-height: 0;
  display: block;
  overflow: hidden;
  isolation: isolate;
}

/* Photo as full background on mobile */
.hero__media {
  position: absolute;
  inset: 0;
  height: auto;
  overflow: hidden;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  /* Darker filter so text sits clearly on top */
  filter: brightness(.28) saturate(.55) contrast(1.05);
}

/* Stronger overlay for text legibility */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(6,25,19,.72) 0%,
      rgba(6,25,19,.78) 35%,
      rgba(6,25,19,.92) 100%),
    radial-gradient(ellipse at 50% 100%,
      rgba(6,25,19,.55) 0%,
      transparent 60%);
}

/* Content sits on top of photo */
.hero__inner {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding: 72px 20px 56px;
  background: none;
  width: 100%;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.hero__text {
  max-width: 100%;
  text-align: left;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 600;
  margin: 0 0 16px;
  justify-content: flex-start;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold-bright);
}

.hero__inner h1 {
  color: var(--white);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  max-width: none;
  margin: 0 0 20px;
  text-align: left;
}

.hero__inner .lede {
  color: rgba(255,255,255,.92);
  font-size: 1rem;
  line-height: 1.55;
  max-width: none;
  margin: 0 0 14px;
  text-align: left;
}
.hero__inner .lede:last-of-type { margin-bottom: 0; }

.hero__ctas {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 28px;
}
.hero__ctas .btn {
  justify-content: center;
  padding: 16px 22px;
  font-size: .95rem;
  width: 100%;
}

.hero__proof {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: .78rem;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255,255,255,.65);
  max-width: 100%;
  text-align: left;
}
.hero__proof span {
  position: relative;
  padding-left: 18px;
  font-weight: 500;
}
.hero__proof span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--gold-bright);
  transform: translateY(-50%);
}

/* Hide visual on mobile */
.hero__visual { display: none; }

/* ---------------------------------------------------------
   SMALL PHONES (<= 480px) — tighter
   --------------------------------------------------------- */
@media (max-width: 480px) {
  .hero__inner {
    padding-top: 64px;
    padding-bottom: 44px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .hero__inner h1 { font-size: 1.65rem; line-height: 1.18; }
  .hero__inner .lede { font-size: .94rem; }
}

/* ---------------------------------------------------------
   SHORT LANDSCAPE
   --------------------------------------------------------- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero__inner { padding: 32px 20px 24px; }
  .hero__inner h1 { font-size: 1.6rem; }
  .hero__ctas { margin-top: 20px; }
  .hero__proof { margin-top: 20px; padding-top: 14px; }
}

/* ---------------------------------------------------------
   DESKTOP (>= 1024px) — 2-column with abstract visual
   --------------------------------------------------------- */
@media (min-width: 1024px) {
  .hero {
    min-height: 620px;
    display: flex;
    align-items: center;
  }

  .hero__media { position: absolute; inset: 0; height: auto; }
  .hero__media img {
    object-position: center 40%;
    filter: brightness(.35) saturate(.7);
  }
  .hero__overlay {
    background:
      linear-gradient(105deg, rgba(6,25,19,.98) 0%, rgba(6,25,19,.92) 45%, rgba(6,25,19,.72) 100%),
      radial-gradient(ellipse at 80% 50%, rgba(15,61,50,.6) 0%, transparent 60%);
  }

  .hero__inner {
    margin-top: 0;
    padding: var(--space-8) 0;
    background: none;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--space-7);
    align-items: center;
  }

  .hero__text { max-width: 640px; text-align: left; }

  .hero__eyebrow {
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-widest);
    margin: 0 0 var(--space-5);
  }

  .hero__inner h1 {
    font-size: clamp(2.25rem, 4.6vw, 3.5rem);
    font-weight: 800;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    max-width: 20ch;
    margin: 0 0 var(--space-5);
    text-align: left;
  }
  .hero__inner .lede {
    color: rgba(255,255,255,.88);
    font-size: var(--text-lg);
    line-height: var(--leading-normal);
    max-width: 54ch;
    margin: 0 0 0.7em;
    text-align: left;
  }

  .hero__ctas {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--space-3);
    margin-top: var(--space-6);
  }
  .hero__ctas .btn {
    width: auto;
    padding: 14px var(--space-5);
    font-size: var(--text-sm);
  }

  .hero__proof {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-6);
    margin-top: var(--space-7);
    padding-top: var(--space-5);
    border-top: 1px solid rgba(255,255,255,.16);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    text-align: left;
  }
  .hero__proof span {
    padding-left: var(--space-4);
  }

  /* Show the abstract visual */
  .hero__visual {
    display: flex;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 580px;
    align-items: center;
    justify-content: center;
  }
}

/* ---------------------------------------------------------
   ABSTRACT VISUAL (.hv) — only visible at desktop
   --------------------------------------------------------- */
.hv {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 480px;
}
.hv::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(201,169,106,.10) 0%, transparent 65%);
  z-index: -1;
  pointer-events: none;
}
.hv__grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .8;
  pointer-events: none;
}
.hv__card {
  position: absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(201,169,106,.45);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 240px;
  box-shadow:
    0 24px 60px rgba(0,0,0,.32),
    0 0 0 1px rgba(255,255,255,.04) inset;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
  animation: hvCardIn 900ms var(--ease-out) forwards;
}
.hv__card--1 { top: 8%;  left: 2%;  animation-delay: 400ms; }
.hv__card--2 { top: 42%; right: 0%; animation-delay: 700ms; }
.hv__card--3 { bottom: 10%; left: 8%; animation-delay: 1000ms; }

.hv__badge {
  font-size: .7rem;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 4px;
}
.hv__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: var(--tracking-snug);
  line-height: 1.15;
}
.hv__meta {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  letter-spacing: .02em;
}
.hv__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  animation: hvLineIn 1400ms var(--ease-out) 500ms forwards;
}
.hv__node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 8px rgba(217,190,131,.14), 0 0 0 16px rgba(217,190,131,.05);
  opacity: 0;
  animation: hvNodeIn 700ms var(--ease-out) forwards, hvNodePulse 3.2s ease-in-out infinite;
}
.hv__node--1 { top: 26%; left: 50%; animation-delay: 600ms, 1200ms; }
.hv__node--2 { top: 54%; left: 44%; animation-delay: 900ms, 1500ms; }
.hv__node--3 { top: 76%; left: 70%; animation-delay: 1200ms, 1800ms; }
.hv__label {
  position: absolute;
  bottom: 2%;
  right: 2%;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(201,169,106,.35);
  border-radius: 20px;
  font-size: .72rem;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 700;
  opacity: 0;
  animation: hvLabelIn 800ms var(--ease-out) 1400ms forwards;
}
.hv__label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(217,190,131,.2);
  animation: hvDotPulse 2s ease-in-out infinite;
}

@keyframes hvCardIn { to { opacity: 1; transform: translateY(0); } }
@keyframes hvLineIn { to { opacity: 1; } }
@keyframes hvNodeIn { to { opacity: 1; } }
@keyframes hvNodePulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(217,190,131,.14), 0 0 0 16px rgba(217,190,131,.05); }
  50%      { box-shadow: 0 0 0 12px rgba(217,190,131,.10), 0 0 0 20px rgba(217,190,131,.02); }
}
@keyframes hvDotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(217,190,131,.2); }
  50%      { box-shadow: 0 0 0 8px rgba(217,190,131,.05); }
}
@keyframes hvLabelIn { to { opacity: 1; } }

/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hv__card,
  .hv__lines,
  .hv__node,
  .hv__label,
  .hero__media img {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
