/* Sparsh Dental Care — site styles (mobile first, desktop from 900px) */

:root {
  --paper: #F3F7F6;
  --white: #FFFFFF;
  --ink: #0E2A2F;
  --ink-2: #45606A;
  --pine: #0F6B5C;
  --pine-dark: #0A5044;
  --mint: #D5ECE5;
  --mint-2: #BFE0D6;
  --lemon: #F4D35E;
  --line: #D3E2DE;
  --closed: #B8453A;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, sans-serif;

  --gutter: 20px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); }
a:hover { color: var(--pine-dark); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 5vw, 48px); }
p { margin: 0; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px;
}
.skip-link:focus { top: 8px; color: #fff; }

:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; }

.section-lead { margin-top: 12px; color: var(--ink-2); max-width: 36em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 700; text-decoration: none; line-height: 1;
  border: 2px solid transparent; border-radius: 14px; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sm { height: 42px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-pine { background: var(--pine); color: #fff; }
.btn-pine:hover { background: var(--pine-dark); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 247, 246, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { color: var(--pine); }
.brand-light { font-weight: 600; color: var(--ink-2); }
.site-nav { display: none; }

@media (max-width: 420px) { .brand-light { display: none; } }
@media (min-width: 900px) {
  .site-nav { display: flex; gap: 28px; margin-left: auto; margin-right: 8px; }
  .site-nav a { color: var(--ink-2); text-decoration: none; font-size: 16px; }
  .site-nav a:hover { color: var(--ink); }
}

/* ---------- Hero ---------- */
.hero { padding: 32px 0 56px; }
.hero-grid { display: grid; gap: 36px; }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font-size: 15px; font-weight: 700; margin-bottom: 20px;
}
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-2); }
.status.is-open .status-dot { background: #1FA77A; box-shadow: 0 0 0 4px rgba(31, 167, 122, .2); }
.status.is-closed .status-dot { background: var(--closed); }

.hero h1 { font-size: clamp(38px, 7.4vw, 66px); font-weight: 800; max-width: 15ch; }
.lead { margin-top: 20px; font-size: 19px; color: var(--ink-2); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; color: var(--ink-2); font-size: 16px; }
.hero-points li { display: flex; gap: 12px; align-items: baseline; }
.hero-points li::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--pine); transform: translateY(-2px); }

/* Photo sits in an arch, the outline of a tooth crown */
.hero-photo { margin: 0; position: relative; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 38% 50%;
  border-radius: 999px 999px 28px 28px;
}
.hero-photo::before {
  content: ""; position: absolute; inset: 18px -12px -12px 18px; z-index: -1;
  border-radius: 999px 999px 28px 28px; background: var(--mint);
}

@media (min-width: 900px) {
  .hero { padding: 64px 0 96px; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 72px; align-items: center; }
  .hero-photo { max-width: 460px; justify-self: end; width: 100%; }
}

/* ---------- Concern chooser ---------- */
.concern { background: var(--white); padding: 64px 0; border-block: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 24px; }
.chips button {
  min-height: 46px; padding: 8px 18px;
  font: 700 16px var(--font-body); color: var(--ink);
  background: var(--paper); border: 2px solid var(--line); border-radius: 999px; cursor: pointer;
}
.chips button:hover { border-color: var(--pine); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.answer {
  display: grid; gap: 24px; padding: 28px 24px; border-radius: 28px;
  background: var(--mint);
}
.answer-kind { font-size: 15px; font-weight: 700; color: var(--pine); }
.answer h3 { font-size: clamp(28px, 4vw, 40px); margin-top: 4px; }
.answer-main p#a-body { margin-top: 12px; max-width: 38em; }
.answer-facts { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--mint-2); border-radius: 18px; overflow: hidden; }
.answer-facts div { background: var(--white); padding: 16px; }
.answer-facts dt { font-size: 14px; color: var(--ink-2); }
.answer-facts dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 4.4vw, 28px); letter-spacing: -0.02em; }
.answer .btn { justify-self: start; }

@media (prefers-reduced-motion: no-preference) {
  .answer.is-changing { animation: swap .3s ease; }
  @keyframes swap { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

@media (min-width: 900px) {
  .concern { padding: 96px 0; }
  .answer { grid-template-columns: 1.3fr 1fr; padding: 40px; column-gap: 48px; align-items: center; }
  .answer .btn { grid-column: 1; }
  .answer-facts { grid-row: span 2; grid-template-columns: 1fr; }
  .answer-facts div { padding: 18px 24px; display: flex; justify-content: space-between; align-items: baseline; }
  .answer-facts dd { margin: 0; }
}

/* ---------- Prices ---------- */
.prices { padding: 64px 0; }
.prices-grid { display: grid; gap: 28px; }
.price-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.price-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.price-list b { font-family: var(--font-display); font-size: 21px; white-space: nowrap; }
.price-list b::before { content: "from "; font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--ink-2); }
.price-list li:first-child b::before { content: none; }

@media (min-width: 900px) {
  .prices { padding: 104px 0; }
  .prices-grid { grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }
  .prices-grid > div { position: sticky; top: 100px; }
}

/* ---------- Doctor ---------- */
.doctor { background: var(--ink); color: #E6EFEC; padding: 64px 0; }
.doctor-grid { display: grid; gap: 36px; align-items: center; }
.doctor-card {
  width: min(100%, 360px); aspect-ratio: 4 / 5;
  border-radius: 999px 999px 28px 28px; background: var(--pine);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 36px;
}
.doctor-initials { font-family: var(--font-display); font-weight: 800; font-size: 120px; line-height: 1; color: var(--mint); letter-spacing: -0.04em; }
.doctor h2 { color: #fff; }
.doctor-cred { margin-top: 8px; color: var(--lemon); font-weight: 700; }
.doctor-copy > p + p { margin-top: 16px; }
.doctor-copy > p:nth-of-type(2) { margin-top: 20px; }
.doctor-copy p { max-width: 36em; }
.doctor-facts { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 32px; }
.doctor-facts dt { font-size: 14px; color: #9FB8B2; }
.doctor-facts dd { margin: 2px 0 0; font-weight: 700; color: #fff; }

@media (min-width: 900px) {
  .doctor { padding: 104px 0; }
  .doctor-grid { grid-template-columns: 360px 1fr; gap: 80px; }
}

/* ---------- Hours + FAQ ---------- */
.hours-faq { padding: 64px 0; }
.hf-grid { display: grid; gap: 56px; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.hours-table th, .hours-table td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--line); }
.hours-table th { font-weight: 700; width: 40%; }
.hours-table td { color: var(--ink-2); }
.hours-table tr.is-today { background: var(--white); }
.hours-table tr.is-today th { box-shadow: inset 4px 0 0 var(--pine); }
.hours-table tr.is-today th::after { content: " (today)"; font-weight: 400; color: var(--pine); }
.emergency { margin-top: 20px; padding: 16px 18px; background: #FBF1CC; border-radius: 14px; font-size: 16px; }

.faq h2 { margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 600; color: var(--pine);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 36em; }

@media (min-width: 900px) {
  .hours-faq { padding: 104px 0; }
  .hf-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}

/* ---------- Book ---------- */
.book { background: var(--mint); padding: 64px 0; }
.book-grid { display: grid; gap: 32px; }
.book-copy p { margin-top: 12px; color: var(--ink-2); max-width: 30em; }
.book address { font-style: normal; margin-top: 24px; font-weight: 700; }
.map-link { display: inline-block; margin-top: 8px; font-weight: 700; }

.book-form { display: grid; gap: 18px; padding: 24px; background: var(--white); border-radius: 28px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 15px; font-weight: 700; padding: 0; }
.field legend { margin-bottom: 6px; }
.field input[type="text"], .field input[type="tel"], .field select {
  width: 100%; height: 52px; padding: 0 14px;
  font: 400 17px var(--font-body); color: var(--ink);
  background: var(--paper); border: 2px solid var(--line); border-radius: 12px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--pine); }
.field input[aria-invalid="true"] { border-color: var(--closed); }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented label {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px;
  border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--paper);
}
.segmented input { accent-color: var(--pine); width: 18px; height: 18px; margin: 0; }
.segmented label:has(input:checked) { border-color: var(--pine); background: var(--mint); }
.form-error { color: var(--closed); font-weight: 700; }

@media (min-width: 900px) {
  .book { padding: 104px 0; }
  .book-grid { grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
  .book-form { padding: 36px; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 28px 0 36px; font-size: 15px; color: var(--ink-2); }
.footer-inner { display: grid; gap: 6px; }
.credits { font-size: 13px; }

/* Atkinson draws a slashed zero; times, phone numbers and addresses read better in the display face */
.hours-table td, .status, .emergency a, .book address, .hero-points, .lead, .doctor-facts dd { font-family: var(--font-display); letter-spacing: 0; }
.status, .hours-table td { font-weight: 600; }
