/* ============================================================
   SWAVE USA — Scroll-film stylesheet
   The film is the hero; content flows out of its final cream frame.
   ============================================================ */

/* ----- EDITABLE: BRAND COLORS ----- */
:root {
  --deep: #0b2c36;         /* deep water teal (film world) */
  --deep-2: #0a222b;
  --teal: #0e6f80;
  --teal-dark: #0a5563;
  --green: #2e8a55;
  --gold: #d9a05b;         /* the film's golden light */
  --cream: #349ea1;        /* film's final frame — sampled seam colour (teal) */
  --paper: #faf7f2;        /* content background */
  --ink: #21333a;
  --ink-soft: #46595f;
  --line: #dde6e4;
  --cta: #d9702c;
  --cta-dark: #b95a1e;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(16, 62, 71, 0.10);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--deep-2);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 720px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--teal-dark);
  margin-bottom: 1rem;
}

section { padding: 56px 0; }
p + p { margin-top: 1em; }
a { color: var(--teal); }

/* ============================================================
   CALL BUTTONS
   ============================================================ */
.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--cta);
  color: #fff;
  box-shadow: 0 4px 18px rgba(217, 112, 44, 0.4);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-call:hover { background: var(--cta-dark); transform: translateY(-1px); }
.icon-phone { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* ============================================================
   ADAPTIVE HEADER
   ============================================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  color: #f5efe4;                 /* over dark film */
  transition: color 0.35s ease, background 0.35s ease;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.topbar.on-light { color: var(--teal-dark); }
.topbar.solid { background: rgba(250, 247, 242, 0.92); backdrop-filter: blur(8px); }

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: currentColor;
}
.wordmark-usa { opacity: 0.72; }

.topbar-call {
  font-weight: 700;
  text-decoration: none;
  color: currentColor;
  padding: 8px 16px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 0.92rem;
  white-space: nowrap;
}

/* ============================================================
   THE FILM
   ============================================================ */
.film-scroll { height: 500vh; position: relative; }

.film-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--deep-2);
}

#filmCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.film-grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.film-vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 58%, rgba(4, 16, 20, 0.42) 100%);
}

.film-bottom-fade {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 34vh;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(180deg, transparent, var(--cream));
}

/* loader */
.film-loader {
  position: absolute; left: 50%; bottom: 9vh;
  transform: translateX(-50%);
  width: min(220px, 50vw);
  transition: opacity 0.5s ease;
}
.film-loader-bar {
  height: 2px;
  background: rgba(245, 239, 228, 0.22);
  border-radius: 2px;
  overflow: hidden;
}
#filmLoaderFill { display: block; height: 100%; width: 0%; background: #7fd3c4; }

/* beats */
.beat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  opacity: 0;
  pointer-events: none;
  color: #f5efe4;
  text-shadow: 0 1px 8px rgba(4, 16, 20, 0.5), 0 2px 30px rgba(4, 16, 20, 0.65);
  will-change: opacity, transform;
}
.beat a, .beat .scroll-cue { pointer-events: auto; }

.beat h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 6.5vw, 3.6rem);
  max-width: 15em;
  margin-bottom: 0.7rem;
}

.beat-sub {
  font-size: clamp(1.02rem, 3.4vw, 1.25rem);
  max-width: 32em;
  opacity: 0.92;
  margin-bottom: 1.6rem;
}

.beat-line {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 5.5vw, 2.9rem);
  max-width: 18em;
}

.beat-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.9rem;
}

.beat-finale { color: var(--teal-dark); text-shadow: none; }

.scroll-cue {
  position: absolute;
  bottom: 4.5vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.75;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-cue span {
  width: 1.5px; height: 34px;
  background: linear-gradient(180deg, transparent, currentColor);
  display: block;
  animation: cue-drip 2.2s ease-in-out infinite;
}
@keyframes cue-drip {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  35% { transform: scaleY(1); opacity: 0.9; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* chapter readout */
.chapter-readout {
  position: absolute;
  left: 20px;
  bottom: 4.5vh;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f5efe4;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.chapter-readout.on { opacity: 0.85; }
.chapter-readout.on-light { color: var(--teal-dark); }
.chapter-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  min-width: 7.5em;
}
.chapter-track {
  width: 84px; height: 2px;
  background: currentColor;
  opacity: 0.9;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
#chapterFill {
  position: absolute; inset: 0;
  background: #7fd3c4;
  transform-origin: left;
  transform: scaleX(0);
}

/* ============================================================
   STATIC HERO (reduced motion)
   ============================================================ */
.static-hero {
  min-height: 92vh;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(10, 34, 43, 0.35) 0%, rgba(10, 34, 43, 0.72) 100%),
    var(--deep-2) url("../frames/f_0001.jpg") center / cover no-repeat;
  color: #f5efe4;
  padding: 120px 24px 80px;
}
.static-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 6.5vw, 3.6rem);
  margin-bottom: 0.7rem;
}
.static-hero .beat-sub { margin-left: auto; margin-right: auto; }

/* ============================================================
   AFTER-FILM CONTENT — melts out of the film's cream
   ============================================================ */
.after-film { background: var(--paper); }

.recognize {
  /* landing zone: starts at the film's exact final colour */
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 46%);
  padding-top: 10vh;
}

.symptom-list {
  list-style: none;
  margin: 1.4rem 0;
  display: grid;
  gap: 12px;
}
.symptom-list li {
  background: #fff;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.recognize-close { color: var(--ink-soft); max-width: 38em; }

/* split sections */
.split { display: grid; gap: 30px; align-items: center; }
.split-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }

.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.4rem;
}
.pill-list li {
  background: #fff;
  color: var(--teal-dark);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.95rem;
}

.why-neck { background: #edf3f1; }

.who-grid { display: grid; gap: 18px; margin-top: 1.6rem; }
.who-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.who-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}
.who-card p { color: var(--ink-soft); font-size: 1rem; }

.dmx { background: #edf3f1; }
.fine-point {
  border-left: 4px solid var(--green);
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.step-list { list-style: none; display: grid; gap: 24px; margin-top: 1.6rem; }
.step-list li { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--teal-dark);
  color: #8fd6ae;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
}
.step-list h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}
.step-list p { color: var(--ink-soft); }
.steps-cta { margin-top: 2.2rem; text-align: center; }

.about { background: var(--paper); }
.about-photo { max-width: 420px; margin: 0 auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--deep);
  color: #d7e6e4;
  padding: 52px 0 100px;  /* room for the sticky call bar on phones */
}
.footer-inner { display: grid; gap: 36px; margin-bottom: 36px; }
.wordmark-footer { color: #f5efe4; display: inline-block; margin-bottom: 0.8rem; }
.footer-address { line-height: 1.5; }
.footer-phone {
  display: inline-block;
  margin-top: 0.9rem;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
}
.footer-phone:hover { text-decoration: underline; }
.footer-phone-note { font-size: 0.9rem; margin-top: 0.2rem; color: #a9c6c2; }
.footer-heading { color: #f5efe4; font-size: 1.05rem; margin-bottom: 0.9rem; }
.social-links { list-style: none; display: grid; gap: 12px; }
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d7e6e4;
  text-decoration: none;
  font-weight: 600;
}
.social-links a:hover { color: #fff; }
.social-links svg { width: 22px; height: 22px; fill: currentColor; }
.coming-soon { font-weight: 400; font-size: 0.85rem; color: #a9c6c2; }

.motion-toggle {
  margin-top: 20px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #d7e6e4;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  cursor: pointer;
}
.motion-toggle:hover { border-color: #fff; color: #fff; }

.disclaimer {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #a9c6c2;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 22px;
}
.copyright { font-size: 0.85rem; margin-top: 14px; color: #a9c6c2; }

/* ============================================================
   STICKY MOBILE CALL BUTTON
   ============================================================ */
.sticky-call {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--cta);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 16px;
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
  transition: opacity 0.3s ease;
}
.sticky-call:active { background: var(--cta-dark); }

/* ============================================================
   REDUCED MOTION — static hero replaces the film
   ============================================================ */
body.reduced .film-scroll { display: none; }
body.reduced .static-hero { display: flex; }
body.reduced .topbar { color: #f5efe4; }
body.reduced .recognize { background: var(--paper); padding-top: 56px; }

@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; }
}

/* ============================================================
   LARGER SCREENS
   ============================================================ */
@media (min-width: 760px) {
  .sticky-call { display: none; }
  .footer { padding-bottom: 32px; }

  section { padding: 84px 0; }

  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split-reverse .split-text { order: 2; }
  .split-reverse .split-photo { order: 1; }

  .symptom-list { grid-template-columns: 1fr 1fr; }
  .who-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  .topbar { padding: 18px 34px; }
}
