/*
Theme Name:   StartGezond
Theme URI:    https://startgezond.info
Author:       StartGezond
Description:  Rustig, toegankelijk WordPress-thema voor gezondheidschecks. Geïnspireerd op de eenvoud van testjevalrisico.nl: één duidelijke boodschap, grote knoppen, weinig afleiding. Volledig white-label via de Customizer (kleuren, logo, teksten). Ontworpen voor B1-taalniveau en mobiel-eerst gebruik.
Version:      1.0.0
License:      GPL-2.0-or-later
Text Domain:  startgezond
*/

/* ==========================================================
   Kleuren en instellingen via CSS custom properties.
   De Customizer overschrijft deze waarden (zie functions.php).
   ========================================================== */
:root {
  /* Palet naar de screenshots van testjevalrisico.nl */
  --sg-primair:      #26173D;   /* inkt: knoppen */
  --sg-primair-donker:#1A0F2C;
  --sg-accent:       #F7D554;   /* display-geel */
  --sg-accent-licht: #E19FCB;   /* roze vlakken */
  --sg-paars:        #563787;   /* hero-paars */
  --sg-tekst:        #2B1B4D;
  --sg-tekst-licht:  #55496E;
  --sg-achtergrond:  #FFFFFF;
  --sg-vlak:         #F4EFF7;
  --sg-knop-radius:  999px;
  --sg-max-breedte:  1160px;
}

/* ------------------ Basis ------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;               /* groot basisformaat voor leesbaarheid */
  line-height: 1.65;
  color: var(--sg-tekst);
  background: var(--sg-achtergrond);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sg-primair); }
a:hover { color: var(--sg-primair-donker); }
h1, h2, h3 { line-height: 1.2; color: var(--sg-tekst); font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 0.6em; }
h3 { font-size: 1.15rem; margin: 0 0 0.4em; }
p  { margin: 0 0 1em; }

/* Focus zichtbaar voor toetsenbordgebruikers */
a:focus-visible, button:focus-visible, .sg-knop:focus-visible {
  outline: 3px solid var(--sg-accent);
  outline-offset: 3px;
}

/* Skiplink */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--sg-primair); color: #fff;
  padding: 10px 18px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* ------------------ Header ------------------ */
.sg-header {
  background: var(--sg-achtergrond);
  border-bottom: 1px solid #E4E7EB;
}
.sg-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.sg-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.sg-logo img { max-height: 52px; width: auto; }
.sg-logo-naam {
  font-size: 1.3rem; font-weight: 700; color: var(--sg-primair);
}
.sg-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.sg-nav a {
  display: inline-block; padding: 10px 14px; text-decoration: none;
  color: var(--sg-tekst); border-radius: 8px; font-weight: 500;
}
.sg-nav a:hover { background: var(--sg-vlak); color: var(--sg-primair-donker); }

/* ------------------ Hero: paars links, foto rechts ------------------ */
.sg-hero { background: var(--sg-paars); color: #fff; }
.sg-hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; align-items: stretch; padding: 0;
  max-width: none;
}
.sg-hero-tekst {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px);
}
.sg-hero-tekst h1 {
  color: var(--sg-accent);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 28px;
}
.sg-hero-tekst h1 span { display: block; }
.sg-hero-tekst p.sg-intro {
  font-size: 1.1rem; color: rgba(255,255,255,0.92); max-width: 30em; margin-bottom: 28px;
}
.sg-hero-tekst .sg-knop {
  background: #fff; color: var(--sg-primair) !important;
}
.sg-hero-tekst .sg-knop:hover { background: var(--sg-accent); }
.sg-hero-afbeelding { min-height: 420px; }
.sg-hero-afbeelding img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 0;
}
.sg-hero-meta {
  margin-top: 18px; font-size: 0.95rem; color: rgba(255,255,255,0.75);
}
.sg-hero-partners {
  margin-top: 40px; display: flex; gap: 22px; flex-wrap: wrap; justify-content: center;
  font-size: 0.9rem; color: rgba(255,255,255,0.85);
}
.sg-hero-partners a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ------------------ Knoppen ------------------ */
.sg-knop {
  display: inline-block;
  background: var(--sg-primair);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 18px 38px;                 /* groot klikvlak */
  border-radius: var(--sg-knop-radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  min-height: 56px;
}
.sg-knop:hover { background: var(--sg-primair-donker); }
.sg-knop--secundair {
  background: transparent;
  color: var(--sg-primair) !important;
  border: 2px solid var(--sg-primair);
}
.sg-knop--secundair:hover { background: var(--sg-accent-licht); }

/* ------------------ Secties ------------------ */
.sg-sectie { padding: 56px 0; }
.sg-sectie--vlak { background: var(--sg-vlak); }
.sg-sectie--roze { background: var(--sg-accent-licht); }
.sg-sectie-kop { max-width: 40em; }

/* Uitlegblokken (3 stappen) */
.sg-stappen {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px;
}
.sg-stap {
  background: var(--sg-achtergrond);
  border: 1px solid #E4E7EB;
  border-radius: 14px;
  padding: 26px;
}
.sg-stap-nummer {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sg-primair); color: #fff;
  font-weight: 700; font-size: 1.2rem; margin-bottom: 14px;
}
.sg-stap p { color: var(--sg-tekst-licht); margin: 0; }

/* Thema-kaarten */
.sg-themas {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px; margin-top: 28px;
}
.sg-thema-kaart {
  display: block; text-decoration: none;
  background: var(--sg-achtergrond);
  border: 1px solid #E4E7EB; border-radius: 14px;
  padding: 22px; transition: border-color .15s, transform .15s;
}
.sg-thema-kaart:hover { border-color: var(--sg-accent); transform: translateY(-2px); }
.sg-thema-kaart h3 { color: var(--sg-primair-donker); }
.sg-thema-kaart p { color: var(--sg-tekst-licht); font-size: 0.98rem; margin: 0; }

/* CTA-band */
.sg-cta-band { background: var(--sg-paars); }
.sg-cta-band .sg-container {
  padding-top: 44px; padding-bottom: 44px; text-align: center;
}
.sg-cta-band h2 { color: #fff; }
.sg-cta-band p { color: rgba(255,255,255,0.85); max-width: 36em; margin-left: auto; margin-right: auto; }
.sg-cta-band .sg-knop { background: #fff; color: var(--sg-primair) !important; }
.sg-cta-band .sg-knop:hover { background: var(--sg-accent); }

/* ------------------ Pagina-inhoud ------------------ */
.sg-pagina { padding: 48px 0 64px; }
.sg-pagina .sg-inhoud { max-width: 46em; }
.sg-pagina .sg-inhoud ul, .sg-pagina .sg-inhoud ol { padding-left: 1.3em; }

/* Testpagina: inhoud gecentreerd, geen afleiding */
.sg-pagina--test .sg-inhoud { max-width: 720px; margin: 0 auto; }

/* ------------------ Footer ------------------ */
.sg-footer {
  background: var(--sg-primair);
  color: #CBD2D9;
  margin-top: 0;
}
.sg-footer-inner {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: space-between; align-items: center;
  padding: 30px 0;
  font-size: 0.95rem;
}
.sg-footer a { color: #fff; }
.sg-footer-menu ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.sg-footer-menu a { text-decoration: none; }
.sg-footer-menu a:hover { text-decoration: underline; }

/* ------------------ Mobiel ------------------ */
@media (max-width: 820px) {
  .sg-hero-inner { grid-template-columns: 1fr; }
  .sg-hero-afbeelding { order: -1; min-height: 260px; }
  .sg-stappen { grid-template-columns: 1fr; }
  .sg-header-inner { flex-direction: column; align-items: flex-start; }
  .sg-knop { display: block; text-align: center; }
}
