/* ============================================
   LTGzorg — v3 Editorial Profile
   Rich palette, bold typography, intimate layout
   ============================================ */

:root {
  --deep: #1b3a4b;
  --deep-mid: #274c5e;
  --teal: #3b7876;
  --teal-light: #4d9597;
  --warm: #c07a56;
  --warm-hover: #a8674a;
  --cream: #f7f3ee;
  --cream-dark: #ede7df;
  --white: #ffffff;
  --text: #1c2d35;
  --text-mid: #4a5a63;
  --text-light: #63737b;
  --red: #b5382a;

  --font: 'Urbanist', system-ui, sans-serif;
  --max: 1060px;
  --gap: 2rem;
  --r: 12px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--cream); }

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s; }
ul { list-style: none; }

/* --- Nav --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s;
}

.site-header.scrolled {
  background: rgba(27, 58, 75, .97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 8px rgba(0,0,0,.12);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: .75rem var(--gap);
}

.nav__logo {
  font-size: 1.6rem; font-weight: 900; color: var(--white);
  letter-spacing: -.02em; text-decoration: none;
}

.nav__menu { display: flex; align-items: center; gap: 1.5rem; }

.nav__link {
  font-size: .85rem; font-weight: 700; color: var(--white);
  letter-spacing: .04em; text-transform: uppercase; transition: opacity .2s;
}
.nav__link:hover { opacity: .75; }

.nav__link--cta {
  background: var(--warm); padding: .4rem 1rem;
  border-radius: 6px;
}
.nav__link--cta:hover { opacity: .9; }

.nav__toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: .2rem; z-index: 110;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.75rem; border-radius: 6px;
  font-family: var(--font); font-size: 1.1rem; font-weight: 800;
  letter-spacing: .03em; text-transform: uppercase;
  cursor: pointer; border: none;
  background: var(--warm); color: var(--white);
  box-shadow: 0 2px 8px rgba(192,122,86,.3);
  transition: all .25s;
}
.btn:hover {
  background: var(--warm-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(192,122,86,.35);
}

/* =====================
   HERO — full bleed
   ===================== */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 6rem var(--gap) calc(4rem + 25px);
  background: var(--deep);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 25px), 0 100%);
}

.hero::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 45%; background: var(--deep-mid);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}

.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 260px 1fr;
  gap: 4rem; align-items: center;
}

.hero__photo img {
  width: 300px; height: 300px;
  border-radius: 50%; object-fit: cover;
  box-shadow: none;
}

.hero__label {
  font-size: .8rem; font-weight: 800;
  color: var(--warm); letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: .6rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800; line-height: 1.25;
  color: var(--white); margin-bottom: 1rem;
  letter-spacing: -.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--warm);
}

.hero__meta {
  font-size: .9rem; font-weight: 500;
  color: rgba(255,255,255,.7); margin-bottom: 2rem;
}

/* =====================
   SECTIONS
   ===================== */
.section { padding: 5rem var(--gap); }
.section__inner { max-width: var(--max); margin: 0 auto; }

.section--light { background: var(--cream); }

#werkwijze { background: #edede9; }
.section--warm {
  background: var(--cream-dark);
  clip-path: polygon(0 25px, 100% 0, 100% 100%, 0 calc(100% - 25px));
  padding-top: calc(5rem + 30px);
  padding-bottom: calc(5rem + 30px);
  margin-top: -30px;
  position: relative; z-index: 1;
}
#werkwijze {
  clip-path: polygon(0 0, 100% 25px, 100% 100%, 0 calc(100% - 25px));
  padding-top: calc(5rem + 30px);
  padding-bottom: calc(5rem + 30px);
  margin-top: -30px;
  position: relative; z-index: 2;
}
.section--dark {
  background: var(--deep); color: var(--white);
  clip-path: polygon(0 25px, 100% 0, 100% 100%, 0 calc(100% - 25px));
  padding-top: calc(5rem + 30px);
  padding-bottom: calc(5rem + 30px);
  margin-top: -30px;
  position: relative; z-index: 3;
}
#contact {
  padding-top: calc(5rem + 30px);
  clip-path: polygon(0 0, 100% 25px, 100% 100%, 0 100%);
  margin-top: -30px;
  position: relative; z-index: 4;
}
.section--dark h2,
.section--dark .split__content p { color: #ffffff; }
.section--dark .split__content .lead { color: var(--warm); }
.section--dark .split__content a { color: var(--warm); text-decoration: underline; }


h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 900; letter-spacing: -.02em;
  margin-bottom: .6rem;
}

.subtitle {
  max-width: 560px; color: var(--text-mid);
  margin-bottom: 4rem; line-height: 1.75;
  font-weight: 400;
}

/* Doelgroepen */
.doelgroepen {
  display: flex; justify-content: center;
  gap: 0; margin-bottom: 6rem;
  max-width: 960px; margin-left: auto; margin-right: auto;
}

.doelgroep {
  flex: 1; text-align: center;
  padding: 0 2rem;
}

.doelgroep + .doelgroep {
  border-left: 1px solid rgba(27,58,75,.15);
}

.doelgroep__tag {
  display: block; font-size: 1.4rem; font-weight: 900;
  color: var(--deep); letter-spacing: -.01em;
  margin-bottom: .4rem;
}

.doelgroep p {
  font-size: .88rem; color: var(--text-mid);
  line-height: 1.65; margin: 0; font-weight: 600;
}

/* Centered section (voor-wie) */
.section--warm h2 {
  text-align: center; position: relative; display: inline-block;
  width: 100%;
}
.section--warm h2 {
  margin-bottom: 1.25rem;
}
.section--warm .subtitle { margin-left: auto; margin-right: auto; text-align: center; }

.lead {
  font-size: .85rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--warm); line-height: 1.5;
  margin-bottom: 1rem;
}

.meta {
  text-align: center; font-size: .82rem;
  color: var(--text-light); margin-top: .5rem;
}
.meta--small { font-size: .78rem; color: var(--text-light); margin-top: .3rem; }
.meta--small a { color: var(--warm); text-decoration: underline; }

/* --- Split layout --- */
.split {
  display: grid; grid-template-columns: 1.3fr .7fr;
  gap: 3.5rem; align-items: start;
}

.section--dark .split__aside {
  align-self: center;
  position: relative;
}
.split--reverse { grid-template-columns: 1.3fr .7fr; }

.split__content p {
  margin-bottom: .7rem; line-height: 1.8;
}

.section--light .split__content p,
.section--warm .split__content p { color: var(--text-mid); }

/* Pillars */
.pillars { display: flex; flex-direction: column; gap: .75rem; }

.pillar {
  background: var(--white); border-radius: var(--r);
  padding: 1.25rem 1.4rem;
  box-shadow: none;
}

.pillar strong {
  display: block; font-size: 1.05rem; font-weight: 900;
  color: var(--deep); margin-bottom: .2rem;
  letter-spacing: -.01em;
}

.pillar span {
  font-size: .8rem; color: var(--text-mid); line-height: 1.6;
  font-weight: 500;
}


/* --- Registraties kaart --- */
.badge-block {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r); padding: 1.5rem;
  overflow: visible;
}

.badge-block h3 {
  font-size: .8rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: .75rem;
}

.reg-list {
  display: grid; grid-template-columns: auto 1fr;
  gap: .35rem .75rem;
}

.reg-list dt {
  font-size: .85rem; font-weight: 700; color: var(--white);
}
.reg-list dd {
  font-size: .85rem; color: rgba(255,255,255,.8);
}


/* --- Contact --- */
.contact-centered {
  max-width: 420px; margin: 0 auto;
}

/* Contact section centering */
#contact .section__inner { text-align: center; }
#contact .subtitle { margin-left: auto; margin-right: auto; }

.contact-terugbel {
  text-align: center; margin-top: 1.5rem;
  font-size: .9rem; color: var(--text-mid);
}

.contact-terugbel a {
  color: var(--teal); font-weight: 700;
}

.contact-terugbel a:hover { color: var(--teal-light); }

.form { display: flex; flex-direction: column; gap: .8rem; text-align: left; }

.form__field label {
  display: block; font-size: .82rem; font-weight: 700;
  color: var(--text); margin-bottom: .2rem;
}
.req { color: var(--warm); }

.form__field input,
.form__field textarea {
  width: 100%; padding: .6rem .8rem;
  background: var(--white); border: 1.5px solid #cdd2d6;
  border-radius: 6px; font-family: var(--font); font-size: .9375rem;
  color: var(--text); outline: none; transition: border-color .2s;
}

.form__field input:focus,
.form__field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(61,124,126,.1);
}

.form__field textarea { resize: vertical; min-height: 100px; }

.form__field input.error,
.form__field textarea.error { border-color: var(--red); }

.form__error { display: block; font-size: .75rem; color: var(--red); margin-top: .15rem; }

.form__field--check {
  text-align: center;
}

.form__field--check label {
  display: inline-flex; align-items: flex-start; gap: .5rem;
  font-weight: 400; cursor: pointer; font-size: .88rem;
}
.form__field--check input[type="checkbox"] {
  width: auto; margin-top: .25rem; accent-color: var(--teal);
}
.form__field--check a { color: var(--teal); text-decoration: underline; }

.btn--submit { align-self: center; margin-top: .25rem; }

.form__success { color: var(--teal); font-weight: 700; font-size: .9rem; }
.form__sending { color: var(--text-light); font-size: .82rem; }

/* --- Footer --- */
.footer {
  padding: calc(3rem + 30px) var(--gap) 2rem;
  background: var(--deep);
  color: var(--white);
  text-align: center;
  clip-path: polygon(0 25px, 100% 0, 100% 100%, 0 100%);
  margin-top: -30px;
  position: relative; z-index: 5;
}

.footer__inner { max-width: var(--max); margin: 0 auto; }

.footer__brand { font-weight: 900; font-size: 1rem; margin-bottom: .75rem; }

.footer p { font-size: .82rem; color: rgba(255,255,255,.7); line-height: 1.6; }
.footer a { color: rgba(255,255,255,.7); }
.footer a:hover { color: var(--white); }

.footer__address { margin-bottom: .5rem; }
.footer__note { font-size: .75rem; color: rgba(255,255,255,.55); }

.footer__contact { margin-bottom: 1.5rem; }
.footer__contact a { font-weight: 600; }

.contact__keurmerk {
  width: 80px; height: 80px;
  max-width: 80px;
  margin: 2.5rem auto 0;
  object-fit: contain;
}

.footer__legal {
  display: flex; justify-content: center;
  gap: .4rem;
  margin: 0 0 1rem; padding: .75rem 0;
  border-top: 1px solid rgba(255,255,255,.12);
}

.footer__legal a {
  font-size: .8rem; font-weight: 500;
  color: rgba(255,255,255,.55);
  padding: 0 .4rem;
}

.footer__legal a:hover { color: rgba(255,255,255,.9); }

.footer__legal a + a { border-left: 1px solid rgba(255,255,255,.15); }

.footer__copy { font-size: .75rem; color: rgba(255,255,255,.55); }

/* --- Link hover states --- */
.section a:not(.btn):not(.nav__link) {
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s ease, opacity .2s ease;
}
.section a:not(.btn):not(.nav__link):hover {
  opacity: .8;
}
.section--dark a:not(.btn) {
  color: var(--warm); text-decoration: underline;
}
.section--dark a:not(.btn):hover {
  color: #e0a87a;
}

/* Aside link (Opleidingen etc.) — subtiel, lage prioriteit */
.aside-link {
  margin-top: .75rem; text-align: center;
}
.aside-link a {
  font-size: .82rem; color: rgba(255,255,255,.5) !important;
  text-decoration: underline; text-underline-offset: 2px;
  transition: color .2s ease;
}
.aside-link a:hover {
  color: rgba(255,255,255,.8) !important;
}

/* --- Scroll progress bar --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 200;
  background: var(--warm);
  width: 0%; transform-origin: left;
  transition: none;
  pointer-events: none;
}


/* --- Active nav state --- */
.nav__link.active {
  opacity: 1;
}
.nav__link.active::after {
  transform: scaleX(1) !important;
  transform-origin: left !important;
}

/* --- Form focus enhancements --- */
.form__field {
  position: relative;
}
.form__field label {
  transition: color .2s ease;
}
.form__field:focus-within label {
  color: var(--teal);
}
.form__field input:focus,
.form__field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(59,120,118,.12);
}

/* --- Animations --- */

/* Fade up (scroll reveal) */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1),
              transform .7s cubic-bezier(.16,1,.3,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Hero entrance — staggered load */
.hero__photo { opacity: 0; transform: scale(.92); transition: opacity .8s ease-out, transform .8s ease-out; }
.hero__label { opacity: 0; transform: translateY(16px); transition: opacity .6s ease-out, transform .6s ease-out; }
.hero h1 { opacity: 0; transform: translateY(20px); transition: opacity .6s ease-out, transform .6s ease-out; }
.hero__meta { opacity: 0; transform: translateY(14px); transition: opacity .6s ease-out, transform .6s ease-out; }
.hero .btn { opacity: 0; transform: translateY(14px); transition: opacity .6s ease-out, transform .6s ease-out; }

.hero.loaded .hero__photo { opacity: 1; transform: scale(1); transition-delay: .1s; }
.hero.loaded .hero__label { opacity: 1; transform: translateY(0); transition-delay: .3s; }
.hero.loaded h1 { opacity: 1; transform: translateY(0); transition-delay: .45s; }
.hero.loaded .hero__meta { opacity: 1; transform: translateY(0); transition-delay: .6s; }
.hero.loaded .btn { opacity: 1; transform: translateY(0); transition-delay: .75s; }

/* Section heading reveals */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Nav link underline animation */
.nav__link:not(.nav__link--cta) {
  position: relative;
}
.nav__link:not(.nav__link--cta)::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--warm); border-radius: 1px;
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.nav__link:not(.nav__link--cta):hover::after {
  transform: scaleX(1); transform-origin: left;
}
.nav__link:not(.nav__link--cta):hover { opacity: 1; }

/* Doelgroep hover — !important to override .fade-up transition */
.doelgroep.visible {
  transition: transform .3s ease !important;
}
.doelgroep:hover {
  transform: translateY(-3px) !important;
}

/* Pillar hover */
.pillar.visible {
  transition: transform .25s ease, box-shadow .25s ease !important;
}
.pillar:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

/* Button pulse on hover */
.btn {
  transition: all .3s cubic-bezier(.16,1,.3,1);
}

/* Badge block subtle glow */
.badge-block {
  transition: border-color .3s ease;
}
.badge-block:hover {
  border-color: rgba(255,255,255,.25);
}

/* Keurmerk hover */
.contact__keurmerk {
  transition: transform .3s ease, opacity .3s ease;
  opacity: .85;
}
.contact__keurmerk:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* --- Accessibility --- */

/* Skip-to-content link */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--warm); color: var(--white);
  padding: .5rem 1rem; border-radius: 0 0 6px 6px;
  font-weight: 700; font-size: .85rem; z-index: 300;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus {
  top: 0;
}

/* Focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 2px;
}
.nav__toggle:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 4px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 3px;
}

/* Reduced motion — disable scroll/entrance animations, keep hover feedback */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up, .reveal { opacity: 1; transform: none; transition: none; }
  .hero__photo, .hero__label, .hero h1, .hero__meta, .hero .btn {
    opacity: 1; transform: none; transition: none;
  }
  .nav__menu { transition: none; }
}

/* --- Responsive --- */

/* Hamburger menu */
@media (max-width: 768px) {
  .nav__menu {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(280px, 80vw); background: var(--deep);
    flex-direction: column; justify-content: center; align-items: center;
    gap: 2rem; transform: translateX(100%);
    transition: transform .35s cubic-bezier(.16,1,.3,1);
    box-shadow: -8px 0 32px rgba(0,0,0,.3);
  }
  .nav__menu.open { transform: translateX(0); }
  .nav__toggle { display: block; }
  .nav__link { min-height: 44px; display: flex; align-items: center; }
}

/* Tablet */
@media (max-width: 900px) {
  :root { --gap: 1.25rem; }

  /* Hero: foto boven tekst */
  .hero { padding: 5.5rem var(--gap) calc(5rem + 25px); min-height: auto; }
  .hero::after { display: none; }
  .hero__inner {
    grid-template-columns: 1fr; gap: 2rem; text-align: center;
  }
  .hero__photo { display: flex; justify-content: center; }
  .hero__photo img { width: 220px; height: 220px; }
  .hero__label { text-align: center; }
  .hero h1 { max-width: 100%; }
  .hero .btn { margin: 0 auto; }

  /* Split: smaller gap */
  .split, .split--reverse { gap: 2.5rem; }

  /* Footer */
  .footer__legal { flex-wrap: wrap; }
  .footer__legal a + a { border-left: none; }
}

/* Split breekt pas bij 768px */
@media (max-width: 768px) {
  .split, .split--reverse { grid-template-columns: 1fr; gap: 2rem; }
  .badge-block { margin-top: 1rem; align-self: center; max-width: 400px; margin-left: auto; margin-right: auto; }

  /* Doelgroepen onder elkaar */
  .doelgroepen { flex-direction: column; gap: 2rem; }
  .doelgroep { padding: 0; max-width: 220px; margin: 0 auto; }
  .doelgroep + .doelgroep { border-left: none; border-top: none; padding-top: 1.5rem; }

  /* Pillar kaarten gecentreerd met max-breedte */
  .pillars { max-width: 400px; margin: 0 auto; }
}

/* Mobiel */
@media (max-width: 600px) {
  .pillar { padding: .9rem 1rem; }
  .contact-centered { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .hero__photo img { width: 160px; height: 160px; }
  .section { padding: 3rem var(--gap); }
  .pillar strong { font-size: .85rem; }
}
