/* ============================================================
   SamenZijnHeerlen — Hoofdstijlblad
   Rustige, professionele huisstijl voor dagbesteding.
   Pas kleuren eenvoudig aan via de variabelen hieronder.
   Mobile-first: basisstijlen zijn voor mobiel,
   @media-regels breiden uit naar tablet/desktop.
   ============================================================ */

:root {
  /* Kleurenpalet */
  --kleur-primair: #2F6E6A;        /* rustig blauwgroen/teal */
  --kleur-primair-donker: #24534F; /* hover/focus-variant */
  --kleur-primair-licht: #E3EEED;  /* zachte tint voor vlakken */
  --kleur-secundair: #E4A857;      /* zacht warm accent */
  --kleur-achtergrond: #F7F5F2;    /* licht */
  --kleur-tekst: #2A2E2E;          /* donker */
  --kleur-grijs: #6B7472;          /* neutraal grijs */
  --kleur-wit: #FFFFFF;

  /* Typografie */
  --font-kop: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Vormen en schaduwen */
  --radius: 14px;
  --radius-klein: 8px;
  --schaduw: 0 2px 12px rgba(42, 46, 46, 0.08);
  --schaduw-hover: 0 6px 20px rgba(42, 46, 46, 0.12);

  /* Maten */
  --container-breedte: 1120px;
  --sectie-ruimte: 56px;
}

/* ---------- Basis ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--kleur-tekst);
  background-color: var(--kleur-achtergrond);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-kop);
  line-height: 1.25;
  color: var(--kleur-tekst);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--kleur-primair); }
a:hover { color: var(--kleur-primair-donker); }

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

ul { padding-left: 1.2em; }

/* Duidelijke focus-stijl voor toetsenbordgebruikers */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--kleur-secundair);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Alleen voor schermlezers: visueel verborgen tekst */
.sr-only {
  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: onzichtbaar tot hij focus krijgt */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--kleur-primair);
  color: var(--kleur-wit);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-klein) 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
  color: var(--kleur-wit);
}

.container {
  width: 100%;
  max-width: var(--container-breedte);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header en navigatie ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--kleur-wit);
  box-shadow: var(--schaduw);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--kleur-tekst);
  padding: 8px 0;
}

/* Beeldmerk: twee open handen */
.logo-beeld {
  width: 62px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
}

.logo-naam {
  font-family: var(--font-kop);
  font-weight: 600;
  font-size: 1.05rem;
}

/* Hamburgerknop (alleen zichtbaar op mobiel) */
.menu-knop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 2px solid var(--kleur-primair-licht);
  border-radius: var(--radius-klein);
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
  font-family: var(--font-kop);
  font-size: 0.95rem;
  color: var(--kleur-tekst);
}

.menu-knop:hover { border-color: var(--kleur-primair); }

/* Hamburger-icoon: drie streepjes, wordt kruis bij open menu */
.menu-icoon,
.menu-icoon::before,
.menu-icoon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--kleur-tekst);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-icoon { position: relative; }
.menu-icoon::before,
.menu-icoon::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-icoon::before { top: -6px; }
.menu-icoon::after { top: 6px; }

.menu-knop[aria-expanded="true"] .menu-icoon { background: transparent; }
.menu-knop[aria-expanded="true"] .menu-icoon::before { transform: translateY(6px) rotate(45deg); }
.menu-knop[aria-expanded="true"] .menu-icoon::after { transform: translateY(-6px) rotate(-45deg); }

/* Navigatie: op mobiel een uitklappend paneel */
.hoofdnav {
  display: none;
  width: 100%;
  padding-bottom: 12px;
}

.hoofdnav.open { display: block; }

.hoofdnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hoofdnav a {
  display: block;
  white-space: nowrap; /* menu-labels nooit over twee regels */
  padding: 12px 14px;
  min-height: 44px;
  border-radius: var(--radius-klein);
  text-decoration: none;
  color: var(--kleur-tekst);
  font-family: var(--font-kop);
  font-weight: 500;
}

.hoofdnav a:hover {
  background: var(--kleur-primair-licht);
  color: var(--kleur-primair-donker);
}

/* Actieve pagina */
.hoofdnav a.actief {
  background: var(--kleur-primair);
  color: var(--kleur-wit);
}

/* Contact als opvallende knop in het menu */
.hoofdnav a.nav-cta {
  border: 2px solid var(--kleur-primair);
  color: var(--kleur-primair);
}
.hoofdnav a.nav-cta:hover {
  background: var(--kleur-primair);
  color: var(--kleur-wit);
}
.hoofdnav a.nav-cta.actief {
  background: var(--kleur-primair);
  color: var(--kleur-wit);
}

/* ---------- Knoppen ---------- */

.knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  min-height: 48px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-kop);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.knop-primair {
  background: var(--kleur-primair);
  color: var(--kleur-wit);
}
.knop-primair:hover {
  background: var(--kleur-primair-donker);
  color: var(--kleur-wit);
  box-shadow: var(--schaduw-hover);
  transform: translateY(-1px);
}

.knop-secundair {
  background: transparent;
  color: var(--kleur-primair);
  border-color: var(--kleur-primair);
}
.knop-secundair:hover {
  background: var(--kleur-primair-licht);
  color: var(--kleur-primair-donker);
}

/* ---------- Secties ---------- */

.sectie { padding: var(--sectie-ruimte) 0; }

.sectie-wit { background: var(--kleur-wit); }
.sectie-primair-licht { background: var(--kleur-primair-licht); }

.sectie-kop {
  max-width: 640px;
  margin-bottom: 32px;
}

.overlijn {
  display: inline-block;
  font-family: var(--font-kop);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kleur-primair);
  margin-bottom: 8px;
}

.sectie-kop p { color: var(--kleur-grijs); }

/* ---------- Hero ---------- */

.hero {
  background: var(--kleur-primair);
  color: var(--kleur-wit);
  padding: 64px 0;
}

.hero-inner {
  display: grid;
  gap: 32px;
}

.hero h1 {
  color: var(--kleur-wit);
  font-size: 2.1rem;
  margin-bottom: 0.4em;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 34em;
}

.hero .knoppen {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero .knop-primair {
  background: var(--kleur-secundair);
  color: var(--kleur-tekst);
}
.hero .knop-primair:hover { background: #d99a40; color: var(--kleur-tekst); }

.hero .knop-secundair {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--kleur-wit);
}
.hero .knop-secundair:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--kleur-wit);
}

/* Kleine paginakop voor subpagina's */
.pagina-kop {
  background: var(--kleur-primair);
  color: var(--kleur-wit);
  padding: 48px 0;
}
.pagina-kop h1 { color: var(--kleur-wit); margin-bottom: 0.2em; }
.pagina-kop p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 38em;
  margin-bottom: 0;
}

/* ---------- Foto's ---------- */

.foto-kader {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: #E7E3DD;
  box-shadow: var(--schaduw);
}

.foto-kader img {
  width: 100%;
  height: auto; /* foto's houden hun eigen verhouding: geen crop */
  display: block;
}

.hero-foto {
  max-width: 460px;
  border: 4px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 32px rgba(25, 47, 45, 0.25);
}

/* Geen vaste verhoudingen meer: elke foto toont volledig */

/* ---------- Kaarten ---------- */

.kaarten {
  display: grid;
  gap: 20px;
}

.kaart {
  background: var(--kleur-wit);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.kaart:hover {
  box-shadow: var(--schaduw-hover);
  transform: translateY(-2px);
}

.kaart .kaart-icoon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--kleur-primair-licht);
  color: var(--kleur-primair);
  font-family: var(--font-kop);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.kaart p { color: var(--kleur-grijs); margin-bottom: 0; }

.kaart .kaart-link {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-kop);
  font-weight: 600;
  text-decoration: none;
}
.kaart .kaart-link:hover { text-decoration: underline; }

.team-kaart {
  min-height: 150px;
  justify-content: center;
  border-top: 5px solid var(--kleur-primair);
}

.team-kaart h3 { margin-bottom: 2px; }

/* Kernwaarden: compacte blokjes */
.waarden {
  display: grid;
  gap: 16px;
}

.waarde {
  background: var(--kleur-wit);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--schaduw);
}
.waarde h3 { margin-bottom: 4px; }
.waarde p { color: var(--kleur-grijs); margin: 0; font-size: 0.95rem; }

/* ---------- Tekst + beeld naast elkaar ---------- */

.tekst-beeld {
  display: grid;
  gap: 28px;
  align-items: center;
}

/* ---------- Aanbod-secties ---------- */

.aanbod-blok {
  display: grid;
  gap: 28px;
  background: var(--kleur-wit);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  padding: 28px;
}

.aanbod-blok.aanbod-zonder-beeld { grid-template-columns: 1fr; }

.aanbod-blok ul {
  margin: 0 0 1em;
  color: var(--kleur-grijs);
}

.aanbod-blok .doelgroep {
  background: var(--kleur-primair-licht);
  border-radius: var(--radius-klein);
  padding: 14px 18px;
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- CTA-band ---------- */

.cta-band {
  background: var(--kleur-primair);
  color: var(--kleur-wit);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
}
.cta-band h2 { color: var(--kleur-wit); }
.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 36em;
  margin: 0 auto 20px;
}
.cta-band .knop-primair {
  background: var(--kleur-secundair);
  color: var(--kleur-tekst);
}
.cta-band .knop-primair:hover { background: #d99a40; color: var(--kleur-tekst); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: 32px;
}

.contact-mailpaneel {
  background: var(--kleur-wit);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  padding: 28px;
  align-self: start;
}

.contact-mailpaneel .knop { margin-top: 4px; }

.contact-disclaimer {
  margin: 24px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--kleur-secundair);
  border-radius: var(--radius-klein);
  background: var(--kleur-achtergrond);
  color: var(--kleur-grijs);
  font-size: 0.94rem;
}

.contact-info {
  display: grid;
  gap: 16px;
  align-content: start;
}

.contact-info .kaart:hover { transform: none; box-shadow: var(--schaduw); }

.contact-info address {
  font-style: normal;
  color: var(--kleur-grijs);
}

.contact-info a { word-break: break-word; }
.contact-info .kaart > p { color: var(--kleur-grijs); }
.contact-bereikbaar { font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--kleur-tekst);
  color: #D8DCDB;
  margin-top: var(--sectie-ruimte);
  padding: 48px 0 0;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 32px;
  padding-bottom: 40px;
}

.site-footer h2 {
  color: var(--kleur-wit);
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer-logo {
  font-family: var(--font-kop);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--kleur-wit);
  margin-bottom: 8px;
}

.site-footer p { color: #B9BFBE; }

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a { color: #D8DCDB; }
.site-footer a:hover { color: var(--kleur-wit); }

.site-footer address {
  font-style: normal;
  color: #B9BFBE;
  line-height: 1.8;
}

.footer-onder {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px 0;
}

.footer-onder .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  color: #9AA1A0;
  font-size: 0.85rem;
}

/* ---------- Subtiele scroll-animatie ----------
   Elementen met .reveal schuiven zacht in beeld.
   script.js voegt .zichtbaar toe via IntersectionObserver. */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.zichtbaar {
  opacity: 1;
  transform: none;
}

/* Respecteer gebruikers die minder beweging willen */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .knop, .kaart { transition: none; }
}

/* ---------- Tablet en groter ---------- */

@media (min-width: 640px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.75rem; }

  .kaarten { grid-template-columns: repeat(2, 1fr); }
  .waarden { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Desktop ---------- */

@media (min-width: 900px) {
  :root { --sectie-ruimte: 80px; }

  .hero { padding: 96px 0; }
  .hero h1 { font-size: 2.8rem; }

  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 56px;
  }

  /* Menu-knop verbergen, navigatie als rij tonen */
  .menu-knop { display: none; }

  .hoofdnav {
    display: block;
    width: auto;
    padding-bottom: 0;
  }

  .hoofdnav ul {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  .hoofdnav a { padding: 10px 14px; }

  .kaarten-3 { grid-template-columns: repeat(3, 1fr); }
  .waarden { grid-template-columns: repeat(4, 1fr); }

  .tekst-beeld { grid-template-columns: 1fr 1fr; gap: 56px; }
  .tekst-beeld.beeld-links .tb-beeld { order: -1; }

  .aanbod-blok {
    grid-template-columns: 0.9fr 1.1fr;
    padding: 40px;
    align-items: start;
  }

  .aanbod-blok.aanbod-zonder-beeld { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1.2fr 0.8fr; gap: 48px; }

  .contact-mailpaneel { padding: 40px; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}


@media (max-width: 420px) {
  .logo-beeld { width: 52px; }
  .logo-naam { font-size: 0.92rem; }
  .menu-knop { padding-inline: 11px; }
}
