/* Smile Matters new-patient ad page.
   Look: Tend (calm serif headings, arch photo frame, flat tinted surfaces) in her own
   website colors: navy #213E5B, sand #EAD4B4, sky #3D97BD (icons and rules only;
   white text fails on it). Structure: Swish location page. Phone mechanics: Aspen.
   design-references.md, Ross's pick 2026-11-09. */

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans-latin.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans-italic-latin.woff2") format("woff2");
  font-weight: 200 1000; font-style: italic; font-display: swap;
}

:root {
  /* Color: her brand navy and sand, with tinted neutrals around them */
  --color-navy: oklch(0.355 0.06 248);       /* #213E5B */
  --color-navy-deep: oklch(0.29 0.055 248);
  --color-sand: oklch(0.873 0.047 78);       /* #EAD4B4 */
  --color-sand-soft: oklch(0.952 0.024 78);
  --color-sky: oklch(0.62 0.1 230);          /* #3D97BD, icons and rules only */
  --color-paper: oklch(0.986 0.007 80);      /* page background */
  --color-tint: oklch(0.965 0.012 245);      /* cool band for rhythm */
  --color-surface: oklch(0.997 0.003 80);    /* form card */
  --color-ink: oklch(0.27 0.03 250);
  --color-muted: oklch(0.47 0.025 250);
  --color-line: oklch(0.86 0.025 78);
  --color-on-navy: oklch(0.97 0.012 80);
  --color-on-navy-muted: oklch(0.85 0.02 240);
  --color-star: oklch(0.74 0.14 75);
  --color-focus: oklch(0.62 0.1 230);
  --color-field-border: oklch(0.6 0.03 250);  /* 3.9:1 on the form card (ADA baseline: 3:1) */
  --color-disabled: oklch(0.6 0.03 250);

  /* Type */
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: clamp(0.88rem, 0.85rem + 0.15vw, 0.95rem);
  --step-0: clamp(1.06rem, 1.02rem + 0.2vw, 1.15rem);
  --step-1: clamp(1.22rem, 1.13rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.65rem, 1.4rem + 1.1vw, 2.3rem);
  --step-3: clamp(2.35rem, 1.75rem + 2.6vw, 3.6rem);

  /* Space and shape */
  --wrap: 72rem;
  --gutter: max(1.25rem, env(safe-area-inset-left, 0px));
  --gutter-r: max(1.25rem, env(safe-area-inset-right, 0px));
  --radius: 12px;
  --section-y: clamp(3.25rem, 2.4rem + 3.5vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  font-style: normal;
  line-height: 1.12;
  color: var(--color-navy);
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
p { margin: 0; text-wrap: pretty; }
blockquote { margin: 0; text-wrap: balance; }
a { color: var(--color-navy); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 4px; }
.nb { white-space: nowrap; }
.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 30;
  padding: 0.6rem 1rem; border-radius: 8px;
  background: var(--color-navy); color: var(--color-on-navy); font-weight: 700;
}
.skip-link:focus { top: 0.75rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

/* Header: logo and phone, no menu (single-purpose ad page) */
.site-header { border-bottom: 1px solid var(--color-line); background: var(--color-paper); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }
.site-header__logo img { width: clamp(150px, 30vw, 190px); height: auto; }
.site-header__call {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 700; text-decoration: none; color: var(--color-navy); white-space: nowrap;
}
.site-header__call svg { flex: none; }
.site-header__call:hover { color: var(--color-navy-deep); text-decoration: underline; text-underline-offset: 4px; }

/* Buttons and the CTA row ("Request an appointment or call ...") */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.1rem; padding: 0.7rem 1.6rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 var(--step-0)/1.2 var(--font-body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn--primary { background: var(--color-navy); color: var(--color-on-navy); }
.btn--primary:hover { background: var(--color-navy-deep); }
.btn:disabled, .btn:disabled:hover { background: var(--color-disabled); color: var(--color-on-navy); cursor: progress; }
.btn--outline { background: transparent; color: var(--color-navy); border-color: var(--color-navy); }
.btn--outline:hover { background: var(--color-sand-soft); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; margin-top: 1.9rem; }
.cta-row__call { white-space: nowrap; }
.cta-row__or { color: var(--color-muted); margin-right: 0.35rem; }
.phone-link {
  font-weight: 700; color: var(--color-navy); white-space: nowrap;
  text-decoration: underline; text-decoration-color: var(--color-sky);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.phone-link:hover { text-decoration-color: var(--color-navy); }
.phone-link--light { color: var(--color-on-navy); text-decoration-color: var(--color-sand); }
.phone-link--light:hover { text-decoration-color: var(--color-on-navy); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 1.6rem + 4vw, 5rem) clamp(1rem, 0.5rem + 1.5vw, 1.75rem); }
.hero__grid {
  display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.eyebrow { color: var(--color-muted); font-weight: 600; letter-spacing: 0.02em; margin-bottom: 0.9rem; }
.hero__lead { font-size: var(--step-1); line-height: 1.5; margin-top: 1.2rem; color: var(--color-ink); }
.hero__note { margin-top: 1rem; color: var(--color-muted); font-size: var(--step--1); }
.hero__address { margin-top: 1.1rem; display: flex; align-items: flex-start; gap: 0.5rem; font-weight: 600; color: var(--color-ink); }
.hero__address svg { flex: none; color: var(--color-sky); margin-top: 0.2rem; }

.proof {
  background: var(--color-sand-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  display: grid; gap: 1.1rem;
}
/* The rating carries the card on its own since the 2014 quotes were cut (2026-11-11) */
.proof__rating { display: grid; gap: 0.8rem; justify-items: start; }
.stars { color: var(--color-star); display: inline-flex; }
.stars svg { width: clamp(7.5rem, 6.5rem + 3vw, 9.5rem); height: auto; }
.proof__label {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--step-2); line-height: 1.2; color: var(--color-navy);
}

/* Sections */
.section { padding-block: var(--section-y); }
.section--sand { background: var(--color-sand-soft); }
.section--tint { background: var(--color-tint); }
.section h2 { margin-bottom: 1.6rem; }

.pay-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.pay-card {
  background: var(--color-sand-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  display: grid; gap: 0.9rem; align-content: start;
}
.pay-card__icon { color: var(--color-sky); }

/* Heading beside its paragraph, so short sections fill the column */
.split { display: grid; gap: 1rem 3rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.split h2 { margin-bottom: 0; }
.split__body { font-size: var(--step-1); line-height: 1.55; text-wrap: wrap; } /* fill the column; balancing left a short-line strip */
.split__body p { text-wrap: wrap; }
.split__body > p + p { margin-top: 1rem; }

/* What happens next: a real sequence, so the numbers carry meaning */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; position: relative; }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; align-content: start; position: relative; }
.step__num {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-paper); border: 2px solid var(--color-navy); color: var(--color-navy);
  font: 600 var(--step-1)/1 var(--font-display);
  position: relative; z-index: 1;
}
.step p { padding-top: 0.45rem; }
.steps::before { /* the line joining the numbers (vertical on phones) */
  content: ""; position: absolute; left: calc(1.375rem - 1px); top: 1.4rem; bottom: 1.4rem;
  width: 2px; background: var(--color-sky); opacity: 0.6;
}

/* Closing band with the form */
.closing { background: var(--color-navy); color: var(--color-on-navy); padding-block: var(--section-y); scroll-margin-top: 1rem; }
.closing__grid { display: grid; gap: 2rem 3.5rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
.closing__line { font: 560 var(--step-2)/1.15 var(--font-display); color: var(--color-on-navy); text-wrap: balance; }
.closing__call { margin-top: 1.1rem; color: var(--color-on-navy-muted); font-size: var(--step-1); text-align: center; }

.lead-form {
  background: var(--color-surface); color: var(--color-ink);
  border-radius: var(--radius); padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  display: grid; gap: 1rem;
}
.lead-form__row { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.lead-form__field { display: grid; gap: 0.35rem; }
.lead-form label, .lead-form legend { font-weight: 700; font-size: var(--step--1); color: var(--color-navy); }
.lead-form input[type="text"], .lead-form input[type="tel"], .lead-form input[type="email"] {
  width: 100%; min-height: 3rem; padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--color-field-border); border-radius: 8px;
  background: var(--color-paper); color: var(--color-ink);
  font: 400 var(--step-0)/1.3 var(--font-body);
}
.lead-form input:focus-visible { border-color: var(--color-navy); }
.lead-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.lead-form legend { padding: 0; margin-bottom: 0.4rem; }
.lead-form__optional { font-weight: 400; color: var(--color-muted); }
.lead-form__key { font-size: var(--step--1); color: var(--color-muted); }
.lead-form__req { color: var(--color-navy); }
.lead-form__choices { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.lead-form__choice { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--color-ink); font-size: var(--step-0); }
.lead-form__choice input { width: 1.25rem; height: 1.25rem; accent-color: var(--color-navy); }
.lead-form .btn { width: 100%; margin-top: 0.3rem; }
.lead-form__privacy { font-size: var(--step--1); color: var(--color-muted); }

/* Footer */
.site-footer { padding-block: 2.5rem 3rem; font-size: var(--step--1); color: var(--color-muted); }
.site-footer__grid { display: grid; gap: 0.35rem; }
.site-footer__name { font-weight: 700; color: var(--color-navy); }

/* Thank-you page: message in a sand panel, footer held to the bottom of the screen */
body.page-thanks { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.page-thanks main { flex: 1; }
.thanks { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.thanks__grid { display: grid; gap: 1.2rem; background: var(--color-sand-soft); border-radius: var(--radius); padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); }
.page-thanks .site-footer { border-top: 1px solid var(--color-line); }
@media (max-width: 479px) { /* two lines on phones: drop the separator rather than strand it */
  .thanks .eyebrow .sep { display: none; }
  .thanks .eyebrow .nb { display: block; }
}
.thanks__grid p:not(.eyebrow) { font-size: var(--step-1); }

/* Phone: pinned request-and-call bar (Aspen). Hidden on wide screens and while the form is on screen. */
.mobile-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0.5rem;
  padding: 0.6rem var(--gutter-r) calc(0.6rem + env(safe-area-inset-bottom, 0px)) var(--gutter);
  background: var(--color-paper); border-top: 1px solid var(--color-line);
  transition: transform 200ms ease;
}
.mobile-cta-bar .btn { min-height: 2.9rem; padding-inline: 0.8rem; font-size: var(--step--1); }
.mobile-cta-bar.is-hidden { transform: translateY(110%); }
body.has-cta-bar { padding-bottom: 4.6rem; }

/* Entrance: one short staggered reveal on the hero only */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero__text > *, .proof { animation: rise 320ms ease-out both; }
.hero__text > :nth-child(2) { animation-delay: 60ms; }
.hero__text > :nth-child(3) { animation-delay: 120ms; }
.hero__text > :nth-child(4) { animation-delay: 180ms; }
.hero__text > :nth-child(5) { animation-delay: 220ms; }
.proof { animation-delay: 260ms; }
@media (prefers-reduced-motion: reduce) {
  .hero__text > *, .proof { animation: none; }
  .mobile-cta-bar { transition: none; }
}

@media (min-width: 560px) {
  .lead-form__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 760px) {
  .pay-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
  .step p { padding-top: 0; }
  /* ends at the centre of step 3: its column is (100% - 2 gaps) / 3 wide */
  .steps::before { left: 1.375rem; right: calc((100% - 4rem) / 3 - 1.375rem); top: calc(1.375rem - 1px); bottom: auto; width: auto; height: 2px; }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .closing__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .mobile-cta-bar { display: none; }
  body.has-cta-bar { padding-bottom: 0; }
}
