/* ── Custom properties ────────────────────────────────────── */
:root {
  --navy:       #1B3A8C;
  --navy-dark:  #122871;
  --navy-light: #2a4fa8;
  --gold:       #FFEE55;
  --gold-dark:  #f0d828;
  --white:      #ffffff;
  --off-white:  #f5f7fc;
  --text:       #1a1a2e;
  --text-muted: #5a6a7a;
  --border:     #d0d8e8;
  --success:    #2ecc71;
  --danger:     #e74c3c;
  --warning:    #f39c12;
  --radius:     8px;
  --shadow:     0 2px 12px rgba(27,58,140,.12);
  --shadow-lg:  0 8px 32px rgba(27,58,140,.18);
  --font:       'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width:  1100px;
}

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 1rem;
}

/* ── Skip navigation (WCAG) ──────────────────────────────── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  transition: top .2s;
}
.skip-nav:focus { top: 16px; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

a { color: var(--navy); }
a:hover { color: var(--navy-light); }
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

p { margin-bottom: 1rem; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-logo img {
  height: 48px;
  width: auto;
}
.site-logo .logo-text {
  display: flex;
  flex-direction: column;
}
.site-logo .logo-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.site-logo .logo-sub {
  font-size: .72rem;
  color: var(--gold);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── Navigation ───────────────────────────────────────────── */
.site-nav { display: flex; align-items: center; gap: 4px; }

.site-nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active {
  background: rgba(255,255,255,.12);
  color: var(--gold);
}
.site-nav a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.nav-btn {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
}
.nav-btn:hover {
  background: var(--gold-dark) !important;
  color: var(--navy) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform .3s, opacity .3s;
  border-radius: 2px;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hamburger:focus-visible { outline: 3px solid var(--gold); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1a4dbf 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  background: url('../img/logo.png') center/contain no-repeat;
  opacity: .06;
}
.hero-content { max-width: 640px; }
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, transform .1s, box-shadow .2s;
  font-family: var(--font);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.btn-primary   { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); color: var(--white); }

.btn-gold      { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); color: var(--navy); }

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

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

.btn-danger    { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #c0392b; color: var(--white); }

.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -28px -28px 20px;
  width: calc(100% + 56px);
}

.card-meta {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.card-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.tag-beginner   { background: #e3f4e8; color: #1a7a3a; }
.tag-herhaling  { background: #fff4e0; color: #b35900; }
.tag-verdieping { background: #e0e8ff; color: #1B3A8C; }
.tag-evenement  { background: #fce8e8; color: #a00; }

/* ── Section header ───────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.section-divider {
  width: 48px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 16px auto;
}

/* ── Alert / flash ───────────────────────────────────────── */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 500;
  border-left: 4px solid transparent;
}
.alert-success { background: #eafaf1; border-color: var(--success); color: #1a6e3a; }
.alert-error   { background: #fdf0ef; border-color: var(--danger);  color: #922b21; }
.alert-info    { background: #eaf0fb; border-color: var(--navy);    color: var(--navy); }
.alert-warning { background: #fef9ec; border-color: var(--warning); color: #7d5a00; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: .9rem;
}
label .required { color: var(--danger); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,58,140,.12);
  outline: none;
}
textarea { resize: vertical; min-height: 120px; }
select { cursor: pointer; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
.field-error { font-size: .82rem; color: var(--danger); margin-top: 4px; }

/* Honeypot */
.hp-field { display: none !important; }

/* ── Agenda / calendar ───────────────────────────────────── */
.agenda-list { display: flex; flex-direction: column; gap: 12px; }

.agenda-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px;
  background: var(--off-white);
  border-radius: var(--radius);
  border-left: 4px solid var(--navy);
  transition: box-shadow .2s;
}
.agenda-item:hover { box-shadow: var(--shadow); }

.agenda-date {
  text-align: center;
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
  padding: 8px 4px;
}
.agenda-date .day  { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.agenda-date .month { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }

.agenda-info h3 { font-size: 1rem; margin-bottom: 4px; }
.agenda-info p  { font-size: .85rem; color: var(--text-muted); margin: 0; }

/* ── News ─────────────────────────────────────────────────── */
.news-article p { margin-bottom: 1rem; }
.news-article img { max-width: 100%; border-radius: var(--radius); }

/* ── Bestuur ─────────────────────────────────────────────── */
.bestuur-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.bestuur-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.bestuur-card .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  overflow: hidden;
}
.bestuur-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.bestuur-card h3 { font-size: 1rem; margin-bottom: 4px; }
.bestuur-card .functie { color: var(--text-muted); font-size: .85rem; }

/* ── Member portal ───────────────────────────────────────── */
.portal-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
.portal-sidebar {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.portal-sidebar h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 12px; }
.portal-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: .9rem;
  transition: background .2s, color .2s;
}
.portal-nav a:hover,
.portal-nav a.active {
  background: var(--navy);
  color: var(--white);
}
.license-badge {
  padding: 12px 16px;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 16px;
}
.license-ok      { background: #eafaf1; color: #1a6e3a; }
.license-warning { background: #fef9ec; color: #7d5a00; }
.license-expired { background: #fdf0ef; color: #922b21; }

/* ── Cookie banner ───────────────────────────────────────── */
.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: var(--white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
}
.cookie-banner p { margin: 0; font-size: .88rem; color: rgba(255,255,255,.9); }
.cookie-banner a { color: var(--gold); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.8);
  padding: 48px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: var(--gold);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  padding: 3px 0;
  font-size: .88rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-col p { font-size: .88rem; margin-bottom: 6px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { color: var(--gold); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ── Page header ─────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 48px 0 40px;
}
.page-header h1 { color: var(--white); }
.page-header p  { color: rgba(255,255,255,.8); margin: 8px 0 0; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: rgba(255,255,255,.3); }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
}
.badge-new       { background: #d5e8ff; color: #0a3a8c; }
.badge-info      { background: #e0e8ff; color: var(--navy); }
.badge-success   { background: #e3f4e8; color: #1a7a3a; }
.badge-warning   { background: #fff4e0; color: #b35900; }
.badge-danger    { background: #fce8e8; color: #a00; }
.badge-secondary { background: #eee; color: #666; }

/* ── Tables ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
th {
  background: var(--off-white);
  color: var(--navy);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--off-white); }

/* ── Utilities ───────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 12px 16px; }

  .form-row { grid-template-columns: 1fr; }
  .portal-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .agenda-item { grid-template-columns: 60px 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .cookie-banner { flex-direction: column; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .bestuur-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 16px; }
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .cookie-banner, .hamburger { display: none; }
  body { font-size: 11pt; }
}
