/* ===================================================================
   Brightwater Dental - "Clear Water & Light"
   Design system for a modern, gentle family + cosmetic dental practice.
   Palette: clear-water teal + warm coral accent on bright paper.
   Type:    Fraunces (soft humanist display serif) + Nunito Sans (rounded humanist sans).
   Distinct from obris.co (Poppins / #0660bd) and from the medi-spa portfolio sites.
   =================================================================== */

/* ---- Tokens --------------------------------------------------------- */
:root {
  /* water + ink — enriched for depth (was flat pale aqua) */
  --ink:        #16323A;   /* deep teal-slate - headings / body text */
  --ink-soft:   #45646f;   /* muted body / captions */
  --water:      #0E9AAE;   /* bright clear water - primary accent */
  --water-deep: #0B7285;   /* button / link teal (white text passes AA) */
  --water-dark: #0A4C58;   /* footer / deep gradients */
  --water-tint: #e2f0f2;   /* pale aqua wash */
  --water-glow: #58c6d6;   /* highlight shimmer */
  --band-dark:  #0A4C58;   /* deep-teal GALLERY band (the depth instrument) */
  --mint:       #8FD4C1;   /* soft mint - secondary accent / trim */
  --mint-bright:#CFF0E7;   /* mint lifted for AA on the tinted hero photo */
  /* warm accent */
  --coral:      #E8623F;   /* friendly warm accent (large text / graphics) */
  --coral-deep: #C24A28;   /* coral for AA text on light */
  --coral-tint: #fdeee8;
  /* surface */
  --paper:      #F7FAFA;   /* page background (ivory-cool) */
  --paper-2:    #E1EFF0;   /* alternating band - real aqua tint, not near-white */
  --white:      #ffffff;
  --line:       #cfe4e7;   /* hairline borders */

  --shadow-sm: 0 2px 8px rgba(7,59,69,.06);
  --shadow-md: 0 14px 34px -18px rgba(7,59,69,.30);
  --shadow-lg: 0 30px 70px -30px rgba(7,59,69,.42);

  --ff-head: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius:   18px;
  --radius-lg: 30px;
  --radius-pill: 999px;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);

  /* section-spacing ceiling (Obris rule): body ≤64, bands ≤80, footer ≤72 */
  --sp-body: clamp(40px, 5vh, 64px);
  --sp-band: clamp(48px, 6vh, 80px);
  --sp-foot: clamp(44px, 6vh, 72px);
}

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: clamp(16px, 1rem + .15vw, 18px);
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--water-deep); text-underline-offset: 3px; }
a:hover { color: var(--coral-deep); }
h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--ink); line-height: 1.1; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; overflow-wrap: break-word; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--water-deep); outline-offset: 3px; border-radius: 6px; }
body.nav-locked { overflow: hidden; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; transition: top .18s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Names a section for assistive tech without putting a heading on screen. Used
   where the design shows a row of cards with no visible group title, which
   would otherwise force the cards to skip a heading level. */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* fluid display sizes */
.h-xxl { font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4.4rem); }
.h-xl  { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); }
.h-lg  { font-size: clamp(1.55rem, 1.25rem + 1.4vw, 2.15rem); }
.lede  { font-size: clamp(1.12rem, 1.03rem + .5vw, 1.35rem); color: var(--ink-soft); line-height: 1.6; }

.eyebrow {
  display: block; max-width: 100%;
  font-family: var(--ff-body); font-weight: 800; font-size: .78rem;
  /* Darker than --water-deep. The pale bands carry a teal gradient, and at its
     deepest the eyebrow fell to 3.85:1 -- small uppercase type has no margin. */
  letter-spacing: .16em; text-transform: uppercase; color: #085A69;
  margin: 0 0 .9em; overflow-wrap: break-word;
}
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 2px; background: var(--coral); border-radius: 2px; vertical-align: middle; margin-right: .6em; }

/* the "ripple" accent under section headings */
.ripple-accent { position: relative; display: inline-block; }
.ripple-accent::after {
  content: ""; position: absolute; left: 0; bottom: -.28em; width: 100%; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='8' viewBox='0 0 60 8'%3E%3Cpath d='M0 4 C 7.5 0, 15 8, 22.5 4 S 37.5 0, 45 4 S 60 8, 60 4' fill='none' stroke='%23ef6f4c' stroke-width='2.4'/%3E%3C/svg%3E") repeat-x left center / 60px 8px;
  opacity: .9;
}

/* ---- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--ff-body); font-weight: 800; font-size: 1.02rem;
  padding: .82em 1.5em; border-radius: var(--radius-pill); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; min-height: 48px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--water-deep); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: #085a67; color: #fff; }
/* --coral carries white text at 3.36:1, under the 4.5 AA needs. --coral-deep
   is the same hue at 4.88:1, which is why the palette defines it as "coral for
   AA text". The bright coral stays for graphics and large type. */
.btn-coral { background: var(--coral-deep); color: #fff; box-shadow: 0 14px 30px -16px rgba(208,81,44,.6); }
.btn-coral:hover { background: #A63C1E; color: #fff; }
.btn-ghost { background: transparent; color: var(--water-deep); border-color: var(--water-deep); }
.btn-ghost:hover { background: var(--water-deep); color: #fff; }
.btn-lg { font-size: 1.08rem; padding: .95em 1.8em; }
.btn-block { width: 100%; }
/* No animation on CTAs beyond simple color state (house rule). */

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- Header / Nav --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 96%, transparent); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 210px; height: 46px; }
@media (max-width: 480px) { .brand-logo { width: 176px; height: 39px; } }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 10px 14px; border-radius: 12px;
  font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1rem;
  transition: background-color .18s ease, color .18s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--water-tint); color: var(--water-deep); }
/* Services submenu. The parent stays a real link to the services page and the
   caret is a separate button, so the section is reachable in one click and the
   list is reachable by keyboard. The caret is visible at rest, never a
   hover-only affordance, and is 36px square so it clears the target-size floor
   next to its neighbour. */
.nav-links .has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle {
  width: 36px; height: 36px; margin-left: -6px; padding: 0; border: 0;
  background: transparent; color: var(--ink-soft); cursor: pointer; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .18s ease, color .18s ease;
}
.sub-toggle svg { width: 16px; height: 16px; transition: transform .2s ease; }
.sub-toggle:hover { background: var(--water-tint); color: var(--water-deep); }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  min-width: 262px; list-style: none; margin: 0; padding: 8px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.sub-toggle[aria-expanded="true"] + .sub-menu { display: block; }
/* Hover/focus opening is a POINTER affordance, so it only exists above the
   phone breakpoint. Scoping it here rather than switching it off inside the
   mobile block matters: `:focus-within` outranks the aria-expanded selector,
   so a `display:none` override down there would beat the caret button that
   just took focus, and tapping the caret would appear to do nothing. */
@media (min-width: 769px) {
  .nav-links .has-sub:hover > .sub-menu,
  .nav-links .has-sub:focus-within > .sub-menu { display: block; }
}
.sub-menu a { display: block; padding: 11px 14px; font-weight: 600; font-size: .98rem; white-space: nowrap; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-phone:hover { color: var(--coral-deep); }
.nav-phone svg { color: var(--water-deep); flex: none; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line);
  background: var(--white); border-radius: 12px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }

@media (max-width: 900px) {
  .nav-links a { padding: 9px 11px; }
  .nav-phone span.np-label { display: none; }
}
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 84px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 16px var(--gutter) 28px; background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease; max-height: calc(100vh - 84px); overflow-y: auto;
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 14px; font-size: 1.08rem; }
  .nav-cta .btn { display: none; }
  /* In the phone panel the submenu drops inline under its parent rather than
     floating, and hover no longer opens anything: only the caret does. */
  .nav-links .has-sub { flex-wrap: wrap; }
  .nav-links .has-sub > a { flex: 1 1 auto; }
  .sub-toggle { width: 46px; height: 46px; margin-left: 0; }
  .sub-menu {
    position: static; flex: 1 1 100%; min-width: 0; margin: 2px 0 6px 12px;
    box-shadow: none; background: var(--water-tint); border-color: transparent;
  }
  .sub-menu a { white-space: normal; font-size: 1.02rem; padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) { .nav-links { transition: none; } }

/* ---- Sections / layout --------------------------------------------- */
main { display: block; }
.section { padding-block: var(--sp-body); }
.section-band { padding-block: var(--sp-band); }
.section.tint { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vh, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.grid { display: grid; gap: clamp(20px, 3vw, 34px); }
/* prevent grid/flex track blowout from long words or fixed-min children */
.grid > *, .hero-grid > *, .steps > *, .strip > *, .footer-grid > *, .cta-inner > * { min-width: 0; }
.two { grid-template-columns: 1fr 1fr; }
.three { grid-template-columns: repeat(3, 1fr); }
.split { grid-template-columns: 1.05fr .95fr; align-items: center; }
.split.reverse > .media { order: -1; }
@media (max-width: 860px) {
  .two, .three, .split { grid-template-columns: 1fr; }
  .split.reverse > .media { order: 0; }
}

/* organic rounded media frame */
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame.tall { aspect-ratio: 4 / 5; }
.media-frame.wide { aspect-ratio: 4 / 3; }

/* ---- Hero ----------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(36px, 6vh, 76px); padding-bottom: clamp(60px, 8vh, 96px); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 12% 8%, color-mix(in srgb, var(--water-tint) 92%, #fff) 0%, transparent 60%),
    radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--coral-tint) 80%, transparent) 0%, transparent 55%),
    radial-gradient(120% 120% at 85% 110%, color-mix(in srgb, var(--water) 15%, transparent) 0%, transparent 55%),
    var(--paper);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: .35em; }
.hero .lede { max-width: 34ch; }
.hero-cta { margin-top: 1.4em; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 1.7em; padding-top: 1.3em; border-top: 1px solid var(--line); }
.hero-trust li { list-style: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: .98rem; }
.hero-trust svg { color: var(--water-deep); flex: none; }

.hero-media { position: relative; }
.hero-media .media-frame { aspect-ratio: 5 / 5.6; }
/* floating friendly info card */
.floating-card {
  position: absolute; left: -18px; bottom: -22px; z-index: 3;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 16px 20px; display: flex; align-items: center; gap: 14px; max-width: 300px;
  border: 1px solid var(--line);
}
.floating-card .fc-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--water-tint); color: var(--water-deep); display: grid; place-items: center; flex: none; }
.floating-card p { margin: 0; font-size: .92rem; line-height: 1.4; color: var(--ink-soft); }
.floating-card strong { display: block; color: var(--ink); font-size: 1rem; }
@media (max-width: 480px) { .floating-card { position: static; margin-top: 16px; max-width: none; } }

/* soft blob accent behind hero image */
.hero-media::after {
  content: ""; position: absolute; z-index: -1; inset: -6% -8% -10% -4%;
  background: radial-gradient(60% 60% at 70% 30%, color-mix(in srgb, var(--water) 22%, transparent), transparent 70%);
  filter: blur(6px);
}

/* ---- Wave dividers -------------------------------------------------- */
.wave { display: block; width: 100%; height: clamp(34px, 5vw, 64px); line-height: 0; }
.wave svg { display: block; width: 100%; height: 100%; }

/* ---- Trust strip ---------------------------------------------------- */
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
@media (max-width: 900px) { .strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .strip { grid-template-columns: 1fr; } }
.strip-item { text-align: center; padding: 18px 12px; }
.strip-ic { width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--white); color: var(--water-deep); box-shadow: var(--shadow-sm); }
.strip-item h3 { font-size: 1.06rem; margin-bottom: .25em; }
.strip-item p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* ---- Cards ---------------------------------------------------------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--water) 40%, var(--line)); }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card .tag { align-self: flex-start; font-size: 0.75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--coral-deep); background: var(--coral-tint); padding: 5px 11px; border-radius: var(--radius-pill); margin-bottom: 12px; }
.card h3 { font-size: 1.32rem; margin-bottom: .35em; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card .card-link { margin-top: auto; font-weight: 800; color: var(--water-deep); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card .card-link:hover { color: var(--coral-deep); gap: 10px; }
@media (prefers-reduced-motion: reduce) { .card, .card .card-link { transition: none; } }

/* service icon cards (no image) */
.icard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.icard .strip-ic { margin: 0 0 14px; background: var(--water-tint); }
.icard h3 { font-size: 1.18rem; margin-bottom: .3em; }
.icard p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* ---- Numbered narrative (how it works) ------------------------------ */
.steps { counter-reset: step; display: grid; gap: clamp(18px,2.4vw,28px); grid-template-columns: repeat(3,1fr); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 26px; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--ff-head); font-weight: 600; font-size: 1.4rem; color: #fff;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--water) 0%, var(--water-deep) 100%);
  box-shadow: 0 10px 22px -12px rgba(10,110,125,.7); margin-bottom: 16px;
}
.step h3 { font-size: 1.24rem; margin-bottom: .3em; }
.step p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* ---- Feature list w/ checks ---------------------------------------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-weight: 600; color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--water-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230A6E7D' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 14px 14px;
}

/* ---- FAQ ------------------------------------------------------------ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-family: var(--ff-head); font-weight: 600; font-size: 1.12rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--ff-body); font-weight: 800; font-size: 1.5rem; color: var(--water-deep); flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 22px 20px; color: var(--ink-soft); }
.faq .faq-a p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---- CTA band (deep water gradient + coral glow - NEVER footer color) */
.cta-band { position: relative; overflow: clip; color: #eaf7f9; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 120% at 8% 0%, color-mix(in srgb, var(--coral) 42%, transparent) 0%, transparent 52%),
    radial-gradient(100% 120% at 100% 100%, color-mix(in srgb, var(--water-glow) 40%, transparent) 0%, transparent 55%),
    linear-gradient(135deg, #0c7d8e 0%, #0a5f6d 46%, #0a6e7d 100%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: color-mix(in srgb, #eaf7f9 90%, transparent); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-inner .cta-copy { max-width: 620px; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.cta-band .btn-ghost:hover { background: #fff; color: var(--water-deep); }

/* mini contact form (home) */
.mini-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px,3vw,34px); box-shadow: var(--shadow-md); color: var(--ink); }
.mini-form h3 { font-size: 1.4rem; }

/* ---- Forms ---------------------------------------------------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.field .req { color: var(--coral-deep); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--ff-body); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--water-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--water) 30%, transparent); }
.field-hint { font-size: .84rem; color: var(--ink-soft); margin: 6px 0 0; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--ink-soft); margin: 4px 0 18px; line-height: 1.5; }
.form-consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--water-deep); }
.form-note { font-size: .84rem; color: var(--ink-soft); margin-top: 12px; }
.form-status { margin-top: 14px; padding: 13px 16px; border-radius: 12px; font-weight: 700; display: none; }
.form-status.ok { display: block; background: var(--water-tint); color: var(--water-dark); border: 1px solid var(--water); }
.form-status.err { display: block; background: var(--coral-tint); color: var(--coral-deep); border: 1px solid var(--coral); }

/* two-up form rows */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ---- Contact info panel -------------------------------------------- */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--water-tint); color: var(--water-deep); display: grid; place-items: center; flex: none; }
.info-list h3 { font-size: 1.05rem; margin: 0 0 2px; }
.info-list p, .info-list a { margin: 0; color: var(--ink-soft); text-decoration: none; }
.info-list a:hover { color: var(--coral-deep); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.hours-table th { font-weight: 700; color: var(--ink); }
.hours-table td { color: var(--ink-soft); text-align: right; }

/* map placeholder (no real address) */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); aspect-ratio: 16/10; background:
  radial-gradient(80% 80% at 30% 20%, var(--water-tint), transparent 60%),
  repeating-linear-gradient(0deg, #e4eff1 0 1px, transparent 1px 46px),
  repeating-linear-gradient(90deg, #e4eff1 0 1px, transparent 1px 46px),
  var(--paper-2);
  display: grid; place-items: center; text-align: center; color: var(--ink-soft); padding: 20px; }
.map-embed .pin { width: 44px; height: 44px; color: var(--coral-deep); margin: 0 auto 8px; }

/* ---- About: values / bios ------------------------------------------ */
.value { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.value h3 { font-size: 1.16rem; margin-bottom: .3em; }
.value p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.stat-row { display: flex; flex-wrap: wrap; gap: clamp(18px,4vw,52px); }
.stat { }
.stat b { font-family: var(--ff-head); font-size: clamp(2rem,1.4rem+2vw,2.9rem); color: var(--water-deep); display: block; line-height: 1; }
.stat span { font-weight: 700; color: var(--ink-soft); font-size: .95rem; }

/* ---- Simple prose (privacy / 404) ---------------------------------- */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.4em; }
.prose h3 { font-size: 1.18rem; margin-top: 1.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

/* ---- 404 ------------------------------------------------------------ */
.err-wrap { text-align: center; padding-block: clamp(60px, 12vh, 130px); }
.err-code { font-family: var(--ff-head); font-weight: 600; font-size: clamp(4.5rem, 3rem + 10vw, 9rem); line-height: .9; color: var(--water-deep); margin: 0; }

/* ---- Footer --------------------------------------------------------- */
.site-footer { position: relative; color: #d4e9ec; overflow: clip; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 120% at 10% 0%, color-mix(in srgb, var(--water) 24%, transparent) 0%, transparent 55%),
    radial-gradient(70% 100% at 95% 10%, color-mix(in srgb, var(--coral) 16%, transparent) 0%, transparent 50%),
    linear-gradient(180deg, #073b45 0%, #052c34 100%);
}
.footer-top { padding-top: var(--sp-foot); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(24px,3vw,40px); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand-logo { width: 210px; height: 46px; margin-bottom: 14px; }
/* .foot-h, not h4: the footer columns follow the page h1/h2, so an h4 skipped
   a level on every page. The level changed, the look did not. */
.site-footer .foot-h { color: #fff; font-family: var(--ff-body); font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; line-height: 1.3; }
.site-footer p { color: #b9d7db; font-size: .96rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-links a { color: #cfe6e9; text-decoration: none; font-size: .96rem; }
.footer-links a:hover { color: #fff; }
.footer-contact a { color: #cfe6e9; text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; color: #cfe6e9; }
.footer-social a:hover { background: rgba(255,255,255,.1); color: #fff; }
.footer-disclaimer { margin-top: var(--sp-foot); padding: 20px 0; border-top: 1px solid rgba(255,255,255,.14); }
.footer-disclaimer p { font-size: .84rem; color: #9fc3c8; margin: 0; max-width: 900px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 16px 0 var(--sp-foot); border-top: 1px solid rgba(255,255,255,.14); }
.footer-bottom p { margin: 0; font-size: .88rem; color: #9fc3c8; }
.footer-bottom a { color: #d4e9ec; }

/* ---- Back to top ---------------------------------------------------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--water-deep); color: #fff; box-shadow: var(--shadow-md);
  display: grid; place-items: center; transition: background-color .2s ease, opacity .2s ease, transform .2s ease;
}
.to-top:hover { background: #085a67; }
.to-top[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* ---- Reveal motion -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.d1, .reveal.d2, .reveal.d3 { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card:hover, .step, * { animation: none !important; }
}

/* ---- Hero water shimmer (decorative, disabled for reduced-motion) --- */
@keyframes drift { from { background-position: 0 0; } to { background-position: 240px 0; } }
.hero-shimmer { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: -1; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='90' viewBox='0 0 240 90'%3E%3Cpath d='M0 55 C 30 40, 60 70, 90 55 S 150 40, 180 55 S 240 70, 240 55' fill='none' stroke='%2358c6d6' stroke-width='2' opacity='.5'/%3E%3Cpath d='M0 70 C 30 55, 60 85, 90 70 S 150 55, 180 70 S 240 85, 240 70' fill='none' stroke='%230E9AAE' stroke-width='2' opacity='.35'/%3E%3C/svg%3E") repeat-x left bottom;
  animation: drift 14s linear infinite; }
@media (prefers-reduced-motion: reduce) { .hero-shimmer { animation: none; } }

/* utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-md { margin-top: 1.4em; }
.mt-sm { margin-top: 1em; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.narrow { max-width: 680px; }
.maxw-md { max-width: 760px; }
.hero-tight { padding-bottom: clamp(40px, 6vh, 72px); }
.on-white { color: #fff; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================================
   Brightwater design system v2 — depth + full-bleed hero + matched motion.
   Kills the two-column split hero; adds a deep-teal GALLERY band (the depth
   instrument Julia asked for), a line-mask headline, and hover-only CTA
   fill-wipe. Pattern from _design-research/ specs, retuned to teal/coral/mint.
   ========================================================================== */

/* Type scale dialed down from research (was up to 4.4rem = oversized) */
.h-xxl { font-size: clamp(2.3rem, 1.6rem + 2.7vw, 3.5rem); line-height: 1.08; }
.h-xl  { font-size: clamp(1.85rem, 1.4rem + 1.9vw, 2.6rem); }
.h-lg  { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }

/* --- Full-bleed hero (replaces the split) ------------------------------ */
.hero--full { padding: 0; min-height: clamp(500px, 82vh, 760px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero--full .hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero--full .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
/* Flat tint, not a left-to-right scrim. A gradient reads as an AI hero and it
   also lies about legibility: the copy runs to x~790, where the old ramp had
   already fallen to 22% and the headline accent measured 1.69:1 over the bright
   window behind it. One even tint holds every line of type to the same floor. */
.hero--full .hero-scrim { position: absolute; inset: 0; z-index: -1;
  background: rgba(9,47,57,.66); }
.hero--full .hero-inner { width: 100%; }
.hero--full .hero-copy { max-width: 640px; color: #fff; padding: clamp(40px,7vh,92px) 0; }
.hero--full .hero-copy .eyebrow { color: #fff; }
.hero--full .hero-copy .eyebrow::before { background: var(--mint-bright); }
.hero--full .hero-copy h1 { color: #fff; }
.hero--full .hero-copy .lede { color: rgba(255,255,255,.92); max-width: 46ch; }
/* --mint reaches only 2.8:1 on the tinted photo. --mint-bright is the same
   hue lifted until the accent and the trust ticks clear their 3:1 floor. */
.hero--full .ripple-accent { color: var(--mint-bright); font-style: normal; }
.hero--full .hero-trust { border-top-color: rgba(255,255,255,.30); }
.hero--full .hero-trust li { color: #fff; }
.hero--full .hero-trust svg { color: var(--mint-bright); }

/* ghost button for the dark hero */
.btn-ghost-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-ghost-light:hover, .btn-ghost-light:focus-visible { color: var(--ink); border-color: #fff; }

/* --- Line-mask headline reveal ----------------------------------------- */
.reveal-headline .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.reveal-headline .line > span { display: block; transform: translateY(100%); animation: bw-line-rise 1000ms cubic-bezier(.22,1,.36,1) both; }
.reveal-headline .line:nth-child(1) > span { animation-delay: .18s; }
.reveal-headline .line:nth-child(2) > span { animation-delay: .30s; }
@keyframes bw-line-rise { to { transform: translateY(0); } }

/* --- Deep-teal GALLERY band (the depth instrument) --------------------- */
.section--dark { background: var(--band-dark); color: rgba(255,255,255,.9); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p, .section--dark li, .section--dark .lede { color: rgba(255,255,255,.86); }
.section--dark .eyebrow { color: #fff; }
.section--dark .eyebrow::before { background: var(--mint); }
.section--dark .card, .section--dark .service-card, .section--dark .icard { background: #fff; }
.section--dark .card h2, .section--dark .card h3, .section--dark .card h4, .section--dark .service-card h3, .section--dark .icard h3 { color: var(--ink); }
.section--dark .card p, .section--dark .card li, .section--dark .service-card p, .section--dark .icard p { color: var(--ink-soft); }
/* keep fine-print/notes legible on the dark band */
.section--dark strong { color: #fff; }
/* Prose links on the dark band. The default link teal is tuned for the pale
   surfaces and lands at 1.7:1 here; mint-bright reads as a link and clears AA
   at 7.9:1. Cards on this band keep their own white background, so links
   inside one stay the normal teal. */
.section--dark a:not(.btn) { color: var(--mint-bright); }
.section--dark a:not(.btn):hover { color: #fff; }
.section--dark .card a, .section--dark .icard a, .section--dark .service-card a { color: var(--water-deep); }
.section--dark .card a:hover, .section--dark .icard a:hover, .section--dark .service-card a:hover { color: var(--coral-deep); }
/* .value blocks read as editorial cells (light text on teal), not white boxes */
.section--dark .value { background: transparent; border-color: rgba(255,255,255,.2); box-shadow: none; }
.section--dark .value h3 { color: #fff; }
.section--dark .value p { color: rgba(255,255,255,.82); }

/* --- CTA animations — hover-only fill-wipe + lift (matched to real sites) */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: color .3s ease, border-color .3s ease, transform .28s ease, box-shadow .28s ease; }
.btn-primary::before, .btn-coral::before, .btn-ghost::before, .btn-ghost-light::before { content:""; position:absolute; inset:0; z-index:-1; transform: translateY(100%); transition: transform .45s cubic-bezier(.22,1,.36,1); }
.btn-primary::before     { background: var(--coral); }
.btn-coral::before       { background: var(--water-deep); }
.btn-ghost::before       { background: var(--water-deep); }
.btn-ghost-light::before { background: #fff; }
.btn-primary:hover::before, .btn-primary:focus-visible::before,
.btn-coral:hover::before, .btn-coral:focus-visible::before,
.btn-ghost:hover::before, .btn-ghost:focus-visible::before,
.btn-ghost-light:hover::before, .btn-ghost-light:focus-visible::before { transform: translateY(0); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--water-deep); color:#fff; }
.btn-coral:hover, .btn-coral:focus-visible { background: var(--coral-deep); color:#fff; }
.btn-ghost:hover, .btn-ghost:focus-visible { color:#fff; }
@media (hover:hover) and (pointer:fine) {
  .btn-primary:hover, .btn-coral:hover, .btn-ghost:hover, .btn-ghost-light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(7,59,69,.5); }
}

/* --- Reduced-motion guard ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal-headline .line > span { transform: none; animation: none; }
  .btn-primary::before, .btn-coral::before, .btn-ghost::before, .btn-ghost-light::before { transition: none; }
  .btn-primary:hover, .btn-coral:hover, .btn-ghost:hover, .btn-ghost-light:hover { transform: none; box-shadow: none; }
}
