/* Lakeside Family Dental. One real lake horizon: the headline rests on the waterline and its reflection lies in the lake. */

:root {
  --sky: #DCEAF4;
  --sky-2: #EEF5FA;
  --mist: #C5D9E8;
  --navy: #17385A;
  --deep: #0F2A45;
  --coral: #EF7A69;
  --coral-ink: #A93D2A;
  --coral-wash: #FDEBE7;
  --white: #FFFFFF;
  --slate: #44607A;
  --gutter: clamp(20px, 4vw, 64px);
  --display: 'Gabarito', 'Trebuchet MS', sans-serif;
  --text: 'Onest', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ink: #C04A36;
  --rule: rgba(23, 56, 90, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font: 400 19px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: var(--display); color: var(--navy); text-wrap: balance; }
figure { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
section[id], form[id] { scroll-margin-top: 96px; }
:focus-visible { outline: 3px solid var(--coral-ink); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Buttons ------------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 24px; border: 0; border-radius: 10px;
  font: 700 19px/1 var(--text); text-decoration: none; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #22507F; }
.btn-navy-line { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-navy-line:hover { background: var(--navy); color: #fff; }

/* Header ------------------------------------------------------------------- */

.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 18px;
  padding: 14px var(--gutter);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.top.scrolled { background: rgba(255, 255, 255, .96); box-shadow: 0 1px 0 rgba(23, 56, 90, .1), 0 10px 30px -18px rgba(0, 0, 0, .28); }
/* Logo: a tooth with one calm wave cut across it, the waterline of the lake, beside the Gabarito wordmark
   whose k ends in the same soft wave, in coral. --lg is the wordmark size; the rest is in em of it. */
.brand { display: inline-flex; align-items: center; min-height: 52px; text-decoration: none; color: var(--navy); white-space: nowrap; }
.logo { --lg: 28px; display: inline-flex; align-items: center; gap: .28em; font-size: var(--lg); color: var(--navy); }
.logo-icon { width: 1.6em; height: 1.6em; flex: none; }
.logo-tooth { fill: var(--navy); }
.logo-wave { fill: var(--coral); }
.logo-text { display: grid; justify-items: start; gap: .06em; }
.logo-word { display: block; height: .78em; width: auto; overflow: visible; }
.logo-sub { font: 700 max(15px, .6em)/1.1 var(--text); letter-spacing: .01em; color: var(--navy); white-space: nowrap; }
.logo.on-dark { color: #fff; }
.logo.on-dark .logo-tooth { fill: var(--sky); }
.logo.on-dark .logo-sub { color: #fff; }
.logo-stack { display: inline-grid; justify-items: start; gap: .26em; }
.logo-stack .logo-icon { width: 2em; height: 2em; margin-left: -.16em; }
.logo-stack .logo-sub { font-size: .62em; }
.nav { display: flex; gap: 0; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px;
  font-weight: 600; font-size: 17px; text-decoration: none; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="true"] { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.top-call {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
  font-weight: 700; font-size: 18px; text-decoration: none; font-variant-numeric: tabular-nums;
}
.top-call svg { width: 18px; height: 18px; fill: var(--navy); }
.top-call:hover span { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.top-cta {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 2px;
  font-weight: 700; font-size: 17px; color: var(--navy); white-space: nowrap;
  text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2.5px; text-underline-offset: 8px;
}
.top-cta:hover { text-decoration-color: var(--navy); }

.burger {
  display: none; margin-left: auto;
  width: 48px; height: 48px; padding: 0; position: relative;
  background: var(--white); border: 0; border-radius: 12px;
  box-shadow: inset 0 0 0 1.5px var(--mist);
}
.burger span {
  position: absolute; left: 14px; right: 14px; height: 2.5px; border-radius: 2px; background: var(--navy);
  transition: transform .25s var(--ease), opacity .2s ease, top .25s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 30px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* Phone menu: the morning sky with the lake at the bottom. */
.phone-menu {
  position: fixed; top: 0; left: 0; right: 0; z-index: 55;
  max-height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 22px;
  padding: 92px var(--gutter) 26px;
  background: linear-gradient(to bottom, #FFFFFF 0%, var(--sky-2) 100%);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .32);
}
body.menu-open::before {
  content: ''; position: fixed; inset: 0; z-index: 54;
  background: rgba(15, 42, 69, .66);
}
.phone-menu[hidden] { display: none; }
.pm-links { display: flex; flex-direction: column; }
.pm-links a {
  display: flex; align-items: center; min-height: 54px;
  font: 600 27px/1.1 var(--display); letter-spacing: -.01em; text-decoration: none;
  border-bottom: 1.5px solid rgba(23, 56, 90, .1);
}
.pm-foot { display: contents; }
.pm-foot .menu-cta, .pm-foot .pm-call { flex: none; }
.pm-foot .pm-call { margin-top: -10px; }
.pm-foot .menu-cta { width: 100%; min-height: 56px; }
.pm-call {
  display: flex; align-items: center; justify-content: center; min-height: 54px;
  border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 2px var(--navy);
  font-weight: 700; font-size: 19px; text-decoration: none;
}
.pm-where { font-size: 17px; color: var(--slate); line-height: 1.5; }
.pm-where .js-status { color: var(--navy); font-weight: 600; }
body.menu-open { overflow: hidden; }

/* Hero: one real lake horizon -------------------------------------------- */
/* The stage sizes the photo from its own height, so the waterline (35.8% down the photo) lands at a known
   line. The headline's last baseline sits on that line, and its reflection lies in the water below it. */

.hero { position: relative; background: var(--white); }
.stage {
  position: relative; isolation: isolate; overflow: hidden;
  height: max(820px, 100svh); max-height: 1080px;
  container-type: size;
  background: #C9D8E4;
  --h1w: min(480px, 34cqw);
  --cardw: 440px;
  --h1-fs: clamp(44px, 3.9vw, 58px);
  --photo-w: max(100cqw, 188cqh);
  --photo-x: clamp(calc(100cqw - var(--photo-w) / 2), calc((var(--h1w) + 100cqw - var(--cardw)) / 2), calc(var(--photo-w) / 2));
  --horizon: calc(var(--photo-w) * .2387);
}
.shore { position: absolute; inset: 0; z-index: 0; }
.shore-img {
  position: absolute; top: 0; left: var(--photo-x);
  width: var(--photo-w); max-width: none; height: auto;
  transform: translateX(-50%);
  filter: saturate(.92) brightness(1.04) contrast(.97);
}
.shore::after {
  /* Cool the overcast morning toward the practice's sky blue. */
  content: ''; position: absolute; inset: 0;
  background: #A8C9E4; mix-blend-mode: soft-light; opacity: .62;
}
.mist {
  /* Morning mist: light under the header and over the water where the words sit, clear over the family. */
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(244, 248, 252, .94) 0, rgba(244, 248, 252, .5) 112px, rgba(244, 248, 252, 0) 196px),
    linear-gradient(to right, rgba(244, 248, 252, .6) 0, rgba(244, 248, 252, .52) calc(var(--gutter) + max(var(--h1w), min(540px, 38cqw))), rgba(244, 248, 252, 0) calc(var(--gutter) + max(var(--h1w), min(540px, 38cqw)) + 70px));
}
.horizon-words {
  position: absolute; z-index: 2;
  left: var(--gutter); width: var(--h1w);
  bottom: calc(100cqh - var(--horizon));
}
.hero h1 {
  position: relative;
  font-weight: 800; font-size: var(--h1-fs); line-height: 1.02; letter-spacing: -.022em;
  transform: translateY(.2em);
}
.hero h1::after {
  /* The reflection: the same words, mirrored, rippled and fading into the lake. Decorative only. */
  content: attr(data-reflect) / "";
  position: absolute; left: 0; right: 0; top: calc(100% - .4em);
  transform: scaleY(-1);
  color: var(--navy); opacity: .3;
  filter: url(#ripple) blur(.5px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .55) 16%, transparent 38%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .55) 16%, transparent 38%);
  pointer-events: none;
}
.hero-under {
  position: absolute; z-index: 2;
  left: var(--gutter); width: max(var(--h1w), min(540px, 38cqw));
  top: calc(var(--horizon) + var(--h1-fs) * 2.6 + 12px);
}
.lede { max-width: 31ch; font-size: 19px; line-height: 1.55; color: var(--navy); }
/* One contact block under a navy rule, the waterline again. */
.contact {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 30px;
  margin-top: 20px; padding-top: 12px; border-top: 1.5px solid var(--navy);
}
.call-num, .status { white-space: nowrap; }
.contact-side { padding-bottom: 7px; }
.contact-addr { margin-top: 2px; font-size: 17px; color: var(--navy); }
.call { display: inline-flex; flex-direction: column; justify-content: center; min-height: 60px; text-decoration: none; color: var(--navy); }
.call-label { font-weight: 600; font-size: 16px; }
.call-num { font: 800 32px/1.1 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.call:hover .call-num { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hero-cta { display: none; margin-top: 18px; }
.status { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: var(--navy); }

/* The request card: a printed appointment card, choices circled in pen. */
.card-wrap { position: absolute; z-index: 5; top: 104px; right: var(--gutter); width: 440px; }
.card {
  position: relative; isolation: isolate;
  background: var(--white); border-radius: 4px;
  padding: 26px 28px 16px;
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .4), 0 0 0 1px rgba(23, 56, 90, .1);
}
.card::before {
  /* The printed border of an office card. */
  content: ''; position: absolute; inset: 8px; border: 1.5px solid var(--rule); border-radius: 2px; pointer-events: none;
}
.card::after {
  /* Card stock: a fine paper grain. */
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 4px; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .5 0 0 0 0 .42 0 0 0 .34 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  opacity: 1;
}
.card-practice { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1.5px solid var(--rule); }
.cp-mark { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-bottom: 2px solid var(--navy); }
.cp-tooth { width: 32px; height: 32px; }
.cp-tooth .logo-tooth { fill: var(--navy); }
.cp-name { display: block; font: 700 17px/1.2 var(--display); }
.cp-addr { display: block; font-size: 16px; line-height: 1.3; color: var(--slate); }
.card h2 { font-weight: 800; font-size: 30px; line-height: 1.08; letter-spacing: -.015em; }
.card-promise { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 17px; font-weight: 500; color: var(--slate); }
.card-promise svg { width: 20px; height: 20px; flex: none; fill: var(--coral); }

.row { margin: 0; padding: 6px 0; border: 0; border-top: 1.5px solid var(--rule); min-width: 0; }
.card-step .row:first-child { margin-top: 14px; }
.row legend { float: left; width: 70px; padding: 13px 0 0; font: 700 16px/1.2 var(--display); color: var(--navy); }
.opts { margin-left: 70px; display: flex; flex-wrap: wrap; gap: 0; }
.opts input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opts label {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; min-width: 46px; padding: 0 14px;
  font-size: 18px; font-weight: 500; color: var(--navy); cursor: pointer; user-select: none;
}
.w { display: inline-grid; }
.w::after { content: attr(data-w) / ""; font-weight: 700; height: 0; visibility: hidden; overflow: hidden; }
.opts label:hover .w { text-decoration: underline; text-decoration-color: rgba(23, 56, 90, .35); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.opts input:checked + label { font-weight: 700; }
.opts input:checked + label .w { text-decoration: none; }
.ink {
  position: absolute; left: 0; top: 4px; width: 100%; height: calc(100% - 8px);
  overflow: visible; pointer-events: none;
  fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  clip-path: inset(-6px 100% -6px -6px);
}
.opts label:nth-of-type(2n) .ink { transform: rotate(-3deg) scaleX(-1); }
.opts label:nth-of-type(3n) .ink { transform: rotate(2deg); }
.opts input:checked + label .ink { clip-path: inset(-6px -6px -6px -6px); }
.opts input:focus-visible + label { outline: 3px solid var(--navy); outline-offset: -2px; border-radius: 8px; }
.opts-days label { min-width: 54px; padding: 0 10px; }
.err { font-size: 17px; font-weight: 600; color: var(--coral-ink); }
.err:not(:empty) { margin-top: 8px; }
.send { width: 100%; margin-top: 12px; min-height: 56px; }
.urgent { margin-top: 4px; font-size: 17px; line-height: 1.45; color: var(--slate); text-align: center; }
.urgent a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--navy); text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card.is-urgent .urgent { margin-top: 12px; padding: 6px 14px 4px; border-radius: 8px; background: var(--coral-wash); color: var(--navy); text-align: left; }

.picked {
  display: flex; align-items: center; gap: 12px; margin-top: 14px;
  padding: 6px 0 8px; border-top: 1.5px solid var(--rule); border-bottom: 1.5px solid var(--rule);
}
.picked-text { flex: 1; font-weight: 600; font-size: 17px; line-height: 1.4; }
.picked-change {
  flex: none; min-height: 44px; padding: 0 4px; border: 0; background: none;
  font-weight: 700; font-size: 17px; color: var(--navy);
  text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.line { display: grid; grid-template-columns: 74px 1fr; align-items: end; margin-top: 6px; padding-bottom: 6px; border-bottom: 1.5px solid rgba(23, 56, 90, .32); }
.line label { padding: 0 0 12px; font: 700 16px/1.2 var(--display); }
.line input { width: 100%; height: 48px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; font-size: 19px; color: var(--navy); }
.line input:focus { outline: none; }
.line input:focus-visible { outline: 3px solid var(--navy); outline-offset: -1px; }
.line:focus-within { border-bottom-color: var(--navy); box-shadow: 0 1.5px 0 var(--navy); }
.line:has(input[aria-invalid="true"]) { border-bottom-color: var(--coral-ink); box-shadow: 0 1.5px 0 var(--coral-ink); }
.card.is-done .card-head .card-promise, .card.is-done .urgent { display: none; }

.card-done .done-label { margin-top: 14px; font: 800 28px/1.1 var(--display); letter-spacing: -.015em; }
.sms { margin-top: 14px; }
.sms-from { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.sms-bubble {
  margin-top: 10px; padding: 14px 18px; max-width: 34ch;
  background: var(--sky); border-radius: 18px 18px 18px 6px;
  font-size: 18px; line-height: 1.45;
}
.sms-meta { margin-top: 8px; font-size: 17px; color: var(--slate); }
.done-note { margin-top: 12px; font-size: 17px; color: var(--slate); }
.done-demo { margin-top: 4px; color: var(--coral-ink); font-weight: 600; }
.card-done .btn { margin-top: 14px; }

/* Sections ----------------------------------------------------------------- */

.section-lede { margin-top: 16px; font-size: 20px; color: var(--slate); max-width: 40ch; }
h2 { font-weight: 800; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.02em; }
h3 { font-weight: 700; font-size: 23px; line-height: 1.2; letter-spacing: -.005em; }

.services { padding: clamp(80px, 10vw, 140px) 0; background: var(--white); }
.services-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.services-head { position: sticky; top: 120px; }
.services-photo { margin-top: 36px; overflow: hidden; border-radius: 14px; aspect-ratio: 4 / 3.4; }
.services-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 44px 40px; }
.service-list li { position: relative; padding-top: 22px; border-top: 2px solid var(--sky); }
.service-list h3 { display: flex; align-items: center; gap: 12px; }
.s-icon { display: inline-grid; place-items: center; flex: none; }
.s-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--coral-ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.service-list p { margin-top: 8px; padding-left: 40px; font-size: 18px; color: var(--slate); }

.first {
  position: relative; padding: clamp(80px, 10vw, 140px) 0;
  background: linear-gradient(to bottom, var(--sky-2), var(--sky));
}
.first-head { max-width: 760px; }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; position: relative; }
.steps::before {
  /* A calm line joining the steps, like a wake on the water. */
  content: ''; position: absolute; left: 30px; right: 30px; top: 29px; height: 0;
  border-top: 2px dashed rgba(23, 56, 90, .3);
}
.steps li { position: relative; }
.n {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--white); box-shadow: inset 0 0 0 2px var(--navy);
  font: 800 26px/1 var(--display); color: var(--navy);
}
.steps li:first-child .n { background: var(--coral); box-shadow: none; }
.steps p { margin-top: 18px; font-size: 18px; max-width: 28ch; }
.doctor { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: clamp(64px, 8vw, 110px); }
.doctor-photo { overflow: hidden; border-radius: 14px; aspect-ratio: 3 / 2; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.doctor-copy h3 { font-size: 34px; font-weight: 800; letter-spacing: -.015em; }
.doctor-copy p { margin-top: 14px; font-size: 19px; color: var(--navy); }
.doctor-copy p + p { color: var(--slate); }

.pay { padding: clamp(80px, 10vw, 140px) 0; background: var(--white); }
.pay-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.pay-copy h3 { margin-top: 36px; }
.pay-copy p { margin-top: 10px; font-size: 19px; color: var(--slate); max-width: 52ch; }
.plan {
  position: relative; overflow: hidden;
  padding: 34px 34px 30px; border-radius: 16px;
  background: linear-gradient(160deg, #1D4570 0%, var(--navy) 46%, var(--deep) 100%);
  color: #fff;
}
.plan::after {
  /* The morning sun from the mark, rising in the corner of the plan card. */
  content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle at 40% 60%, rgba(239, 122, 105, .55), rgba(239, 122, 105, 0) 66%);
}
.plan-label { font-weight: 700; font-size: 17px; color: var(--sky); }
.plan-name { margin-top: 4px; font: 800 36px/1.05 var(--display); letter-spacing: -.015em; color: #fff; }
.plan-price { margin-top: 18px; font-size: 19px; color: var(--sky); }
.plan-price .amt { font: 800 56px/1 var(--display); color: #fff; letter-spacing: -.02em; margin-right: 4px; }
.plan-price .amt-sm { font-weight: 700; color: #fff; }
.plan-list { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(220, 234, 244, .25); display: grid; gap: 10px; }
.plan-list li { position: relative; padding-left: 30px; font-size: 18px; color: #fff; }
.plan-list li::before { content: ''; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 2.5px solid var(--coral); border-bottom: 2.5px solid var(--coral); transform: rotate(-45deg); }
.plan-foot { margin-top: 18px; font-size: 17px; color: var(--sky); }

.sos { padding: clamp(72px, 9vw, 120px) 0; background: var(--deep); color: #fff; position: relative; overflow: hidden; }
.sos::before {
  content: ''; position: absolute; inset: auto 0 0 0; height: 70%;
  background: url(img/water.jpg) 50% 50% / cover no-repeat, #17385A;
  background-blend-mode: luminosity; opacity: .14;
  -webkit-mask: linear-gradient(to top, #000, transparent); mask: linear-gradient(to top, #000, transparent);
}
.sos-grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.sos h2 { color: #fff; }
.sos-lede { margin-top: 18px; font-size: 21px; max-width: 40ch; color: #fff; }
.sos-after { margin-top: 12px; font-size: 18px; color: var(--sky); max-width: 44ch; }
.sos-num {
  display: inline-flex; align-items: center; min-height: 64px;
  font: 800 clamp(40px, 4.4vw, 60px)/1 var(--display); letter-spacing: -.02em;
  color: #fff; text-decoration: none; font-variant-numeric: tabular-nums;
  border-bottom: 4px solid var(--coral);
}
.sos-num:hover { color: var(--sky); }
.sos-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 8px; }
.sos-list li { position: relative; padding-left: 26px; font-size: 18px; color: var(--sky); }
.sos-list li::before { content: ''; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }

.visit { position: relative; background: var(--sky); }
.visit-photo { height: clamp(420px, 52vw, 720px); overflow: hidden; }
.visit-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; filter: saturate(.92) brightness(1.04); }
.visit-card {
  position: relative; z-index: 2;
  max-width: 560px; margin: -260px 0 0 var(--gutter); padding: 40px 40px 34px;
  background: var(--white); border-radius: 16px;
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .36);
}
.visit-addr { margin-top: 18px; font: 700 23px/1.4 var(--display); }
.visit-card > p:not(.visit-addr) { margin-top: 8px; font-size: 18px; color: var(--slate); }
.week { margin: 24px 0 0; }
.week > div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 0; border-top: 1.5px solid var(--sky); font-size: 18px; }
.week dt { font-weight: 600; }
.week dd { margin: 0; color: var(--slate); font-variant-numeric: tabular-nums; }
.week > div.today dt::after { content: ' (Today)'; color: var(--coral-ink); font-weight: 700; }
.week > div.today dd { color: var(--navy); font-weight: 600; }
.visit-gap { height: clamp(60px, 8vw, 110px); }

.foot { background: var(--deep); color: #fff; padding: 64px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; align-items: start; }
.foot-brand { display: inline-flex; }
.foot-brand .logo { --lg: 32px; }
.foot-grid > p { font-size: 18px; line-height: 1.6; color: var(--sky); }
.foot-grid a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 600; text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 5px; }
.foot-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(220, 234, 244, .2); font-size: 16px; color: var(--sky); }

/* Load moment: the lake stills, then the card settles ----------------------- */

@media (prefers-reduced-motion: no-preference) {
  .motion .shore-img { animation: dawn 1.8s ease-out both; }
  .motion .hero h1::after { animation: still 2.6s cubic-bezier(.2, .7, .2, 1) .2s both; }
  .motion .card { animation: settle 1.2s var(--ease) .5s both; }
  .motion .opts .ink { transition: clip-path .42s cubic-bezier(.5, 0, .3, 1); }
  .motion:not(.ready) .shore-img,
  .motion:not(.ready) .hero h1::after,
  .motion:not(.ready) .card { animation-play-state: paused; }
}
@keyframes dawn { from { filter: saturate(.7) brightness(.9) contrast(.95); } }
@keyframes still { from { transform: scaleY(-1) scaleX(1.05) skewX(-5deg); } }
@keyframes settle { from { transform: translateY(18px); } }

/* Widths ------------------------------------------------------------------- */

@media (max-width: 1279px) {
  .nav a { padding: 0 9px; }
  .top-call { display: none; }
  .stage {
    height: 920px; max-height: none; --cardw: 0px; --h1w: min(480px, 46cqw);
    --photo-x: clamp(calc(100cqw - var(--photo-w) / 2), calc((var(--gutter) + var(--h1w) + 100cqw) / 2 + 30px), calc(var(--photo-w) / 2));
  }
  .hero { padding-bottom: 72px; background: linear-gradient(to bottom, var(--white), var(--sky-2)); }
  .card-wrap { position: relative; top: auto; right: auto; width: auto; max-width: 600px; margin: -48px auto 0; padding: 0 var(--gutter); }
  .hero-cta { display: inline-flex; }
}

@media (max-width: 1099px) {
  .nav, .top-call { display: none; }
  .burger { display: block; }
  .top-cta { margin-left: auto; }
  .top-cta + .burger { margin-left: 0; }
}

@media (max-width: 959px) {
  .top-cta { display: none; }
  .top-cta + .burger { margin-left: auto; }
  .services-grid, .pay-grid, .sos-grid, .doctor { grid-template-columns: 1fr; }
  .services-head { position: static; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .steps::before { display: none; }
  .visit-card { margin: -120px var(--gutter) 0; max-width: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .stage { height: auto; overflow: visible; container-type: normal; background: none; padding-top: 76px; }
  .shore { position: relative; height: 256px; overflow: hidden; }
  .shore-img { left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: none; }
  .mist { display: none; }
  .horizon-words, .hero-under { position: static; width: auto; padding: 0 var(--gutter); }
  .hero-under { display: flex; flex-direction: column; }
  .lede { order: 1; }
  .hero-cta { order: 2; }
  .contact { order: 3; }
  .horizon-words { padding-top: 22px; }
  .hero h1 { font-size: clamp(36px, 9.6vw, 48px); line-height: 1.06; transform: none; }
  .hero h1::after { display: none; }
  .lede { margin-top: 12px; font-size: 18px; }
  .contact { margin-top: 16px; }
  .call { min-height: 56px; }
  .call-num { font-size: 30px; }
  .hero-cta { width: 100%; }
  .hero { padding-bottom: 56px; }
  .card-wrap { margin-top: 32px; }
}

@media (max-width: 599px) {
  .brand .logo { --lg: 25px; }
  .card { padding: 22px 18px 14px; }
  .card::before { inset: 7px; }
  .card h2 { font-size: 28px; }
  .row legend { float: none; width: auto; padding: 10px 0 2px; }
  .opts { margin-left: -14px; }
  .line { grid-template-columns: 1fr; }
  .line label { padding: 12px 0 0; }
  .service-list { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: block; left: 29px; right: auto; top: 30px; bottom: 30px; width: 0; height: auto; border-top: 0; border-left: 2px dashed rgba(23, 56, 90, .3); }
  .steps li { display: grid; grid-template-columns: 60px 1fr; gap: 18px; align-items: center; }
  .steps p { margin-top: 0; }
  .plan { padding: 28px 22px 24px; }
  .visit-card { padding: 28px 22px 24px; margin-top: -80px; }
  .foot-grid { grid-template-columns: 1fr; gap: 14px; }
}
