/* ==========================================================================
   SchoolZoeken.nl - Modern 2026 Design System
   Palet: Helder wit (#fff), canvas (#f8fafc), koningsblauw (#1d4ed8 / #1e3a8a),
   antraciet (#0f172a / #475569), smaragdgroen (#059669), warm goud (#b45309).
   WCAG AA Contrast, 0 overflow, 44px+ tap targets.
   ========================================================================== */

:root {
  --sz-bg: #f8fafc;
  --sz-surface: #ffffff;
  --sz-surface-subtle: #f1f5f9;
  --sz-border: #e2e8f0;
  --sz-border-hover: #cbd5e1;
  --sz-text: #0f172a;
  --sz-text-muted: #475569;
  --sz-text-light: #64748b;
  --sz-primary: #1d4ed8;
  --sz-primary-hover: #1e40af;
  --sz-primary-subtle: #eff6ff;
  --sz-primary-border: #bfdbfe;
  --sz-verified-bg: #ecfdf5;
  --sz-verified-text: #065f46;
  --sz-verified-border: #a7f3d0;
  --sz-premium-bg: #fffbeb;
  --sz-premium-text: #92400e;
  --sz-premium-border: #fde68a;
  --sz-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --sz-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --sz-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --sz-radius: 12px;
  --sz-radius-lg: 16px;
  --sz-radius-pill: 9999px;
  --sz-nav-height: 64px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--sz-bg);
  color: var(--sz-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

a {
  color: var(--sz-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--sz-primary-hover);
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

.sr-only, .sz-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sz-skip:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 18px;
  background: var(--sz-primary);
  color: #fff;
  z-index: 10000;
  border-radius: var(--sz-radius);
  clip: auto;
  font-weight: 600;
}

/* ==========================================================================
   Uniforme Sticky Witte Navbar (64px)
   ========================================================================== */

.sz-nav-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--sz-nav-height);
  background-color: var(--sz-surface);
  border-bottom: 1px solid var(--sz-border);
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.sz-nav-container {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sz-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sz-text);
  min-height: 44px;
}

.sz-nav-brand span.logo-badge {
  font-size: 1.35rem;
}

.sz-nav-brand:hover {
  color: var(--sz-primary);
}

/* Desktop Menu */
.sz-nav-desktop {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.sz-nav-desktop a {
  color: var(--sz-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.sz-nav-desktop a:hover, .sz-nav-desktop a.active {
  color: var(--sz-primary);
}

.sz-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.25rem;
  background-color: var(--sz-primary);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--sz-radius-pill);
  transition: background-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.sz-btn-primary:hover {
  background-color: var(--sz-primary-hover);
  transform: translateY(-1px);
}

/* Hamburger Knop */
.sz-hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--sz-border);
  border-radius: var(--sz-radius);
  cursor: pointer;
  padding: 0;
}

.sz-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--sz-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.sz-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.sz-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.sz-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobiel Menu Drawer (STANDAARD GESLOTEN!) */
.sz-nav-mobile {
  display: none;
  position: absolute;
  top: var(--sz-nav-height);
  left: 0;
  right: 0;
  background-color: var(--sz-surface);
  border-bottom: 1px solid var(--sz-border);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
  padding: 1.25rem;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 999;
}

.sz-nav-mobile.open {
  display: flex !important;
}

.sz-nav-mobile a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--sz-text);
  border-radius: var(--sz-radius);
}

.sz-nav-mobile a:hover, .sz-nav-mobile a.active {
  background-color: var(--sz-primary-subtle);
  color: var(--sz-primary);
}

@media (min-width: 960px) {
  .sz-nav-desktop {
    display: flex;
  }
  .sz-hamburger {
    display: none;
  }
  .sz-nav-mobile {
    display: none !important;
  }
}

/* ==========================================================================
   2026 Split Hero Sectie
   ========================================================================== */

.sz-hero-section {
  background-color: var(--sz-surface);
  border-bottom: 1px solid var(--sz-border);
  padding: 3.5rem 1.25rem 4rem;
}

.sz-hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .sz-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

.sz-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--sz-radius-pill);
  background-color: var(--sz-primary-subtle);
  color: var(--sz-primary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--sz-primary-border);
}

.sz-hero-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--sz-text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.sz-hero-subtitle {
  font-size: 1.15rem;
  color: var(--sz-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 620px;
}

/* Zoekbox */
.sz-search-box {
  background: var(--sz-surface);
  border: 1px solid var(--sz-border);
  border-radius: var(--sz-radius-lg);
  padding: 0.75rem;
  box-shadow: var(--sz-shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .sz-search-box {
    flex-direction: row;
    align-items: center;
  }
}

.sz-search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.sz-search-input-wrap input {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 1rem 0.6rem 2.6rem;
  border: 1px solid transparent;
  border-radius: var(--sz-radius);
  background: var(--sz-surface-subtle);
  font-size: 1rem;
}

.sz-search-input-wrap input:focus {
  outline: none;
  background: #fff;
  border-color: var(--sz-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.sz-search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--sz-text-light);
  font-size: 1.1rem;
  pointer-events: none;
}

.sz-search-select {
  min-height: 48px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--sz-border);
  border-radius: var(--sz-radius);
  background-color: var(--sz-surface);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.sz-search-btn {
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  background-color: var(--sz-primary);
  color: #fff;
  border: none;
  border-radius: var(--sz-radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.sz-search-btn:hover {
  background-color: var(--sz-primary-hover);
}

.sz-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.sz-hero-chips span {
  font-size: 0.85rem;
  color: var(--sz-text-light);
  font-weight: 500;
}

.sz-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border-radius: var(--sz-radius-pill);
  background: var(--sz-surface-subtle);
  border: 1px solid var(--sz-border);
  color: var(--sz-text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.sz-chip:hover {
  background: var(--sz-primary-subtle);
  border-color: var(--sz-primary-border);
  color: var(--sz-primary);
}

.sz-hero-image-wrap {
  position: relative;
  text-align: center;
}

.sz-hero-image-wrap img {
  border-radius: var(--sz-radius-lg);
  border: 1px solid var(--sz-border);
  box-shadow: var(--sz-shadow-lg);
  width: 100%;
}

/* ==========================================================================
   Statistieken & Features
   ========================================================================== */

.sz-stats-section {
  padding: 2.5rem 1.25rem;
  border-bottom: 1px solid var(--sz-border);
  background-color: var(--sz-surface);
}

.sz-stats-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .sz-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.sz-stat-card {
  text-align: center;
  padding: 1.25rem;
  border-radius: var(--sz-radius);
  background: var(--sz-surface);
}

.sz-stat-val {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--sz-primary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.sz-stat-lbl {
  font-size: 0.9rem;
  color: var(--sz-text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Scholen Grid & Kaarten (2026 Kaartstijl)
   ========================================================================== */

.sz-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.sz-section-header {
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.sz-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sz-text);
  line-height: 1.25;
}

.sz-section-sub {
  color: var(--sz-text-muted);
  font-size: 1rem;
  margin-top: 0.25rem;
}

.sz-schools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .sz-schools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .sz-schools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sz-card {
  background: var(--sz-surface);
  border: 1px solid var(--sz-border);
  border-radius: var(--sz-radius);
  padding: 1.5rem;
  box-shadow: var(--sz-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.sz-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sz-shadow);
  border-color: var(--sz-border-hover);
}

.sz-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.sz-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sz-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--sz-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.sz-badge.verified {
  background: var(--sz-verified-bg);
  color: var(--sz-verified-text);
  border: 1px solid var(--sz-verified-border);
}

.sz-badge.premium {
  background: var(--sz-premium-bg);
  color: var(--sz-premium-text);
  border: 1px solid var(--sz-premium-border);
}

.sz-badge.type {
  background: var(--sz-surface-subtle);
  color: var(--sz-text-muted);
}

.sz-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sz-text);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.sz-card-loc {
  color: var(--sz-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sz-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--sz-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sz-card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sz-primary);
}

.sz-compare-btn {
  background: transparent;
  border: 1px solid var(--sz-border);
  border-radius: var(--sz-radius-pill);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sz-text-muted);
  cursor: pointer;
  min-height: 32px;
}

.sz-compare-btn:hover, .sz-compare-btn[aria-pressed="true"] {
  background: var(--sz-primary);
  border-color: var(--sz-primary);
  color: #fff;
}

/* ==========================================================================
   Voor Scholen CTA Strip (Strak Blauw/Wit)
   ========================================================================== */

.sz-banner-schools {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  color: #fff;
  border-radius: var(--sz-radius-lg);
  padding: 3rem 2rem;
  margin: 3.5rem auto;
  max-width: 1280px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .sz-banner-schools {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 3.5rem 3rem;
  }
}

.sz-banner-schools h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.sz-banner-schools p {
  font-size: 1.05rem;
  color: #dbeafe;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.sz-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.sz-btn-gold {
  min-height: 46px;
  padding: 0.65rem 1.4rem;
  background-color: #fbbf24;
  color: #1e1b4b !important;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--sz-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sz-btn-gold:hover {
  background-color: #f59e0b;
}

.sz-btn-ghost-white {
  min-height: 46px;
  padding: 0.65rem 1.4rem;
  background-color: transparent;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--sz-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sz-btn-ghost-white:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   Uniforme 4-koloms Footer
   ========================================================================== */

.sz-footer {
  background-color: var(--sz-surface);
  border-top: 1px solid var(--sz-border);
  padding: 4rem 1.25rem 2.5rem;
  color: var(--sz-text-muted);
  font-size: 0.92rem;
}

.sz-footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .sz-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .sz-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 3rem;
  }
}

.sz-footer-col h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sz-text);
  margin-bottom: 1.1rem;
}

.sz-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sz-footer-col ul a {
  color: var(--sz-text-muted);
  display: inline-block;
  padding: 2px 0;
}

.sz-footer-col ul a:hover {
  color: var(--sz-primary);
}

.sz-footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--sz-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.sz-footer-bottom a {
  color: var(--sz-text-light);
}

.sz-footer-bottom a:hover {
  color: var(--sz-primary);
}

/* Cookie banner */
#sz-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #f8fafc;
  padding: 1rem 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
