/* Tandartspraktijk Stardent - one shared stylesheet.
   Dark chrome, WHITE stage, teal accent; every text pair >= 4.5:1 (test/contrast.test.mjs
   computes it from the tokens below). System fonts only: nothing is fetched from anyone. */
:root {
  --chrome: #14171C;
  --chrome-2: #1C2027;
  --chrome-line: #2A2F38;
  --stage: #FFFFFF;
  --ground: #F2F3F5;
  --card: #FFFFFF;
  --ink: #171B20;
  --ink-soft: #58616C;
  --ink-on-dark: #F4F6F8;
  --soft-on-dark: #9AA4B0;
  --accent: #2DD4BF;        /* bright teal - on the dark chrome only */
  --accent-deep: #0B7265;   /* teal for text and buttons on white */
  --accent-press: #095E54;
  --accent-tint: #E6F6F3;
  --line: #E3E6EA;
  --warn: #8A5A00;  --warn-tint: #FBF3E4;
  --danger: #A33B2E; --danger-tint: #FAE9E6;
  --good: #1D6E48;  --good-tint: #E7F3EC;
  --sans: "Segoe UI Variable Text", "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; /* the sticky header must not cover an anchor target or the skip link's landing */ }
body { margin: 0; background: var(--stage); color: var(--ink); font-family: var(--sans); font-size: 16.5px; line-height: 1.6; }
a { color: var(--accent-deep); }
a:hover { color: var(--accent-press); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
b { font-weight: 700; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.2px; text-wrap: balance; }
h2 { font-size: clamp(24px, 3.2vw, 32px); margin: 0 0 12px; }
h3 { font-size: 17.5px; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 780px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* skip link: invisible until it has focus, then the first thing on the page */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--chrome); font-weight: 700; padding: 10px 16px; border-radius: 8px; text-decoration: none; transition: top .15s ease-out; }
.skip:focus { top: 12px; }

/* ---------- dark chrome ---------- */
.chrome { background: var(--chrome); color: var(--ink-on-dark); }
.chrome a { color: var(--accent); }
.chrome .eyebrow { color: var(--accent); }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--chrome-line); }
.topbar { display: flex; align-items: center; gap: 18px; padding: 14px 0; flex-wrap: wrap; }
/* `.site-header .mark` / `.site-header .top-cta`: `.chrome a` (0,1,1) would otherwise outrank a
   single class and paint the wordmark and the pill's text teal - on a teal pill that is invisible. */
.site-header .mark { font-weight: 700; font-size: 18px; color: #FFFFFF; text-decoration: none; letter-spacing: .1px; margin-right: auto; }
.mark span { color: var(--accent); }
.nav-toggle { display: none; font: inherit; font-weight: 600; color: var(--ink-on-dark); background: var(--chrome-2); border: 1px solid var(--chrome-line); border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav-list a { display: block; color: var(--soft-on-dark); text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 8px 10px; border-radius: 8px; position: relative; }
.nav-list a:hover { color: var(--accent); background: var(--chrome-2); }
.nav-list a[aria-current="page"] { color: #FFFFFF; }
.nav-list a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; background: var(--accent); border-radius: 2px; }
.nav-lang a { border: 1px solid var(--chrome-line); margin-left: 6px; }
.site-header .top-cta { font-size: 14px; font-weight: 700; color: var(--chrome); background: var(--accent); text-decoration: none; padding: 9px 18px; border-radius: 999px; white-space: nowrap; }
.site-header .top-cta:hover { filter: brightness(1.08); color: var(--chrome); }

.hero { padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 160%; background: radial-gradient(closest-side, rgba(45,212,191,.14), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 700; line-height: 1.06; margin: 0 0 18px; color: #FFFFFF; }
.hero h1 em, .page-head h1 em { font-style: normal; color: var(--accent); }
.eyebrow { font-size: 12.5px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--accent-deep); font-weight: 700; margin: 0 0 10px; }
.lead { color: var(--soft-on-dark); font-size: 18.5px; max-width: 52ch; margin: 0 0 26px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px; padding: 14px 26px; border-radius: 10px; transition: transform .15s ease, filter .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: var(--chrome); }
.btn.primary:hover { filter: brightness(1.08); color: var(--chrome); }
.chrome .btn.ghost { color: var(--ink-on-dark); border: 1.5px solid var(--chrome-line); }
.chrome .btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.secondary { background: var(--accent-deep); color: var(--stage); }
.btn.secondary:hover { background: var(--accent-press); color: var(--stage); }
.hero .fine { margin-top: 20px; font-size: 13.5px; color: var(--soft-on-dark); max-width: 52ch; }

.page-head { padding: 44px 0 52px; }
.page-head h1 { font-size: clamp(30px, 4.2vw, 46px); margin: 0 0 14px; color: #FFFFFF; }
.page-head .lead { margin-bottom: 0; }

/* the opening-hours card: white on the chrome, today's row marked by the script */
.hours-card { background: var(--card); color: var(--ink); border-radius: 16px; padding: 22px 24px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
/* a white island inside the chrome: its links must NOT inherit the bright chrome teal (2:1 on white) */
.chrome .hours-card a { color: var(--accent-deep); }
.chrome .hours-card a:hover { color: var(--accent-press); }
.hours-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 8px; }
.hours-head h2 { font-size: 18px; margin: 0; }
.today-tag { font-size: 12.5px; color: var(--ink-soft); visibility: hidden; }
.hours-card:has([aria-current="date"]) .today-tag { visibility: visible; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-deep); margin-right: 6px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
table.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
table.hours th, table.hours td { text-align: left; padding: 7px 8px; border-top: 1px solid var(--line); }
table.hours tr:first-child th, table.hours tr:first-child td { border-top: 0; }
table.hours th { font-weight: 600; width: 46%; }
table.hours td { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
table.hours tr[aria-current="date"] th, table.hours tr[aria-current="date"] td { background: var(--accent-tint); color: var(--accent-deep); font-weight: 700; }
table.hours tr[aria-current="date"] th::after { content: " · vandaag"; font-weight: 400; font-size: 12px; }
html[lang="en"] table.hours tr[aria-current="date"] th::after { content: " · today"; }
.hours-note { margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); }
.hours-foot { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-soft); }

/* ---------- white stage ---------- */
.stage { padding: 60px 0; }
.stage.band-ground { background: var(--ground); }
.sub { color: var(--ink-soft); max-width: 64ch; margin: 0 0 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 26px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(23,27,32,.08); }
.card p { color: var(--ink-soft); font-size: 15px; margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-tint); color: var(--accent-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card .icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.more { margin-top: 22px; font-weight: 600; }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; }
.addr { font-style: normal; font-size: 17px; line-height: 1.5; margin: 0 0 18px; }
.fine-dark { font-size: 14px; color: var(--ink-soft); }

ol.steps { list-style: none; margin: 26px 0 0; padding: 0; counter-reset: st; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
ol.steps li { counter-increment: st; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; }
ol.steps li::before { content: counter(st); display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; background: var(--chrome); color: var(--accent); font-weight: 700; font-family: var(--mono); margin-bottom: 14px; }
ol.steps b { display: block; margin-bottom: 5px; }
ol.steps span { color: var(--ink-soft); font-size: 15px; }
ol.steps-vertical { grid-template-columns: 1fr; margin-bottom: 20px; }

.note { background: var(--accent-tint); border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; color: var(--ink); }
.note h2 { font-size: 20px; color: var(--accent-deep); }
.note p:last-child { margin-bottom: 0; }
.pending { background: var(--ground); border: 1px dashed var(--ink-soft); border-radius: 10px; padding: 12px 14px; color: var(--ink-soft); font-size: 15px; }
dl.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 15px; }
dl.facts dt { font-weight: 600; }
dl.facts dd { margin: 0; color: var(--ink-soft); }

/* treatments */
ul.treatments { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 12px; }
ul.treatments li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
ul.treatments h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
ul.treatments p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.badge { font-size: 11.5px; letter-spacing: .8px; text-transform: uppercase; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-deep); }
li.referral .badge { background: var(--warn-tint); color: var(--warn); }

/* team */
.members { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.member { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.member .role { color: var(--ink-soft); margin: 0 0 6px; }
.member .big { font-family: var(--mono); font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* tariffs */
.table-wrap { overflow-x: auto; margin: 20px 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table.tariffs { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 520px; }
table.tariffs th, table.tariffs td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
table.tariffs thead th { border-top: 0; font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-soft); background: var(--ground); }
table.tariffs tbody th { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
table.tariffs .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }

/* afspraak: two doors + the module */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.door { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; border-top: 4px solid var(--accent-deep); }
.door-tag { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-deep); font-weight: 700; margin: 0 0 6px; }
.door h2 { font-size: 22px; }
.door p { color: var(--ink-soft); font-size: 15.5px; }
.door p:last-child { margin-bottom: 0; }
.booking-frame { position: relative; margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); min-height: 320px; }
.booking-frame::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ground) 0%, var(--card) 50%, var(--ground) 100%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; z-index: 0; }
.booking-frame.loaded::before { display: none; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.booking-frame iframe { position: relative; z-index: 1; display: block; width: 100%; height: 760px; border: 0; background: transparent; }
.frame-fallback { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); }
ul.rules-short { margin: 10px 0 0; padding: 0 0 0 20px; }
ul.rules-short li { margin-bottom: 8px; }

/* praktijkregels: the deadline ring fills once, when it scrolls into view */
.deadline { display: grid; grid-template-columns: 120px 1fr; gap: 26px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px; margin-bottom: 18px; }
.ring { width: 120px; height: 120px; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 8; }
.ring-fill { fill: none; stroke: var(--accent-deep); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1.4s cubic-bezier(.2,.7,.2,1); }
.deadline.in .ring-fill { stroke-dashoffset: 0; }
.ring-num { font-size: 34px; font-weight: 700; fill: var(--ink); font-family: var(--sans); }
.ring-lbl { font-size: 13px; fill: var(--ink-soft); font-family: var(--sans); letter-spacing: 1px; text-transform: uppercase; }
.deadline h2 { font-size: 22px; }
.deadline p:last-child { margin-bottom: 0; }
ol.rules { list-style: none; margin: 0; padding: 0; counter-reset: r; display: grid; gap: 14px; }
ol.rules li { counter-increment: r; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px 22px 70px; position: relative; }
ol.rules li::before { content: counter(r); position: absolute; left: 22px; top: 22px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--chrome); color: var(--accent); font-weight: 700; font-family: var(--mono); }
ol.rules h2 { font-size: 19px; margin-bottom: 8px; }
ol.rules p { font-size: 15.5px; }
ol.rules p:last-child { margin-bottom: 0; }

/* privacy prose */
.prose h2 { font-size: 21px; margin: 30px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

/* ---------- closing band + footer ---------- */
.band { text-align: center; padding: 70px 0; }
.band h2 { color: #FFFFFF; }
.band p { color: var(--soft-on-dark); max-width: 54ch; margin: 0 auto 28px; }
.site-footer { border-top: 1px solid var(--chrome-line); padding: 40px 0 56px; font-size: 14.5px; color: var(--soft-on-dark); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.site-footer b { color: #FFFFFF; display: block; margin-bottom: 8px; }
.site-footer p { margin: 0 0 8px; }
.site-footer a { color: var(--accent); }
.site-footer .legal { list-style: none; margin: 0; padding: 0; }
.site-footer .legal li { margin-bottom: 4px; }
.site-footer .fine { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--chrome-line); font-size: 13.5px; }

/* ---------- motion: additive, and only for those who did not opt out ---------- */
html.js .reveal { opacity: 0; }
html.js .reveal.in { animation: rise .6s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; }
  .deadline .ring-fill { stroke-dashoffset: 0; }
}

/* ---------- small screens ---------- */
@media (max-width: 840px) {
  .hero-grid, .two-col, .doors { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 56px; }
  .topbar { gap: 10px; }
  html.js .nav-toggle { display: inline-block; order: 2; }
  .top-cta { order: 3; }
  .topbar nav { order: 4; flex-basis: 100%; }
  html.js .nav-list { display: none; flex-direction: column; align-items: stretch; padding: 6px 0 4px; border-top: 1px solid var(--chrome-line); }
  html.js .nav-list.open { display: flex; }
  .nav-list a { padding: 11px 8px; font-size: 16px; }
  .nav-lang a { margin-left: 0; margin-top: 6px; }
  .deadline { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  ol.rules li { padding: 66px 22px 22px; }
  ol.rules li::before { left: 22px; top: 22px; }
  dl.facts { grid-template-columns: 1fr; gap: 2px 0; }
  dl.facts dd { margin-bottom: 8px; }
  .booking-frame iframe { height: 820px; }
}
@media (max-width: 600px) {
  /* the amount must stay on screen: let the description wrap instead of scrolling the table */
  table.tariffs { min-width: 0; font-size: 14.5px; }
  table.tariffs th, table.tariffs td { padding: 10px 10px; }
  table.tariffs tbody th { padding-right: 4px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .btn { width: 100%; text-align: center; }
  .top-cta { display: none; }
  .card, .door, ol.steps li { padding: 20px 18px; }
}

/* --- explainer films (afspraak) ------------------------------------------
   Self-hosted mp4 with a poster; nothing loads until the visitor presses play. */
.films { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
@media (max-width: 900px) { .films { grid-template-columns: 1fr; } }
.film { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.film video { display: block; width: 100%; height: auto; background: #14171C; }
.film figcaption { padding: 12px 16px 14px; font-weight: 600; font-size: 15px; color: var(--ink); }
