/* =========================================================
   KineCO43 – stylesheet
   Kleuren en lettertypes overgenomen van de originele site.
   ========================================================= */

/* ---------- Lettertypes (lokaal gehost, geen Google-verbinding) ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Display";
  src: url("../fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Angella White";
  src: url("../fonts/angella-white.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- Basis ---------- */
:root {
  --goud: #99861a;
  --goud-donker: #7d6d12;
  --paars: #412956;
  --tekst: #1d1e20;
  --grijs: #323232;
  --rand: #b8c0cc;
  --wit: #ffffff;

  --font-tekst: "Montserrat", system-ui, sans-serif;
  --font-serif: "Libre Caslon Display", Georgia, serif;
  --font-script: "Angella White", "Mrs Saint Delafield", cursive;

  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important; 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: 12px; top: -60px; z-index: 100;
  background: var(--paars); color: var(--wit); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Koppen ---------- */
.script-title {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--goud);
  font-size: clamp(64px, 11vw, 132px);
  line-height: 1;
  margin: 0;
}

/* ---------- Header / navigatie ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--wit);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
}
.site-header .container {
  display: flex; align-items: center; gap: 24px;
  min-height: var(--header-h);
}
.header-logo { display: none; }
.header-logo img { height: 38px; width: auto; }

.main-nav { flex: 1; }
.main-nav > ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 40px;
}
.main-nav a, .main-nav .submenu-toggle {
  color: var(--goud);
  text-decoration: none;
  font-size: 15px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  background: none; border-top: 0; border-left: 0; border-right: 0;
  font-family: inherit; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover, .main-nav .submenu-toggle:hover { color: var(--paars); }
.main-nav a[aria-current="page"], .main-nav a[aria-current="location"], .main-nav .submenu-toggle[aria-current="location"] { color: var(--paars); border-bottom-color: var(--paars); }

.has-submenu { position: relative; }
.submenu-toggle { display: inline-flex; align-items: center; gap: 8px; }
.submenu-toggle::after {
  content: ""; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform .2s;
}
.has-submenu.open .submenu-toggle::after { transform: rotate(180deg); }
.submenu {
  list-style: none; margin: 0; padding: 10px 0;
  position: absolute; top: calc(100% + 8px); left: -16px;
  min-width: 150px; background: var(--wit);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
  display: none;
}
.submenu a { display: block; padding: 6px 16px; border: 0; }
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.open .submenu { display: block; }

.btn {
  display: inline-block;
  font-family: var(--font-tekst);
  font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase;
  text-decoration: none; text-align: center;
  border: 0; cursor: pointer;
  transition: background-color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-zwart { background: #000; color: var(--wit); padding: 12px 28px; }
.btn-zwart:hover { background: var(--paars); }
.btn-goud { background: var(--goud); color: var(--wit); padding: 12px 40px; border-radius: 50px; }
.btn-goud:hover { background: var(--goud-donker); }
.btn[disabled] { opacity: .6; cursor: wait; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px; margin-left: auto; cursor: pointer;
  color: var(--paars);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 26px; height: 2px; background: currentColor; position: relative;
  transition: transform .2s, opacity .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .header-logo { display: block; }
  .nav-toggle { display: block; }
  .header-vacatures { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--wit);
    padding: 24px var(--gutter) 40px;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s;
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .main-nav > ul > li { width: 100%; border-bottom: 1px solid #eee; }
  .main-nav a, .main-nav .submenu-toggle { display: block; padding: 14px 0; font-size: 18px; width: 100%; text-align: left; }
  .main-nav a[aria-current="page"] { border-bottom-color: transparent; }
  .main-nav .submenu-toggle { display: flex; align-items: center; justify-content: space-between; }
  .submenu { position: static; box-shadow: none; padding: 0 0 8px 16px; min-width: 0; }
  .has-submenu:hover .submenu, .has-submenu:focus-within .submenu { display: none; }
  .has-submenu.open .submenu { display: block; }
  .submenu a { padding: 10px 0; font-size: 16px; }
  .main-nav a.mobile-vacatures {
    display: inline-block; width: auto; margin-top: 28px;
    padding: 12px 28px; font-size: 14px; color: var(--wit); background: #000;
    border-bottom: 0; text-align: center;
  }
  .nav-open { overflow: hidden; }
}
@media (min-width: 901px) {
  .mobile-vacatures { display: none !important; }
}

/* ---------- Welkom ---------- */
.welkom { padding: clamp(48px, 9vw, 110px) 0; }
.welkom .container {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.welkom-tekst .script-title { margin-bottom: -.3em; position: relative; z-index: 0; }
.welkom-intro {
  position: relative; z-index: 1;
  font-size: 18px; font-weight: 500; color: #000; line-height: 1.5;
  margin-bottom: 1.2em;
}
.welkom-tekst p { max-width: 34em; }
.welkom-foto img { width: 100%; aspect-ratio: 581 / 442; object-fit: cover; }

@media (max-width: 800px) {
  .welkom .container { grid-template-columns: 1fr; }
  .welkom-foto { order: -1; }
}

/* ---------- Grote foto's ---------- */
.foto-band { margin: 0; }
.foto-band img {
  width: 100%;
  height: clamp(300px, 62vw, 680px);
  object-fit: cover;
}

/* ---------- Specialisaties ---------- */
.specialisaties { padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 8vw, 96px); }
.specialisaties .script-title { margin-bottom: clamp(24px, 4vw, 48px); }
.spec-grid { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 40px); }
.spec-row {
  display: flex; justify-content: center; align-items: flex-start;
  gap: clamp(20px, 3vw, 40px); width: 100%;
}
.spec-item { flex: 0 1 230px; min-width: 0; text-align: center; }
.spec-item img {
  display: block; width: 100%; max-width: 230px; margin: 0 auto 14px;
  aspect-ratio: 2 / 3; object-fit: cover;
}
.spec-item h3 {
  margin: 0 auto;
  max-width: 100%;
  text-align: center;
  font-family: var(--font-tekst); font-weight: 500;
  font-size: 13px; letter-spacing: .6px; text-transform: uppercase;
  line-height: 1.5;
  white-space: normal;
  overflow: visible;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: pretty;
  color: var(--tekst);
}
@media (max-width: 760px) {
  /* Op mobiel vormen alle specialisaties één doorlopend raster.
     Zo wordt bijvoorbeeld 5 items 2-2-1 in plaats van 2-1-2. */
  .spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .spec-row { display: contents; }
  .spec-item { flex: initial; width: auto; min-width: 0; }
  .spec-grid-odd .spec-row:last-child .spec-item:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 7px);
    justify-self: center;
  }
}

/* ---------- Team ---------- */
.team-intro { padding: clamp(56px, 8vw, 96px) 0 clamp(24px, 4vw, 48px); }
.team-intro p { max-width: 36em; margin-top: 12px; }

.lid { padding: clamp(32px, 5vw, 64px) 0; }
.lid .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.lid--omgekeerd .lid-foto { order: -1; }
.lid-naam { margin: 0 0 18px; line-height: 1; }
.lid-voornaam {
  display: block;
  font-family: var(--font-script); font-weight: 400;
  color: var(--goud);
  font-size: clamp(72px, 10vw, 120px);
  margin-bottom: -.32em;
  padding-left: .4em;
}
.lid-achternaam {
  display: block; position: relative;
  font-family: var(--font-serif); font-weight: 400;
  color: var(--paars);
  font-size: clamp(30px, 3.6vw, 40px);
  text-transform: uppercase; letter-spacing: 1px;
}
.lid-rol {
  font-family: var(--font-serif); font-weight: 400;
  color: var(--paars);
  font-size: clamp(24px, 2.8vw, 32px);
  margin: 0 0 12px;
}
.lid-tekst p { color: var(--goud); max-width: 32em; }
.lid-foto img { width: 100%; max-width: 440px; margin-inline: auto; }

@media (max-width: 760px) {
  .lid .container { grid-template-columns: 1fr; }
  .lid--omgekeerd .lid-foto { order: 0; }
  .lid-foto img { max-width: 320px; }
}

/* ---------- Contact ---------- */
.contact-titel { padding: clamp(56px, 8vw, 96px) 0 clamp(16px, 3vw, 32px); }
.contact { padding-bottom: clamp(56px, 8vw, 96px); }
.contact .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.contact-foto img { width: 100%; border-radius: 20px; aspect-ratio: 552 / 613; object-fit: cover; object-position: var(--contact-x-desktop, 50%) var(--contact-y-desktop, 50%); }

.contact-form { display: grid; gap: 18px; }
.veld label { display: block; font-size: 14px; color: #000; margin-bottom: 6px; }
.veld input, .veld textarea {
  width: 100%;
  font: inherit; color: #000;
  background: var(--wit);
  border: 1px solid var(--rand); border-radius: 10px;
  padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.veld textarea { min-height: 130px; resize: vertical; }
.veld input:focus, .veld textarea:focus {
  outline: none; border-color: var(--goud); box-shadow: 0 0 0 3px rgba(153, 134, 26, .18);
}
.veld-rij { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp-veld { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-acties { text-align: center; }
.form-noot { font-size: 12.5px; color: #555; text-align: center; margin: 4px 0 0; }
.form-noot a { color: var(--paars); }
.form-status { margin: 0; padding: 12px 16px; border-radius: 10px; font-size: 15px; display: none; }
.form-status.ok { display: block; background: #f3f0dc; color: #4a400a; }
.form-status.fout { display: block; background: #fbe9e9; color: #8a1f1f; }

@media (max-width: 800px) {
  .contact .container { grid-template-columns: 1fr; }
  .veld-rij { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { padding: clamp(40px, 6vw, 64px) 0; color: var(--grijs); }
.site-footer .container {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: center;
}
.footer-logo img { width: 190px; height: auto; margin-bottom: 20px; }
.site-footer address { font-style: normal; }
.site-footer address p { margin: 0 0 4px; }
.site-footer strong { color: var(--tekst); font-weight: 600; }
.site-footer a { color: var(--tekst); text-decoration-color: rgba(0, 0, 0, .3); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--paars); }
.footer-links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.copyright { margin-top: 20px; font-size: 13px; color: #666; }

.kaart {
  position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 340px;
  background: #f1efe6; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; text-align: center;
}
.kaart iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kaart-placeholder { padding: 24px; max-width: 340px; }
.kaart-placeholder p { font-size: 13.5px; color: #555; margin: 12px 0 0; }
.kaart-placeholder .btn-goud { padding: 10px 24px; font-size: 13px; }

@media (max-width: 760px) {
  .site-footer .container { grid-template-columns: 1fr; }
}

/* ---------- Subpagina's (prijzen, privacy) ---------- */
.pagina { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 110px); }
.pagina .container { max-width: 860px; }
.pagina h1 {
  /* Paginatitels volgen exact dezelfde typografie als de titel Specialisaties. */
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--goud);
  font-size: clamp(64px, 11vw, 132px);
  line-height: 1;
  margin: 0 0 32px;
}
.pagina h2 {
  font-family: var(--font-serif); font-weight: 400; color: var(--paars);
  font-size: clamp(22px, 2.6vw, 28px);
  margin: 36px 0 10px;
}
.pagina ul { padding-left: 1.2em; }
.pagina li { margin-bottom: 4px; }

.prijzen-lijst { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid #e5e5e5; }
.prijzen-lijst li {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 0; border-bottom: 1px solid #e5e5e5; margin: 0;
  font-size: 17px;
}
.prijzen-lijst .prijs { font-weight: 600; color: var(--paars); white-space: nowrap; }
.prijzen-lijst small { display: block; color: #666; font-size: 14px; }
.pagina .intro { font-size: 17px; }
.bijgewerkt { color: #666; font-size: 14px; }

/* KineCO43: scrolsecties met vaste achtergrondfoto's (desktop) */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .foto-band { height: min(75vh, 750px); background-position:center center; background-repeat:no-repeat; background-size:cover; background-attachment:fixed; }
  .foto-band img { visibility:hidden; width:100%; height:100%; }
}
@media (max-width:900px), (prefers-reduced-motion:reduce) { .foto-band { background:none !important; } }

/* KineCO43 v1.2 — mobiele verfijning; desktop blijft ongewijzigd. */
@media (max-width: 800px) {
  .welkom { padding: 28px 0 48px; }
  .welkom .container { gap: 24px; }
  .welkom-foto { order: -1; }
  .welkom-foto img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 38%; }
  .welkom-tekst .script-title { margin-bottom: -.17em; }
  .welkom-intro { font-size: 16px; line-height: 1.55; }
  .welkom-tekst p { max-width: 100%; }
  .contact-titel { padding-top: 56px; }
  .contact .container { gap: 26px; }
  .contact-foto img { max-height: 420px; object-position: var(--contact-x-mobile, 50%) var(--contact-y-mobile, 40%); }
  .foto-band img { height: clamp(250px, 65vw, 440px); object-position: center; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; --gutter: 20px; }
  body { font-size: 15px; line-height: 1.65; }
  .site-header .container { gap: 12px; }
  .header-logo img { height: 34px; width: auto; }
  .main-nav { padding-top: 14px; padding-bottom: 28px; }
  .main-nav a, .main-nav .submenu-toggle { font-size: 16px; padding: 12px 0; }
  .script-title { font-size: clamp(64px, 19vw, 92px); line-height: 1.05; }
  .pagina h1 { font-size: clamp(64px, 19vw, 92px); line-height: 1.05; }
  .welkom { padding: 18px 0 44px; }
  .welkom .container { gap: 20px; }
  .welkom-foto img { aspect-ratio: 5 / 4; object-position: center 38%; }
  .welkom-tekst .script-title { margin-bottom: -.14em; }
  .welkom-intro { font-size: 16px; }
  .specialisaties { padding: 54px 0 60px; }
  .specialisaties .script-title { margin-bottom: 24px; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .spec-grid li { min-width: 0; }
  .spec-grid img { max-width: none; width: 100%; aspect-ratio: 3 / 4; margin-bottom: 10px; }
  .spec-grid h3 { display: block; width: 100%; max-width: 100%; margin: 0 auto; text-align: center; font-size: clamp(10px, 2.8vw, 12px); letter-spacing: 0; line-height: 1.5; white-space: normal; overflow: visible; overflow-wrap: normal; word-break: normal; hyphens: none; text-wrap: pretty; }
  .team-intro { padding: 52px 0 20px; }
  .team-intro p { max-width: 100%; }
  .lid { padding: 34px 0; }
  .lid .container { gap: 18px; }
  .lid-naam { margin-bottom: 16px; }
  .lid-voornaam { font-size: clamp(72px, 21vw, 100px); }
  .lid-achternaam { font-size: clamp(26px, 8vw, 36px); overflow-wrap: anywhere; }
  .lid-rol { font-size: 24px; }
  .lid-tekst p { max-width: 100%; }
  .lid-foto img { width: 100%; max-width: 280px; max-height: 360px; object-fit: contain; }
  .contact-titel { padding: 50px 0 20px; }
  .contact { padding-bottom: 54px; }
  .contact .container { gap: 24px; }
  .contact-foto img { max-height: 360px; aspect-ratio: 4 / 3; }
  .veld-rij { gap: 14px; }
  .veld input, .veld textarea { font-size: 16px; }
  .site-footer { padding: 48px 0; }
  .site-footer .container { gap: 26px; }
  .footer-logo img { width: 165px; }
  .kaart { aspect-ratio: 1 / 1; max-height: 330px; }
  .pagina { padding: 42px 0 64px; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .spec-grid { gap: 20px 10px; }
  .spec-grid h3 { font-size: 10.5px; }
}


/* KineCO43 v1.3: mobile fixed-photo windows. Unlike background-attachment:fixed,
   these viewport-fixed layers work on mobile Safari as well. */
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  body.kine-mobile-parallax .kine-fixed-photo {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
    visibility: hidden;
    will-change: clip-path;
  }
  body.kine-mobile-parallax .foto-band {
    position: relative;
    z-index: 1;
    height: clamp(300px, 62vh, 600px);
    background: transparent !important;
  }
  body.kine-mobile-parallax .foto-band > img {
    visibility: hidden;
    width: 100%;
    height: 100%;
  }
  body.kine-mobile-parallax #inhoud > section,
  body.kine-mobile-parallax .site-footer {
    position: relative;
    z-index: 2;
    background: var(--wit);
  }
  body.kine-mobile-parallax .site-header { z-index: 50; }
}
