/* ==========================================================================
   Massagepraktijk Medialis
   Palette derived from the practice's own photography: warm sand walls,
   deep blue treatment linen, sage plants.
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces.woff2') format('woff2-variations');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('/fonts/karla.woff2') format('woff2-variations');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour */
  --sand-50:  #f8f5f0;
  --sand-100: #f1ece3;
  --sand-150: #e9e2d6;
  --sand-200: #ded5c6;
  --ink-900:  #1b2a33;
  --ink-700:  #33454f;
  --ink-500:  #5b6c76;
  --blue-700: #24576f;
  --blue-800: #1a4256;
  --blue-900: #14313f;
  --sage-600: #6f8a63;
  --sage-100: #e4ead9;
  --white:    #ffffff;

  /* type */
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* space */
  --wrap: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  --radius: 4px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(27, 42, 51, .05), 0 12px 32px -18px rgba(27, 42, 51, .28);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand-50);
  color: var(--ink-700);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink-900);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5.2vw, 3.6rem); font-variation-settings: 'opsz' 96; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-variation-settings: 'opsz' 48; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-variation-settings: 'opsz' 24; }
h4 { font-size: 1.0625rem; font-family: var(--body); font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-700); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-900); }

img { max-width: 100%; height: auto; display: block; }

strong { font-weight: 700; color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--blue-700);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--blue-800); color: var(--white);
  padding: .7rem 1.1rem; border-radius: var(--radius); font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- layout primitives ---------- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section-y); }
.section-alt { background: var(--sand-100); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.eyebrow {
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage-600);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: '';
  width: 1.6rem; height: 1px;
  background: var(--sage-600);
  flex: none;
}

.lede { font-size: clamp(1.075rem, 1.7vw, 1.25rem); color: var(--ink-700); line-height: 1.65; }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--body); font-size: 1rem; font-weight: 600; line-height: 1;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--blue-700); color: var(--white); }
.btn-primary:hover { background: var(--blue-900); color: var(--white); }

.btn-ghost { background: transparent; color: var(--ink-900); border-color: var(--sand-200); }
.btn-ghost:hover { background: var(--white); border-color: var(--ink-500); color: var(--ink-900); }

.btn-light { background: var(--white); color: var(--blue-900); }
.btn-light:hover { background: var(--sand-100); color: var(--blue-900); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.75); }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.icon { width: 1.05em; height: 1.05em; flex: none; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 245, 240, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-200);
}

.header-inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 74px;
}

.brand { display: flex; align-items: baseline; gap: .6rem; text-decoration: none; margin-right: auto; flex: none; }
.brand-name {
  font-family: var(--display);
  font-size: 1.5rem;
  font-variation-settings: 'opsz' 36;
  color: var(--ink-900);
  line-height: 1;
  letter-spacing: -0.015em;
}
.brand-sub {
  font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-500); font-weight: 600; white-space: nowrap;
}

.nav-list { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: .55rem .7rem;
  font-size: .95rem; font-weight: 500; color: var(--ink-700);
  text-decoration: none; border-radius: var(--radius);
  white-space: nowrap;
}

@media (max-width: 1420px) {
  .brand-sub { display: none; }
}
.nav-list a:hover { color: var(--ink-900); background: var(--sand-150); }
.nav-list a[aria-current="page"] { color: var(--blue-800); font-weight: 700; }

.header-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  align-items: center; gap: .5rem;
  background: transparent; border: 1px solid var(--sand-200); border-radius: 999px;
  padding: .55rem .9rem; font: inherit; font-size: .9rem; font-weight: 600;
  color: var(--ink-900); cursor: pointer;
}
.nav-toggle .bars { display: block; width: 16px; height: 2px; background: currentColor; position: relative; }
.nav-toggle .bars::before,
.nav-toggle .bars::after { content: ''; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; }
.nav-toggle .bars::before { top: -5px; }
.nav-toggle .bars::after { top: 5px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--sand-50);
    border-bottom: 1px solid var(--sand-200);
    padding: .75rem var(--gutter) 1.5rem;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { padding: .8rem .25rem; border-bottom: 1px solid var(--sand-150); }
  .nav-mobile-cta { margin-top: 1rem; display: flex; flex-direction: column; gap: .6rem; }
}
@media (min-width: 961px) {
  .nav-mobile-cta { display: none; }
}

/* ---------- hero ---------- */

.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 { margin-bottom: .45em; }

.hero-actions { margin-top: 2rem; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: .5rem 1.75rem;
  margin: 2.25rem 0 0; padding: 1.4rem 0 0;
  border-top: 1px solid var(--sand-200);
  list-style: none;
  font-size: .92rem;
}
.hero-trust li { display: flex; align-items: baseline; gap: .5rem; color: var(--ink-500); }
.hero-trust b { font-family: var(--display); font-size: 1.35rem; color: var(--blue-800); font-weight: 500; font-variation-settings: 'opsz' 24; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card {
  position: absolute;
  left: -1.5rem; bottom: -1.5rem;
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow);
  max-width: 15.5rem;
}
.hero-card p { font-size: .86rem; line-height: 1.5; color: var(--ink-500); margin: 0; }
.hero-card .hero-card-title {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--sage-600); margin-bottom: .4rem;
}
.hero-card b { color: var(--ink-900); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 3 / 2; }
  .hero-card { position: static; max-width: none; margin-top: 1rem; }
}

/* ---------- klachtenwijzer (signature) ---------- */

.guide { background: var(--white); border-block: 1px solid var(--sand-200); }

.guide-grid { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }

.guide-list { list-style: none; margin: 0; padding: 0; }

.guide-item { border-top: 1px solid var(--sand-200); }
.guide-item:last-child { border-bottom: 1px solid var(--sand-200); }

.guide-item a {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto;
  gap: .5rem 1.5rem;
  align-items: baseline;
  padding: 1.15rem .25rem;
  text-decoration: none;
  color: var(--ink-700);
  transition: background-color .18s ease, padding .18s ease;
}
.guide-item a:hover { background: var(--sand-100); padding-inline: .75rem; }

.guide-klacht {
  font-family: var(--display);
  font-size: 1.2rem;
  font-variation-settings: 'opsz' 24;
  color: var(--ink-900);
  line-height: 1.3;
}
.guide-answer { font-size: .95rem; color: var(--ink-500); }
.guide-answer em { font-style: normal; color: var(--sage-600); font-weight: 600; }
.guide-arrow { color: var(--blue-700); font-size: 1.1rem; line-height: 1; }
.guide-item a:hover .guide-arrow { color: var(--blue-900); }

@media (max-width: 900px) {
  .guide-grid { grid-template-columns: 1fr; }
  .guide-item a { grid-template-columns: 1fr auto; }
  .guide-answer { grid-column: 1 / -1; }
}

/* ---------- treatment cards ---------- */

.cat-group + .cat-group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.cat-title {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--body); font-size: .82rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--ink-500);
  margin: 0 0 1.35rem;
}
.cat-title::after { content: ''; flex: 1; height: 1px; background: var(--sand-200); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1.1rem;
}

.card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--ink-700);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: var(--blue-700); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink-700); }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .95rem; color: var(--ink-500); }
.card-link {
  margin-top: auto; padding-top: 1.1rem; font-size: .9rem; font-weight: 600; color: var(--blue-700);
  display: inline-flex; align-items: center; gap: .4rem;
}
.card:hover .card-link { color: var(--blue-900); }

.card-media { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.1rem; }
.card-media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

/* ---------- value points ---------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.value-item { border-top: 2px solid var(--sage-600); padding-top: 1.1rem; }
.value-item h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.value-item p { font-size: .95rem; color: var(--ink-500); }

/* ---------- quote band ---------- */

.quote-band { background: var(--blue-800); color: var(--sand-100); }
.quote-band .wrap-narrow { text-align: center; }

.quote-band blockquote {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: 'opsz' 96;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.25;
  color: var(--white);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.quote-band .quote-after { margin-top: 1.5rem; font-size: 1.05rem; color: rgba(255,255,255,.82); }
.quote-band cite {
  display: block; margin-top: 1.5rem; font-style: normal;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6);
}
.quote-band .btn-row { justify-content: center; margin-top: 2.25rem; }

/* ---------- split (image + text) ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.split-media.is-portrait img { aspect-ratio: 3 / 4; }
.split-reverse .split-media { order: 2; }
@media (max-width: 760px) {
  .split-reverse .split-media { order: 0; }
}

/* ---------- steps (werkwijze) ---------- */

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.steps > li {
  counter-increment: step;
  display: grid; grid-template-columns: 3rem 1fr; gap: 1.25rem;
  align-items: start;
}
.steps > li::before {
  content: counter(step);
  font-family: var(--display); font-size: 1.35rem; font-variation-settings: 'opsz' 24;
  color: var(--blue-700);
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border: 1px solid var(--sand-200); border-radius: 50%;
  background: var(--white);
}
.steps h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.steps p { font-size: .97rem; color: var(--ink-500); }

/* ---------- price ---------- */

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.1rem; }
.price-card {
  background: var(--white); border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg); padding: 1.75rem;
}
.price-card.is-primary { border-color: var(--blue-700); border-width: 2px; }
.price-amount {
  font-family: var(--display); font-variation-settings: 'opsz' 48;
  font-size: 2.6rem; color: var(--blue-800); line-height: 1; margin: .35rem 0 .1rem;
}
.price-unit { font-size: .9rem; color: var(--ink-500); }
.price-card h3 { font-size: 1.1rem; margin-bottom: 0; }
.price-note { font-size: .95rem; color: var(--ink-500); margin-top: 1rem; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--sand-200); }
.faq-item { border-bottom: 1px solid var(--sand-200); padding: 1.4rem 0; }
.faq-item h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.faq-item p { font-size: .99rem; color: var(--ink-500); }

/* ---------- info list / NAP ---------- */

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.info-list li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: baseline; font-size: 1rem; }
.info-list .info-label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-500); }
.info-list a { font-weight: 600; }

.hours-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.hours-table th, .hours-table td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--sand-200); font-weight: 400; }
.hours-table th { color: var(--ink-900); font-weight: 500; }
.hours-table td { text-align: right; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.hours-table .is-closed { color: var(--ink-500); opacity: .75; }

.contact-panel {
  background: var(--white); border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem);
}

.map-link { display: block; text-decoration: none; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--sand-200); }
.map-link img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.map-link span {
  display: flex; align-items: center; gap: .5rem;
  padding: .85rem 1.1rem; background: var(--white);
  font-size: .95rem; font-weight: 600; color: var(--blue-700);
}
.map-link:hover span { color: var(--blue-900); background: var(--sand-100); }
.map-placeholder {
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: var(--sand-100); color: var(--ink-500); font-size: .95rem;
}

/* ---------- prose (long text pages) ---------- */

.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; font-size: 1.2rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--sage-600); }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.prose figcaption { font-size: .88rem; color: var(--ink-500); margin-top: .6rem; }

.callout {
  background: var(--sage-100);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  margin: 2rem 0;
  font-size: .99rem;
}
.callout h3 { font-size: 1.05rem; font-family: var(--body); font-weight: 700; margin-bottom: .4rem; }
.callout p { color: var(--ink-700); }

/* ---------- breadcrumbs ---------- */

.breadcrumbs { padding-block: 1.1rem; font-size: .85rem; color: var(--ink-500); border-bottom: 1px solid var(--sand-200); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.breadcrumbs li::after { content: '›'; margin-left: .5rem; color: var(--sand-200); }
.breadcrumbs li:last-child::after { content: none; }
.breadcrumbs a { color: var(--ink-500); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue-700); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink-900); }

/* ---------- page header ---------- */

.page-head { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.75rem, 3vw, 2.5rem); }
.page-head h1 { margin-bottom: .35em; }
.page-head .lede { max-width: 62ch; }

/* ---------- gallery ---------- */

.gallery { columns: 3 17rem; column-gap: 1rem; }
.gallery img { width: 100%; margin-bottom: 1rem; border-radius: var(--radius-lg); break-inside: avoid; }

/* ---------- CTA band ---------- */

.cta-band { background: var(--sand-100); border-top: 1px solid var(--sand-200); }
.cta-band .cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { color: var(--ink-500); max-width: 46ch; }

/* ---------- footer ---------- */

.site-footer { background: var(--blue-900); color: rgba(255,255,255,.72); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}
.footer-brand .brand-name { color: var(--white); font-size: 1.6rem; }
.footer-brand p { font-size: .95rem; margin-top: .75rem; }

.footer-title {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--white); margin: 0 0 1rem;
  font-family: var(--body);
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .95rem; }

.footer-hours { width: 100%; border-collapse: collapse; font-size: .93rem; }
.footer-hours th, .footer-hours td { padding: .3rem 0; text-align: left; font-weight: 400; color: rgba(255,255,255,.72); }
.footer-hours td { text-align: right; font-variant-numeric: tabular-nums; }

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .85rem; color: rgba(255,255,255,.55);
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .btn:hover, .card:hover { transform: none; }
}
