/* hero.css: Section 2 (3-slide hero) */
.hero{
  --hero-h:clamp(460px,34vw,580px);
  --pad-l:1.25rem;
  --pad-r:1.25rem;
  --green-btn:#25852f; /* slightly deeper than the original so white text passes contrast */
  position:relative;background:var(--brand);
}
@media (min-width:992px){
  .hero{--pad-l:calc(clamp(1.5rem,6.6vw,7rem) + 1.2rem);--pad-r:clamp(1.5rem,7.4vw,8rem)}
}
.hero__viewport{position:relative;height:var(--hero-h);overflow:hidden}

.hero__slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .8s ease,visibility .8s}
.hero__slide.is-active{opacity:1;visibility:visible;z-index:1}
.hero__slide[hidden]{display:block} /* JS un-hides after page load; keeps lazy images deferred until then */
.hero__slide[hidden]:not(.is-active){display:none}

.hero__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--pos,center center)}
.hero__slide::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,16,36,.62) 0%,rgba(8,16,36,.38) 50%,rgba(8,16,36,.08) 100%)}

.hero__content{position:relative;z-index:2;height:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  padding:2rem var(--pad-r) 4rem var(--pad-l);max-width:64rem}
.hero__title{margin:0 0 .6rem;font-family:"Libre Baskerville",Georgia,"Times New Roman",serif;font-weight:700;color:#fff;font-size:clamp(1.55rem,2.9vw,2.4rem);line-height:1.25;text-shadow:0 2px 12px rgba(0,0,0,.35)}
.hero__text{margin:0 0 1.6rem;max-width:50rem;font-family:"Lato",var(--font);font-size:clamp(.98rem,1.25vw,1.1rem);line-height:1.6;color:rgba(255,255,255,.9);text-shadow:0 1px 8px rgba(0,0,0,.4)}

.btn-hero{display:inline-flex;align-items:center;justify-content:center;min-width:150px;padding:1.05rem 2rem;background:var(--green-btn);color:#fff;font-family:"Lato",var(--font);font-weight:700;font-size:.9rem;letter-spacing:.04em;text-transform:uppercase;text-decoration:none;border-radius:10px;box-shadow:0 6px 16px rgba(0,0,0,.25);transition:background-color .2s,transform .2s}
.btn-hero:hover{background:#1f6f28;transform:translateY(-2px)}

/* Arrows */
.hero__arrow{position:absolute;top:50%;z-index:3;transform:translateY(-50%);display:none;align-items:center;justify-content:center;width:46px;height:46px;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;cursor:pointer;backdrop-filter:blur(4px);transition:background-color .2s}
.hero__arrow:hover{background:rgba(255,255,255,.4)}
.hero__arrow--prev{left:1rem}
.hero__arrow--next{right:1rem}
@media (min-width:768px){.hero__arrow{display:inline-flex}}

/* Dots + pause */
.hero__controls{position:absolute;z-index:3;left:50%;bottom:1.1rem;transform:translateX(-50%);display:flex;align-items:center;gap:.9rem;padding:.35rem .8rem;border-radius:999px;background:rgba(8,16,36,.35)}
.hero__dots{display:flex;gap:.55rem}
.hero__dot{width:12px;height:12px;padding:0;border:2px solid #fff;border-radius:50%;background:transparent;cursor:pointer;transition:background-color .2s,transform .2s}
.hero__dot.is-active{background:#fff;transform:scale(1.15)}
.hero__play{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;padding:0;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer}
.hero__play .i-play{display:none}
.hero__play[data-state="paused"] .i-pause{display:none}
.hero__play[data-state="paused"] .i-play{display:block}

@media (max-width:767.98px){
  .hero{--hero-h:clamp(480px,118vw,600px)}
  .hero__img{object-position:var(--pos-m,center center)}
  .hero__slide::after{background:linear-gradient(180deg,rgba(8,16,36,.55) 0%,rgba(8,16,36,.7) 100%)}
  .hero__content{justify-content:center;padding-bottom:4.5rem}
  .btn-hero{width:100%;max-width:280px}
}
