/* Salty Air — Variant B "fly-through" page. Dark coastal editorial.
   Loaded AFTER components.css; the :root remap below dark-skins the quote widget. */

:root {
  /* variant-B design tokens */
  --navy: #0F2C3B;
  --navy-deep: #0A2230;
  --cream: #FAF5EB;
  --sand: #E3D9C4;
  --seafoam: #8FC3B4;
  --terra: #E08A4E;
  --terra-deep: #C97435;
  --mist: rgba(250, 245, 235, 0.55);

  /* remap of the tokens components.css consumes (quote widget dark re-skin) */
  --white: #0A2230;                          /* card background */
  --line: rgba(250, 245, 235, 0.18);         /* borders */
  --linen: #0F2C3B;                          /* select / segmented bg */
  --linen-deep: #081B26;                     /* price readout bg */
  --ink: #FAF5EB;                            /* primary text */
  --ink-soft: rgba(250, 245, 235, 0.62);     /* secondary text */
  --ocean: #FAF5EB;                          /* .seg .on bg (cream on navy) */
  --seaglass: #8FC3B4;
  --seaglass-soft: rgba(143, 195, 180, 0.14);
  --coral: #E08A4E;
  --coral-deep: #C97435;
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Albert Sans", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
.serif { font-family: var(--font-display); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  padding: 15px 32px;
  border-radius: 100px;
  transition: transform 0.18s, background 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terra); color: #12100C; box-shadow: 0 10px 24px -10px rgba(224, 138, 78, 0.5); }
.btn-primary:hover { background: var(--terra-deep); }
.btn-line { border: 1px solid rgba(250, 245, 235, 0.45); color: var(--cream); }
.btn-line:hover { background: rgba(250, 245, 235, 0.1); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--seafoam); outline-offset: 3px; }

/* ---------- nav ---------- */
.nav-b {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 4vw;
  background-image: linear-gradient(180deg, rgba(10, 34, 48, 0.55), transparent);
  background-color: transparent;
  transition: background-color 0.35s ease;
}
/* past the hero, content scrolls under a solid bar instead of showing through it */
.nav-b.scrolled {
  background-color: rgba(10, 34, 48, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(250, 245, 235, 0.08);
}
.nav-b .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-b .logo-name { font-weight: 700; letter-spacing: 0.02em; }
.nav-b .logo-name em { font-family: var(--font-display); font-style: italic; }
.nav-b .links { display: flex; gap: 28px; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-b .links a { color: var(--mist); text-decoration: none; transition: color 0.15s; }
.nav-b .links a:hover { color: var(--cream); }
.nav-b .nav-cta {
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy-deep); background: var(--cream);
  padding: 10px 20px; border-radius: 100px; text-decoration: none; font-weight: 700;
}

/* ---------- fly-through hero ---------- */
.track { height: 560vh; position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.layer { position: absolute; inset: 0; opacity: 0; }
.layer video { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); }
.layer .shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,34,48,0.62) 0%, rgba(10,34,48,0.28) 38%, rgba(10,34,48,0.55) 100%);
}
.layer.arrival .shade {
  background: linear-gradient(180deg, rgba(10,34,48,0.55) 0%, rgba(10,34,48,0.35) 45%, rgba(10,34,48,0.78) 100%);
}

.copy {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 4vw 9vh;
  pointer-events: none;
}
.copy .eyebrow-b {
  font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--seafoam); margin-bottom: 18px; font-weight: 600;
}
.copy .num { font-family: var(--font-display); font-style: italic; color: var(--terra); font-size: clamp(15px, 1.4vw, 20px); margin-bottom: 10px; }
.copy h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1.02; letter-spacing: -0.01em; max-width: 14em;
}
.copy h2 em { font-style: italic; color: var(--terra); }
.copy p { margin-top: 16px; max-width: 34em; color: var(--mist); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.55; }

/* arrival chapter */
.arrival-copy .eyebrow-b { margin-bottom: 2vh; }
.big-title { display: flex; align-items: baseline; justify-content: space-between; width: 100%; gap: 2vw; }
.big-title .w { font-family: var(--font-display); font-weight: 380; font-size: clamp(4rem, 15.5vw, 15rem); line-height: 0.9; letter-spacing: -0.02em; }
.big-title .arrow { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 5rem); color: var(--sand); animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-0.6vw); } 50% { transform: translateY(0.6vw); } }
.arrival-sub { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 3.5vh; gap: 4vw; }
.arrival-sub p { font-size: clamp(14px, 1.15vw, 17px); color: var(--mist); max-width: 30em; line-height: 1.6; margin: 0; }
.arrival-sub .hint { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sand); white-space: nowrap; }

/* finale chapter */
.finale-copy { justify-content: center; align-items: center; text-align: center; }
.finale-copy h2 { max-width: 11em; }
.finale-copy .btns { margin-top: 34px; pointer-events: auto; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* progress rail */
.rail { position: absolute; right: 3vw; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 22px; z-index: 5; }
.rail .stop { display: flex; align-items: center; gap: 12px; flex-direction: row-reverse; opacity: 0.42; transition: opacity 0.3s; }
.rail .stop.on { opacity: 1; }
.rail .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sand); }
.rail .stop.on .dot { background: var(--terra); box-shadow: 0 0 0 4px rgba(224, 138, 78, 0.25); }
.rail .lbl { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream); }

/* ---------- below the fold ---------- */
section { padding: 14vh 4vw; }
.rule { width: 100%; height: 1px; background: rgba(250, 245, 235, 0.14); }
.kicker { font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--seafoam); font-weight: 600; display: block; margin-bottom: 22px; }
.ed-h { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.05; letter-spacing: -0.01em; }
.ed-h em { font-style: italic; color: var(--terra); }
.ed-lede { color: var(--mist); line-height: 1.6; margin-top: 18px; max-width: 34em; }

/* services */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5vw; margin-top: 8vh; }
.svc .card { border: 1px solid rgba(250, 245, 235, 0.16); padding: 34px 30px 38px; position: relative; }
.svc .card.feat { background: rgba(143, 195, 180, 0.07); border-color: rgba(143, 195, 180, 0.4); }
.svc .idx { font-family: var(--font-display); font-style: italic; color: var(--terra); font-size: 15px; }
.svc h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2vw, 1.9rem); margin: 14px 0 6px; }
.svc .tag { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--seafoam); }
.svc ul { list-style: none; margin-top: 18px; }
.svc li { color: var(--mist); font-size: 14.5px; line-height: 1.6; padding: 6px 0 6px 22px; position: relative; }
.svc li::before { content: "—"; position: absolute; left: 0; color: var(--seafoam); }

/* how it works */
.how-b { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5vw; margin-top: 8vh; }
.how-b .step { border-top: 1px solid rgba(250, 245, 235, 0.16); padding-top: 24px; }
.how-b .idx { font-family: var(--font-display); font-style: italic; color: var(--terra); font-size: 15px; }
.how-b h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; margin: 12px 0 10px; }
.how-b p { color: var(--mist); font-size: 14.5px; line-height: 1.65; }

/* guarantee quote band */
.quote-band { text-align: center; padding: 16vh 4vw; }
.quote-band .q { font-family: var(--font-display); font-weight: 380; font-size: clamp(1.8rem, 3.6vw, 3.2rem); line-height: 1.2; max-width: 24em; margin: 0 auto; }
.quote-band .q em { font-style: italic; color: var(--seafoam); }
.quote-band .who { margin-top: 26px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mist); }

/* instant price */
.price-flex-b { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: start; }
.price-flex-b .quote-card { border-radius: var(--radius); }
.q-price-num { color: var(--terra); }           /* price pops terracotta, not cream */
.addon:has(input:checked) { background: rgba(143, 195, 180, 0.14); }

/* areas */
.area-chips-b { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8vh; max-width: 640px; }
.chip-b { border: 1px solid rgba(250, 245, 235, 0.25); border-radius: 100px; padding: 10px 20px; font-size: 14px; color: var(--cream); }
.chip-b.soon { border-style: dashed; color: var(--mist); }

/* FAQ */
.faq-b { margin-top: 8vh; max-width: 760px; }
.faq-b details { border-top: 1px solid rgba(250, 245, 235, 0.16); }
.faq-b details:last-child { border-bottom: 1px solid rgba(250, 245, 235, 0.16); }
.faq-b summary {
  cursor: pointer; list-style: none; padding: 22px 0;
  font-family: var(--font-display); font-weight: 500; font-size: 1.2rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-b summary::after { content: "+"; color: var(--terra); font-size: 1.4rem; font-family: var(--font-body); }
.faq-b details[open] summary::after { content: "–"; }
.faq-b details p { color: var(--mist); font-size: 15px; line-height: 1.65; padding: 0 0 22px; max-width: 60ch; }

/* final CTA + footer */
.final-b { padding: 18vh 4vw; text-align: center; }
.final-b .ed-h { max-width: 14em; margin: 0 auto; }
footer { padding: 40px 4vw 60px; display: flex; justify-content: space-between; color: var(--mist); font-size: 13px; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--sand); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s cubic-bezier(0.2, 0.65, 0.25, 1), transform 0.9s cubic-bezier(0.2, 0.65, 0.25, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- motion & responsive fallbacks ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .big-title .arrow { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 820px) {
  .nav-b .links { display: none; }
  .svc, .how-b { grid-template-columns: 1fr; }
  .price-flex-b { grid-template-columns: 1fr; }
  .rail .lbl { display: none; }
  .copy { padding-bottom: 12vh; }
}
