/* =============================================================================
   HEROES  —  home hero with the curved bottom, and the inner-page hero
   ========================================================================== */

/* -----------------------------------------------------------------------------
   HOME HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--green-800);
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

/* Green scrim: solid on the left so the headline stays readable, clearing to
   the right so the photograph shows through — exactly as in the design. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(96deg,
      rgba(9, 60, 28, 0.95) 0%,
      rgba(10, 62, 29, 0.88) 26%,
      rgba(12, 66, 31, 0.60) 46%,
      rgba(14, 70, 33, 0.18) 62%,
      rgba(14, 70, 33, 0.05) 78%),
    linear-gradient(to top, rgba(9, 52, 25, 0.42), transparent 42%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 46vw, 560px);
  padding-block: clamp(2.75rem, 1.5rem + 5vw, 4.5rem) clamp(4.5rem, 2.5rem + 8vw, 7.5rem);
}

.hero__content { max-width: 640px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-4);
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(248, 188, 14, 0.55);
  border-radius: var(--radius-pill);
  background: rgba(248, 188, 14, 0.12);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.hero__eyebrow .icon { width: 14px; height: 14px; }

.hero__title {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.11;
  letter-spacing: 0.004em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 18px rgba(6, 30, 15, 0.35);
}
.hero__title .accent { color: var(--gold-500); }
.hero__title span { display: block; }

.hero__text {
  max-width: 42ch;
  margin: 0 0 var(--space-6);
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.06rem);
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 10px rgba(6, 30, 15, 0.3);
}

.hero__actions { gap: var(--space-4); }

/* -----------------------------------------------------------------------------
   INNER-PAGE HERO  —  shorter, centred, its own treatment
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--green-700);
  color: #fff;
  text-align: center;
}

.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.9);
}
.page-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(9, 56, 27, 0.86), rgba(11, 68, 32, 0.9)),
    radial-gradient(120% 90% at 50% 0%, rgba(19, 122, 51, 0.35), transparent 65%);
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: clamp(240px, 24vw, 330px);
  padding-block: clamp(2.5rem, 1.5rem + 3.5vw, 4rem) clamp(3.5rem, 2rem + 6vw, 5.5rem);
}

.page-hero__content { max-width: 760px; }

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--space-4);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.page-hero__breadcrumb a { color: rgba(255, 255, 255, 0.8); }
.page-hero__breadcrumb a:hover { color: var(--gold-500); }
.page-hero__breadcrumb .sep { color: var(--gold-500); }

.page-hero__title {
  margin: 0;
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.13;
  text-transform: uppercase;
  color: #fff;
}
.page-hero__title .accent { color: var(--gold-500); }

.page-hero__rule {
  width: 62px;
  height: 3px;
  margin: var(--space-4) auto;
  background: var(--gold-500);
  border-radius: 2px;
}

.page-hero__sub {
  margin: 0 auto;
  max-width: 60ch;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.88);
}

.page-hero__actions { margin-top: var(--space-5); justify-content: center; }

@media (max-width: 640px) {
  .hero__inner { min-height: 400px; text-align: left; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* -----------------------------------------------------------------------------
   HERO SLIDESHOW
   Every slide is stacked in the same box and cross-fades. All slides share one
   image size, so the hero's height never changes as the picture changes.
   -------------------------------------------------------------------------- */
.hero__slides {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--green-800);
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.hero__slide.is-active { opacity: 1; }

/* Without JavaScript only the first slide exists, and it must still show. */
.hero__slides:not([data-hero-slideshow]) .hero__slide:first-child { opacity: 1; }

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

/* A very slow drift keeps the still photograph feeling alive. */
.hero__slide.is-active img { animation: heroDrift 14s ease-out forwards; }
@keyframes heroDrift {
  from { transform: scale(1.0); }
  to   { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide.is-active img { animation: none; }
  .hero__slide { transition: none; }
}

/* ---- Slide dots ---------------------------------------------------------- */
.hero__dots {
  position: absolute;
  left: 50%;
  bottom: clamp(3.5rem, 2rem + 5vw, 5.5rem);
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.5rem;
}
.hero__dot {
  width: 26px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: background var(--dur) var(--ease), width var(--dur) var(--ease);
}
.hero__dot:hover { background: rgba(255, 255, 255, 0.7); }
.hero__dot.is-active { background: var(--gold-500); width: 38px; }

@media (max-width: 620px) {
  .hero__dots { bottom: clamp(3rem, 2rem + 6vw, 4rem); }
  .hero__dot { width: 20px; }
  .hero__dot.is-active { width: 30px; }
}
