/* ==========================================================================
   Sportbrein — styles.css
   Eén gedeelde stylesheet voor de hele site.
   Mobile-first. Geen externe lettertypes, geen libraries.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens (CSS custom properties)
   -------------------------------------------------------------------------- */
:root {
  /* Kleuren (huisstijl Sportbrein) */
  --c-navy:        #0F142A;  /* donkerblauw hoofd */
  --c-navy-2:      #1A2342;  /* donkerblauw variant */
  --c-white:       #FFFFFF;
  --c-bg-soft:     #F7F9FC;  /* heel lichte achtergrond */
  --c-bg-light:    #E9EFFB;  /* lichtblauwe sectieachtergrond */
  --c-cta:         #2F57B7;  /* helderblauw (primair / CTA) */
  --c-cta-hover:   #24469A;  /* CTA hover (donkerder blauw) */
  --c-green:       #6BAA3A;  /* groen accent */
  --c-text:        #162033;  /* hoofdtekst */
  --c-subtext:     #667085;  /* subtekst */
  --c-border:      #E3E8EF;  /* border */

  /* Lettertype: alleen systeemlettertypes */
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: 20px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  /* Schaduwen (licht) */
  --shadow-sm: 0 1px 2px rgba(15, 20, 42, .05);
  --shadow-md: 0 4px 16px rgba(15, 20, 42, .07);
  --shadow-lg: 0 12px 32px rgba(15, 20, 42, .10);

  /* Transities */
  --t-fast: .15s ease;
  --t-med: .25s ease;
}

/* --------------------------------------------------------------------------
   2. Reset / basis
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3 {
  color: var(--c-navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; }

/* Toegankelijke, zichtbare toetsenbordfocus */
:focus-visible {
  outline: 3px solid var(--c-cta);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   3. Hulpklassen
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 56px;
}

.section--light { background: var(--c-bg-soft); }
.section--blue  { background: var(--c-bg-light); }

.section__head {
  max-width: 720px;
  margin-bottom: 32px;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 10px;
}

.lead {
  color: var(--c-subtext);
  font-size: 1.05rem;
}

.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;
}

/* Skiplink */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  background: var(--c-navy);
  color: var(--c-white);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   4. Knoppen
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), transform var(--t-fast);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--c-cta);
  color: var(--c-white);
}
.btn--primary:hover { background: var(--c-cta-hover); }

.btn--secondary {
  background: var(--c-white);
  color: var(--c-navy);
  border-color: var(--c-border);
}
.btn--secondary:hover { border-color: var(--c-navy); }

/* Knoppen op donkere achtergrond */
.btn--ghost-light {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255, 255, 255, .35);
}
.btn--ghost-light:hover { border-color: var(--c-white); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   5. Header / navigatie
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand__logo {
  height: 40px;
  width: auto;
  display: block;
}

/* Mobiel: navigatie standaard verborgen, hamburger zichtbaar */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-navy);
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after  { position: absolute; top: 6px; }

/* Hamburger -> kruis wanneer geopend */
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

.main-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
  display: none;
}
.main-nav[data-open="true"] { display: block; }

.main-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 8px var(--gutter) 16px;
}
.main-nav__link {
  display: block;
  padding: 12px 8px;
  text-decoration: none;
  color: var(--c-text);
  font-weight: 600;
  border-radius: var(--r-sm);
}
.main-nav__link:hover { background: var(--c-bg-light); }
.main-nav__link[aria-current="page"] { color: var(--c-cta); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-block: 48px 56px;
  background:
    linear-gradient(180deg, var(--c-bg-light), var(--c-white));
  border-bottom: 1px solid var(--c-border);
}
.hero__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 2.85rem);
  margin-bottom: 16px;
}
.hero__text {
  color: var(--c-subtext);
  font-size: 1.1rem;
  max-width: 52ch;
  margin-bottom: 24px;
}
.hero__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-border); /* nette achtergrond als afbeelding ontbreekt */
  box-shadow: var(--shadow-md);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero-collage: 3 beelden (1 groot links, 2 gestapeld rechts) */
.hero__collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  aspect-ratio: 4 / 3;
}
.collage__item {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-bg-light);
  box-shadow: var(--shadow-sm);
}
.collage__item,
.collage__item picture,
.collage__item img {
  display: block;
  width: 100%;
  height: 100%;
}
.collage__item img { object-fit: cover; }
.collage__item--main { grid-row: 1 / 3; } /* groot beeld links over beide rijen */

/* --------------------------------------------------------------------------
   7. Kaarten / grids
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-med), transform var(--t-med);
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.card p {
  color: var(--c-subtext);
  font-size: .98rem;
}

/* Klikbare conceptkaart */
.card--link { display: flex; flex-direction: column; }
.card--link:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__cta {
  margin-top: 16px;
  font-weight: 600;
  color: var(--c-cta);
  text-decoration: none;
}
.card__cta::after { content: " \2192"; }
.card__cta:hover { color: var(--c-cta-hover); }

/* Vraagkaart met nummer */
.card--question { position: relative; }
.card--question .card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--c-bg-light);
  color: var(--c-navy);
  font-weight: 700;
  font-size: .9rem;
}

/* --------------------------------------------------------------------------
   8. Werkwijze (stappen)
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
.step {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.step__num {
  counter-increment: step;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--c-navy);
  color: var(--c-white);
  font-weight: 700;
  margin-bottom: 14px;
}
.step__num::before { content: counter(step); }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--c-subtext); font-size: .98rem; }

/* --------------------------------------------------------------------------
   9. Voetbalpraktijk labels
   -------------------------------------------------------------------------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 4px 0 24px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-white);
  font-size: .92rem;
  font-weight: 600;
  color: var(--c-text);
}
.tag::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-green);
}

/* --------------------------------------------------------------------------
   10. CTA-blok (donkerblauw)
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--c-navy);
  color: var(--c-white);
  border-radius: var(--r-lg);
  padding: 48px 32px;
  text-align: center;
}
.cta-band h2 { color: var(--c-white); }
.cta-band p {
  color: rgba(255, 255, 255, .82);
  max-width: 56ch;
  margin: 0 auto 24px;
}
.cta-band .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   11. Eenvoudige (placeholder) pagina-intro
   -------------------------------------------------------------------------- */
.page-intro {
  padding-block: 64px;
  background: linear-gradient(180deg, var(--c-bg-light), var(--c-white));
  border-bottom: 1px solid var(--c-border);
}
.page-intro h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 12px;
}
.page-intro p {
  color: var(--c-subtext);
  font-size: 1.08rem;
  max-width: 60ch;
  margin-bottom: 24px;
}

/* 404 */
.error-code {
  font-size: clamp(3rem, 12vw, 6rem);
  color: var(--c-cta);
  margin-bottom: 8px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-navy);
  color: rgba(255, 255, 255, .8);
  padding-block: 48px 32px;
}
.footer__top {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
.footer__brand .brand__logo { height: 64px; }
.footer__tagline {
  margin-top: 12px;
  color: rgba(255, 255, 255, .7);
  max-width: 40ch;
}
.footer__nav h2 {
  color: var(--c-white);
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer__list { list-style: none; display: grid; gap: 8px; }
.footer__list a {
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
}
.footer__list a:hover { color: var(--c-white); text-decoration: underline; }
.footer__bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .9rem;
  color: rgba(255, 255, 255, .6);
}

/* --------------------------------------------------------------------------
   13. Responsive (desktop-uitbreidingen)
   -------------------------------------------------------------------------- */
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .steps   { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

@media (min-width: 900px) {
  body { font-size: 17px; }
  .section { padding-block: 72px; }

  .hero { padding-block: 64px 72px; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 48px; }

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

  /* Navigatie: horizontaal, hamburger weg */
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    display: block;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .main-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
  }
  .main-nav__link { padding: 8px 14px; }
}

/* --------------------------------------------------------------------------
   14. Respecteer reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------------------
   15. Concepten-pagina
   -------------------------------------------------------------------------- */
.breadcrumb {
  font-size: .9rem;
  color: var(--c-subtext);
  margin-bottom: 14px;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb a { color: var(--c-subtext); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-cta); text-decoration: underline; }
.breadcrumb li[aria-current] { color: var(--c-text); font-weight: 600; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--c-border); }

.concept { scroll-margin-top: 84px; } /* anker netjes onder sticky header */
.concept__grid {
  display: grid;
  gap: 28px;
  align-items: center;
}
.concept__body h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.concept__media { margin: 0; }
.concept__frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--c-bg-light);
  aspect-ratio: 16 / 10;
}
.concept__frame picture,
.concept__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.concept__caption {
  margin-top: 10px;
  font-size: .85rem;
  color: var(--c-subtext);
}

/* Feitenlijst */
.facts {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 4px 0 24px;
}
.facts li {
  display: flex;
  gap: 10px;
  font-size: .98rem;
  color: var(--c-subtext);
}
.facts .facts__label {
  min-width: 116px;
  color: var(--c-text);
  font-weight: 600;
}

@media (min-width: 900px) {
  .concept__grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  /* Omgekeerde volgorde: media rechts */
  .concept--reverse .concept__media { order: 2; }
}
