@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@75..100,400..700&display=swap');

/* Colours: logo blues from tandarts_degraaf_logo_nieuw.jpg and logo2_0.png (see BRAND.md), plus neutral tints */
:root {
  --navy: #0c3698;
  --navy-deep: #082b8f;
  --blue: #1b62ba;
  --sky: #559dc6;
  --ink: #0d1a3a;
  --text: #33405c;
  --muted: #5d6880;
  --line: #d8dfea;
  --tint: #eef3fa;
  --paper: #f7f9fc;
  --white: #fff;
  --radius: 4px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .6s;
  --head: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--head); font-stretch: 87.5%; color: var(--ink); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.6rem + 2.8vw, 4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--radius); }
.skip:focus { top: 1rem; }
.lead { font-size: 1.1875rem; line-height: 1.6; color: var(--text); max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: .7rem 1.15rem; border-radius: var(--radius); border: 1px solid var(--navy); background: var(--navy); color: #fff; font: 600 .9375rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--tint); color: var(--navy-deep); }
.btn.on-navy { background: #fff; color: var(--navy); border-color: #fff; }
.btn.on-navy:hover { background: var(--tint); }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn.ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.text-link { font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.text-link svg { width: 16px; height: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(8px); padding-top: env(safe-area-inset-top, 0px); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand img { width: auto; height: 34px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font: 600 1.1875rem/1.1 var(--head); font-stretch: 87.5%; color: var(--navy); letter-spacing: -.005em; }
.brand-name span { font-size: .8125rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-link { color: var(--ink); text-decoration: none; font-size: .9375rem; padding-block: .4rem; border-bottom: 2px solid transparent; }
.nav-link:hover { color: var(--navy); }
.nav-link[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); font-weight: 600; }
.menu-btn { display: none; }

@media (max-width: 1040px) {
  .header-phone .num { display: none; }
}
@media (min-width: 1041px) {
  .header-phone .word { display: none; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer; }
  .menu-btn span:first-child, .menu-btn span:first-child::before, .menu-btn span:first-child::after { display: block; width: 20px; height: 2px; background: var(--ink); content: ''; position: relative; transition: transform .2s var(--ease), background-color .2s; }
  .menu-btn span:first-child::before { position: absolute; top: -6px; }
  .menu-btn span:first-child::after { position: absolute; top: 6px; }
  .menu-btn[aria-expanded="true"] span:first-child { background: transparent; }
  .menu-btn[aria-expanded="true"] span:first-child::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:first-child::after { transform: translateY(-6px) rotate(-45deg); }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav-link { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .nav-link[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--navy); padding-left: .75rem; }
  .header-phone { margin-top: 1rem; justify-content: center; }
  .brand-name span { display: none; }
}

/* Sections */
.section { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.section.tint { background: var(--tint); }
.section.paper { background: var(--paper); }
.section.navy { background: var(--navy); color: #dfe7f7; }
.section.navy h2, .section.navy h3 { color: #fff; }
.section.navy a:not(.btn) { color: #fff; }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.125rem; margin: 0; }
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
  .split.wide-left { grid-template-columns: 1.15fr .85fr; }
  .split.wide-right { grid-template-columns: .85fr 1.15fr; }
  .split.center { align-items: center; }
}

/* Hero */
.hero { padding-block: clamp(2.75rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.hero-in { display: grid; gap: clamp(2.5rem, 1rem + 4vw, 5rem); }
@media (min-width: 961px) { .hero-in { grid-template-columns: 1.25fr .75fr; align-items: end; } }
.hero h1 { max-width: 12em; }
.hero .lead { margin-bottom: 2rem; }
.hero-word { display: inline-block; opacity: 0; transform: translateY(.35em); animation: word-in .7s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms + 80ms); }
@keyframes word-in { to { opacity: 1; transform: none; } }

/* Label/value rows (contact, facts) */
.kv { border-top: 1px solid var(--ink); }
.kv > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.kv dt { font-weight: 600; color: var(--ink); font-size: .9375rem; }
.kv dd { margin: 0; color: var(--text); }
.kv dd a { font-weight: 600; }
.kv dd .note { display: block; font-size: .875rem; color: var(--muted); margin-top: .15rem; }
.kv .status-open { color: #1d6b3a; }
dl.kv { margin: 0; }
@media (max-width: 480px) { .kv > div { grid-template-columns: 1fr; gap: .15rem; } }

/* Panorama band */
.pano { margin: 0; }
.pano img { width: 100%; height: clamp(220px, 23vw, 420px); object-fit: cover; object-position: 62% 50%; }
.pano figcaption { width: min(100% - 2.5rem, var(--wrap)); margin: .75rem auto 0; font-size: .875rem; color: var(--muted); }

/* Register rows (treatments) */
.register { border-top: 1px solid var(--ink); }
.reg-row { display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr auto; align-items: center; gap: 1.5rem; min-height: 76px; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background-color .2s var(--ease); }
.reg-row .desc { font-size: .9375rem; color: var(--muted); line-height: 1.45; }
.reg-row .name { font: 600 clamp(1.4rem, 1.1rem + 1vw, 1.9rem)/1.15 var(--head); font-stretch: 87.5%; color: var(--ink); }
.reg-row .go { width: 40px; height: 40px; display: grid; place-items: center; color: var(--navy); }
.reg-row .go svg { width: 22px; height: 22px; transition: transform .25s var(--ease); }
a.reg-row:hover .name { color: var(--navy); }
a.reg-row:hover .go svg { transform: translateX(4px); }
@media (max-width: 700px) {
  .reg-row { grid-template-columns: 1fr auto; gap: .2rem 1rem; }
  .reg-row .desc { grid-row: 1; grid-column: 1; }
  .reg-row .name { grid-row: 2; grid-column: 1; }
  .reg-row .go { grid-row: 1 / span 2; grid-column: 2; }
}

/* Accordion register (behandelingen, wat te doen bij) */
.acc { border-top: 1px solid var(--ink); }
.acc details { border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr auto; align-items: center; gap: 1.5rem; min-height: 76px; padding: 1rem 0; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .desc { font-size: .9375rem; color: var(--muted); line-height: 1.45; }
.acc summary .name { font: 600 clamp(1.4rem, 1.1rem + 1vw, 1.9rem)/1.15 var(--head); font-stretch: 87.5%; color: var(--ink); }
.acc.compact summary .name { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); }
.acc.compact summary { grid-template-columns: 1fr auto; }
.acc.compact summary .name { grid-row: auto; grid-column: auto; }
.acc.compact summary .plus { grid-row: auto; grid-column: auto; }
@media (min-width: 900px) { .acc.compact .body > div { grid-column: 1 / -1; } .acc.compact .body { grid-template-columns: 1fr; } }
.acc summary .plus { position: relative; width: 40px; height: 40px; color: var(--navy); }
.acc summary .plus::before, .acc summary .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: currentColor; transition: transform .25s var(--ease); }
.acc summary .plus::after { transform: rotate(90deg); }
.acc details[open] summary .plus::after { transform: rotate(0deg); }
.acc summary:hover .name { color: var(--navy); }
.acc .body { display: grid; gap: 1.5rem; padding: 0 0 2rem; }
@media (min-width: 900px) { .acc .body { grid-template-columns: minmax(10rem, 15rem) 1fr; gap: 1.5rem; } .acc .body > div { grid-column: 2; max-width: 46rem; } }
.acc .body ul.dots { margin: 0 0 1em; }
.acc .body h3, .acc .body h2.sub { font-size: 1.0625rem; margin: 1.25em 0 .35em; }
@media (max-width: 700px) {
  .acc summary { grid-template-columns: 1fr auto; gap: .2rem 1rem; }
  .acc summary .desc { grid-row: 1; grid-column: 1; }
  .acc summary .name { grid-row: 2; grid-column: 1; }
  .acc summary .plus { grid-row: 1 / span 2; grid-column: 2; }
}
ul.dots li { position: relative; padding-left: 1.1rem; margin-bottom: .35rem; }
ul.dots li::before { content: ''; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--sky); }

/* Line list (simple rows) */
.lines { border-top: 1px solid var(--line); }
.lines li { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.lines li strong { color: var(--ink); }
.section.navy .lines, .section.navy .lines li { border-color: rgba(255,255,255,.22); }
.section.navy .lines li strong { color: #fff; }

/* Photo */
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.photo figcaption { font-size: .875rem; color: var(--muted); margin-top: .6rem; }

/* Team */
.team-lead { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.team-lead p { margin: 0; }
.krt { display: flex; align-items: center; gap: 1.25rem; margin-top: 2rem; }
.krt img { width: 120px; height: auto; }
.krt p { margin: 0; font-size: .9375rem; color: var(--muted); max-width: 26em; }

/* Hours */
.cols { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .cols { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.cols h3 { font-size: 1.125rem; padding-bottom: .75rem; border-bottom: 1px solid var(--ink); margin-bottom: .25rem; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { color: var(--ink); }
.hours td { text-align: right; }
.hours tr.today th, .hours tr.today td { font-weight: 600; color: var(--navy); }
.big-num { font: 600 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1.1 var(--head); font-stretch: 87.5%; color: var(--navy); text-decoration: none; display: inline-block; margin: .5rem 0 .25rem; font-variant-numeric: tabular-nums; }
.section.navy .big-num { color: #fff; }

/* Page intro */
.page-head { padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem) clamp(2rem, 1.5rem + 2vw, 3rem); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 14em; }
.page-head .lead { margin: 0; }

/* Notice line */
.notice { border-block: 1px solid var(--line); background: var(--paper); }
.notice-in { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; padding-block: 1rem; font-size: .9375rem; }
.notice p { margin: 0; color: var(--ink); }

/* Form (demo only) */
.form { display: grid; gap: 1.1rem; }
.form .row2 { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form .row2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; font-size: .9375rem; color: var(--ink); margin-bottom: .35rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: .7rem .85rem; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #b9c4d6; border-radius: var(--radius); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field .err { display: none; font-size: .875rem; color: #a3221b; margin-top: .3rem; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #a3221b; }
.field input:user-invalid ~ .err, .field textarea:user-invalid ~ .err { display: block; }
.form-note { font-size: .875rem; color: var(--muted); margin: 0; }
.form-done { padding: 1.25rem; border: 1px solid var(--line); border-left: 3px solid var(--navy); background: var(--tint); border-radius: var(--radius); color: var(--ink); }
.form-done:focus { outline: none; }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem; padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: .9375rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; } }
.footer-brand img { width: 120px; height: auto; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); max-width: 22em; }
.site-footer h2 { font: 600 .8125rem/1.3 var(--body); color: var(--muted); margin: 0 0 .75rem; letter-spacing: 0; }
.site-footer ul li { margin-bottom: .45rem; }
.site-footer .big a, .site-footer .big span { font-size: 1.0625rem; color: var(--ink); }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--navy); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-bottom a { color: var(--muted); }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 860px) {
  .callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
  .callbar .btn { justify-content: center; }
  body { padding-bottom: 72px; }
}

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-word { animation: none; opacity: 1; transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
