/* Meridian Dental Centre: clean and clinical.
   Change the clinic's colours and fonts here; base.css reads these variables. */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --soft: #F1F5FA;
  --ink: #0B1B33;
  --muted: #52637A;
  --line: #DCE4EE;
  --line-strong: #C3D0DF;
  --brand: #1650D0;
  --brand-hover: #0F3FA8;
  --brand-ink: #FFFFFF;
  --brand-text: #1650D0;
  --ok: #0F9F7F;
  --danger: #C4372B;
  --navy: #0B1B33;
  --head: "Schibsted Grotesk", system-ui, sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 10px;
  --radius-lg: 14px;
  --wrap: 1200px;
}
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
h1, h2 { letter-spacing: -.025em; font-weight: 800; }
h3 { letter-spacing: -.01em; font-weight: 700; }
.eyebrow { font-family: var(--mono); font-weight: 500; letter-spacing: .08em; color: var(--brand); }

/* ---------- utility bar + header ---------- */
.utility { background: var(--navy); color: #C9D5E6; font-size: .85rem; }
.utility .wrap { display: flex; gap: 24px; align-items: center; min-height: 36px; }
.utility a { margin-left: auto; color: #fff; text-decoration: none; font-family: var(--mono); font-size: .8rem; }
.utility [data-open-status].is-open::before { background: #3FD7AE; box-shadow: none; }
@media (max-width: 640px) { .u-addr { display: none; } }
.header { background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 34px; height: 34px; }
.logo span { display: grid; line-height: 1; }
.logo b { font-family: var(--head); font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; }
.logo small { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--brand); }
.header-cta { margin-left: 8px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 6vw, 88px); background: linear-gradient(180deg, var(--soft), var(--bg) 70%); }
.hero-grid { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); margin: 16px 0 20px; line-height: 1.02; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.hero-facts div { padding: 14px 16px 0 0; }
.hero-facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.hero-facts dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-facts dd { margin: 4px 0 0; font-weight: 600; font-size: .95rem; }
@media (max-width: 560px) { .hero-facts { grid-template-columns: 1fr; } .hero-facts div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .hero-facts div { padding-bottom: 12px; } }

/* ---------- the tooth chart (signature) ---------- */
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 60px -40px rgba(11,27,51,.45); overflow: hidden; }
.chart-head { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chart-hint { font-size: .85rem; color: var(--muted); }
.chart-svg { width: 100%; height: auto; padding: 4px 8px 0; }
.chart-svg .midline { stroke: var(--line); stroke-dasharray: 3 5; }
.chart-svg .q-label { font: 500 11px var(--mono); fill: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.tooth { cursor: pointer; outline: none; }
.tooth rect { fill: #F7FAFD; stroke: #9FB2C9; stroke-width: 1.4; transition: fill .15s, stroke .15s; }
.tooth.t-molar rect, .tooth.t-wisdom rect { fill: #F2F6FB; }
.tooth text { font: 500 11px var(--mono); fill: var(--muted); text-anchor: middle; pointer-events: none; }
.tooth:hover rect { fill: #DCE7FB; stroke: var(--brand); }
.tooth:focus-visible rect { stroke: var(--brand); stroke-width: 3; }
.tooth.is-active rect { fill: var(--brand); stroke: var(--brand); }
.tooth.is-active text { fill: var(--brand); font-weight: 700; }
.chart-card.has-active .tooth:not(.is-active):not(:hover) rect { opacity: .55; }
.readout { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: start; padding: 16px 18px 18px; border-top: 1px solid var(--line); background: var(--soft); min-height: 112px; }
.r-num { font-size: 2.2rem; font-weight: 500; color: var(--brand); letter-spacing: -.02em; line-height: 1; text-transform: none; }
.r-name { font-weight: 700; margin-bottom: 8px; }
.r-name::first-letter { text-transform: uppercase; }
.r-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.r-list a { display: inline-block; padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line-strong); font-size: .85rem; font-weight: 600; text-decoration: none; }
.r-list a:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- standards ---------- */
.standards { border-block: 1px solid var(--line); }
.std-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.std-grid > div { padding: 28px 24px 28px 0; }
.std-grid > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.std-grid p:last-child { margin-top: 8px; font-size: .95rem; }
.std-grid .mono { color: var(--brand); }
@media (max-width: 900px) { .std-grid { grid-template-columns: 1fr 1fr; } .std-grid > div:nth-child(3) { border-left: 0; padding-left: 0; } .std-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .std-grid { grid-template-columns: 1fr; } .std-grid > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

/* ---------- sections ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-top: 10px; }
.text-link { font-weight: 600; color: var(--brand); text-underline-offset: 5px; white-space: nowrap; }
.price-list { list-style: none; border-top: 1.5px solid var(--ink); }
.price-list a { display: grid; grid-template-columns: minmax(180px, 1.1fr) 2fr 110px 150px; gap: 24px; align-items: baseline; padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .15s; }
.price-list a:hover { background: var(--soft); }
.pl-name { font-family: var(--head); font-weight: 700; font-size: 1.2rem; }
.pl-short { color: var(--muted); font-size: .95rem; }
.pl-price { text-align: right; font-weight: 700; color: var(--brand); }
@media (max-width: 820px) { .price-list a { grid-template-columns: 1fr auto; gap: 6px 16px; } .pl-short { grid-column: 1 / -1; grid-row: 2; } .pl-time { grid-row: 3; } .pl-price { grid-row: 1; grid-column: 2; } }

.visit { background: var(--soft); }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--brand); }
.timeline li { position: relative; padding: 26px 24px 0 0; }
.timeline li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--soft); }
.timeline .mono { color: var(--brand); }
.timeline h3 { font-size: 1.2rem; margin: 8px 0; }
.timeline p { color: var(--muted); font-size: .95rem; }
@media (max-width: 820px) { .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--brand); } .timeline li { padding: 0 0 28px 24px; } .timeline li::before { top: 4px; left: -7px; } }

.doc .portrait { border: 1px solid var(--line); }
.quote-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }
.quote-grid blockquote { margin: 0; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.quote-grid p { font-size: 1.05rem; }
.quote-grid footer { font-size: .88rem; color: var(--muted); font-weight: 600; }

/* ---------- inner pages ---------- */
.page-head { background: linear-gradient(180deg, var(--soft), var(--bg)); }
.probe { height: 10px; margin-top: 32px; max-width: 360px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 12px), linear-gradient(var(--line-strong), var(--line-strong)) bottom / 100% 1px no-repeat; }
.t-card { transition: border-color .15s, box-shadow .15s; }
.t-card:hover { border-color: var(--brand); box-shadow: 0 18px 40px -30px rgba(22,80,208,.6); }
.t-card .meta b { color: var(--brand); }
.t-card .links a { color: var(--brand); }
.facts dd { font-family: var(--head); }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 72px); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.prose { display: grid; gap: 16px; font-size: 1.05rem; }
.prose h2 { font-size: 1.8rem; }
.equip { margin: 0; border-top: 1.5px solid var(--ink); }
.equip div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.equip dt { color: var(--brand); }
.equip dd { margin: 6px 0 0; font-weight: 600; }

/* ---------- CTA band + footer ---------- */
.cta-band { background: var(--brand); color: #fff; padding-block: clamp(40px, 6vw, 64px); }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-band p { margin-top: 8px; max-width: 56ch; color: #DCE6FB; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #E8EEFC; }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.btn-outline-light svg, .btn svg { width: 20px; height: 20px; }
.footer { background: var(--navy); color: #C9D5E6; }
.logo-footer { color: #fff; }
.logo-footer small { color: #8FA3BF; }
.footer h2 { color: #fff; }
.f-about { margin-top: 16px; max-width: 34ch; font-size: .95rem; }
.footer { --footer-line: rgba(255,255,255,.14); }
.footer .credit a { color: #fff; }
