/* ═══════════════════════════════════════════
   CINEMATIC MODULE STYLES
   Adapted from cinematic-site-components
   ═══════════════════════════════════════════ */

/* ─── STATIC HERO — CINEMATIC ENTRANCE ─── */
.static-hero{
  position:relative;
  width:100%;
  height:85vh;
  min-height:500px;
  max-height:800px;
  overflow:hidden;
}

/* Ken Burns — starts zoomed in, slowly drifts out */
.static-hero__img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 55%;
  will-change:transform;
  animation:hero-kenburns 20s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
}

@keyframes hero-kenburns{
  0%{
    transform:scale(1.15);
    filter:brightness(0.6) saturate(0.7);
  }
  30%{
    filter:brightness(1) saturate(1);
  }
  100%{
    transform:scale(1.0);
    filter:brightness(1) saturate(1);
  }
}

/* Overlay washes in */
.static-hero__overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    0deg,
    rgba(0,0,0,0.70) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.15) 70%,
    rgba(0,0,0,0.25) 100%
  );
  z-index:1;
  pointer-events:none;
  opacity:0;
  animation:hero-overlay-in 1.4s cubic-bezier(0.22,1,0.36,1) 0.2s forwards;
}

@keyframes hero-overlay-in{
  to{opacity:1}
}

/* Content container */
.static-hero__content{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:0 24px;
  z-index:2;
}

/* Stagger-reveal base for text elements */
.static-hero__tagline,
.static-hero__headline,
.static-hero__sub,
.static-hero__actions{
  opacity:0;
  transform:translateY(30px);
  will-change:opacity,transform;
}

/* Tagline — first in */
.static-hero__tagline{
  font-family:'Inter',-apple-system,sans-serif;
  font-weight:600;
  font-size:clamp(11px, 1.2vw, 14px);
  color:rgba(255,255,255,0.75);
  text-transform:uppercase;
  letter-spacing:0.18em;
  margin:0 0 14px;
  text-shadow:0 1px 10px rgba(0,0,0,0.3);
  animation:hero-text-in 0.9s cubic-bezier(0.22,1,0.36,1) 0.4s forwards;
}

/* Headline — main event */
.static-hero__headline{
  font-family:'Inter',-apple-system,sans-serif;
  font-weight:900;
  font-size:clamp(36px, 6vw, 80px);
  color:#fff;
  letter-spacing:-0.03em;
  line-height:1.08;
  margin:0 0 18px;
  text-shadow:0 2px 40px rgba(0,0,0,0.45);
  max-width:900px;
  animation:hero-text-in 1s cubic-bezier(0.22,1,0.36,1) 0.6s forwards;
}

/* Subtext */
.static-hero__sub{
  font-family:'Inter',-apple-system,sans-serif;
  font-weight:400;
  font-size:clamp(15px, 2vw, 20px);
  color:rgba(255,255,255,0.88);
  margin:0 0 32px;
  text-shadow:0 1px 16px rgba(0,0,0,0.4);
  max-width:560px;
  line-height:1.55;
  animation:hero-text-in 1s cubic-bezier(0.22,1,0.36,1) 0.85s forwards;
}

/* CTAs — last in, with a pop */
.static-hero__actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
  animation:hero-cta-in 1s cubic-bezier(0.34,1.56,0.64,1) 1.1s forwards;
}

@keyframes hero-text-in{
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes hero-cta-in{
  0%{
    opacity:0;
    transform:translateY(24px) scale(0.92);
  }
  100%{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

/* Green CTA button + shimmer */
.static-hero__cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:'Inter',-apple-system,sans-serif;
  font-weight:600;
  font-size:15px;
  letter-spacing:0.03em;
  color:#000;
  background:#00E676;
  padding:16px 36px;
  border-radius:50px;
  text-decoration:none;
  transition:transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow:0 4px 24px rgba(0,230,118,0.35);
  position:relative;
  overflow:hidden;
}

/* Subtle shine sweep on the green button */
.static-hero__cta:not(.static-hero__cta--outline)::after{
  content:'';
  position:absolute;
  top:0;left:-100%;
  width:60%;height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,0.25),transparent);
  animation:hero-btn-shimmer 3s ease 2s infinite;
  pointer-events:none;
}

@keyframes hero-btn-shimmer{
  0%{left:-100%}
  30%{left:150%}
  100%{left:150%}
}

.static-hero__cta:hover{
  transform:translateY(-2px) scale(1.02);
  box-shadow:0 8px 36px rgba(0,230,118,0.5);
}
.static-hero__cta--outline{
  background:transparent;
  color:#fff;
  border:2px solid rgba(255,255,255,0.5);
  box-shadow:none;
}
.static-hero__cta--outline:hover{
  border-color:#fff;
  box-shadow:0 4px 20px rgba(255,255,255,0.15);
}

/* Reduce motion for accessibility */
@media(prefers-reduced-motion:reduce){
  .static-hero__img{animation:none}
  .static-hero__overlay{animation:none;opacity:1}
  .static-hero__tagline,
  .static-hero__headline,
  .static-hero__sub,
  .static-hero__actions{animation:none;opacity:1;transform:none}
  .static-hero__cta::after{animation:none;display:none}
}

@media(max-width:768px){
  .static-hero{
    height:75vh;
    min-height:420px;
  }
  .static-hero__headline{
    font-size:clamp(24px, 7vw, 40px);
  }
  .static-hero__sub{
    font-size:clamp(14px, 3.5vw, 17px);
  }
  .static-hero__cta{
    padding:14px 28px;
    font-size:14px;
  }
}

/* ─── MODULE 29: TYPEWRITER EFFECT ─── */
.typewriter-word{
  color:var(--green);
  font-weight:600;
}
.type-cursor{
  display:inline-block;
  width:2px;
  height:1em;
  background:var(--green);
  margin-left:2px;
  vertical-align:text-bottom;
  animation:blink-cursor .65s step-end infinite;
}
@keyframes blink-cursor{
  50%{opacity:0}
}


/* ─── MODULE 06: SVG DRAW STEPS CONNECTOR ─── */
.steps-draw-svg{
  display:block;
}
@media(max-width:768px){
  .steps-draw-svg{
    display:none;
  }
}


/* ─── MODULE 16: SPOTLIGHT BORDER CARDS ─── */
.spot-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  background:var(--gray-200);
  border-radius:20px;
  overflow:hidden;
}
.spot-card{
  background:#fff;
  padding:36px 28px;
  position:relative;
  overflow:hidden;
  cursor:default;
  display:flex;
  flex-direction:column;
  gap:8px;
  transition:background 0.3s;
}

/* Spotlight glow — tracks mouse */
.spot-card::before{
  content:'';
  position:absolute;
  inset:-1px;
  border-radius:0;
  background:radial-gradient(
    circle 200px at var(--mx,50%) var(--my,50%),
    rgba(34,139,84,0.10),
    transparent
  );
  opacity:0;
  transition:opacity 0.3s;
  pointer-events:none;
}
.spot-card:hover::before{opacity:1}
.spot-card:hover{background:rgba(34,139,84,0.015)}

.spot-card__icon{
  font-size:28px;
  color:var(--green);
  margin-bottom:4px;
}
.spot-card h4{
  font-size:17px;
  font-weight:700;
  color:var(--gray-900);
  margin:0;
}
.spot-card p{
  font-size:14px;
  color:var(--gray-500);
  line-height:1.55;
  margin:0;
}

@media(max-width:768px){
  .spot-grid{grid-template-columns:1fr}
}


/* ─── SCROLL PROGRESS BAR ─── */
.scroll-progress{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:3px;
  background:linear-gradient(90deg,var(--green),#00E676);
  z-index:10000;
  pointer-events:none;
  box-shadow:0 0 8px rgba(34,139,84,0.35);
  transform-origin:left;
  transform:scaleX(0);
  will-change:transform;
}


/* ─── STICKY MOBILE CTA BAR ─── */
.sticky-cta{
  position:fixed;
  bottom:-100px;
  left:0;
  width:100%;
  z-index:9999;
  background:rgba(255,255,255,0.97);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-top:1px solid rgba(0,0,0,0.08);
  box-shadow:0 -4px 24px rgba(0,0,0,0.1);
  padding:10px 16px calc(10px + env(safe-area-inset-bottom));
  display:none; /* JS enables on mobile */
  transition:bottom 0.4s cubic-bezier(0.22,1,0.36,1);
}
.sticky-cta--visible{
  bottom:0;
}
.sticky-cta__inner{
  display:flex;
  gap:10px;
  max-width:480px;
  margin:0 auto;
}
.sticky-cta__btn{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:14px 12px;
  border-radius:12px;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
  font-family:'Inter',-apple-system,sans-serif;
  transition:transform 0.2s,box-shadow 0.2s;
}
.sticky-cta__btn:active{
  transform:scale(0.97);
}
.sticky-cta__btn--call{
  background:transparent;
  border:2px solid var(--green);
  color:var(--green-dark);
}
.sticky-cta__btn--quote{
  background:var(--green);
  border:2px solid var(--green);
  color:#fff;
  box-shadow:0 2px 12px rgba(34,139,84,0.3);
}

/* Hide header CTA on mobile — sticky bar replaces it */
@media(max-width:768px){
  .header__cta{
    display:none!important;
  }
}

@media(min-width:769px){
  .sticky-cta{display:none!important}
}


/* ─── ODOMETER STATS BAR ─── */
.stats-bar{
  background:linear-gradient(135deg,#0b3d1f 0%,#145a2d 50%,#0f4a24 100%);
  padding:48px 0;
  overflow:hidden;
}
.stats-bar__grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  text-align:center;
}
.stats-bar__item{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
}
.stats-bar__value{
  display:flex;
  align-items:baseline;
  gap:0;
  color:#fff;
  font-family:'Inter',-apple-system,sans-serif;
  font-weight:900;
  font-size:clamp(36px,5vw,56px);
  line-height:1;
}
.stats-bar__prefix,
.stats-bar__suffix{
  color:rgba(0,230,118,0.9);
  font-size:clamp(24px,3.5vw,36px);
  font-weight:700;
}
.stats-bar__label{
  color:rgba(255,255,255,0.7);
  font-size:clamp(12px,1.5vw,15px);
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:0.06em;
}
/* Odometer digit strip */
.odo-digit{
  display:inline-block;
  overflow:hidden;
  height:1em;
  line-height:1;
}
.odo-digit__strip{
  display:flex;
  flex-direction:column;
  transition:transform 1.2s cubic-bezier(0.22,1,0.36,1);
}
.odo-digit__strip span{
  display:block;
  height:1em;
  line-height:1;
}

@media(max-width:640px){
  .stats-bar__grid{grid-template-columns:repeat(2,1fr);gap:32px 16px}
  .stats-bar{padding:36px 0}
}


/* ─── KINETIC MARQUEE ─── */
.kinetic-marquee{
  overflow:hidden;
  padding:28px 0;
  background:#fafcfb;
  user-select:none;
  -webkit-user-select:none;
  border-top:1px solid rgba(34,139,84,0.06);
  border-bottom:1px solid rgba(34,139,84,0.06);
}
.kinetic-marquee__row{
  display:flex;
  white-space:nowrap;
}
.kinetic-marquee__row + .kinetic-marquee__row{
  margin-top:12px;
}
.kinetic-marquee__content{
  display:flex;
  align-items:center;
  animation:marquee-scroll 25s linear infinite;
  flex-shrink:0;
}
.kinetic-marquee__row--reverse .kinetic-marquee__content{
  animation:marquee-scroll-reverse 35s linear infinite;
}
.kinetic-marquee__item{
  display:inline-flex;
  align-items:center;
  padding:0 20px;
  font-family:'Inter',-apple-system,sans-serif;
  font-weight:900;
  font-size:clamp(14px,2vw,22px);
  text-transform:uppercase;
  letter-spacing:0.04em;
  color:var(--green-dark);
  opacity:0.8;
  flex-shrink:0;
}
.kinetic-marquee__item--outline{
  color:#1a1a1a;
  opacity:0.6;
}
.kinetic-marquee__dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--green);
  opacity:0.3;
  flex-shrink:0;
  margin:0 4px;
}

@keyframes marquee-scroll{
  0%{transform:translateX(0)}
  100%{transform:translateX(-50%)}
}
@keyframes marquee-scroll-reverse{
  0%{transform:translateX(-50%)}
  100%{transform:translateX(0)}
}

@media(max-width:640px){
  .kinetic-marquee{padding:16px 0}
  .kinetic-marquee__item{padding:0 12px;font-size:clamp(12px,3.5vw,18px)}
  .kinetic-marquee__row + .kinetic-marquee__row{margin-top:8px}
}
