/* Kinesitherapie Steven De Vroe, warm editorial system
   Accent kept close to the practice's existing brand teal (#00a685);
   a darker shade (--accent-strong) is used for text/buttons so contrast
   passes WCAG AA on the cream background. Fonts are self-hosted (see
   fonts/) so no request is sent to Google Fonts on page load. */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

:root {
  --bg-primary: #f6f4ee;
  --bg-secondary: #ede8db;
  --bg-inverse: #1c1b17;
  --text-primary: #211f1a;
  --text-secondary: #58544a;
  --text-muted: #6e6a5c;
  --accent: #00a685;
  --accent-strong: #00714f;
  --accent-strong-hover: #005c40;
  --accent-soft: #dcede5;
  --border: #ddd6c5;
  --border-strong: #cabf9e;
  --shadow-soft: 0 16px 40px -24px rgba(33, 31, 26, 0.35);

  --font-serif: "Source Serif 4", Georgia, "Iowan Old Style", serif;
  --font-sans: "Source Sans 3", -apple-system, "Segoe UI", Roboto, sans-serif;

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6rem;

  --radius: 10px;
  --max-width: 1180px;

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.text-balance { text-wrap: balance; }

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.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;
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -100%;
  background: var(--accent-strong);
  color: #fff;
  padding: var(--space-2) var(--space-3);
  border-radius: 0 0 8px 8px;
  z-index: 100;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.15;
  margin: 0 0 var(--space-3);
}

h1 { font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 1.4rem + 1.3vw, 2.4rem); letter-spacing: -0.005em; }
h3 { font-size: 1.15rem; margin-bottom: var(--space-1); }

p { margin: 0 0 var(--space-3); color: var(--text-secondary); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-strong); }
a:hover { color: var(--accent-strong-hover); }

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 var(--space-2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  touch-action: manipulation;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}
.icon-star {
  width: 0.85em;
  height: 0.85em;
  vertical-align: -0.05em;
  margin-inline: 0.15em;
  color: var(--accent-strong);
}

.text-link {
  display: inline-block;
  margin-top: var(--space-3);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-strong-hover); color: #fff; }

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn-ghost:hover { background: var(--bg-secondary); color: var(--text-primary); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 238, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2);
  gap: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--text-primary);
}
.brand-mark {
  border-radius: 50%;
  border: 1px solid var(--border);
}
.brand-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bar::before { position: absolute; top: -6px; }
.nav-toggle-bar::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.primary-nav a:not(.btn) {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}
.primary-nav a:not(.btn):hover {
  border-bottom-color: var(--accent);
}
.nav-cta { font-size: 0.9rem; padding: 0.55rem 1.1rem; }

/* Hero */
.hero { padding-block: var(--space-7) var(--space-8); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
}
.hero-lead {
  font-size: 1.15rem;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block: var(--space-4) var(--space-2);
}
.hero-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}
.hero-photo {
  display: block;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-stat-card {
  position: absolute;
  right: 0;
  bottom: 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.hero-stat-card:hover {
  border-color: var(--border-strong);
}
.hero-stat-number {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
  color: var(--accent-strong);
}
.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Sections */
.section { padding-block: var(--space-8); }
.section-alt { background: var(--bg-secondary); }

.section-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-6);
}
.section-head-center {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.section-lead {
  font-size: 1.05rem;
}

/* Treatments */
.treatment-photo {
  margin: var(--space-6) 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1600 / 1215;
}
.treatment-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.treatment-list {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.treatment-list > li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.treatment-list h3 { color: var(--accent-strong); }
.treatment-list > li > p { margin: 0 0 var(--space-2); }
.treatment-list > li > ul {
  margin: var(--space-2) 0 0;
  padding-left: 1.1rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.treatment-list > li > ul li { margin-bottom: 0.4rem; }
.treatment-list > li > ul li:last-child { margin-bottom: 0; }

/* Hours table */
.hours-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 360px;
  margin-bottom: var(--space-5);
  font-variant-numeric: tabular-nums;
}
.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
}
.hours-table th { color: var(--text-primary); font-weight: 500; }
.hours-table td { color: var(--text-secondary); }

.info-list {
  display: grid;
  gap: var(--space-4);
  margin: 0;
}
.info-list dt {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.info-list dd {
  margin: 0;
  color: var(--text-secondary);
}

/* Contact */
.contact-list {
  list-style: none;
  margin: var(--space-4) 0 var(--space-5);
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.contact-list a {
  font-size: 1.05rem;
  text-decoration: none;
}
.contact-list a:hover { text-decoration: underline; }

.contact-visual {
  display: grid;
  gap: var(--space-4);
  align-content: start;
}

.facade-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.facade-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 2176 / 1500;
  object-fit: cover;
}

.map-frame {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: var(--bg-secondary);
}
.map-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 1000;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.map-frame:hover img {
  transform: scale(1.03);
}
.map-frame-cta {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  background: #fff;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}
.map-note {
  margin-top: var(--space-2);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--bg-inverse);
  color: #d8d5cb;
  padding-block: var(--space-5);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
}
.footer-brand {
  font-family: var(--font-serif);
  color: #fff;
  margin-bottom: 0.2rem;
}
.footer-inner p { color: #b7b3a6; margin: 0; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-start;
}
.footer-contact a {
  color: #f6f4ee;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-start;
  font-size: 0.85rem;
}
.footer-legal a {
  color: #b7b3a6;
}
.footer-legal a:hover {
  color: #f6f4ee;
}

/* Scroll offset for anchor targets under sticky header */
#over, #behandelingen, #praktisch, #contact {
  scroll-margin-top: 84px;
}

/* Legal pages */
.legal-page { padding-block: var(--space-6) var(--space-8); }
.legal-wrap { max-width: 680px; }
.legal-page h1 { margin-top: var(--space-1); }
.legal-page h2 {
  font-size: 1.3rem;
  margin-top: var(--space-6);
}
.legal-page ul { color: var(--text-secondary); padding-left: 1.2rem; }
.legal-page li { margin-bottom: 0.4rem; }
.breadcrumbs {
  display: flex;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.breadcrumbs a:hover { color: var(--accent-strong-hover); }
.breadcrumbs [aria-current="page"] { color: var(--text-secondary); }
.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}
/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 240px; }
  .hero-photo { max-width: 300px; margin-inline: auto; }
  .section-split { grid-template-columns: 1fr; }
  .treatment-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav.is-static { display: flex; position: static; border: 0; padding: 0; background: transparent; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-3) var(--space-4) var(--space-4);
    gap: var(--space-2);
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a:not(.btn) { border-bottom: 1px solid var(--border); padding-block: var(--space-2); }
  .nav-cta { text-align: center; justify-content: center; margin-top: var(--space-2); }
  .header-inner { position: relative; }
}
