/* ==========================================================================
   FYSIO VAN DIJK — stylesheet
   Kleuren, typografie en lay-out staan als CSS-variabelen bovenaan,
   zodat je makkelijk kunt spelen met tinten zonder de hele stylesheet
   door te hoeven.
   ========================================================================== */

:root {
  /* Kleuren — rustig, klinisch fris, met een menselijk accent */
  --mist: #F4F7F6;        /* lichte achtergrond, koel wit-groen */
  --mist-alt: #E9EFEE;    /* iets donkerder, voor afwisselende secties */
  --deep: #16302E;        /* diep bosgroen-blauw — voor donkere vlakken en tekst */
  --ink: #1F2E2C;         /* hoofdtekstkleur */
  --teal: #2F8F7C;        /* primaire accent — beweging, herstel */
  --teal-dark: #24705F;   /* donkerder teal, voor hover-states */
  --amber: #E08E45;       /* warm accent — menselijke kant van de zorg */
  --line: rgba(31, 46, 44, 0.12);

  /* Typografie */
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Overige */
  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(22, 48, 46, 0.08);
  --container-width: 1160px;
}

/* ---------- Reset & basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--mist);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--deep);
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 2px;
}

/* ---------- Herbruikbare elementen ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal-dark);
  letter-spacing: 0.03em;
  margin-bottom: 0.6em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9em 1.6em;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--teal-dark); }

.btn-ghost { background: transparent; color: var(--deep); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--deep); }

.btn-small { padding: 0.6em 1.2em; font-size: 0.85rem; }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3em 0.8em;
  border-radius: 6px;
  margin-bottom: 0.9em;
}
.tag-teal  { background: rgba(47,143,124,0.14); color: var(--teal-dark); }
.tag-amber { background: rgba(224,142,69,0.16); color: #A8611D; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 247, 246, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(22,48,46,0.08); border-color: var(--line); }

.header-inner { display: flex; align-items: center; gap: 24px; padding-top: 16px; padding-bottom: 16px; }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  color: var(--deep); margin-right: auto;
}
.logo em { font-style: normal; color: var(--teal-dark); }

.logo-icon {
  width: 30px; height: 30px;
  stroke: var(--teal); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}

.main-nav { display: flex; gap: 28px; }
.main-nav a { font-weight: 500; font-size: 0.95rem; position: relative; padding: 4px 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--teal); transform: scaleX(0); transition: transform 0.25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.nav-cta { white-space: nowrap; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--deep); transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding-top: 64px; overflow: hidden; background: linear-gradient(180deg, var(--mist) 0%, var(--mist-alt) 100%); }

.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-bottom: 96px; }

.hero-text h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.3rem); max-width: 14ch; }
.hero-sub { max-width: 46ch; font-size: 1.05rem; color: var(--ink); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 40px; }

.hero-stats { display: flex; gap: 32px; margin: 0; flex-wrap: wrap; }
.hero-stats dt { font-family: var(--font-display); font-size: 1.7rem; color: var(--teal-dark); font-weight: 600; }
.hero-stats dd { margin: 0; font-size: 0.85rem; color: var(--ink); }

/* Goniometer-illustratie (range-of-motion) */
.hero-visual { display: flex; justify-content: center; }
.rom-illustration { width: 100%; max-width: 320px; }
.rom-dial { fill: none; stroke: var(--line); stroke-width: 2; }
.rom-base { stroke: var(--line); stroke-width: 3; stroke-linecap: round; }
.rom-arc {
  fill: none; stroke: var(--amber); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: sweep-arc 2s ease-out 0.4s forwards;
}
.rom-needle {
  stroke: var(--teal-dark); stroke-width: 3; stroke-linecap: round;
  transform-origin: 160px 220px;
  animation: sweep-needle 2s ease-out 0.4s forwards;
}
.rom-figure { stroke: var(--deep); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; fill: var(--teal); }

@keyframes sweep-arc { to { stroke-dashoffset: 0; } }
@keyframes sweep-needle { from { transform: rotate(0deg); } to { transform: rotate(45deg); } }

.wave-divider { display: block; width: 100%; height: 30px; fill: var(--mist); margin-top: -30px; position: relative; }

/* ==========================================================================
   SECTIES ALGEMEEN
   ========================================================================== */
.section { padding: 88px 0; }
.section-alt { background: var(--mist-alt); }

.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 2vw + 1rem, 2.3rem); }
.section-lead { color: var(--ink); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-text h2 { font-size: clamp(1.8rem, 2vw + 1rem, 2.3rem); }

.pulse-pattern {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(100deg, rgba(255,255,255,0.12) 0 2px, transparent 2px 30px),
    linear-gradient(135deg, #2F8F7C, #16302E);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.pulse-pattern-alt { background: linear-gradient(135deg, #E08E45, #16302E); }

.stat-row { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.stat-row dt { font-family: var(--font-display); font-size: 1.5rem; color: var(--teal-dark); font-weight: 600; }
.stat-row dd { margin: 0; font-size: 0.85rem; }

/* ---------- Behandelingen: tabs + kaarten ---------- */
.tab-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.tab-btn {
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  padding: 0.6em 1.3em; border-radius: 999px; border: 1px solid var(--line);
  background: var(--mist); color: var(--ink); cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tab-btn:hover { border-color: var(--teal); }
.tab-btn.is-active { background: var(--deep); border-color: var(--deep); color: #fff; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.product-card {
  background: var(--mist); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-soft); border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(22,48,46,0.12); }
.product-card h3 { font-size: 1.15rem; margin-bottom: 0.3em; }
.product-card p { margin: 0; font-size: 0.95rem; }
.product-card.is-hidden { display: none; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.team-card { text-align: center; }
.avatar {
  width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--deep); color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
}
.team-card h3 { font-size: 1.1rem; margin-bottom: 0.2em; }
.team-role { color: var(--teal-dark); font-weight: 600; font-size: 0.85rem; margin-bottom: 0.6em; }
.team-card p:last-child { font-size: 0.9rem; }

/* ---------- Openingstijden / status ---------- */
.status-badge {
  display: inline-block; font-weight: 700; padding: 0.5em 1em; border-radius: 999px;
  background: rgba(47,143,124,0.14); color: var(--teal-dark); margin-bottom: 20px;
}
.status-badge.closed { background: rgba(224,142,69,0.16); color: #A8611D; }

.hours-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-bottom: 20px; }
.hours-table th, .hours-table td { text-align: left; padding: 10px 4px; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours-table th { color: var(--deep); font-weight: 600; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }

/* ---------- Testimonial ---------- */
.testimonial { text-align: center; background: var(--deep); color: var(--mist); }
.testimonial .container { max-width: 720px; }
.quote-mark { width: 40px; margin: 0 auto 20px; fill: var(--amber); }
.quote { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 1.4vw + 1rem, 1.5rem); line-height: 1.5; }
.quote-author { margin-top: 16px; color: var(--amber); font-weight: 700; font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { padding-top: 0; }
.contact-list strong { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--teal-dark); }
.contact-list a:hover { text-decoration: underline; }

.contact-form { background: var(--mist-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-soft); }
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; }
.form-row label { font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  font: inherit; padding: 0.7em 0.9em; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); resize: vertical;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--teal); }
.form-row.has-error input, .form-row.has-error textarea { border-color: var(--amber); }
.form-error { display: block; min-height: 1.2em; font-size: 0.8rem; color: #A8611D; margin-top: 4px; }
.form-success { margin-top: 16px; font-weight: 700; color: var(--teal-dark); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--deep); color: rgba(244,247,246,0.8); padding-top: 56px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(244,247,246,0.12); }
.footer-brand { max-width: 340px; }
.footer-brand .logo { color: var(--mist); margin-bottom: 12px; }
.footer-brand .logo-icon { stroke: var(--amber); }
.footer-brand p { font-size: 0.9rem; margin: 0; }

.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 0.9rem; }
.footer-nav a:hover { color: var(--amber); }

.footer-bottom { padding: 20px 24px; font-size: 0.8rem; text-align: center; color: rgba(244,247,246,0.55); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 240px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; }
  .split-visual { order: -1; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--mist); flex-direction: column; align-items: center; gap: 0;
    padding: 8px 0 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-soft);
    transform: translateY(-130%); opacity: 0; pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 0; width: 100%; text-align: center; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 20px; }
  .contact-form { padding: 22px; }
  .tab-buttons { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
}
