/* ==========================================================================
   JFH Tandartsen - eigen stylesheet
   Afgeleid van de live site (jfhtandartsen.nl). Zie design.md.
   Belangrijkste verbetering t.o.v. origineel: ruimere regel- en
   alinea-afstand in de bodytekst.
   ========================================================================== */

@import url("fonts.css");

/* ---------- Design tokens ---------- */
:root {
  /* kleuren */
  --c-primary:    #0077B6;
  --c-deep:       #00669D;
  --c-light-blue: #6EC1E4;
  --c-navy:       #16264A;
  --c-text:       #54595F;
  --c-heading:    #2B2B2B;
  --c-muted:      #7A7A7A;
  --c-green:      #61CE70;
  --c-peach:      #FFBC7D;
  --c-bg:         #FFFFFF;
  --c-bg-soft:    #F5F7FA;
  --c-bg-gray:    #EBEBEB;

  /* typografie */
  --font-head: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ritme */
  --container: 1140px;
  --radius:    12px;
  --radius-sm: 3px;
  --section-y: clamp(64px, 8vw, 110px);

  /* ruimere leesbaarheid (alinea's stonden te dicht op elkaar) */
  --body-line: 1.8;
  --para-gap:  1.5em;

  /* motion (Impeccable animate) - ease-out curves, geen bounce */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;        /* sticky header niet over de titel na #anker-sprong */
  -webkit-text-size-adjust: 100%;
}

/* ---------- Toegankelijkheid: skip-link & focus ---------- */
.skip-link {
  position: absolute;
  left: -9999px;                     /* volledig buiten beeld tot focus */
  top: 12px;
  z-index: 100;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: 12px;
  text-decoration: none;
}

/* zichtbare focus-indicator voor toetsenbordgebruik */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--c-light-blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: var(--body-line);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-heading);
  line-height: 1.2;
}
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.15; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
h4 { font-size: 20px; }

/* lopende tekst - ruime alinea-afstand */
p {
  line-height: var(--body-line);
  max-width: 70ch;
}
p + p { margin-top: var(--para-gap); }
.prose p { margin-bottom: var(--para-gap); }
.prose p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 14px;
  color: var(--c-primary);
  margin-bottom: .75rem;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.section { padding-block: var(--section-y); }
.section--soft { background: var(--c-bg-soft); }
.section--navy { background: var(--c-navy); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.grid-2 {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 860px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* ---------- Knoppen ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease,
              transform .15s var(--ease-out-quart), box-shadow .2s var(--ease-out-quart);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,102,157,.22); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: 0 3px 8px rgba(0,102,157,.18); transition-duration: .08s; }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-deep); }
.btn--secondary { background: var(--c-deep); color: #fff; }
.btn--secondary:hover { background: var(--c-navy); }
.btn--outline {
  background: transparent;
  color: var(--c-deep);
  border-color: var(--c-deep);
}
.btn--outline:hover { background: var(--c-deep); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eee;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}
.site-header .logo img { height: 56px; width: auto; }
.nav {
  display: flex;
  gap: clamp(16px, 2.5vw, 34px);
  list-style: none;
  padding: 0;
}
.nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--c-heading);
}
.nav a:hover { color: var(--c-primary); text-decoration: none; }

.nav-toggle {
  display: none;
  margin-left: auto;            /* duwt de knop naar het einde van de div */
  flex-direction: column;
  align-items: center;
  gap: 3px;                     /* label en lijntjes dicht op elkaar = 1 geheel */
  background: none; border: 0; padding: 4px;
  color: var(--c-navy); cursor: pointer;
}
.nav-toggle__label {            /* label 'Menu' boven de lijntjes */
  font-family: var(--font-head);
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  line-height: 1;
}
.nav-toggle__bars { display: flex; flex-direction: column; gap: 4px; }
.nav-toggle__bars span {
  display: block; width: 24px; height: 2.5px;
  background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
/* open-staat: kruisje */
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    background: #fff;
    padding: 16px 24px 24px;
    border-bottom: 1px solid #eee;
  }
  .nav.open { display: flex; }
}

/* ---------- Dropdown-submenu (Onze Praktijk) ---------- */
.nav .has-sub { position: relative; }
.subnav {
  list-style: none; margin: 0; padding: 8px 0;
  position: absolute; top: 100%; left: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid #eee; border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.nav .has-sub:hover .subnav,
.nav .has-sub:focus-within .subnav {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.subnav a { display: block; padding: 9px 20px; font-size: 15px; }
.subnav a:hover { background: var(--c-bg-soft); color: var(--c-primary); text-decoration: none; }

/* "Spoed" als urgent accent in de nav */
.nav .nav-spoed { color: #c0392b; }
.nav .nav-spoed:hover { color: #a5281b; }

@media (max-width: 760px) {
  /* submenu inline tonen in mobiel menu */
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 4px 0 4px 14px; min-width: 0;
  }
}

/* ---------- Hero met achtergrond-afbeelding ---------- */
.hero-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 78vh, 760px);
  color: #fff;
  background: var(--c-navy);
  overflow: hidden;
}
.hero-banner::before {           /* de foto */
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero-banner::after {            /* leesbaarheids-overlay */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(11,24,48,.92) 0%,
    rgba(11,24,48,.72) 42%,
    rgba(11,24,48,.30) 100%);
}
.hero-banner .hero-content { max-width: 640px; }
.hero-banner h1 { color: #fff; margin-bottom: 1.25rem; }
.hero-banner p  { color: #e7eef7; font-size: 19px; }
.hero-banner .btn--outline { color: #fff; border-color: #fff; }
.hero-banner .btn--outline:hover { background: #fff; color: var(--c-navy); }
@media (max-width: 760px) {
  .hero-banner::after {
    background: linear-gradient(rgba(11,24,48,.85), rgba(11,24,48,.78));
  }
}

/* ---------- Band met achtergrond-afbeelding (CTA / sectie-hero) ---------- */
.banner {
  position: relative;
  isolation: isolate;
  padding-block: clamp(72px, 10vw, 130px);
  color: #fff;
  text-align: center;
  background: var(--c-navy);
  overflow: hidden;
}
.banner::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image: var(--hero-img);
  background-size: cover; background-position: center;
}
.banner::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(0,102,157,.82), rgba(11,24,48,.88));
}
.banner h2 { color: #fff; }
.banner p { color: #e7eef7; margin-inline: auto; }
.banner .btn-row { justify-content: center; }

/* ---------- Feature-banner (Waarom JFH) - foto + blauwe shadow rechts ---------- */
.feature-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(440px, 60vh, 600px);
  padding-block: clamp(64px, 9vw, 110px);
  color: #fff;
  background: var(--c-navy);
  overflow: hidden;
}
.feature-banner::before {                 /* foto van Jitse aan het werk */
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center right;
}
.feature-banner::after {                  /* donker links voor tekst, blauwe shadow rechts */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(10,22,45,.93) 0%,
    rgba(10,22,45,.74) 30%,
    rgba(10,22,45,.28) 54%,
    rgba(0,90,150,.42) 100%);
}
.feature-banner .feature-content { max-width: 560px; }
.feature-banner h2 { color: #fff; margin-bottom: 1.5rem; }
.feature-banner .benefits li { color: #f1f6fc; }
@media (max-width: 760px) {
  /* foto rechts uitlijnen: alleen een deel van het hoofd zichtbaar */
  .feature-banner::before { background-position: right top; }
  .feature-banner::after {
    background: linear-gradient(rgba(10,22,45,.82), rgba(0,70,120,.74));
  }
}

/* ---------- Klassieke hero (fallback / blob) ---------- */
.hero { padding-block: clamp(48px, 7vw, 90px); }
.hero h1 { margin-bottom: 1.25rem; }
.hero p { font-size: 19px; }

/* organische blob-vorm rond beeld */
.blob {
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  overflow: hidden;
  background: var(--c-light-blue);
  aspect-ratio: 1 / 1;
  box-shadow: 0 30px 60px rgba(0,102,157,.18);
}
.blob img { width: 100%; height: 100%; object-fit: cover; }

.media-rounded img { border-radius: var(--radius); }

/* ---------- Decoratieve zij-blobs (zoals live site) ---------- */
.deco-blob-left,
.deco-blob-right { position: relative; overflow: hidden; }
.deco-blob-left > .container,
.deco-blob-right > .container { position: relative; z-index: 1; }
.deco-blob-left::before,
.deco-blob-right::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .9;
}
.deco-blob-left::before {
  left: 0; top: 50%; transform: translateY(-50%);
  width: min(200px, 16vw); height: 420px;
  background-image: url('../img/VectorBlob.png');
  background-position: left center;
}
.deco-blob-right::before {
  right: 0; top: 18%;
  width: min(230px, 18vw); height: 440px;
  background-image: url('../img/BlobBlob.png');
  background-position: right center;
}
@media (max-width: 760px) {
  /* op mobiel uit om de content niet te overlappen */
  .deco-blob-left::before,
  .deco-blob-right::before { display: none; }
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: clamp(24px, 4vw, 40px);
  margin-top: 3rem;
}
.team-card { text-align: center; }
.team-card .avatar {
  width: 160px;
  height: 160px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 12px 28px rgba(0,102,157,.15);
  transition: transform .35s var(--ease-out-quart), box-shadow .35s var(--ease-out-quart);
}
.team-card .avatar img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease-out-quart);
}
.team-card:hover .avatar { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(0,102,157,.26); }
.team-card:hover .avatar img { transform: scale(1.06); }
.team-card h3 { font-size: 20px; color: var(--c-heading); margin-bottom: .15rem; }
.team-card .role { color: var(--c-muted); font-size: 15px; }
.team-card.is-vacancy .avatar {
  display: grid; place-items: center;
  background: var(--c-bg-gray); color: var(--c-primary);
  font: 700 40px/1 var(--font-head);
}

/* ---------- Voordelen (checklist) ---------- */
.benefits { list-style: none; padding: 0; display: grid; gap: 1rem; }
.benefits li { position: relative; padding-left: 2.2rem; line-height: 1.6; }
.benefits li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 1.5rem; height: 1.5rem;
  display: grid; place-items: center;
  background: var(--c-primary); color: #fff;
  border-radius: 50%; font-size: 14px; font-weight: 700;
}

/* ---------- Contact-kaarten ---------- */
.cards {
  display: grid;
  gap: clamp(24px, 4vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2.5rem;
}
.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 12px 30px rgba(0,0,0,.05);
  transition: transform .3s var(--ease-out-quart), box-shadow .3s var(--ease-out-quart);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(0,0,0,.10); }
.card .icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--c-primary); color: #fff;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.card .icon svg { width: 26px; height: 26px; display: block; }
.card h3 { margin-bottom: .75rem; }
.card--spoed { border-color: #f0c8c2; background: #fff7f6; }
.card--spoed .icon { background: #c0392b; }
.card--spoed .btn--primary { background: #c0392b; }
.card--spoed .btn--primary:hover { background: #a5281b; }
.card p, .card .hours { line-height: 1.9; }
.hours { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-navy);
  color: #cdd6e4;
  padding-block: 64px 24px;
}
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; align-items: start; }
}
.site-footer img { height: 58px; width: auto; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 1.1rem; }
.footer-brand p { font-size: 15px; line-height: 1.7; max-width: 38ch; margin-bottom: .9rem; }
.footer-knmt { color: #9fb0c9; font-size: 13.5px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .65rem; }
.footer-col li { line-height: 1.55; font-size: 15px; }
.site-footer a { color: #cdd6e4; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 2.5rem; padding-top: 1.5rem;
  font-size: 14px; color: #9fb0c9;
}
.footer-bottom a { color: #cdd6e4; }

/* ============================================================================
   Motion - Impeccable animate
   Brand-register: één gechoreografeerde hero-entree + gerichte scroll-reveals,
   geen uniforme fade-on-elke-sectie. Alles onder .js zodat content zonder
   JavaScript volledig zichtbaar blijft. Ease-out curves, geen bounce.
   ============================================================================ */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* Hero: signatuur-entree bij paginalaad (gestaffeld) */
.js .hero-content > h1,
.js .hero-content > p,
.js .hero-content > .btn-row { animation: rise-in .7s var(--ease-out-quint) both; }
.js .hero-content > h1        { animation-delay: .10s; }
.js .hero-content > p         { animation-delay: .22s; }
.js .hero-content > .btn-row  { animation-delay: .34s; }

/* Hero: trage cinematische zoom die eenmalig settelt */
@keyframes ken-burns { from { transform: scale(1.12); } to { transform: scale(1.03); } }
.js .hero-banner::before { animation: ken-burns 14s var(--ease-out-quart) both; }

/* Scroll-reveal: rise + fade wanneer een blok in beeld komt */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-out-quint), transform .7s var(--ease-out-quint);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Grid-stagger: legitiem voor lijsten (team-portretten + contactkaarten) */
.js .stagger > * { opacity: 0; }
.js .stagger.is-visible > * { animation: rise-in .55s var(--ease-out-quart) both; }
.js .stagger.is-visible > *:nth-child(1)  { animation-delay: .04s; }
.js .stagger.is-visible > *:nth-child(2)  { animation-delay: .09s; }
.js .stagger.is-visible > *:nth-child(3)  { animation-delay: .14s; }
.js .stagger.is-visible > *:nth-child(4)  { animation-delay: .19s; }
.js .stagger.is-visible > *:nth-child(5)  { animation-delay: .24s; }
.js .stagger.is-visible > *:nth-child(6)  { animation-delay: .29s; }
.js .stagger.is-visible > *:nth-child(7)  { animation-delay: .34s; }
.js .stagger.is-visible > *:nth-child(8)  { animation-delay: .39s; }
.js .stagger.is-visible > *:nth-child(9)  { animation-delay: .44s; }
.js .stagger.is-visible > *:nth-child(n+10) { animation-delay: .48s; } /* cap */

/* Nav: animerende onderstreping als hover-feedback */
.nav > li > a { position: relative; }
.nav > li > a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  height: 2px; width: 100%; background: var(--c-primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-out-quart);
}
.nav > li > a:hover::after { transform: scaleX(1); }
.nav .nav-spoed::after { background: #c0392b; }

/* ---------- Bewegingsvoorkeur respecteren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  /* niets mag verborgen blijven door uitgeschakelde beweging */
  .js .reveal, .js .stagger > * { opacity: 1 !important; transform: none !important; }
  .js .hero-content > *, .js .hero-banner::before { animation: none !important; }
  .hero-banner::before { transform: none; }
}
