/*
 * Bestand  : layout.css
 * Project  : Verkeersschool Dijkhuizen
 * Datum    : 2026-04-14
 * Doel     : Pagina-structuur — container, secties, navigatie en footer
 */

@import url('variabelen.css');


/* ─── Container — gecentreerde inhoudsbreedte ──────────────────────────────── */

.container {
  max-width: var(--container-breed);
  margin: 0 auto;
  padding: 0 var(--ruimte-4);
}


/* ─── Secties — verticale ritme voor pagina-blokken ───────────────────────── */

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

.sectie--donker {
  background: var(--kleur-donker);
  color: var(--kleur-wit);
  position: relative;
  overflow: hidden;
}

/* Subtiele radiale gloed voor diepte */
.sectie--donker::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 123, 255, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.sectie--donker h1,
.sectie--donker h2,
.sectie--donker h3,
.sectie--donker h4 {
  color: var(--kleur-wit);
}

footer h1,
footer h2,
footer h3,
footer h4 {
  color: var(--kleur-wit);
}

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

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


/* ─── Navigatie — sticky, glassmorphism, verschijnt na de actie-balk ────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: var(--ruimte-3) 0;
  transition: box-shadow var(--overgang);
}

/* backdrop-filter op ::before zodat .nav zelf geen containing block wordt
   voor position:fixed kinderen (het mobiele menu-overlay) */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

.nav.gescrold {
  box-shadow: var(--schaduw-medium);
}

.nav.gescrold::before {
  background: rgba(255, 255, 255, 0.98);
}


/* ─── Nav-inner — flex-rij met logo en links ───────────────────────────────── */

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 0;
}


/* ─── Logo ─────────────────────────────────────────────────────────────────── */

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  transition: opacity var(--overgang);
}

.nav-logo:hover {
  text-decoration: none;
  opacity: 0.80;
}

.nav-logo-afbeelding {
  display: block;
  height: 48px;
  width: auto;
  object-fit: contain;
}


/* ─── Nav-links — horizontale lijst op desktop ─────────────────────────────── */

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--ruimte-5);
  list-style: none;
}

.nav-link {
  color: var(--kleur-tekst);
  text-decoration: none;
  font-family: var(--font-tekst);
  font-size: var(--tekst-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 3px;
  transition: color var(--overgang);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--kleur-accent);
  border-radius: 2px;
  transition: width var(--overgang);
}

.nav-link:hover {
  color: var(--kleur-accent);
  text-decoration: none;
}

.nav-link:hover::after {
  width: 100%;
}


/* ─── Hamburger — mobiele menuknop (verborgen op desktop) ───────────────────── */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--ruimte-1);
  /* Boven de open-menu overlay (z-index 99 in responsive.css) zodat
     hij klikbaar blijft om weer te sluiten. */
  position: relative;
  z-index: 100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--kleur-tekst);
  border-radius: 2px;
  transition: var(--overgang);
}


/* ─── Footer ───────────────────────────────────────────────────────────────── */

footer {
  background: var(--kleur-donker);
  color: var(--kleur-wit);
  padding: var(--ruimte-10) 0 0;
  position: relative;
  overflow: hidden;
}

/* Subtiele toprand met gradient */
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--kleur-accent);
}


/* ─── Footer-grid — drie kolommen op desktop ───────────────────────────────── */

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ruimte-8);
}


/* ─── Footer-bottom — onderste regel met copyright ─────────────────────────── */

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: var(--ruimte-6);
  padding: var(--ruimte-4) 0;
  text-align: center;
  opacity: 0.45;
  font-size: var(--tekst-sm);
}
