/* Huiswerkoefeningen.nl (HWO). Eigen HWO-uitstraling: antraciet uit het logo, HWO-oranje, lichtgrijze vlakken.
   HealthTrain komt terug in het HealthTrain-blok (Deep Blue). Geen externe bronnen. */

@font-face { font-family: "Greycliff CF"; src: url("fonts/greycliff-cf-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Greycliff CF"; src: url("fonts/greycliff-cf-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Greycliff CF"; src: url("fonts/greycliff-cf-demibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Greycliff CF"; src: url("fonts/greycliff-cf-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* Opbouw zoals de huidige HWO-site: witte hero met app, gecentreerde sectiekoppen, afwisselend beeld en tekst, donkere footer */
:root {
  --ink: #363636;          /* antraciet van het HWO-logo: koppen en sterke tekst */
  --text: #4E525A;         /* lopende tekst, AA op wit en op --soft */
  --muted: #646973;        /* kickers en notities, AA op wit */
  --hwo-orange: #FF9900;   /* HWO-oranje van de huidige knoppen */
  --hwo-orange-hover: #F08C00;
  --orange-text: #A65200;  /* oranje als tekst op wit, AA */
  --soft: #F8F8F9;         /* lichtgrijze vlakken van de huidige site */
  --line: #E3E4E8;
  --footer: #23262D;       /* footer van de huidige site */
  --footer-text: #C9CBD1;
  --deep-blue: #28326E;    /* HealthTrain, alleen in het HealthTrain-blok */
  --white: #FFFFFF;
  --radius: 8px;
  --radius-btn: 5px;
  --max: 1120px;
  --font: "Greycliff CF", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-text); }
h1, h2, h3, .h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3, .h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
strong { color: var(--ink); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.section-blue :focus-visible, .site-footer :focus-visible { outline-color: var(--hwo-orange); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--white); padding: .6em 1em; z-index: 10; }
.skip:focus { left: 16px; top: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-decoration: none; line-height: 1.15; }
.brand-logo { width: 150px; height: auto; }
@media (max-width: 420px) { .brand-logo { width: 132px; } }
.brand-sub { font-size: .85rem; font-weight: 500; color: var(--muted); }
.nav { width: 100%; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav li { margin: 0; }
.nav a { display: inline-block; padding: 6px 0; text-decoration: none; font-weight: 600; color: var(--ink); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hwo-orange); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.header-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 960px) {
  .nav { width: auto; order: 1; }
  .header-actions { order: 2; }
}

/* Knoppen: HWO-oranje, kleine afronding zoals op de huidige site */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .65em 1.3em; border-radius: var(--radius-btn); border: 2px solid var(--ink); background: var(--ink); color: var(--white); font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: #1F1F1F; border-color: #1F1F1F; color: var(--white); }
.btn-secondary { background: var(--white); color: var(--ink); }
.btn-secondary:hover { background: var(--soft); color: var(--ink); border-color: var(--ink); }
.btn-orange { background: var(--hwo-orange); border-color: var(--hwo-orange); color: var(--ink); }
.btn-orange:hover { background: var(--hwo-orange-hover); border-color: var(--hwo-orange-hover); color: var(--ink); }
.btn-small { min-height: 40px; padding: .45em 1em; font-size: .95rem; }
.btn[disabled], .btn[aria-disabled="true"] { background: #ECEDEF; border-color: #CDD0D5; color: #575B63; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2em 0 0; }

/* Secties */
.section { padding: 64px 0; }
.section-tint { background: var(--soft); }
.section-blue { background: var(--deep-blue); color: var(--white); }
.section-blue h2, .section-blue h3, .section-blue strong { color: var(--white); }
.section-blue a { color: var(--white); }
.section-blue .btn-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.section-blue .btn-secondary:hover { background: rgba(255,255,255,.12); }
.section-blue .btn-orange { color: #1E2869; }
.lead { font-size: 1.2rem; max-width: 46em; }
.eyebrow { display: inline-block; font-weight: 600; font-size: .9rem; color: var(--orange-text); margin-bottom: .6em; }
.section-blue .eyebrow { color: var(--hwo-orange); }

/* Sectiekop zoals op de huidige site: lichte regel boven een vette kop, gecentreerd */
.section-head { text-align: center; max-width: 44em; margin: 0 auto 36px; }
.kicker { display: block; font-size: 1.1rem; font-weight: 400; color: var(--muted); margin-bottom: .25em; }
.section-head .lead { margin: 0 auto; }

/* Hero: tekst links, de HWO-app rechts */
.hero { padding: 40px 0 48px; background: var(--white); }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } }
.hero-phone { width: 100%; max-width: 230px; margin: 0 auto; }
@media (min-width: 900px) { .hero-phone { max-width: 330px; } }

.page-head { padding: 44px 0 8px; background: var(--soft); }
.page-head .wrap { padding-bottom: 32px; }

/* Afwisselend beeld en tekst */
.media-row { display: grid; gap: 28px; align-items: center; }
.media-row + .media-row { margin-top: 56px; }
@media (min-width: 860px) {
  .media-row { grid-template-columns: 1fr 1fr; gap: 56px; }
  .media-row.reverse .media-img { order: 2; }
}
.media-img { border-radius: var(--radius); width: 100%; height: auto; }
.media-row > div { min-width: 0; }

/* Kaarten en rasters */
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.section-tint .card { border-color: transparent; }
/* Zeshoek uit het HWO-logo: wit op antraciet, zoals het beeldmerk */
.card .icon { width: 58px; height: 53px; display: grid; place-items: center; margin-bottom: 14px; background: var(--ink); color: var(--white); -webkit-mask: url("img/hex.svg") center / contain no-repeat; mask: url("img/hex.svg") center / contain no-repeat; }
.cards-center .card { text-align: center; }
.cards-center .card .icon { margin-left: auto; margin-right: auto; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 20px 76px; position: relative; margin: 0; min-height: 76px; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 44px; height: 40px; background: var(--ink); color: var(--white); font-weight: 700; font-size: 1.1rem; display: grid; place-items: center; -webkit-mask: url("img/hex.svg") center / contain no-repeat; mask: url("img/hex.svg") center / contain no-repeat; }

.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 4px 14px; font-size: .95rem; color: var(--ink); }

.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 30px; }
.check li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--hwo-orange); border-bottom: 3px solid var(--hwo-orange); transform: rotate(-45deg); }

.price { font-size: 1.6rem; font-weight: 700; color: var(--ink); margin: .2em 0 .4em; }
.note { font-size: .95rem; color: var(--muted); }
.section-blue .note { color: #D5DAF0; }

/* Formulierblok */
.form-box { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 24px; }
.hs-form-target { margin-top: 16px; }
.hs-form-target:empty { display: none; }

/* Veelgestelde vragen */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; color: var(--ink); position: relative; list-style: none; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--orange-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 20px 18px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Footer: donker zoals de huidige site */
.site-footer { background: var(--footer); color: var(--footer-text); padding: 44px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--white); }
.site-footer h2 { font-size: 1rem; margin-bottom: .6em; color: var(--white); }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-logo { width: 190px; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.colofon { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; padding-top: 18px; color: var(--footer-text); }
.colofon p { margin: 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-row-center { justify-content: center; }
.h2-spaced { margin-top: 24px; }
