/* ==========================================================================
   Clearview — independent dental practice
   Theme tokens first. The online editor edits this block.
   ========================================================================== */

:root {
  --accent: #6d3a5d;          /* plum: buttons, links */
  --accent-dark: #552b48;
  --accent-text: #6d3a5d;
  --accent-soft: #f3e8ef;
  --peach: #f5c6a5;
  --mint: #cfe7dd;

  --ink: #1d1720;
  --ink-2: #4f4652;
  --ink-3: #7b7280;

  --surface: #fbf8f4;
  --surface-2: #f4eee7;
  --card: #ffffff;
  --border: #e9e1d8;

  --radius: 26px;
  --radius-sm: 14px;
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, system-ui, sans-serif;

  --container: 1200px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -.02em; }
h1 { font-size: clamp(2.8rem, 6.2vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0; }
.i { font-style: italic; color: var(--accent-text); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--alt { background: var(--surface-2); }
.section--plum { background: var(--accent); color: #f1e2ec; }
.section--plum h2, .section--plum h3 { color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--peach); }
.section--plum .chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #f1e2ec; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 36em; }
.section--plum .lede { color: #e2cbd9; }
.muted { color: var(--ink-3); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .15s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--peach { background: var(--peach); color: var(--ink); }
.btn--line { border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ----------------------------------------------------------------- header */
.alert { background: var(--ink); color: #eadde6; font-size: .88rem; }
.alert .container { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding-block: 9px; text-align: center; }
.alert a { color: var(--peach); font-weight: 700; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(251, 248, 244, .9); backdrop-filter: blur(12px); }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 82px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: 1.7rem; letter-spacing: -.02em; }
.brand__mark { width: 38px; height: 38px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; color: var(--peach); }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a { padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink-2); }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); }
.nav a.btn--primary { color: #fff; margin-left: 8px; }
.nav a.btn--primary:hover, .nav a.btn--primary[aria-current="page"] { background: var(--accent-dark); color: #fff; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav { position: absolute; inset: 100% 0 auto; display: none; flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 22px; background: var(--surface); border-bottom: 1px solid var(--border); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; }
  .nav a.btn--primary { margin: 8px 0 0; }
}

/* ------------------------------------------------------------------- hero */
.hero { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { margin-top: 22px; }
.hero .lede { margin-top: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; font-size: .9rem; color: var(--ink-2); }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 20px; height: 20px; color: var(--accent); }
.art { position: relative; aspect-ratio: 1; border-radius: 48% 52% 46% 54% / 52% 44% 56% 48%; background: linear-gradient(150deg, var(--peach), #f9dcc6 45%, var(--mint)); overflow: hidden; }
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.floater { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: var(--card); box-shadow: 0 24px 50px -24px rgba(29, 23, 32, .35); font-size: .9rem; }
.floater b { display: block; font-size: 1rem; }
.floater .dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.floater--a { left: -18px; bottom: 16%; }
.floater--b { right: -10px; top: 12%; }
.hero__media { position: relative; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } .floater--a { left: 8px; } .floater--b { right: 8px; } }

/* -------------------------------------------------------------- services */
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.head h2 { margin-top: 14px; max-width: 14em; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.service:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(29, 23, 32, .4); }
.service__icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--c, var(--accent-soft)); color: var(--accent); }
.service__icon svg { width: 28px; height: 28px; }
.service h3 { margin-top: 22px; }
.service p { margin-top: 8px; color: var(--ink-2); font-size: .96rem; flex: 1; }
.service .from { margin-top: 18px; font-weight: 800; font-size: .9rem; color: var(--accent-text); }
@media (max-width: 960px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px 24px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--peach); color: var(--ink); font-weight: 800; }
.step h3 { margin-top: 18px; font-size: 1.25rem; }
.step p { margin-top: 8px; color: #e2cbd9; font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------- team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.person { text-align: center; }
.person__pic { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--c, var(--mint)); font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--ink); position: relative; overflow: hidden; }
.person__pic::after { content: ""; position: absolute; width: 60%; height: 60%; border-radius: 50%; background: rgba(255, 255, 255, .28); top: -16%; right: -12%; }
.person h3 { margin-top: 16px; font-size: 1.25rem; }
.person p { font-size: .9rem; color: var(--ink-3); }
@media (max-width: 860px) { .team { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- reviews */
.reviews { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; }
.review { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.review:first-child { background: var(--accent-soft); border-color: transparent; }
.review .stars { color: #d98a4e; letter-spacing: 2px; }
.review blockquote { margin: 12px 0 16px; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.35; }
.review:first-child blockquote { font-size: 1.6rem; }
.review cite { font-style: normal; font-weight: 700; font-size: .9rem; }
.score { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.score strong { font-family: var(--font-display); font-size: 3rem; font-weight: 400; line-height: 1; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- visit */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.hours { list-style: none; margin: 16px 0 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--border); }
.hours li.is-today { font-weight: 800; color: var(--accent-text); }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); font-size: .84rem; font-weight: 700; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b1a6ad; }
.status.is-open { background: #e3f1ea; color: #2e6b52; }
.status.is-open::before { background: #34a372; }
.map { position: relative; min-height: 260px; border-radius: var(--radius-sm); overflow: hidden; background: #efe6dc; margin-top: 18px; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- treatments */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tab { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-weight: 700; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.price-list { border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); overflow: hidden; }
.price-list[hidden] { display: none; }
.price-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; padding: 22px 28px; border-bottom: 1px solid var(--border); }
.price-row:last-child { border-bottom: 0; }
.price-row h3 { font-size: 1.3rem; }
.price-row p { grid-column: 1 / -1; color: var(--ink-2); font-size: .95rem; max-width: 46em; }
.price-row .amt { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.price-row .amt small { display: block; text-align: right; font-weight: 500; font-size: .8rem; color: var(--ink-3); }
.plan { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.plan__card { padding: 32px; border-radius: var(--radius); background: var(--card); color: var(--ink); }
.plan__price { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; }
.plan__price small { font-family: var(--font-body); font-size: .95rem; color: var(--ink-3); }
.plan ul { list-style: none; margin: 18px 0 24px; padding: 0; }
.plan li { padding: 8px 0 8px 28px; position: relative; border-top: 1px solid var(--border); }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 800; }
@media (max-width: 860px) { .plan { grid-template-columns: 1fr; } }
.calc { display: grid; gap: 16px; }
.calc output { display: block; padding: 18px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.calc output strong { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 400; color: var(--accent-text); line-height: 1.1; }
input[type="range"] { width: 100%; accent-color: var(--accent); }

/* ------------------------------------------------------------------ book */
.book { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.book > * { min-width: 0; }
.book fieldset { margin: 0 0 30px; padding: 0; border: 0; min-width: 0; }
.book legend { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 14px; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: block; height: 100%; padding: 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--card); cursor: pointer; font-weight: 700; }
.opt small { display: block; margin-top: 4px; font-weight: 500; font-size: .85rem; color: var(--ink-3); }
.opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.opt input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.date { flex: none; width: 72px; padding: 12px 0; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--card); text-align: center; cursor: pointer; }
.date b { display: block; font-size: 1.4rem; font-family: var(--font-display); font-weight: 400; }
.date small { display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; color: var(--ink-3); }
.date[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.date[aria-pressed="true"] small { color: #f1e2ec; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 14px; }
.time { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--card); font-weight: 700; cursor: pointer; }
.time[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.time:disabled { color: #b4abb0; text-decoration: line-through; cursor: not-allowed; background: var(--surface-2); }
.summary { position: sticky; top: 100px; padding: 28px; border-radius: var(--radius); background: var(--ink); color: #eadde6; }
.summary h2 { font-size: 1.8rem; color: #fff; }
.summary dl { margin: 18px 0 0; }
.summary dl div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.summary dt { color: #b8a9b3; }
.summary dd { margin: 0; text-align: right; font-weight: 700; color: #fff; }
.summary p { margin-top: 14px; font-size: .86rem; color: #b8a9b3; }
@media (max-width: 960px) { .book { grid-template-columns: 1fr; } .summary { position: static; } }

.field { display: flex; flex-direction: column; gap: 7px; }
.field + .field, .row + .field, .field + .row, .row + .row { margin-top: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row .field + .field { margin-top: 0; }
label { font-size: .88rem; font-weight: 700; }
.input { width: 100%; min-height: 50px; padding: 12px 15px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: #fff; font-size: 1rem; }
textarea.input { min-height: 100px; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: #b8362a; }
.error { min-height: 1em; font-size: .84rem; color: #b8362a; }
.done { text-align: center; padding: 48px 24px; }
.done__mark { width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 50%; background: var(--peach); display: grid; place-items: center; font-size: 1.6rem; }
.done p { margin: 12px auto 0; max-width: 32em; color: var(--ink-2); }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }

.faq details { padding: 0 24px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--border); }
.faq details + details { margin-top: 10px; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--accent-text); }
.faq details[open] summary::after { content: "–"; }
.faq p { padding-bottom: 20px; color: var(--ink-2); }

.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.page-head h1 { margin-top: 18px; font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
.page-head .lede { margin-top: 18px; }

.footer { background: var(--ink); color: #b8a9b3; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 64px 40px; }
.footer .brand { color: #fff; }
.footer h4 { margin: 0 0 14px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer p { margin-top: 14px; max-width: 24em; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid #352c37; font-size: .85rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
