/* De Kies — one stylesheet, mobile-first. Colours from the original site. */
@font-face {
  font-family: "Raleway";
  src: url("/assets/fonts/raleway-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #193669;
  --blue: #2b5db6;
  --blue-mid: #6690da;
  --blue-light: #b2c7ed;
  --blue-soft: #eef3fb;
  --text: #1c2740;
  --muted: #4d5a73;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(25, 54, 105, 0.10);
  --font: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue-mid); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.35rem, 3.4vw, 1.8rem); }
h3, .h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, 1120px); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 820px); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--white); padding: 0.5rem 1rem; }

/* Buttons */
.btn {
  display: inline-block; padding: 0.7rem 1.4rem; border-radius: 999px; border: 2px solid var(--navy);
  color: var(--navy); background: var(--white); font: inherit; font-weight: 600; text-decoration: none;
  text-align: center; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--navy); color: var(--white); }
.btn-cta { background: var(--navy); color: var(--white); }
.btn-cta:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-light { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-light:hover, .btn-light:focus-visible { background: var(--white); border-color: var(--navy); color: #000; }

/* Header: compact phone controls; regular navigation on wide screens. */
.site-head { border-bottom: 1px solid var(--blue-light); background: var(--white); }
.head-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 0.5rem; padding-block: 0.75rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--navy); text-decoration: none; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; font-size: 0.8rem; line-height: 1.35; margin-right: auto; }
.brand img { flex: none; width: 40px; height: 40px; }
.brand small { display: block; color: var(--muted); font-size: 0.7rem; font-weight: 500; margin-top: 0.15rem; }
.head-cta { padding: 0.55rem 1.1rem; font-size: 0.95rem; }
.site-nav { width: 100%; font-size: 1.125rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.site-nav a:not(.btn) { display: block; padding: 0.65rem 0.7rem; border-radius: 8px; color: var(--navy); text-decoration: none; white-space: nowrap; }
.site-nav a:not(.btn):hover { background: var(--blue-soft); }
.site-nav a[aria-current="page"], .site-nav a[aria-current="page"]:hover { background: transparent; font-weight: 700; }
.menu-toggle, .menu-close { min-height: 44px; padding: 0.5rem 0.65rem; border: 0; border-radius: 10px; background: var(--blue-soft); color: var(--navy); font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.menu-toggle { display: flex; align-items: center; gap: 0.5rem; }
.menu-toggle[hidden] { display: none; }
.menu-icon { width: 18px; height: 14px; border-block: 2px solid currentColor; position: relative; }
.menu-icon::after { content: ""; position: absolute; inset: 4px 0 auto; border-top: 2px solid currentColor; }
.mobile-appointment { width: 100%; padding-block: 0.55rem; min-height: 44px; font-size: 0.95rem; }
.nav-enhanced .site-nav { display: none; }
.mobile-menu { inset: 0 0 0 auto; margin: 0; width: min(100%, 420px); height: 100dvh; max-height: 100dvh; max-width: 100%; padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left)); border: 0; color: var(--navy); background: var(--white); }
.mobile-menu[open] { display: flex; flex-direction: column; }
.mobile-menu::backdrop { background: rgba(15, 31, 59, 0.5); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--blue-light); }
.mobile-menu-head h2 { font-size: 1.4rem; margin: 0; }
.menu-close { display: flex; align-items: center; gap: 0.6rem; }
.menu-close span { font-size: 1.5rem; line-height: 1; }
.mobile-menu nav { overflow-y: auto; margin-block: 0.75rem 1.5rem; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu nav a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: 0.75rem; border-radius: 10px; color: var(--navy); text-decoration: none; font-size: 1.15rem; }
.mobile-menu nav a:hover, .mobile-menu nav a[aria-current="page"] { background: var(--blue-soft); }
.mobile-menu nav a[aria-current="page"] { font-weight: 700; }
.mobile-menu nav a span { color: var(--muted); }
.mobile-menu-appointment { margin-top: auto; flex: none; }
html.mobile-menu-open { overflow: hidden; }
@media (min-width: 1200px) {
  .head-inner { width: min(100% - 2.5rem, 1440px); flex-wrap: nowrap; gap: 1rem; }
  .brand { flex-shrink: 0; font-size: 0.85rem; }
  .brand img { width: 44px; height: 44px; }
  .brand small { display: inline; color: inherit; font: inherit; margin: 0; }
  .brand small::before { content: " - "; }
  .nav-enhanced .site-nav, .site-nav { display: block; width: auto; flex: 1; }
  .site-nav ul { flex-wrap: nowrap; justify-content: flex-end; gap: 0.125rem; }
  .site-nav a:not(.btn) { padding-inline: 0.45rem; }
  .head-cta { font-size: 1rem; padding-inline: 0.85rem; white-space: nowrap; }
  .menu-toggle, .mobile-appointment { display: none; }
}

/* Hero + page heads */
.hero { background: var(--navy); color: var(--white); text-align: center; padding: clamp(3rem, 8vw, 5.5rem) 0; }
.hero h1 { color: var(--white); }
.hero p { font-size: 1.15rem; color: #e6edfa; }
.banner img { width: 100%; height: clamp(160px, 28vw, 380px); object-fit: cover; object-position: 30% 50%; }
.page-head { background: var(--blue-soft); padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem); text-align: center; margin-bottom: 2.5rem; }
.page-head p:last-child { margin-bottom: 0; }

/* Sections */
.section { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.section-title { text-align: center; }
.section-lead { text-align: center; color: var(--muted); margin-bottom: 2rem; }
.section-blue { background: var(--blue-mid); color: var(--white); }
.section-blue a:not(.btn) { color: var(--white); }
.lead { font-size: 1.2rem; font-weight: 600; }
.split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.stack { display: grid; gap: 0.8rem; max-width: 360px; margin-top: 1.5rem; }

/* Cards (home) */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--blue-light); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: flex-start; }
.card img { width: 64px; height: 64px; margin-bottom: 1rem; }
.card h3 { text-transform: uppercase; letter-spacing: 0.03em; font-size: 1rem; }
.card .btn { margin: 0.25rem 0 0.75rem; }
.sub { color: var(--muted); font-weight: 600; }
.note { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.4rem; }
.note-warning { color: #ed1566; }

.location-card { color: inherit; }
.location-card h2 { color: inherit; }
.location-card .hours { color: var(--text); }
.location-card .hours div { border-bottom-color: rgba(255, 255, 255, 0.3); }
.location-title { color: inherit; }
.section-locations { background: var(--blue-soft); }
.contact-locations { margin-bottom: 1.5rem; }
.contact-locations .contact-list { margin-bottom: 0.75rem; }
.contact-locations .contact-list li + li { margin-top: 0.75rem; }
@media (min-width: 800px) { .contact { grid-template-columns: 1.2fr 1fr; } }
.location-notice { border-left: 4px solid var(--blue); padding: 0.25rem 0 0.25rem 1.25rem; margin: 1.5rem 0; max-width: 760px; }
.location-notice h3 { margin-bottom: 0.5rem; }
.location-notice p:last-child { margin-bottom: 0; }
.locations { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.location-place h3 { text-transform: none; letter-spacing: 0; font-size: clamp(1.25rem, 3vw, 1.5rem); }
.location-place p { margin-bottom: 0.5rem; }
.location-place .location-map-link { margin-top: auto; padding-top: 1rem; font-weight: 600; }
@media (min-width: 600px) { .locations { grid-template-columns: 1fr 1fr; } }

/* Treatments / articles */
.treatments { display: grid; gap: 2rem; margin-bottom: 3rem; }
.treatment { border: 1px solid var(--blue-light); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); margin-bottom: 2rem; scroll-margin-top: 1rem; }
.treatments .treatment { margin-bottom: 0; }
.treatment header { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.treatment header img { width: 64px; height: 64px; flex: none; }
.treatment header h2 { margin-bottom: 0.15em; }
.treatment header .sub { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin-top: 1rem; }
.actions .note { margin: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4em; }
.photo { margin: 0 0 2rem; }
.photo img { border-radius: var(--radius); }

/* Team */
.team { list-style: none; margin: 0 0 3rem; padding: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.member img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; margin-bottom: 1rem; }
.member h2 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* FAQ */
.faq { margin-bottom: 3rem; display: grid; gap: 1rem; }
.faq details { border: 1px solid var(--blue-light); border-radius: var(--radius); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; display: flex; gap: 1rem; align-items: center; padding: 1rem 1.25rem; font-weight: 600; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 1.5rem; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .num { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--navy); color: var(--white); font-size: 0.95rem; }
.faq .prose { padding: 0 1.25rem 1.25rem; }
.faq .prose img { border-radius: 10px; margin-top: 0.5rem; }

/* Contact */
.contact { margin-bottom: 3rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { margin-bottom: 0.5rem; }
.contact-list.big { font-size: 1.1rem; }
.contact-list .label { font-weight: 600; }
.form-card { background: var(--blue-soft); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.3rem; color: var(--navy); }
.field input, .field textarea { width: 100%; font: inherit; padding: 0.65rem 0.8rem; border: 1px solid #8ea6d4; border-radius: 10px; background: var(--white); color: var(--text); }
.field input:focus, .field textarea:focus { outline: 3px solid var(--blue-mid); outline-offset: 0; border-color: var(--blue); }
.form .btn { margin: 0.25rem 0 0.75rem; }
.form-error { background: #fdecec; border: 1px solid #e3a3a3; color: #7a1d1d; border-radius: 10px; padding: 0.75rem 1rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(25, 54, 105, 0.12); padding: 0.3rem 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; }

/* Footer */
.site-foot { background: var(--blue-light); color: var(--navy); padding: 1.5rem 0 0.75rem; margin-top: 0; font-size: 1rem; line-height: 1.5; }
.site-foot a { color: var(--navy); }
.foot-inner { display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.foot-title { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.site-foot .contact-list, .foot-locations, .foot-inner > div > p:last-child { margin-bottom: 0; }
.site-foot .contact-list li { margin-bottom: 0.2rem; }
.foot-locations { margin-top: 0; padding-left: 1.2rem; }
.foot-bottom { border-top: 1px solid rgba(25, 54, 105, 0.2); margin-top: 1rem; padding-top: 0.65rem; font-size: 0.9rem; }

/* Appointment dialog (opened by site.js; :target is the no-JS fallback) */
.dialog {
  --checkup: #82db89;
  --ortho: #ed1566;
  border: 0; border-radius: 0; padding: 1.25rem 1.625rem 2.5rem;
  width: min(100% - 1.5rem, 585px); max-height: calc(100dvh - 2rem); overflow: auto;
  background: linear-gradient(rgba(255, 250, 247, 0.90), rgba(255, 250, 247, 0.90)), url("/assets/img/afspraak-background.jpg") center / cover;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); color: #000;
}
.dialog::backdrop { background: rgba(0, 0, 0, 0.50); }
.dialog:target:not([open]) { display: block; position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%); z-index: 50; margin: 0; }
.dialog h2 {
  font-size: clamp(1.75rem, 6.7vw, 2.5rem); font-weight: 900; line-height: 1.02;
  letter-spacing: -0.045em; padding-right: 1.5rem; margin-bottom: 2.5rem;
  overflow-wrap: break-word;
}
.dialog-checkup { color: var(--checkup); }
.dialog-ortho { color: var(--ortho); }
.dialog-close { position: absolute; top: 1rem; right: 0.75rem; width: 2.25rem; height: 2.25rem; color: #000; }
.dialog-close::before, .dialog-close::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: currentColor; transform: rotate(45deg); }
.dialog-close::after { transform: rotate(-45deg); }
.dialog-intro { color: var(--navy); font-size: 1rem; margin-bottom: 0.875rem; }
.dialog-choices { display: grid; gap: 2rem; }
.dialog-choices > div { min-width: 0; text-align: center; }
.dialog-choices .btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 2.625rem;
  padding: 0.625rem 0.75rem; margin-bottom: 1.25rem; border: 0;
  font-size: 1rem; font-weight: 500; line-height: 1.25; letter-spacing: 0.04em;
}
.dialog-choices .btn-checkup { background: var(--checkup); color: #fff; }
.dialog-choices .btn-checkup:hover { background: #69c96f; }
.dialog-choices .btn-ortho { background: var(--ortho); color: #fff; }
.dialog-choices .btn-ortho:hover { background: #c90660; }
.dialog-choices .note { color: #000; font-size: 0.875rem; line-height: 1.15; margin: 0 auto; max-width: 31rem; }
.dialog-choices .note a { color: inherit; }
@media (min-width: 560px) {
  .dialog-choices { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Recruitment mock-up */
.vacancy-hint { margin-top: 0.65rem; }
.vacancy-dialog { position: fixed; width: min(100% - 2rem, 590px); max-height: calc(100dvh - 2rem); overflow: auto; border: 0; border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); color: var(--text); box-shadow: var(--shadow); }
.vacancy-dialog::backdrop { background: rgba(15, 31, 59, 0.6); }
.vacancy-dialog h2 { padding-right: 1.5rem; }
.vacancy-close { position: absolute; right: 0.75rem; top: 0.5rem; width: 44px; height: 44px; border: 0; background: transparent; color: var(--navy); font-size: 2rem; cursor: pointer; }
.vacancy-eyebrow { color: var(--blue); font-weight: 700; font-size: 0.9rem; margin: 0 3rem 0.5rem 0; }
.vacancy-preview { padding: 0.6rem 0.8rem; border-radius: 8px; background: var(--blue-soft); color: var(--navy); font-size: 0.9rem; }
.vacancy-dialog select { width: 100%; padding: 0.65rem 0.8rem; font: inherit; color: var(--text); border: 1px solid #8ea6d4; border-radius: 10px; background: var(--white); }
.vacancy-dialog .field label .note { font-weight: 400; }
.vacancy-dialog .btn { width: 100%; }
#vacancy-result { padding: 0.75rem; background: var(--blue-soft); border-radius: 8px; }
@media (min-width: 500px) { .vacancy-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
