/* WhipWashPro — "We don't wait for your car" scroll manifesto section.
   Namespaced wwp-manifesto- throughout so this never collides with the
   hero, the theme, or any other Elementor section. Sits immediately after
   #wwp-hero; reads (never writes) the --wwp-header-offset and
   --wwp-mobile-bottom-bar-height custom properties the hero already
   measures on this page, so header/bottom-bar collision avoidance stays
   in one place. */

#wwp-manifesto, #wwp-manifesto * { box-sizing: border-box; }

#wwp-manifesto {
  --wwp-manifesto-navy: #04081a;
  --wwp-manifesto-blue: #2d8eff;
  --wwp-manifesto-orange: #ff7a1f;
  --wwp-manifesto-white: #ffffff;
  --wwp-manifesto-support: rgba(255, 255, 255, 0.82);
  --wwp-manifesto-track-vh: 210vh;
  --wwp-mask-x: 50%;
  --wwp-mask-y: 50%;
  /* prefer hero.js's shared measurement; fall back to manifesto.js's own
     independent measurement (set when the shared one isn't available),
     then 0px */
  --wwp-manifesto-header-gap: var(--wwp-header-offset, var(--wwp-manifesto-header-offset, 0px));

  position: relative;
  background: var(--wwp-manifesto-navy);
  color: var(--wwp-manifesto-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: clip;
}

/* ── scroll track / sticky stage ──────────────────────────────────── */

#wwp-manifesto-track {
  position: relative;
  height: var(--wwp-manifesto-track-vh);
}

#wwp-manifesto-stage {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background: var(--wwp-manifesto-navy);
}

/* ── background photo + scrim ──────────────────────────────────────── */

.wwp-manifesto-bg {
  position: absolute;
  inset: -6% -3%;
  background-image: var(--wwp-manifesto-image);
  background-size: cover;
  background-position: 62% 42%;
  transform: scale(var(--wwp-manifesto-bg-scale, 1.04)) translate3d(0, var(--wwp-manifesto-bg-shift, 0px), 0);
  will-change: transform;
}

.wwp-manifesto-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 8, 20, 0.55) 0%, rgba(3, 8, 20, 0.35) 38%, rgba(3, 8, 20, 0.82) 100%),
    linear-gradient(90deg, rgba(3, 8, 20, var(--wwp-manifesto-scrim-x, 0.78)) 0%, rgba(3, 8, 20, 0.28) 58%, rgba(3, 8, 20, 0.08) 100%);
  transition: none;
}

/* ── content ─────────────────────────────────────────────────────── */

.wwp-manifesto-inner {
  position: relative;
  height: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 88px) clamp(24px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.wwp-manifesto-headline {
  margin: 0;
  padding-top: clamp(8px, 3vh, 40px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.wwp-manifesto-solid,
.wwp-manifesto-masked {
  display: block;
}

.wwp-manifesto-solid {
  color: var(--wwp-manifesto-white);
  font-size: clamp(30px, 4.9vw, 96px);
  line-height: 1.04;
  opacity: 0;
  transform: translateY(28px);
  clip-path: inset(0 100% 0 0);
  will-change: opacity, transform, clip-path;
}

.wwp-manifesto-masked {
  margin-top: 0.02em;
  color: transparent;
  background-image: var(--wwp-manifesto-image);
  background-size: cover;
  background-position: var(--wwp-mask-x, 50%) var(--wwp-mask-y, 50%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-stroke: 1.5px rgba(45, 142, 255, 0.85);
  font-size: clamp(46px, 8.4vw, 168px);
  line-height: 0.94;
  opacity: 0;
  transform: translateY(18px);
  clip-path: inset(0 100% 0 0);
  will-change: opacity, transform, clip-path, background-position;
}

/* fallback for browsers without background-clip: text support — a solid
   readable outline treatment instead of an invisible/broken headline */
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .wwp-manifesto-masked {
    color: var(--wwp-manifesto-white);
    -webkit-text-stroke: 0;
    text-shadow: 0 0 0 var(--wwp-manifesto-blue);
    outline: none;
  }
}

.wwp-manifesto-lower {
  margin-top: auto;
  padding-top: clamp(20px, 4vh, 48px);
  max-width: 46ch;
  align-self: flex-end;
  text-align: left;
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}

.wwp-manifesto-support {
  margin: 0 0 18px;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.5;
  color: var(--wwp-manifesto-support);
  max-width: 40ch;
}

.wwp-manifesto-proof {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.wwp-manifesto-proof-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 600;
  color: var(--wwp-manifesto-white);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(12px);
  will-change: opacity, transform;
}

.wwp-manifesto-proof-item + .wwp-manifesto-proof-item {
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.wwp-manifesto-proof-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--wwp-manifesto-blue);
}
.wwp-manifesto-proof-icon svg { width: 100%; height: 100%; display: block; }

/* ── progress indicator (restrained orange accent) ─────────────────── */

.wwp-manifesto-progress {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3.5vh, 34px);
  transform: translateX(-50%);
  width: min(220px, 40vw);
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

#wwp-manifesto-progressbar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--wwp-manifesto-orange), var(--wwp-manifesto-blue));
  will-change: width;
}

/* ── static / no-JS / reduced-motion fallback ───────────────────────
   Mirrors the hero's .wwp-static pattern: the pinned track collapses to
   auto height, the stage becomes a normal (non-sticky) full-height
   block, and every element is forced to its finished, fully-revealed
   state — no long scroll trap, everything readable immediately. */
#wwp-manifesto.wwp-manifesto-static #wwp-manifesto-track { height: auto; }
#wwp-manifesto.wwp-manifesto-static #wwp-manifesto-stage {
  position: relative;
  height: auto;
  min-height: 100svh;
  min-height: 100dvh;
}
#wwp-manifesto.wwp-manifesto-static .wwp-manifesto-bg { transform: none; }
#wwp-manifesto.wwp-manifesto-static .wwp-manifesto-scrim {
  background:
    linear-gradient(180deg, rgba(3, 8, 20, 0.5) 0%, rgba(3, 8, 20, 0.32) 38%, rgba(3, 8, 20, 0.82) 100%),
    linear-gradient(90deg, rgba(3, 8, 20, 0.62) 0%, rgba(3, 8, 20, 0.28) 58%, rgba(3, 8, 20, 0.08) 100%);
}
#wwp-manifesto.wwp-manifesto-static .wwp-manifesto-solid,
#wwp-manifesto.wwp-manifesto-static .wwp-manifesto-masked,
#wwp-manifesto.wwp-manifesto-static .wwp-manifesto-lower,
#wwp-manifesto.wwp-manifesto-static .wwp-manifesto-proof-item {
  opacity: 1 !important;
  transform: none !important;
  clip-path: inset(0 0 0 0) !important;
}
#wwp-manifesto.wwp-manifesto-static .wwp-manifesto-inner { padding-bottom: clamp(48px, 8vh, 96px); }
#wwp-manifesto.wwp-manifesto-static #wwp-manifesto-progressbar { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  #wwp-manifesto-track { height: auto; }
  #wwp-manifesto-stage { position: relative; height: auto; min-height: 100svh; min-height: 100dvh; }
  .wwp-manifesto-bg { transform: none; }
  .wwp-manifesto-solid,
  .wwp-manifesto-masked,
  .wwp-manifesto-lower,
  .wwp-manifesto-proof-item {
    opacity: 1 !important;
    transform: none !important;
    clip-path: inset(0 0 0 0) !important;
  }
  .wwp-manifesto-inner { padding-bottom: clamp(48px, 8vh, 96px); }
  #wwp-manifesto-progressbar { width: 100%; }
}

/* ── responsive: tablets ─────────────────────────────────────────── */

@media (max-width: 1024px) {
  .wwp-manifesto-lower { max-width: 52ch; }
}

/* ── mobile & small-tablet (≤767px) — isolated override block, mirrors
   the hero's mobile block so both sections agree on where "mobile"
   starts and how header/bottom-bar offsets are respected ─────────── */
@media (max-width: 767px) {
  #wwp-manifesto { --wwp-manifesto-track-vh: 260vh; }

  #wwp-manifesto-stage {
    top: var(--wwp-manifesto-header-gap);
    height: calc(100svh - var(--wwp-manifesto-header-gap));
    min-height: 560px;
  }

  .wwp-manifesto-bg { background-position: 68% 38%; }

  .wwp-manifesto-inner {
    padding: clamp(20px, 6vw, 32px) 20px;
    padding-top: calc(var(--wwp-manifesto-header-gap) + 22px);
  }

  .wwp-manifesto-headline { padding-top: 6px; }

  .wwp-manifesto-solid {
    font-size: clamp(30px, 8.6vw, 46px);
    line-height: 0.98;
  }

  .wwp-manifesto-masked {
    font-size: clamp(44px, 14.5vw, 76px);
    line-height: 0.88;
    -webkit-text-stroke: 1px rgba(45, 142, 255, 0.85);
  }

  .wwp-manifesto-lower {
    align-self: stretch;
    max-width: none;
    padding-top: 18px;
    padding-bottom: calc(var(--wwp-mobile-bottom-bar-height, 0px) + max(16px, env(safe-area-inset-bottom)) + 14px);
  }

  .wwp-manifesto-support {
    font-size: 15px;
    max-width: none;
    margin-bottom: 14px;
  }

  .wwp-manifesto-proof {
    gap: 10px 10px;
  }

  .wwp-manifesto-proof-item {
    font-size: 12.5px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 7px 12px;
  }
  .wwp-manifesto-proof-item + .wwp-manifesto-proof-item {
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }
  .wwp-manifesto-proof-icon { width: 15px; height: 15px; }

  .wwp-manifesto-progress {
    bottom: calc(var(--wwp-mobile-bottom-bar-height, 0px) + max(10px, env(safe-area-inset-bottom)) + 10px);
    width: min(160px, 44vw);
  }
}

@media (max-width: 767px) and (max-height: 699px) {
  #wwp-manifesto { --wwp-manifesto-track-vh: 300vh; }
  .wwp-manifesto-solid { font-size: clamp(26px, 8vw, 38px); }
  .wwp-manifesto-masked { font-size: clamp(38px, 13vw, 62px); }
  .wwp-manifesto-support { font-size: 13.5px; }
  .wwp-manifesto-proof-item { font-size: 11.5px; padding: 6px 10px; }
}

@media (max-width: 767px) {
  .wwp-manifesto-noscript-fallback { display: none; }
}
