/* ============================================================
   Brighter Smiles Dental Hygiene Studio
   Type: Fraunces (display) · Karla (body) · Pinyon Script (wordmark)
   The "Brighter Smiles" wordmark is Pinyon Script, matching the
   business card. Never set the wordmark in anything else.
   ============================================================ */

/* ---------- FONTS (self-hosted, no external requests) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/fraunces-variable-normal-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/fraunces-variable-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/karla-variable-normal-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Pinyon Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/pinyon-script-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Pinyon Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/pinyon-script-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- PALETTE ---------- */
:root {
  --ground:      #FAFBF9;  /* page */
  --panel:       #EFEFEA;  /* warm band */
  --panel2:      #DEE9E3;  /* seafoam band */
  --accent:      #E9CFC5;  /* blush */
  --forest:      #22403A;  /* headings, dark bands */
  --forest-deep: #142522;  /* footer */
  --ink:         #22403A;
  --muted:       #6E837B;
  --body:        #4E635C;
  --line:        #C9D8D1;
  --cream:       #FAFBF9;
  --cream-warm:  #EFEFEA;
  --sage:        #6E837B;
  --sage-light:  #9FBBB0;
  --gold:        #E9CFC5;  /* accent on dark bands */
  --shadow:      rgba(34,64,58,0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Karla', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--ground);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
em { font-style: italic; color: var(--muted); }
:focus-visible { outline: 2px solid var(--muted); outline-offset: 3px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- NAV ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px;
  /* opaque on purpose: a translucent bar lets the fee list show
     through it and read as an overlap */
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  font-family: 'Pinyon Script', cursive;   /* the wordmark — business card face */
  font-size: 30px; color: var(--forest); line-height: 1;
  text-decoration: none;
  display: flex; align-items: center; gap: 12px;
}
.nav-logo img { width: 38px; height: 38px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 14.5px; letter-spacing: 0.01em;
  transition: color 0.2s;
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-bottom-color: var(--line); }
.nav-book {
  background: var(--forest); color: var(--ground) !important;
  padding: 10px 22px; border-radius: 26px; border: 1px solid var(--forest) !important;
}
.nav-book:hover { opacity: 0.92; color: var(--ground) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--ink); margin: 5px 0; }

/* ---------- PAGE HEADER (interior pages) ---------- */
.page-header {
  background: var(--forest); color: var(--ground);
  padding: 138px 24px 74px; text-align: center;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: attr(data-ghost);
  position: absolute; top: 55%; left: 50%; transform: translate(-50%,-50%);
  font-family: 'Fraunces', Georgia, serif; font-weight: 300;
  font-size: 26vw; color: #2A4E45; opacity: 0.5;
  white-space: nowrap; pointer-events: none; z-index: 0; letter-spacing: -0.03em;
}
.page-header > * { position: relative; z-index: 1; }
.page-header .eyebrow { color: var(--sage-light); }
.page-header h1 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 300;
  font-size: clamp(34px, 5.4vw, 54px); color: var(--ground); line-height: 1.07;
  letter-spacing: -0.02em; text-wrap: balance;
}
.page-header .lead {
  font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 300;
  font-size: clamp(18px,2.4vw,23px); color: var(--sage-light);
  max-width: 600px; margin: 18px auto 0; line-height: 1.45;
}

/* ---------- SHARED ---------- */
section { padding: 80px 40px; scroll-margin-top: 84px; }
.wrap { max-width: 1080px; margin: 0 auto; }
.wrap-narrow { max-width: 760px; margin: 0 auto; }
.eyebrow {
  font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin-bottom: 12px;
}
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 300;
  letter-spacing: -0.02em; text-wrap: balance; color: var(--ink);
}
h2 { font-size: clamp(27px, 3.6vw, 38px); line-height: 1.14; margin-bottom: 18px; }
p { color: var(--body); }

.btn-gold, .btn-sage {
  display: inline-block; text-decoration: none;
  background: var(--forest); color: var(--ground);
  padding: 13px 28px; border-radius: 26px;
  font-size: 15px; letter-spacing: 0.01em;
  border: 1px solid var(--forest);
  transition: transform 0.2s, opacity 0.2s;
}
.btn-gold:hover, .btn-sage:hover { transform: translateY(-2px); opacity: 0.92; }
/* on the forest bands the button has to invert or it disappears */
.cta-band .btn-gold, .book-card .btn-gold, .hero .btn-gold, .page-header .btn-gold {
  background: var(--accent); color: #3A2A24; border-color: var(--accent);
}
.btn-ghost {
  display: inline-block; text-decoration: none;
  background: transparent; color: var(--ink);
  padding: 13px 28px; border-radius: 26px;
  font-size: 15px; border: 1px solid var(--line);
  transition: transform 0.2s, border-color 0.2s;
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--muted); }
.center { text-align: center; }

/* ---------- TIMELINE STEPS (how it works, homepage) ---------- */
.steps {
  --step-gap: 34px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--step-gap);
  position: relative;
}
.steps.three { grid-template-columns: repeat(3, 1fr); }
/* the rule runs from the first dot to the last one, not past it */
.steps::before {
  content: ""; position: absolute; top: 11px; height: 1px; background: var(--line);
  left: 6px;
  right: calc((100% - 3 * var(--step-gap)) / 4 - 6px);
}
.steps.three::before {
  right: calc((100% - 2 * var(--step-gap)) / 3 - 6px);
}
.step { position: relative; padding-top: 40px; }
.step::before {
  content: ""; position: absolute; top: 5px; left: 0;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--ground); border: 1px solid var(--muted);
}
.step .n {
  position: absolute; top: 3px; left: 24px;
  font-size: 11.5px; letter-spacing: 0.2em; color: var(--muted);
}
.step h3 { font-size: 21px; margin-bottom: 7px; }
.step p { font-size: 15px; margin: 0; max-width: 32ch; }
.band-panel .step::before { background: var(--panel); }
.band-panel2 .step::before { background: var(--panel2); }

/* ---------- THE HYGIENIST QUOTE BOX ---------- */
.quote-band { background: var(--panel2); }
.aboutrow {
  display: grid; grid-template-columns: 210px 1fr; gap: 46px; align-items: center;
}
.aboutrow .circ {
  width: 210px; height: 210px; border-radius: 50%;
  object-fit: cover; object-position: 50% 30%;
  display: block; background: var(--panel);
}
.aboutrow blockquote {
  margin: 0; font-family: 'Fraunces', Georgia, serif;
  font-style: italic; font-weight: 300;
  font-size: clamp(20px, 2.6vw, 26px); line-height: 1.45;
  max-width: 34ch; color: var(--ink);
}
.aboutrow .sig {
  font-family: 'Pinyon Script', cursive; font-size: 34px;
  color: var(--forest); margin-top: 16px; line-height: 1.35;
}
.aboutrow .cred {
  font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  margin-top: 6px;
}

/* ---------- ASSURANCE (three boxes) ---------- */
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.as { display: flex; gap: 14px; }
.as svg { flex: none; margin-top: 3px; stroke: var(--muted); }
.as h4 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 17px; margin: 0 0 3px; }
.as p { margin: 0; font-size: 14px; color: var(--body); }

/* ---------- FEE LIST ---------- */
.fees { display: grid; grid-template-columns: 1fr 1fr; gap: 46px 52px; }
.fgroup h3 {
  font-size: 21px; margin-bottom: 10px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
/* grid, not flex — the name column shrinks and wraps instead of
   colliding with the price */
.frow {
  display: grid; grid-template-columns: 1fr auto; gap: 18px;
  align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.frow:last-child { border-bottom: none; }
.frow .nm { color: var(--body); min-width: 0; }
.frow .nm small { display: block; font-size: 12.5px; color: var(--muted); }
.frow .pr {
  font-family: 'Fraunces', serif; font-size: 17.5px; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.callout {
  background: var(--panel2); border-radius: 22px; padding: 26px 30px;
  margin-top: 38px; display: flex; gap: 18px; align-items: center;
}
.callout p { margin: 0; color: var(--body); font-size: 15px; }
.callout svg { flex: none; stroke: var(--ink); }

/* ---------- CTA BAND ---------- */
.cta-band { background: var(--forest); color: var(--ground); text-align: center; }
.cta-band h2 { color: var(--ground); }
.cta-band p { color: var(--sage-light); }
.cta-band .eyebrow { color: var(--sage-light); }
.cta-band .tagline {
  font-family: 'Pinyon Script', cursive; font-size: clamp(34px,5vw,46px);
  color: var(--accent); margin: 2px 0 24px; line-height: 1.4;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--forest-deep); color: var(--sage-light);
  text-align: center; padding: 44px 24px;
  font-size: 14px;
}
footer .flogo { width: 68px; height: 68px; margin-bottom: 14px; opacity: 0.92; }
footer .fnav { margin: 16px 0; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
footer .fnav a { text-decoration: none; color: var(--sage-light); font-size: 14px; }
footer .fnav a:hover { color: var(--accent); }
footer .fcall {
  color: var(--cream); text-decoration: none; font-size: 15px;
  letter-spacing: 0.04em; display: inline-block; margin-bottom: 12px;
}
footer .fcall:hover { color: var(--gold); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .fees { grid-template-columns: 1fr; gap: 8px; }
  .assure { grid-template-columns: 1fr; gap: 24px; }
  .steps, .steps.three { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { display: none; }
  .aboutrow { grid-template-columns: 1fr; gap: 24px; text-align: center; justify-items: center; }
  .aboutrow blockquote { max-width: none; }
}
@media (max-width: 860px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ground); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 24px 18px; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; font-size: 16px; border-bottom: none; }
  .nav-book { margin-top: 8px; }
  .nav-toggle { display: block; }
  section { padding: 58px 24px; }
  nav { padding: 12px 20px; }
  .nav-logo { font-size: 24px; gap: 9px; }
  .nav-logo img { width: 32px; height: 32px; }
  .page-header { padding: 118px 24px 58px; }
  .callout { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- STICKY MOBILE CTA ---------- */
/* Injected by nav.js. Desktop already has the nav CTA in view, so this is
   phone-only; body gets clearance so the footer never hides behind it. */
.stickybar { display: none; }
@media (max-width: 860px) {
  .stickybar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--forest-deep); border-top: 1px solid rgba(159,187,176,0.22);
  }
  .stickybar a {
    flex: 1; text-align: center; padding: 13px 10px; border-radius: 999px;
    text-decoration: none; font-size: 15px; letter-spacing: 0.06em;
  }
  .stickybar .sb-call { color: var(--cream); border: 1px solid var(--sage-light); }
  .stickybar .sb-book { background: var(--gold); color: var(--forest-deep); font-weight: 500; }
  body { padding-bottom: 74px; }
}
