/* css/slider.css — hero image slider + gallery slider (green theme) */

/* ===== HERO SLIDER ===== */
.hero-slider{position:relative;margin-top:72px;height:min(92vh,780px);min-height:660px;overflow:hidden;background:#0d3b18;box-shadow:0 24px 60px rgba(8,30,14,.20);}
.hero-slide{position:absolute;inset:0;width:100%;opacity:0;transition:opacity 1.1s ease;background-size:cover;background-position:center;display:flex;align-items:center;padding:90px 0;}
.hero-slide.active{opacity:1;z-index:1;}
.hero-slide::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,30,14,.85) 0%,rgba(10,44,18,.55) 45%,rgba(10,44,18,.15) 100%);}
.hero-slide-content{position:relative;z-index:2;margin-left:6%;margin-right:6%;max-width:720px;width:100%;color:#fff;padding:30px 32px;border-left:4px solid var(--accent);background:linear-gradient(90deg,rgba(6,30,13,.35),transparent);border-radius:0 24px 24px 0;}
.hero-slide .hero-slide-content>*{opacity:0;will-change:transform,opacity;}
.hero-slide.active[data-effect="fade-up"] .hero-slide-content>*{animation:heroFadeUp .78s cubic-bezier(.2,.72,.25,1) both;}
.hero-slide.active[data-effect="slide-left"] .hero-slide-content>*{animation:heroSlideLeft .82s cubic-bezier(.2,.72,.25,1) both;}
.hero-slide.active[data-effect="slide-right"] .hero-slide-content>*{animation:heroSlideRight .82s cubic-bezier(.2,.72,.25,1) both;}
.hero-slide.active[data-effect="zoom-in"] .hero-slide-content>*{animation:heroZoomIn .78s cubic-bezier(.2,.75,.25,1) both;}
.hero-slide.active[data-effect="float-in"] .hero-slide-content>*{animation:heroFloatIn .9s cubic-bezier(.18,.82,.3,1) both;}
.hero-slide.active[data-effect="turn-in"] .hero-slide-content>*{animation:heroTurnIn .84s cubic-bezier(.2,.72,.25,1) both;transform-origin:left center;}
.hero-slide.active[data-effect="rise-stagger"] .hero-slide-content>*{animation:heroRiseStagger .9s cubic-bezier(.16,.84,.26,1) both;}
.hero-slide.active .hero-slide-content>*:nth-child(1){animation-delay:.16s;}
.hero-slide.active .hero-slide-content>*:nth-child(2){animation-delay:.29s;}
.hero-slide.active .hero-slide-content>*:nth-child(3){animation-delay:.43s;}
.hero-slide.active .hero-slide-content>*:nth-child(4){animation-delay:.56s;}
.hero-slide.active[data-effect="letters"] .hero-slide-eyebrow,
.hero-slide.active[data-effect="letters"] .hero-slide-sub,
.hero-slide.active[data-effect="letters"] .hero-slide-actions{animation:heroFadeUp .75s ease-out both;}
.hero-slide.active[data-effect="letters"] .hero-slide-title{opacity:1;}
.hero-letter{display:inline-block;white-space:pre;opacity:0;}
.hero-slide.active[data-effect="letters"] .hero-letter{animation:heroLetterJump .58s cubic-bezier(.25,.8,.35,1) both;animation-delay:calc(.25s + var(--hero-letter-index) * 24ms);}
.hero-slide.active{animation:heroBackgroundDrift 6s ease-out both;}
@keyframes heroFadeUp{from{opacity:0;transform:translateY(34px)}to{opacity:1;transform:translateY(0)}}
@keyframes heroSlideLeft{from{opacity:0;transform:translateX(70px)}to{opacity:1;transform:translateX(0)}}
@keyframes heroSlideRight{from{opacity:0;transform:translateX(-70px)}to{opacity:1;transform:translateX(0)}}
@keyframes heroZoomIn{from{opacity:0;transform:scale(.78)}to{opacity:1;transform:scale(1)}}
@keyframes heroFloatIn{0%{opacity:0;transform:translateY(50px)}65%{opacity:1;transform:translateY(-8px)}100%{opacity:1;transform:translateY(0)}}
@keyframes heroTurnIn{from{opacity:0;transform:perspective(700px) rotateY(-28deg) translateX(-30px)}to{opacity:1;transform:perspective(700px) rotateY(0) translateX(0)}}
@keyframes heroRiseStagger{0%{opacity:0;transform:translateY(60px) skewY(3deg)}70%{opacity:1;transform:translateY(-4px) skewY(0)}100%{opacity:1;transform:translateY(0)}}
@keyframes heroLetterJump{0%{opacity:0;transform:translateY(30px) rotate(3deg)}55%{opacity:1;transform:translateY(-9px) rotate(-2deg)}80%{transform:translateY(3px)}100%{opacity:1;transform:translateY(0) rotate(0)}}
@keyframes heroBackgroundDrift{from{background-position:center 56%}to{background-position:center 48%}}
.hero-slide-eyebrow{display:inline-block;background:rgba(17,70,30,.18);color:#dce7df;font-size:.72rem;font-weight:800;letter-spacing:1px;text-transform:uppercase;padding:6px 14px;border-radius:20px;margin-bottom:14px;}
.hero-slide-title{font-size:clamp(2.25rem,4.5vw,4rem);font-weight:900;line-height:1.04;letter-spacing:-1px;margin-bottom:17px;text-shadow:0 4px 24px rgba(0,0,0,.28);}
.hero-slide-title span{color:#dce7df;}
.hero-slide-sub{font-size:clamp(1rem,1.35vw,1.18rem);color:rgba(255,255,255,.92);line-height:1.65;margin-bottom:26px;max-width:620px;text-shadow:0 2px 12px rgba(0,0,0,.22);}
.hero-slide-actions{display:flex;gap:14px;flex-wrap:wrap;}
/* arrows */
.hero-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,.14);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.25);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .3s ease,transform .3s ease;}
.hero-arrow:hover{background:var(--accent);transform:translateY(-50%) scale(1.08);}
.hero-arrow.prev{left:22px;}.hero-arrow.next{right:22px;}
/* dots */
.hero-dots{position:absolute;bottom:26px;left:6%;z-index:5;display:flex;gap:10px;}
.hero-dot{width:38px;height:5px;border-radius:3px;background:rgba(255,255,255,.35);cursor:pointer;transition:background .3s ease;overflow:hidden;position:relative;}
.hero-dot.active{background:rgba(255,255,255,.5);}
.hero-dot.active::after{content:'';position:absolute;inset:0;background:var(--accent);transform-origin:left;animation:dotfill 6s linear;}
@keyframes dotfill{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* ===== Animated wave at the bottom of the hero (never stops) ===== */
.hero-slider{--wave-h:110px;}
.hero-wave{
  position:absolute;left:0;right:0;bottom:-1px;height:var(--wave-h);
  z-index:4;pointer-events:none;overflow:hidden;
  filter:drop-shadow(0 -8px 18px rgba(216,199,165,.14));
}
.hero-wave span{
  position:absolute;bottom:0;left:0;
  width:200%;height:100%;
  background-repeat:repeat-x;
  background-size:50% 100%;
}
/* back layer — slower, softer */
.hero-wave .w1{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 110' preserveAspectRatio='none'><path d='M0,70 C180,20 360,110 720,66 C1080,22 1260,96 1440,58 L1440,110 L0,110 Z' fill='rgba(74,115,100,0.72)'/></svg>");
  animation:waveMove 20s linear infinite;
}
/* front layer — deep green matches the next section so no colour seam appears */
.hero-wave .w2{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 110' preserveAspectRatio='none'><path d='M0,84 C220,44 420,116 720,80 C1020,44 1240,104 1440,74 L1440,110 L0,110 Z' fill='%2311461e'/></svg>");
  animation:waveMove 12s linear infinite;
}
@keyframes waveMove{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(max-width:900px){.hero-slider{--wave-h:70px;}}
@media(max-width:640px){.hero-slider{--wave-h:52px;}}
@media (prefers-reduced-motion:reduce){.hero-wave span,.hero-slide.active,.hero-slide.active .hero-slide-content>*,.hero-slide.active[data-effect="letters"] .hero-letter{animation:none!important}.hero-slide .hero-slide-content>*,.hero-letter{opacity:1!important;transform:none!important}}

@media(max-width:900px){
  .hero-slider{height:auto;min-height:0;display:block;}
  .hero-slide{position:relative;inset:auto;display:none;padding:100px 0 80px;min-height:590px;}
  .hero-slide.active{display:flex;}
  .hero-slide-content{margin-left:5%;margin-right:5%;max-width:none;padding:26px 24px;}
}

@media(max-width:560px){
  .hero-slide{min-height:570px;background-position:center;}
  .hero-slide-content{padding:22px 18px;border-left-width:3px;}
  .hero-arrow{width:42px;height:42px;top:auto;bottom:70px;}
  .hero-arrow.prev{left:auto;right:66px}.hero-arrow.next{right:16px}
  .hero-dots{left:20px;right:120px;bottom:34px;gap:6px;flex-wrap:wrap;}
  .hero-dot{width:24px;height:4px;}
}

/* Mobile hero remains a true full-bleed banner. The photograph fills the
   complete slide and the copy sits in a compact translucent panel above it. */
@media(max-width:768px){
  .hero-slider{height:auto;min-height:0;}
  .hero-slide{
    min-height:660px;
    padding:72px 0 105px;
    align-items:center;
    background-size:cover;
    background-position:center 35%!important;
    background-repeat:no-repeat;
  }
  .hero-slide.active{animation:none;}
  .hero-slide::after{background:linear-gradient(90deg,rgba(5,30,13,.72),rgba(5,30,13,.28));}
  .hero-slide-content{
    margin:0 20px;
    width:calc(100% - 40px);
    padding:24px 20px;
    border-radius:0 22px 22px 0;
    background:linear-gradient(135deg,rgba(5,31,14,.78),rgba(5,31,14,.48));
    box-shadow:0 18px 42px rgba(0,0,0,.20);
    backdrop-filter:blur(2px);
  }
  .hero-slide-title{font-size:clamp(2rem,8.8vw,2.8rem);line-height:1.07;}
  .hero-slide-sub{font-size:.96rem;line-height:1.58;margin-bottom:22px;}
}

@media(max-width:430px){
  .hero-slide{min-height:680px;padding:64px 0 112px;background-position:center 32%!important;}
  .hero-slide-content{margin:0 16px;width:calc(100% - 32px);padding:22px 18px;}
  .hero-slide-actions{display:grid;grid-template-columns:1fr;width:100%;gap:10px;}
  .hero-slide-actions .btn{width:100%;justify-content:center;}
}

/* ===== GALLERY SLIDER ===== */
.gallery{padding:70px 5%;overflow:hidden;}
.gallery-track-wrap{position:relative;max-width:1200px;margin:0 auto;overflow:hidden;padding:12px 0 22px;mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);}
.gallery-track{display:flex;gap:22px;width:max-content;will-change:transform;transform:translate3d(0,0,0);}
.gallery-item{flex:0 0 380px;border-radius:18px;overflow:hidden;position:relative;height:300px;box-shadow:0 12px 34px rgba(13,59,24,.14);}
.gallery-item img,.gallery-item .gsvg{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s ease;}
.gallery-item:hover img,.gallery-item:hover .gsvg{transform:scale(1.08);}
.gallery-cap{position:absolute;left:0;right:0;bottom:0;padding:18px;background:linear-gradient(transparent,rgba(8,30,14,.9));color:#fff;}
.gallery-cap h4{font-size:1.05rem;font-weight:800;margin:0 0 3px;}
.gallery-cap p{font-size:.82rem;opacity:.85;margin:0;}
.gallery-nav{display:none;}
.gallery-btn{width:46px;height:46px;border-radius:50%;background:#fff;border:1px solid var(--border);color:var(--primary);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:var(--shadow-sm);transition:background .3s,color .3s,transform .3s;}
.gallery-btn:hover{background:var(--primary);color:#fff;transform:scale(1.08);}
@media(max-width:900px){.gallery-item{flex-basis:320px;height:250px;}}
@media(max-width:560px){.gallery-track-wrap{margin-inline:-5%;mask-image:none;-webkit-mask-image:none}.gallery-item{flex-basis:calc(100vw - 54px);height:260px;}}
