:root {
  --canvas: #faf6f0;
  --sand: #ede3d8;
  --taupe: #9b887b;
  --taupe-dark: #695a51;
  --nms-green: #718366;
  --nms-green-dark: #5f7056;
  --nms-green-light: #aebba5;
  --nms-green-soft: #edf0e9;
  --ink: #342d29;
  --white: #fff;
  --line: rgba(105, 90, 81, .2);
  --shadow: 0 18px 50px rgba(72, 57, 49, .09);
  --radius: 1.5rem;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--canvas); color: var(--ink); font: 400 1rem/1.7 var(--sans); }
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #695a51; outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(760px, 100%); }
.eyebrow { margin: 0 0 .8rem; color: var(--taupe-dark); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.55rem, 6vw, 4.75rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: 1.4rem; }
p { margin: .75rem 0 0; }
.lead { font-size: clamp(1.08rem, 2vw, 1.3rem); color: #554943; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--sand { background: var(--sand); }
.section-heading { margin-bottom: 2.4rem; }
.section-heading p { max-width: 680px; }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.button, .button:visited { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .5rem; border: 1px solid var(--taupe-dark); border-radius: 999px; background: var(--taupe-dark); color: #fff; padding: .68rem 1.15rem; font-weight: 750; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.button:hover, .button:active { transform: translateY(-2px); background: var(--ink); color: #fff; }
.button:disabled { cursor: wait; opacity: .68; transform: none; }
.button--light, .button--light:visited { border-color: var(--line); background: rgba(255,255,255,.92); color: var(--ink); }
.button--light:hover { background: var(--white); color: var(--ink); }
.button--text { border-color: transparent; background: transparent; color: var(--taupe-dark); padding-inline: .2rem; }
.button--text:hover { background: transparent; color: var(--ink); }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(250,246,240,.93); backdrop-filter: blur(15px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand img { width: 142px; height: auto; aspect-ratio: 1.8; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav > a:not(.button) { position: relative; font-weight: 650; text-decoration: none; }
.site-nav > a[aria-current='page']:not(.button)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.5rem; height: 2px; background: var(--taupe-dark); }
.menu-button { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); }
.menu-button span, .menu-button::before, .menu-button::after { content: ''; display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-button[aria-expanded='true'] span { opacity: 0; }
.menu-button[aria-expanded='true']::before { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded='true']::after { transform: translateY(-6px) rotate(-45deg); }

.hero { overflow: hidden; padding: clamp(4rem, 9vw, 8rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(2.5rem, 7vw, 7rem); }
.hero-grid > *, .split > *, .location-grid > *, .contact-layout > *, .contact-hero-grid > * { min-width: 0; }
.hero-copy p { max-width: 670px; }
.appointment-note { margin-top: 1.15rem; padding-left: 1rem; border-left: 3px solid var(--taupe); color: var(--taupe-dark); font-weight: 650; }
.hero-art { position: relative; min-height: 520px; overflow: hidden; border-radius: 14rem 14rem 2rem 2rem; background: linear-gradient(150deg, #d8c6b7, #f2e8de 62%, #a89587); box-shadow: var(--shadow); }
.hero-art::before { content: ''; position: absolute; inset: 2rem; border: 1px solid rgba(255,255,255,.6); border-radius: inherit; }
.hero-art > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-badge { position: absolute; right: -1rem; bottom: 2.5rem; width: 170px; padding: 1rem; border: 1px solid rgba(255,255,255,.8); border-radius: 1rem; background: rgba(255,255,255,.9); box-shadow: var(--shadow); font-size: .86rem; }
.hero-badge strong { display: block; color: var(--taupe-dark); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.76); padding: 1.5rem; box-shadow: 0 10px 28px rgba(72,57,49,.04); }
.icon { display: grid; width: 48px; height: 48px; margin-bottom: 1rem; place-items: center; border-radius: 50%; background: var(--sand); color: var(--taupe-dark); font-size: 1.25rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.split--image { grid-template-columns: .95fr 1.05fr; }
.media-frame { position: relative; margin: 0; overflow: hidden; border: 1px solid rgba(155,136,123,.3); border-radius: var(--radius); background: var(--sand); box-shadow: var(--shadow); }
.media-frame::before { content: ''; position: absolute; z-index: -1; width: 65%; aspect-ratio: 1; right: -12%; bottom: -18%; border-radius: 50%; background: var(--sand); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--landscape { aspect-ratio: 4 / 3; }
.media-frame--wide { max-height: 280px; margin-bottom: 2rem; aspect-ratio: 16 / 8; }
.care-copy { align-self: stretch; }
.feature-panel { position: relative; isolation: isolate; width: 100%; max-width: 100%; min-width: 0; min-height: 420px; display: flex; overflow: hidden; flex-direction: column; justify-content: flex-end; border-radius: var(--radius); background: url('assets/images/behandelingen-achtergrond-1400.webp') center / cover no-repeat; color: white; padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow); }
.feature-panel::before { content: ''; position: absolute; z-index: -1; inset: 0; background: rgba(52,45,41,.65); }
.feature-panel > * { width: 100%; max-width: min(100%, 34rem); min-width: 0; }
.feature-panel h2 { max-width: 100%; margin: 0; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.06; white-space: normal; overflow-wrap: normal; word-break: normal; text-wrap: balance; }
.feature-panel p { color: #efe7e1; }
.steps { display: grid; gap: 1rem; margin-top: 2rem; counter-reset: steps; }
.step { display: grid; grid-template-columns: 42px 1fr; gap: 1rem; align-items: start; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.step::before { counter-increment: steps; content: counter(steps); display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--sand); color: var(--taupe-dark); font-weight: 800; }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.location-card { display: flex; min-height: 520px; overflow: hidden; flex-direction: column; align-items: stretch; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.location-image { width: 100%; height: 230px; object-fit: cover; object-position: center; }
.location-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(1.6rem, 4vw, 2.5rem); }
.location-card .button { margin-top: auto; }
address { margin-top: 1rem; font-style: normal; }
.cta { border-radius: calc(var(--radius) + .5rem); background: var(--taupe-dark); color: #fff; padding: clamp(2rem, 6vw, 4.5rem); }
.cta p { max-width: 740px; color: #f3ebe6; }
.cta .button--light { background: #fff; }

.page-hero { padding: clamp(3rem, 7vw, 6rem) 0 3rem; }
.page-hero p { max-width: 760px; }
.contact-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(2rem, 7vw, 6rem); }
.contact-hero-image { height: 330px; margin: 0; overflow: hidden; border-radius: 8rem 8rem 1.5rem 1.5rem; box-shadow: var(--shadow); }
.contact-hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-stack { display: grid; gap: 1rem; }
.contact-card a { color: var(--taupe-dark); font-weight: 750; }
.contact-card .button, .contact-card .button:visited { color: #fff; }
.map-shell { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sand); box-shadow: var(--shadow); }
.map-panel { width: 100%; height: 410px; background: var(--sand); }
.map-fallback { margin: 0; padding: 1rem; background: #fff; color: var(--ink); font-weight: 700; }
.map-privacy { margin-top: 1rem; color: #655951; font-size: .82rem; }
.leaflet-container { font-family: var(--sans); }
.leaflet-popup-content-wrapper { border-radius: .8rem; }
.form-card { border-radius: var(--radius); background: #fff; padding: clamp(1.5rem, 5vw, 3rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.7rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
label, legend { font-weight: 750; }
.optional { color: #6c6059; font-size: .82rem; font-weight: 500; }
input, select, textarea { width: 100%; border: 1px solid #9a8f88; border-radius: .65rem; background: #fff; color: var(--ink); padding: .78rem .85rem; }
textarea { min-height: 145px; resize: vertical; }
input[aria-invalid='true'], select[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: #9b2f2f; box-shadow: 0 0 0 2px rgba(155,47,47,.12); }
.error { min-height: 1.25em; margin: 0; color: #862929; font-size: .82rem; font-weight: 700; }
.checkbox { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.checkbox input { width: 20px; height: 20px; margin-top: .18rem; }
.form-note { padding: .9rem 1rem; border-radius: .8rem; background: var(--sand); font-size: .9rem; }
.form-status { display: none; margin-top: 1rem; padding: 1rem; border-radius: .75rem; background: #e8f0e8; color: #29452f; font-weight: 700; }
.form-status.is-visible { display: block; }
.honeypot { position: absolute; left: -9999px; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.65rem, 4vw, 2.35rem); }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--taupe-dark); font-weight: 700; }
.error-page { min-height: 62vh; display: grid; align-items: center; }

.site-footer { background: var(--ink); color: #f7f2ee; padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.site-footer h2, .site-footer h3 { font-size: 1.15rem; }
.site-footer p, .site-footer address { color: #d9cec7; font-size: .9rem; }
.site-footer a { color: #fff; }
.footer-links { display: grid; gap: .45rem; margin-top: .75rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); color: #c8bbb3; font-size: .82rem; }


/* NMS green accent palette */
:focus-visible { outline-color: var(--nms-green); }
.eyebrow { color: var(--nms-green-dark); }
.button, .button:visited { border-color: var(--nms-green); background: var(--nms-green); transition: transform .2s, background .2s, border-color .2s, color .2s; }
.button:hover, .button:active { border-color: var(--nms-green-dark); background: var(--nms-green-dark); }
.button--light, .button--light:visited { border-color: var(--line); background: rgba(255,255,255,.92); color: var(--ink); }
.button--light:hover { border-color: var(--nms-green-light); background: var(--white); color: var(--nms-green-dark); }
.button--text { border-color: transparent; background: transparent; color: var(--nms-green-dark); }
.button--text:hover { border-color: transparent; background: transparent; color: var(--nms-green); }
.site-nav > a:not(.button) { transition: color .2s; }
.site-nav > a:not(.button):hover, .site-nav > a[aria-current='page']:not(.button) { color: var(--nms-green-dark); }
.site-nav > a[aria-current='page']:not(.button)::after { background: var(--nms-green); }
.appointment-note { border-left-color: var(--nms-green-light); }
.hero-badge strong { color: var(--nms-green-dark); }
.card { border-color: rgba(113,131,102,.24); border-top-color: var(--nms-green-light); transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: rgba(113,131,102,.42); box-shadow: 0 14px 32px rgba(72,57,49,.07); }
.icon, .step::before { background: var(--nms-green-soft); color: var(--nms-green-dark); }
.cta { background: var(--nms-green-dark); }
.cta .eyebrow { color: #dfe6da; }
.contact-card a, .prose a { color: var(--nms-green-dark); }
input:focus, select:focus, textarea:focus { border-color: var(--nms-green); outline: 0; box-shadow: 0 0 0 3px rgba(113,131,102,.16); }
.checkbox input { accent-color: var(--nms-green); }
.form-note { background: var(--nms-green-soft); }
.site-footer { border-top: 3px solid var(--nms-green); }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: var(--nms-green-light); }


/* Light appointment CTA */
.cta { background: var(--nms-green-soft); color: var(--ink); }
.cta .eyebrow { color: var(--nms-green-dark); }
.cta p { color: #554943; }
.cta .button--light, .cta .button--light:visited { border-color: var(--nms-green); background: var(--nms-green); color: #fff; }
.cta .button--light:hover, .cta .button--light:active { border-color: var(--nms-green-dark); background: var(--nms-green-dark); color: #fff; }
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-art { min-height: 440px; }
}
@media (max-width: 720px) {
  .menu-button { display: block; }
  .site-nav { position: fixed; inset: 78px 0 auto; display: none; align-items: stretch; flex-direction: column; gap: .3rem; border-bottom: 1px solid var(--line); background: var(--canvas); padding: 1rem; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.button) { padding: .8rem; }
  .site-nav > a[aria-current='page']:not(.button)::after { left: .8rem; right: auto; bottom: .5rem; width: 1.5rem; }
  .hero-grid, .split, .location-grid, .contact-layout, .contact-hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 360px; border-radius: 10rem 10rem 1.5rem 1.5rem; }
  .feature-panel { min-height: 360px; background-image: url('assets/images/behandelingen-achtergrond-800.webp'); }
  .contact-hero-image { height: 240px; border-radius: 1.5rem; }
  .map-panel { height: 300px; }
  .hero-badge { right: .75rem; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
}
@media (max-width: 520px) {
  .cards, .footer-grid { grid-template-columns: 1fr; }
  .button-row .button { width: 100%; }
  .hero { padding-top: 2rem; }
  .hero-art { min-height: 300px; }
  .brand img { width: 118px; }
  .section { padding-block: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
