/* ============================================================
   BB WAVES — Design Tokens
   Display: Fraunces (organic serif, optical sizing)
   Body:    Inter
   Palette derived from logo: cream, sage, sky blue, lavender, charcoal
   ============================================================ */

:root {
  --cream:        #F7F3EC;
  --cream-alt:     #EFE8DA;
  --paper:        #FBF9F4;
  --ink:          #26313A;
  --ink-soft:     #4B5760;
  --sage:         #7C9070;
  --sage-deep:    #5F7355;
  --sky:          #6FA0B4;
  --sky-deep:     #4F7F93;
  --lavender:     #A99BC7;
  --lavender-deep:#8B7AAE;
  --line:         rgba(38,49,58,0.12);
  --shadow:       0 20px 50px -25px rgba(38,49,58,0.35);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --radius: 6px;
  --dur: 0.6s;
  --ease: cubic-bezier(.22,.61,.36,1);
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0.001s; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-optical-sizing: auto; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sky-deep);
  margin-bottom: 1em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}
.eyebrow.sage { color: var(--sage-deep); }
.eyebrow.lavender { color: var(--lavender-deep); }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.section-alt { background: var(--paper); }
.section-deep { background: var(--cream-alt); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; }

.btn-primary { background: var(--sky-deep); color: var(--paper); box-shadow: var(--shadow); }
.btn-primary:hover { background: #416a7b; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: rgba(38,49,58,0.05); }

.btn-light { background: var(--paper); color: var(--ink); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,243,236,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-mark { display: flex; align-items: center; gap: 12px; }
.logo-mark svg { width: 40px; height: 40px; flex-shrink: 0; }
.logo-word { font-family: var(--font-display); font-size: 1.28rem; font-weight: 500; letter-spacing: -0.01em; }
.logo-word span { display: block; font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; margin-top: 1px; }

nav.primary-nav { display: flex; align-items: center; gap: 30px; }
nav.primary-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
nav.primary-nav a.nav-link {
  font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 4px 0;
  transition: color var(--dur) var(--ease);
}
nav.primary-nav a.nav-link:hover, nav.primary-nav a.nav-link.active { color: var(--ink); }
nav.primary-nav a.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0;
  background: var(--sky-deep); transition: width var(--dur) var(--ease);
}
nav.primary-nav a.nav-link:hover::after, nav.primary-nav a.nav-link.active::after { width: 100%; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 10px; min-width: 220px; opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  border: 1px solid var(--line);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.dropdown a { display: block; padding: 10px 14px; border-radius: 4px; font-size: 0.9rem; color: var(--ink-soft); }
.dropdown a:hover { background: var(--cream); color: var(--ink); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform var(--dur), opacity var(--dur); }

@media (max-width: 1180px) {
  nav.primary-nav > ul { display: none; }
  .header-cta .btn-primary { display: none; }
  .menu-toggle { display: block; }
}

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 0; background: var(--cream); z-index: 200;
  display: flex; flex-direction: column; padding: 24px 32px 40px;
  transform: translateY(-100%); transition: transform 0.45s var(--ease);
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mobile-nav a { font-family: var(--font-display); font-size: 1.7rem; padding: 12px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav .btn-primary { margin-top: 30px; justify-content: center; }
.mobile-nav .accent-dots { display: flex; gap: 8px; margin-top: 30px; }
.mobile-nav .accent-dots span { width: 9px; height: 9px; border-radius: 50%; }

/* Hero */
.hero {
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-copy .eyebrow { }
.hero-copy p.lead { font-size: 1.12rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-thread { position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: 0.5; }

.reveal-line path {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.6s var(--ease) forwards 0.3s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .reveal-line path { stroke-dashoffset: 0; animation: none; }
}

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; aspect-ratio: 5/4; }
}

/* Page hero (interior pages) */
.page-hero {
  padding: 60px 0 70px;
  background: var(--cream-alt);
  position: relative;
  overflow: hidden;
}
.page-hero .wrap { position: relative; z-index: 1; max-width: 780px; }
.page-hero p.lead { font-size: 1.08rem; max-width: 58ch; }
.page-hero-media {
  margin-top: 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 21/9;
}
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Reveal on scroll */
.rise { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rise.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; transition: none; } }

/* Category grid ("Who We Help") */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 980px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .category-grid { grid-template-columns: 1fr; } }

.category-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex; flex-direction: column;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.category-card .cat-img { aspect-ratio: 4/5; overflow: hidden; }
.category-card .cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.category-card:hover .cat-img img { transform: scale(1.06); }
.category-card .cat-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.category-card h3 { margin-bottom: 8px; }
.category-card p { font-size: 0.94rem; flex: 1; }
.category-card .cat-link { font-size: 0.85rem; font-weight: 600; color: var(--sky-deep); display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; }
.category-card .cat-link svg { width: 14px; height: 14px; transition: transform var(--dur); }
.category-card:hover .cat-link svg { transform: translateX(4px); }

.tag-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.dot-sage { background: var(--sage); }
.dot-sky { background: var(--sky); }
.dot-lavender { background: var(--lavender); }

/* Two column feature */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-split.reverse .feature-media { order: 2; }
.feature-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) {
  .feature-split, .feature-split.reverse .feature-media { grid-template-columns: 1fr; order: -1; }
  .feature-split { grid-template-columns: 1fr; }
}
.pill-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { font-size: 0.85rem; font-weight: 500; padding: 8px 16px; border-radius: 999px; background: var(--cream-alt); border: 1px solid var(--line); }

/* PEMF flow diagram */
.flow-diagram { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 40px 0; flex-wrap: wrap; }
.flow-step { flex: 1; min-width: 140px; text-align: center; padding: 26px 16px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.flow-step .flow-icon { width: 42px; height: 42px; margin: 0 auto 14px; }
.flow-step h4 { font-size: 1rem; margin-bottom: 6px; }
.flow-step p { font-size: 0.85rem; margin: 0; }
.flow-arrow { width: 24px; height: 24px; flex-shrink: 0; color: var(--sky-deep); }
@media (max-width: 780px) { .flow-diagram { flex-direction: column; } .flow-arrow { transform: rotate(90deg); } }

/* Benefits grid */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 880px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .benefit-grid { grid-template-columns: 1fr; } }
.benefit-card { padding: 30px 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.benefit-card .b-icon { width: 34px; height: 34px; margin-bottom: 18px; }
.benefit-card h3 { font-size: 1.15rem; }
.benefit-card p { font-size: 0.92rem; margin: 0; }

/* Process / steps */
.process-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.process-item {
  display: grid; grid-template-columns: 70px 1fr; gap: 26px;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.process-item:last-child { border-bottom: 1px solid var(--line); }
.process-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--sky-deep); }
.process-item h3 { margin-bottom: 6px; }
.process-item p { margin: 0; max-width: 62ch; }
@media (max-width: 600px) { .process-item { grid-template-columns: 44px 1fr; gap: 16px; } .process-num { font-size: 1.2rem; } }

/* FAQ accordion */
.faq-list { max-width: 820px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-list .faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink);
}
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--dur) var(--ease); color: var(--sky-deep); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.faq-a-inner { padding-bottom: 24px; max-width: 68ch; }
.faq-a-inner p { margin: 0; }

/* Forms */
.form-card { background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); padding: 44px; }
@media (max-width: 600px) { .form-card { padding: 26px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.98rem; padding: 13px 14px;
  border-radius: 4px; border: 1px solid var(--line); background: var(--cream); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--sky-deep); outline-offset: 1px; border-color: var(--sky-deep);
}
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-chip { position: relative; }
.radio-chip input { position: absolute; opacity: 0; }
.radio-chip label {
  display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 0.88rem; font-weight: 500; cursor: pointer; background: var(--cream); transition: all var(--dur);
}
.radio-chip input:checked + label { background: var(--sky-deep); color: var(--paper); border-color: var(--sky-deep); }
.radio-chip input:focus-visible + label { outline: 2px solid var(--sky-deep); outline-offset: 2px; }

/* CTA band */
.cta-band { text-align: center; background: var(--sky-deep); color: var(--paper); border-radius: var(--radius); padding: 70px 40px; }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(251,249,244,0.85); max-width: 52ch; margin: 0 auto 28px; }

/* Disclaimer */
.disclaimer-box {
  border: 1px solid var(--line); border-left: 3px solid var(--sage-deep);
  background: var(--paper); padding: 24px 28px; border-radius: 4px; font-size: 0.88rem; color: var(--ink-soft);
}

/* Values / about */
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
@media (max-width: 780px) { .value-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .value-grid { grid-template-columns: 1fr; } }
.value-item { padding: 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); text-align: center; }
.value-item h4 { font-size: 1rem; margin-bottom: 6px; }
.value-item p { font-size: 0.85rem; margin: 0; }

/* Testimonial placeholder */
.testimonial-slot {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px; text-align: center; color: var(--ink-soft);
}

/* Footer */
footer.site-footer { background: var(--ink); color: var(--cream); padding: 72px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(247,243,236,0.15); }
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .logo-mark { margin-bottom: 16px; }
.footer-brand .logo-word { color: var(--cream); }
.footer-brand .logo-word span { color: rgba(247,243,236,0.6); }
.footer-brand p { color: rgba(247,243,236,0.65); max-width: 32ch; font-size: 0.9rem; }
footer h5 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(247,243,236,0.55); margin: 0 0 16px; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
footer a { color: rgba(247,243,236,0.85); font-size: 0.92rem; transition: color var(--dur); }
footer a:hover { color: var(--sky); }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-bottom p { color: rgba(247,243,236,0.5); font-size: 0.78rem; margin: 0; max-width: 70ch; }

/* Sticky mobile book button */
.sticky-book { display: none; }
@media (max-width: 780px) {
  .sticky-book {
    display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
    text-align: center; padding: 15px; border-radius: 999px; background: var(--sky-deep); color: var(--paper);
    font-weight: 600; box-shadow: var(--shadow); font-size: 0.92rem;
  }
}

/* Divider thread motif */
.thread-divider { display: block; width: 100%; height: 40px; margin: 0 auto; opacity: 0.55; }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--sky-deep); color: var(--paper);
  padding: 12px 20px; z-index: 999; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

.center-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.center-head p { margin: 0 auto; }

.two-col-text { display: grid; grid-template-columns: repeat(2,1fr); gap: 40px; }
@media (max-width: 780px) { .two-col-text { grid-template-columns: 1fr; } }


/* ============================================================
   Responsive hardening — packaging/fix pass
   ============================================================ */
@media (max-width: 1180px) {
  .header-inner { padding-top: 13px; padding-bottom: 13px; }
  .site-header .logo-word { font-size: 1.18rem; }
}

@media (max-width: 720px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .header-inner { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 36px; padding-bottom: 64px; }
  .hero .wrap { gap: 28px; }
  .hero-copy p.lead { font-size: 1rem; }
  .hero-actions { width: 100%; gap: 10px; }
  .hero-actions .btn { flex: 1 1 180px; justify-content: center; }
  .page-hero { padding-top: 44px; padding-bottom: 54px; }
  .page-hero-media { margin-top: 28px; aspect-ratio: 4 / 3; }
  .center-head { margin-bottom: 36px; }
  .cta-band { padding: 48px 22px; }
  .mobile-nav { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(2.25rem, 12vw, 3.2rem); }
  h2 { font-size: clamp(1.8rem, 9vw, 2.4rem); }
  .logo-mark { gap: 9px; }
  .logo-mark svg { width: 34px; height: 34px; }
  .logo-word { font-size: 1.08rem; }
  .logo-word span { font-size: 0.53rem; }
  .hero-media { aspect-ratio: 4 / 3; }
  .btn { padding: 13px 20px; }
  .form-card { padding: 22px 18px; }
  .sticky-book { left: 12px; right: 12px; bottom: 12px; }
}

/* ============================================================
   BB WAVES — VIBRANT UI REFINEMENT
   Fixes header/navigation visibility, contrast, color energy,
   responsive hierarchy, and over-large CTA behavior.
   ============================================================ */
:root {
  --cream: #fffaf3;
  --cream-alt: #f3f8f5;
  --paper: #ffffff;
  --ink: #17313a;
  --ink-soft: #4a6168;
  --sage: #72a84f;
  --sage-deep: #4f8331;
  --sky: #49a9d2;
  --sky-deep: #197da7;
  --lavender: #9b7ad4;
  --lavender-deep: #7252b3;
  --aqua: #38c3b1;
  --sun: #efbb55;
  --line: rgba(23,49,58,.13);
  --shadow: 0 24px 70px -28px rgba(26,82,99,.28);
  --shadow-soft: 0 14px 36px -24px rgba(23,49,58,.3);
  --radius: 18px;
}

html, body { overflow-x: hidden; }
body {
  background:
    radial-gradient(circle at 8% 8%, rgba(114,168,79,.08), transparent 26rem),
    radial-gradient(circle at 90% 16%, rgba(155,122,212,.09), transparent 28rem),
    var(--cream);
  color: var(--ink);
}

/* Header: compact, readable, never covered by CTAs */
.site-header {
  z-index: 1000;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(25,125,167,.12);
  box-shadow: 0 8px 32px rgba(19,61,76,.06);
  backdrop-filter: blur(16px) saturate(140%);
}
.header-inner {
  min-height: 78px;
  padding: 12px 28px;
  gap: 22px;
}
.logo-mark { min-width: max-content; }
.logo-mark svg {
  width: 46px;
  height: 46px;
  filter: saturate(1.25);
}
.logo-word { color: var(--ink); font-weight: 600; font-size: 1.3rem; }
.logo-word span { color: var(--sky-deep); font-weight: 700; }
nav.primary-nav { flex: 1 1 auto; justify-content: center; min-width: 0; }
nav.primary-nav ul { gap: clamp(14px, 1.5vw, 26px); }
nav.primary-nav a.nav-link {
  color: #38545d;
  font-weight: 650;
  font-size: .9rem;
  letter-spacing: .005em;
}
nav.primary-nav a.nav-link:hover,
nav.primary-nav a.nav-link.active { color: var(--sky-deep); }
nav.primary-nav a.nav-link::after {
  height: 3px;
  border-radius: 4px;
  background: linear-gradient(90deg,var(--sky-deep),var(--aqua));
}
.header-cta { flex: 0 0 auto; position: static !important; width: auto !important; }
.header-cta .btn,
.header-cta .btn-primary {
  display: inline-flex;
  width: auto !important;
  max-width: 190px;
  padding: 12px 20px;
  min-height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg,var(--sky-deep),#2697c5);
  color: #fff;
  box-shadow: 0 12px 28px -16px rgba(25,125,167,.72);
}
.header-cta .btn:hover { background: linear-gradient(135deg,#126c91,var(--sky-deep)); }
.menu-toggle {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #edf8fb;
  border: 1px solid rgba(25,125,167,.14);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.menu-toggle span { background: var(--sky-deep); width: 22px; }

/* Buttons: less pill-like, more premium */
.btn {
  border-radius: 12px;
  padding: 14px 24px;
  min-height: 50px;
  font-weight: 700;
  box-shadow: none;
}
.btn-primary {
  background: linear-gradient(135deg,var(--sky-deep),#2da7c4);
  color: #fff;
  box-shadow: 0 16px 34px -18px rgba(25,125,167,.8);
}
.btn-primary:hover { background: linear-gradient(135deg,#126c91,#238eaf); }
.btn-ghost {
  background: rgba(255,255,255,.7);
  border-color: rgba(25,125,167,.22);
  color: var(--sky-deep);
}
.btn-ghost:hover { background: #fff; border-color: rgba(25,125,167,.42); }

/* Desktop/mobile nav breakpoint is explicit and safe */
@media (min-width: 1181px) {
  nav.primary-nav > ul { display: flex !important; }
  .header-cta .btn-primary { display: inline-flex !important; }
  .menu-toggle { display: none !important; }
}
@media (max-width: 1180px) {
  nav.primary-nav { display: none !important; }
  .header-cta .btn-primary { display: none !important; }
  .menu-toggle { display: flex !important; }
  .header-inner { min-height: 72px; }
}

/* Mobile menu */
.mobile-nav {
  z-index: 2000;
  background:
    radial-gradient(circle at 85% 10%, rgba(155,122,212,.17), transparent 22rem),
    radial-gradient(circle at 12% 82%, rgba(114,168,79,.15), transparent 22rem),
    #fffaf3;
}
.mobile-nav a { color: var(--ink); font-weight: 600; }
.mobile-nav a:hover { color: var(--sky-deep); }
.mobile-nav .btn-primary { color:#fff; }

/* Disable the old fixed full-width CTA that could cover navigation. */
.sticky-book { display: none !important; }

/* Hero sections */
.hero {
  padding: clamp(54px,7vw,100px) 0 clamp(70px,8vw,116px);
  background:
    radial-gradient(circle at 12% 15%, rgba(73,169,210,.14), transparent 27rem),
    radial-gradient(circle at 82% 30%, rgba(155,122,212,.13), transparent 28rem),
    linear-gradient(180deg,#fffdf8 0%,#f8fcfb 100%);
}
.hero .wrap { gap: clamp(38px,6vw,84px); }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { max-width: 12ch; font-weight: 600; }
.hero-copy p.lead { color: #405d66; font-size: 1.1rem; }
.hero-media,
.feature-media,
.page-hero-media {
  border-radius: 24px;
  border: 1px solid rgba(25,125,167,.12);
  box-shadow: 0 28px 70px -34px rgba(31,88,105,.48);
  background:
    linear-gradient(135deg,rgba(73,169,210,.24),rgba(155,122,212,.18) 48%,rgba(114,168,79,.2));
}
.hero-media::after,
.feature-media::after,
.page-hero-media::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  border-radius: inherit;
}
.hero-media,.feature-media,.page-hero-media { position:relative; }

.page-hero {
  padding: clamp(64px,7vw,96px) 0 clamp(64px,7vw,96px);
  background:
    radial-gradient(circle at 12% 20%, rgba(73,169,210,.16), transparent 25rem),
    radial-gradient(circle at 90% 16%, rgba(155,122,212,.15), transparent 25rem),
    linear-gradient(135deg,#f7fbfc 0%,#fffaf3 52%,#f7f3ff 100%);
  border-bottom: 1px solid rgba(25,125,167,.08);
}
.page-hero .wrap { max-width: 1120px; }
.page-hero .wrap:first-child { max-width: 820px; margin-left:auto; margin-right:auto; text-align:center; }
.page-hero .eyebrow { justify-content:center; }
.page-hero h1 { font-size: clamp(3rem,6vw,5.6rem); font-weight:600; letter-spacing:-.035em; }
.page-hero p.lead { margin: 0 auto; font-size: clamp(1.02rem,1.4vw,1.18rem); }
.page-hero-media { margin-top: 48px; aspect-ratio: 16/7; }

/* Typography and section rhythm */
h1,h2,h3,h4 { color: var(--ink); }
h2 { font-weight:600; letter-spacing:-.025em; }
p { color: var(--ink-soft); }
.eyebrow { color: var(--sky-deep); font-weight:800; letter-spacing:.18em; }
.eyebrow::before { height:2px; width:28px; background: linear-gradient(90deg,var(--sky-deep),var(--aqua)); }
.eyebrow.sage { color: var(--sage-deep); }
.eyebrow.lavender { color: var(--lavender-deep); }
section { padding: clamp(72px,8vw,112px) 0; }
.section-alt {
  background:
    radial-gradient(circle at 8% 18%,rgba(73,169,210,.08),transparent 24rem),
    #f7fbfc;
}
.section-deep {
  background:
    radial-gradient(circle at 88% 12%,rgba(155,122,212,.11),transparent 24rem),
    #f2f8f3;
}
.center-head { max-width: 720px; }

/* Cards with stronger brand color */
.category-card,
.benefit-card,
.value-item,
.flow-step,
.form-card {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(25,125,167,.12);
  box-shadow: var(--shadow-soft);
}
.category-card { border-radius: 20px; }
.category-card:nth-child(4n+1) { border-top: 4px solid var(--sage); }
.category-card:nth-child(4n+2) { border-top: 4px solid var(--sky); }
.category-card:nth-child(4n+3) { border-top: 4px solid var(--lavender); }
.category-card:nth-child(4n+4) { border-top: 4px solid var(--aqua); }
.category-card .cat-link { color: var(--sky-deep); font-weight:800; }
.category-card:hover { transform: translateY(-8px); box-shadow: 0 26px 56px -30px rgba(25,125,167,.5); }
.benefit-card { border-radius: 18px; position:relative; overflow:hidden; }
.benefit-card::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:linear-gradient(var(--sky),var(--lavender)); }
.value-item { border-radius:18px; text-align:left; }
.value-item h4 { color:var(--sky-deep); font-size:1.05rem; }
.flow-step { border-radius:18px; }
.pill-list li { background:#fff; border-color:rgba(25,125,167,.16); color:#34545d; }

/* Forms */
.form-card { border-radius:24px; padding:clamp(28px,4vw,52px); }
.field input,.field select,.field textarea {
  background:#fff;
  border:1px solid rgba(25,125,167,.2);
  border-radius:10px;
  min-height:48px;
}
.field input:focus,.field select:focus,.field textarea:focus {
  box-shadow:0 0 0 4px rgba(73,169,210,.12);
}
.radio-chip label { background:#fff; border-color:rgba(25,125,167,.18); border-radius:10px; }
.radio-chip input:checked + label { background:var(--sky-deep); color:#fff; }

/* CTA */
.cta-band {
  border-radius:28px;
  background:
    radial-gradient(circle at 12% 20%,rgba(255,255,255,.17),transparent 18rem),
    radial-gradient(circle at 88% 76%,rgba(155,122,212,.28),transparent 20rem),
    linear-gradient(135deg,#167ca5 0%,#2a9eb0 52%,#6c8f4d 100%);
  box-shadow:0 30px 70px -36px rgba(22,124,165,.68);
}
.cta-band .btn-light { color:var(--sky-deep); background:#fff; }

/* FAQ */
.faq-item { border-color:rgba(25,125,167,.16); }
.faq-q { font-weight:600; }
.faq-q:hover { color:var(--sky-deep); }

/* Footer */
footer.site-footer {
  background:
    radial-gradient(circle at 12% 10%,rgba(73,169,210,.12),transparent 26rem),
    radial-gradient(circle at 82% 78%,rgba(155,122,212,.12),transparent 22rem),
    #12343e;
}
footer a:hover { color:#81d5e6; }

/* Broken remote image fallback: graceful branded surface instead of icon */
.image-load-failed { opacity:0 !important; }
.hero-media:has(img.image-load-failed),
.feature-media:has(img.image-load-failed),
.page-hero-media:has(img.image-load-failed),
.cat-img:has(img.image-load-failed) {
  background:
    radial-gradient(circle at 22% 24%,rgba(255,255,255,.55),transparent 18rem),
    linear-gradient(135deg,rgba(73,169,210,.45),rgba(155,122,212,.30),rgba(114,168,79,.35));
}

/* Responsive */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns:1fr; }
  .hero-media { order:0; aspect-ratio:16/10; }
  .page-hero .wrap:first-child { text-align:left; }
  .page-hero .eyebrow { justify-content:flex-start; }
  .page-hero p.lead { margin-left:0; }
  .page-hero-media { aspect-ratio:16/10; }
}
@media (max-width: 720px) {
  .header-inner { padding:10px 18px; }
  .logo-mark svg { width:40px; height:40px; }
  .logo-word { font-size:1.15rem; }
  .page-hero h1 { font-size:clamp(2.65rem,12vw,4rem); }
  section { padding:64px 0; }
  .cta-band { padding:48px 24px; border-radius:20px; }
}
@media (max-width: 480px) {
  .wrap { padding-left:18px; padding-right:18px; }
  .logo-word span { display:none; }
  .btn { width:100%; justify-content:center; }
  .hero-actions { flex-direction:column; }
  .hero-media,.page-hero-media,.feature-media { border-radius:18px; }
  .category-card,.form-card { border-radius:18px; }
}

/* ============================================================
   BB WAVES — DEFINITIVE HEADER / NAVIGATION SYSTEM
   Single source of truth for desktop, tablet and mobile.
   ============================================================ */
html { scroll-padding-top: 104px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5000;
  width: 100%;
  isolation: isolate;
  background: rgba(255, 252, 247, .97);
  border-bottom: 1px solid rgba(25, 125, 167, .12);
  box-shadow: 0 8px 30px rgba(23, 49, 58, .07);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  z-index: 1;
  background: linear-gradient(90deg, var(--sage) 0%, var(--aqua) 36%, var(--sky) 62%, var(--lavender) 100%);
}

.header-inner {
  width: min(calc(100% - 48px), 1420px);
  min-height: 88px;
  margin: 0 auto;
  padding: 10px 0 8px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 184px;
  max-width: 21vw;
  text-decoration: none;
}
.brand-wordmark {
  display: block;
  width: 100%;
  height: 58px;
  object-fit: contain;
  object-position: left center;
  border: 0;
  border-radius: 0;
  background: transparent;
}

nav.primary-nav {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
nav.primary-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(12px, 1.22vw, 21px);
  margin: 0;
  padding: 0;
}
nav.primary-nav > ul > li { flex: 0 0 auto; }
nav.primary-nav a.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 6px 0;
  color: #36545e;
  font-family: var(--font-body);
  font-size: clamp(.79rem, .73vw, .91rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .003em;
  white-space: nowrap;
  position: relative;
  transition: color .2s ease;
}
nav.primary-nav a.nav-link:hover,
nav.primary-nav a.nav-link.active { color: var(--sky-deep); }
nav.primary-nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky-deep), var(--aqua));
  transform: translateX(-50%);
  transition: width .2s ease;
}
nav.primary-nav a.nav-link:hover::after,
nav.primary-nav a.nav-link.active::after { width: 100%; }

.has-dropdown { position: relative; }
.has-dropdown > .nav-link { gap: 7px; }
.has-dropdown > .nav-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  order: 2;
  opacity: .7;
}
.has-dropdown .dropdown {
  position: absolute;
  left: 50%;
  top: calc(100% + 9px);
  width: max-content;
  min-width: 242px;
  padding: 10px;
  background: rgba(255,255,255,.99);
  border: 1px solid rgba(25,125,167,.13);
  border-radius: 16px;
  box-shadow: 0 24px 60px -30px rgba(23,49,58,.42);
  transform: translate(-50%, 8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.has-dropdown .dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 13px;
  height: 13px;
  background: #fff;
  border-left: 1px solid rgba(25,125,167,.13);
  border-top: 1px solid rgba(25,125,167,.13);
  transform: translateX(-50%) rotate(45deg);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.has-dropdown .dropdown a {
  position: relative;
  z-index: 1;
  display: block;
  padding: 11px 13px;
  border-radius: 10px;
  color: #3d5962;
  font-size: .9rem;
  line-height: 1.25;
  font-weight: 650;
  white-space: nowrap;
}
.has-dropdown .dropdown a:hover,
.has-dropdown .dropdown a:focus-visible {
  background: linear-gradient(90deg, rgba(73,169,210,.1), rgba(56,195,177,.08));
  color: var(--sky-deep);
  outline: none;
}

.header-book {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(25,125,167,.1);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #197da7 0%, #35a9c6 58%, #42b8b0 100%);
  box-shadow: 0 16px 30px -17px rgba(25,125,167,.76);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .005em;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.header-book:hover,
.header-book:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -17px rgba(25,125,167,.88);
  filter: saturate(1.08);
}
.header-book:focus-visible,
.menu-toggle:focus-visible,
.mobile-nav-close:focus-visible {
  outline: 3px solid rgba(25,125,167,.28);
  outline-offset: 3px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0;
  background: linear-gradient(145deg, #f1fbfc, #f5f8ff);
  border: 1px solid rgba(25,125,167,.15);
  border-radius: 13px;
  box-shadow: 0 8px 20px -15px rgba(23,49,58,.45);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 2.7px 0;
  background: var(--sky-deep);
  border-radius: 999px;
}

/* Never allow an old floating Book Session element to cover the header. */
.sticky-book,
.desktop-book-item,
.header-cta,
.header-actions { display: none !important; }

/* Closed drawer is removed from layout. */
.mobile-nav,
.mobile-nav.open { display: none !important; }

@media (max-width: 1160px) {
  .header-inner {
    width: min(calc(100% - 36px), 1080px);
    min-height: 78px;
    gap: 14px;
  }
  .brand-lockup { width: 178px; max-width: 48vw; }
  .brand-wordmark { height: 52px; }
  nav.primary-nav { display: none !important; }
  .header-book { margin-left: auto; min-width: 136px; min-height: 45px; }
  .menu-toggle { display: flex !important; }

  .mobile-nav.open {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: flex !important;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 28px 34px;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background:
      radial-gradient(circle at 86% 9%, rgba(155,122,212,.18), transparent 22rem),
      radial-gradient(circle at 8% 88%, rgba(114,168,79,.15), transparent 24rem),
      linear-gradient(180deg, #fffdf8 0%, #f8fcfb 100%);
  }
  .mobile-nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(25,125,167,.12);
  }
  .mobile-nav .brand-lockup { width: 196px; max-width: calc(100vw - 100px); }
  .mobile-nav .brand-wordmark { height: 56px; }
  .mobile-nav-close {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    padding: 0;
    border: 1px solid rgba(25,125,167,.15) !important;
    border-radius: 13px;
    background: #eef8fb !important;
    color: var(--sky-deep) !important;
    font: 500 2rem/1 var(--font-body) !important;
    cursor: pointer;
  }
  .mobile-nav ul {
    flex: initial;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .mobile-nav ul + ul {
    position: relative;
    margin-top: 34px !important;
    padding-top: 31px;
  }
  .mobile-nav ul + ul::before {
    content: "Services";
    position: absolute;
    top: 0;
    left: 0;
    color: var(--sky-deep);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
  }
  .mobile-nav li { min-width: 0; }
  .mobile-nav a:not(.btn) {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(23,49,58,.11);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1.28rem, 3.4vw, 1.65rem) !important;
    line-height: 1.15;
    font-weight: 600;
    transition: color .18s ease, padding-left .18s ease;
  }
  .mobile-nav a:not(.btn):hover {
    color: var(--sky-deep);
    padding-left: 5px;
  }
  .mobile-nav ul + ul a:not(.btn) {
    font-family: var(--font-body);
    font-size: .98rem !important;
    font-weight: 700;
    color: #3c5962;
  }
  .mobile-nav .btn {
    width: min(100%, 420px);
    margin-top: 28px;
    justify-content: center;
  }
  .mobile-nav .accent-dots { margin-top: 24px; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 86px; }
  .header-inner {
    width: calc(100% - 28px);
    min-height: 72px;
    padding-top: 8px;
    padding-bottom: 6px;
  }
  .brand-lockup { width: 160px; max-width: calc(100vw - 86px); }
  .brand-wordmark { height: 47px; }
  .header-book { display: none !important; }
  .menu-toggle {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    margin-left: auto;
  }
  .mobile-nav.open { padding: 15px 20px 28px; }
  .mobile-nav-top { padding-bottom: 14px; margin-bottom: 12px; }
  .mobile-nav .brand-lockup { width: 168px; }
  .mobile-nav .brand-wordmark { height: 49px; }
  .mobile-nav ul { grid-template-columns: 1fr; gap: 0; }
  .mobile-nav a:not(.btn) { font-size: 1.38rem !important; padding: 10px 0; }
  .mobile-nav ul + ul { margin-top: 26px !important; padding-top: 27px; }
  .mobile-nav ul + ul a:not(.btn) { font-size: .94rem !important; padding: 9px 0; }
  .mobile-nav .btn { min-height: 48px; }
}

.footer-brand .brand-lockup {
  width: min(276px, 100%);
  max-width: 100%;
  margin-bottom: 18px;
}
.footer-brand .brand-wordmark {
  width: 100%;
  height: auto;
  max-height: 88px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(1.1) saturate(1.08);
}
