/* Clearwater Dental Studio: demo clinic site */
:root {
  --paper: #f6faf9;
  --ink: #0e3b3f;
  --text: #28494c;
  --teal: #0e7c7b;
  --teal-deep: #0a5f5e;
  --sea: #dcefe9;
  --sky: #dcebf6;
  --peach: #ffd9c7;
  --line: rgba(14, 59, 63, 0.15);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(18px, 5vw, 56px);
  --tooth: #e6d8b2;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
svg { display: block; max-width: 100%; }
a { color: var(--teal-deep); }
h1, h2, h3, p, ul, fieldset, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2 { font-family: var(--display); font-weight: 600; color: var(--ink); line-height: 1.08; letter-spacing: -0.015em; }
h3 { font-weight: 700; color: var(--ink); line-height: 1.3; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - var(--gutter) * 2); margin-inline: auto; }
.muted { opacity: 0.75; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 12px var(--gutter); background: rgba(246, 250, 249, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.35rem; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.97rem; }
.nav a:hover { color: var(--teal); }
.call { text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.93rem; white-space: nowrap; }
.call:hover { background: var(--teal-deep); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 28px; border: 2px solid var(--teal); border-radius: 999px; background: var(--teal); color: #fff; font: 700 1.02rem/1 var(--body); text-decoration: none; cursor: pointer; transition: background 0.15s, transform 0.15s; }
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--sea); border-color: var(--sea); }
.btn-outline { background: transparent; border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.link { display: block; margin: 10px auto 0; background: none; border: 0; text-decoration: underline; cursor: pointer; font: inherit; color: var(--text); }

/* Hero */
.hero { padding: clamp(36px, 7vw, 88px) 0 clamp(48px, 8vw, 100px); background: radial-gradient(60% 70% at 85% 10%, var(--sky), transparent 70%), radial-gradient(50% 60% at 0% 100%, var(--sea), transparent 70%), var(--paper); }
.hero-grid { display: grid; gap: 44px; align-items: start; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); max-width: 14ch; }
.lead { margin-top: 22px; max-width: 46ch; font-size: clamp(1.1rem, 1.9vw, 1.25rem); }
.trust { margin-top: 28px; display: grid; gap: 12px; }
.trust li { position: relative; padding-left: 32px; font-weight: 600; color: var(--ink); }
.trust li::before { content: ""; position: absolute; left: 3px; top: 0.35em; width: 14px; height: 8px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }

/* Booking card */
.book { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: clamp(20px, 3vw, 34px); box-shadow: 0 30px 60px -30px rgba(14, 59, 63, 0.35); }
.book h2 { font-size: 1.7rem; margin-bottom: 18px; }
fieldset { border: 0; margin-bottom: 18px; min-width: 0; }
legend { font-weight: 700; color: var(--ink); margin-bottom: 9px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.chip span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 0.96rem; background: #fff; transition: background 0.15s, border-color 0.15s; cursor: pointer; }
.chip:hover span { border-color: var(--teal); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.chip input:disabled { cursor: not-allowed; }
.chip input:disabled + span { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; border-style: dashed; }
.chip-alert span { border-color: #f0b7a2; background: #fff4ee; }
.chip-alert input:checked + span { background: #b4411f; border-color: #b4411f; }
.day-chip span { display: grid; text-align: center; line-height: 1.25; padding: 8px 14px; min-width: 62px; }
.day-chip b { font-size: 1.05rem; }
.day-chip small { font-size: 0.78rem; font-weight: 600; opacity: 0.8; }
.urgent { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fff4ee; border: 1px solid #f0b7a2; font-size: 0.95rem; color: #6b2a14; }
.urgent a { color: inherit; font-weight: 700; }
.row { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; color: var(--ink); }
input[type="text"], input[type="tel"] { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
input[aria-invalid="true"] { border-color: #c1351d; }
.err { color: #b02e1a; font-weight: 600; }
.picked { margin-bottom: 14px; padding: 11px 14px; border-radius: 12px; background: var(--sea); color: var(--ink); font-weight: 600; font-size: 0.97rem; }
.sent { display: grid; gap: 14px; text-align: center; }
.sent h3 { font-family: var(--display); font-weight: 600; font-size: 1.8rem; }
.demo-note { font-size: 0.85rem; opacity: 0.8; }

/* Sections */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section-sea { background: var(--sea); }
.title { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.sub { margin-top: 14px; max-width: 54ch; }

/* Treatments */
.tx-list { margin-top: 36px; border-top: 1px solid var(--line); }
.tx-list li { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding: 24px 12px; border-bottom: 1px solid var(--line); align-items: baseline; transition: background 0.15s; }
.tx-list li:hover { background: #fff; }
.tx-list h3 { font-size: 1.2rem; }
.tx-list p { max-width: 54ch; }
.dur { display: none; color: var(--text); opacity: 0.75; font-weight: 600; }
.cost { font-weight: 700; color: var(--ink); white-space: nowrap; text-align: right; }

/* Whitening */
.whiten { display: grid; gap: 40px; align-items: center; }
.smile-wrap { background: #fff; border-radius: 28px; padding: clamp(14px, 3vw, 30px); border: 1px solid var(--line); }
.smile { width: 100%; height: auto; }
.teeth rect { fill: var(--tooth); stroke: rgba(14, 59, 63, 0.18); stroke-width: 1.5; transition: fill 0.35s ease; }
.teeth .lower { opacity: 0.94; }
.shade-label { display: block; margin-top: 30px; font-weight: 700; color: var(--ink); }
input[type="range"] { width: 100%; height: 40px; margin: 6px 0 0; accent-color: var(--teal); cursor: pointer; }
.shade-scale { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 600; opacity: 0.8; margin-bottom: 14px; }
.shade-text { min-height: 3.4em; margin-bottom: 18px; color: var(--ink); font-weight: 600; }

/* Team */
.team { margin-top: 36px; display: grid; gap: 34px; }
.team article { display: grid; gap: 6px; }
.avatar { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 1.7rem; color: var(--ink); margin-bottom: 10px; }
.a1 { background: var(--peach); }
.a2 { background: var(--sky); }
.a3 { background: var(--sea); box-shadow: inset 0 0 0 2px var(--ink); }
.role { color: var(--teal-deep); font-weight: 700; font-size: 0.95rem; }

/* Voices */
.voices { margin-top: 34px; display: grid; gap: 18px; }
.voices figure { background: #fff; border-radius: 20px; padding: 26px; display: grid; gap: 16px; align-content: space-between; }
.voices blockquote { font-family: var(--display); font-size: 1.2rem; line-height: 1.45; color: var(--ink); }
.voices figcaption { font-weight: 700; font-size: 0.92rem; opacity: 0.75; }
.fine { margin-top: 20px; font-size: 0.9rem; opacity: 0.8; }

/* FAQ */
.faq-grid { display: grid; gap: 30px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--teal); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 20px; max-width: 56ch; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; padding: clamp(52px, 8vw, 90px) 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { padding: 40px 0; font-size: 0.97rem; background: var(--paper); }
.foot { display: grid; gap: 22px; }

@media (min-width: 560px) {
  .row { grid-template-columns: 1fr 1fr; }
  .voices { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1.05fr; }
  .whiten { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .faq-grid { grid-template-columns: 1fr 1.4fr; gap: 64px; }
  .foot { grid-template-columns: 1.2fr 1fr 1fr; }
  .tx-list li { grid-template-columns: 1fr 90px 160px; }
  .dur { display: block; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .site-header { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
