/*
Theme Name: IUASR
Theme URI: https://iuasr.nl
Description: Custom classic PHP theme for the Islamic University of Applied Sciences Rotterdam (IUASR) public website. Bilingual NL/EN, ACF-driven content, native Gutenberg blog. Built and tested on staging.iuasr.nl.
Author: IUASR / Tasmeem
Author URI: https://iuasr.nl
Version: 0.3.6
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iuasr
Tags: custom, classic, bilingual, education

This theme is the ONE stylesheet for the site (per project hard rules).
Design tokens live in assets/css/tokens.css and are enqueued first.
Section/component styles are added per build phase — see docs/architecture.md.
*/

/* ============================================================
   1. RESET / NORMALIZE (lichtgewicht)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans-serif-font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: var(--iuasr-weight-body);
  color: var(--iuasr-text-default);
  background: var(--iuasr-bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--iuasr-text-link); text-decoration: none; transition: color var(--iuasr-duration-fast) var(--iuasr-ease-standard); }
a:hover { color: var(--iuasr-text-link-hover); }
a:focus-visible {
  outline: 2px solid var(--secColor100);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================================
   2. BASE TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--serif-font);
  font-weight: 400;
  /* No global color: headings inherit from their section so dark sections
     (donate, teaser hover) render light text instead of indigo-on-indigo. */
  letter-spacing: -0.008em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--iuasr-text-3xl); line-height: 1.08; }
h2 { font-size: var(--iuasr-text-2xl); line-height: 1.15; }
h3 { font-size: var(--iuasr-text-xl); line-height: 1.2; }
h4 { font-size: var(--iuasr-text-lg); line-height: 1.25; }
h5, h6 { font-family: var(--sans-serif-font); margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
:lang(ar) { font-family: var(--arabic-font); direction: rtl; }

/* ============================================================
   3. LAYOUT PRIMITIVES
   ============================================================ */
.wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ============================================================
   4. ACCESSIBILITY HELPERS
   ============================================================ */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--priColor100); color: #fff;
  padding: 10px 18px; border-radius: 2px;
}
.skip-link:focus { left: 16px; top: 16px; color: #fff; }

/* ============================================================
   5. SHARED ICON SYSTEM (inline SVG — zie inc/icons.php)
   ============================================================ */
.icon {
  display: inline-block;
  width: 1em; height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}
.icon--fill { fill: currentColor; stroke: none; }

/* ============================================================
   6. GLOBAL SHELL — utility bar, header, mega-menu nav, footer
   Ontleend aan homepage v3. Tokens i.p.v. hard-coded waarden.
   ============================================================ */

/* ---- Utility bar ---- */
.utility {
  background: var(--priColor100);
  color: rgba(242, 241, 244, 0.85);
  font-size: 13px;
  font-weight: 300;
}
.utility__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 9px var(--container-pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.utility__left { display: flex; align-items: center; gap: 22px; }
.utility__left span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.utility__left .icon { opacity: 0.7; }
.utility a { color: rgba(242, 241, 244, 0.85); }
.utility a:hover { color: var(--secColor300); }
.utility__right { display: flex; align-items: center; gap: 22px; }
.utility__lang { display: inline-flex; gap: 1px; align-items: center; }
.utility__lang a { padding: 0 6px; }
.utility__lang a.is-active { color: #fff; font-weight: 500; }
.utility__lang i { color: rgba(242, 241, 244, 0.35); font-style: normal; }
.utility__cta {
  background: var(--secColor100);
  color: #fff !important;
  padding: 5px 16px;
  border-radius: var(--button-border-radius);
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.utility__cta:hover { background: var(--iuasr-btn-primary-hover); color: #fff !important; }

/* ---- Header ---- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--borderSubtleColor);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 18px var(--container-pad);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
/* 96px tall, width auto → ~258px wide (matches inschrijving.iuasr.nl: 257.57 × 95.99). */
.brand img { height: var(--logo-header-h); width: auto; }
.brand .brand__txt {
  display: flex; flex-direction: column; gap: 0;
  border-left: 1px solid var(--borderSubtleColor);
  padding-left: 14px;
}
.brand .brand__txt .l1 {
  font-family: var(--serif-font);
  font-size: 17px; line-height: 1.05;
  color: var(--priColor100);
  letter-spacing: -0.005em;
}
.brand .brand__txt .l2 {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blackAltText); font-weight: 500; margin-top: 4px;
}

/* ---- Mobile nav toggle (hidden on desktop) ---- */
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: 8px; color: var(--priColor100);
  border-radius: var(--button-border-radius);
}
.nav-toggle:hover { background: var(--priColor102); }

/* ---- Primary nav + mega-menu ---- */
/* Items stretch to the full header height so the mega panel drops from the
   header's bottom edge with no hover gap between link and panel. */
.nav { display: flex; align-self: stretch; align-items: stretch; gap: 4px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--priColor100); font-weight: 500; font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--button-border-radius);
  transition: background var(--iuasr-duration-fast) var(--iuasr-ease-standard);
}
.nav__chevron { opacity: 0.6; transition: transform var(--iuasr-duration-fast) var(--iuasr-ease-standard); }
.nav__item:hover > .nav__link { background: var(--priColor102); color: var(--priColor100); }
.nav__item:hover > .nav__link .nav__chevron { transform: rotate(180deg); }
.nav__link.is-active { color: var(--secColor100); }

.mega {
  position: absolute; top: 100%; left: 0;
  background: #fff;
  border: 1px solid var(--borderSubtleColor);
  box-shadow: 0 22px 50px rgba(32, 21, 71, 0.12), 0 2px 6px rgba(32, 21, 71, 0.04);
  min-width: 720px;
  padding: 28px 30px 26px;
  display: none;
  border-radius: var(--button-border-radius);
  border-top: 3px solid var(--secColor100);
  gap: 24px 36px;
  z-index: 60;
}
.mega--right { left: auto; right: 0; }
.mega--small { min-width: 280px; }
.nav__item:hover .mega { display: grid; }
.mega--cols2 { grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.mega--cols3 { grid-template-columns: 1fr 1fr 1fr; gap: 24px 36px; }
.mega h5 {
  font-family: var(--sans-serif-font); font-weight: 600;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blackAltText);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--borderSubtleColor);
}
.mega h5 a { color: inherit; }
.mega ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mega ul a {
  display: block;
  color: var(--priColor100); font-size: 14px;
  padding: 4px 0;
  font-weight: 400;
}
.mega ul a:hover { color: var(--secColor100); }

/* ---- Footer ---- */
.site-footer {
  background: var(--iuasr-bg-footer);
  color: rgba(242, 241, 244, 0.78);
  padding: 72px 0 36px;
  /* No top margin: the pre-footer sits flush against the footer (design). */
}
.site-footer a { color: rgba(242, 241, 244, 0.78); }
.site-footer a:hover { color: #fff; }
.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__brand img { height: var(--logo-footer-h); width: auto; filter: brightness(0) invert(1); opacity: 0.95; }
.footer__brand p {
  margin: 20px 0 0;
  font-size: 13.5px; line-height: 1.6;
  color: rgba(242, 241, 244, 0.7);
  max-width: 32ch;
  font-weight: 300;
}
.footer__brand .addr {
  margin-top: 20px;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; color: rgba(242, 241, 244, 0.7);
}
.footer__brand .addr b { color: #fff; font-weight: 500; }
.footer__col h6 {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--secColor300); font-weight: 600;
  margin: 0 0 18px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col ul a { color: rgba(242, 241, 244, 0.78); font-size: 14px; }
.footer__col ul a:hover { color: #fff; }
.footer__bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  font-size: 12.5px;
  color: rgba(242, 241, 244, 0.55);
  flex-wrap: wrap;
}
.footer__bottom .legal { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer__bottom .legal li { list-style: none; margin: 0; }
.footer__bottom .legal a { color: rgba(242, 241, 244, 0.7); }
.footer__bottom .legal a:hover { color: #fff; }
.footer__socials { display: flex; gap: 10px; align-items: center; }
.footer__socials a {
  width: 32px; height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(242, 241, 244, 0.78);
  border-radius: 50%;
  transition: all var(--iuasr-duration-fast) var(--iuasr-ease-standard);
}
.footer__socials a:hover { background: var(--secColor300); color: var(--priColor100); border-color: var(--secColor300); }

/* ============================================================
   7. RESPONSIVE — breakpoints volgen het ontwerp (1100 / 1024 / 640)
   Geen horizontale scroll op 320px.
   ============================================================ */
@media (max-width: 1024px) {
  /* Desktop mega-menu hidden; mobile disclosure toggles .nav open. */
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--borderSubtleColor);
    box-shadow: var(--iuasr-shadow-md);
    padding: 8px var(--container-pad) 16px;
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav__item { position: static; border-top: 1px solid var(--borderSubtleColor); }
  .nav__link { padding: 14px 4px; }
  .mega {
    position: static; display: grid; min-width: 0;
    box-shadow: none; border: 0; border-top: 0;
    padding: 0 0 12px 12px;
    grid-template-columns: 1fr !important;
    gap: 8px 0;
  }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .utility__inner { padding: 9px 20px; gap: 12px; flex-wrap: wrap; }
  .utility__left { gap: 14px; }
  .site-header__inner { padding: 14px 20px; }
  .brand img { height: 48px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { gap: 16px; }
}

/* ============================================================
   8. HOME (front-page) SECTIONS — homepage v3
   ============================================================ */

/* Shared section head */
.section__head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 32px; margin-bottom: 36px; flex-wrap: wrap;
}
.section__head h2 {
  font-size: 40px; line-height: 1.1; margin: 0;
  letter-spacing: -0.008em; max-width: 22ch;
}
.section__head .eyebrow {
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--secColor100); font-weight: 600; margin: 0 0 8px;
}
.section__head .right { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.section__head .right a {
  color: var(--priColor100); display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; border-bottom: 1px solid var(--borderColor); padding-bottom: 3px;
}
.section__head .right a:hover { color: var(--secColor100); border-color: var(--secColor100); }

/* Shared buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--secColor100); color: #fff !important;
  padding: 13px 22px; font-weight: 500; font-size: 14.5px;
  border-radius: var(--button-border-radius);
}
.btn-primary:hover { background: var(--iuasr-btn-primary-hover); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--priColor100) !important; font-weight: 500; font-size: 14.5px;
  border-bottom: 1px solid var(--borderColor); padding-bottom: 4px;
}
.btn-secondary:hover { color: var(--secColor100) !important; border-color: var(--secColor100); }

/* ---- HERO ---- */
.hero { background: var(--priColor100); }
.hero__stage { position: relative; overflow: hidden; display: grid; min-height: 560px; }
.hero__slide {
  grid-area: 1 / 1; position: relative; z-index: 0;
  display: flex; align-items: center; padding: 72px 0 110px;
  opacity: 0; pointer-events: none; transition: opacity 700ms ease;
}
.hero__slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero__copy {
  position: relative; z-index: 2; max-width: 720px;
  padding-left: max(32px, calc((100vw - 1240px) / 2 + 32px)); padding-right: 32px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.hero__bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(16,4,74,0.90) 0%, rgba(16,4,74,0.74) 38%, rgba(16,4,74,0.34) 72%, rgba(16,4,74,0.18) 100%),
    linear-gradient(0deg, rgba(16,4,74,0.55) 0%, rgba(16,4,74,0) 36%);
}
.hero__bg--photo { background: var(--heroOverlay); }
.hero__bg--panel { background-image: url("assets/img/docent-paneel.jpg"); background-position: center 62%; }
.hero__bg--brand { background: var(--heroOverlay) url("assets/logo/logo-icon.png") no-repeat calc(100% + 12vw) center / auto 148%; }
.hero__bg--heritage { background-image: url("assets/img/heritage-photo.png"); background-position: center 52%; }
.hero__eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--secColor300); font-weight: 600; margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.hero__eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--secColor300); display: inline-block; }
.hero h1 {
  font-size: 60px; line-height: 1.06; margin: 0 0 22px;
  letter-spacing: -0.012em; color: #fff; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--secColor300); }
.hero__lead {
  font-size: 17.5px; line-height: 1.65; color: rgba(255,255,255,0.84);
  font-weight: 300; max-width: 52ch; margin: 0 0 32px; text-wrap: pretty;
}
.hero__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero__cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--secColor100); color: #fff !important;
  padding: 14px 24px; font-weight: 500; font-size: 15px; border-radius: var(--button-border-radius);
}
.hero__cta:hover { background: var(--iuasr-btn-primary-hover); }
.hero__cta-secondary { color: rgba(255,255,255,0.92) !important; font-weight: 500; font-size: 15px; white-space: nowrap; }
.hero__cta-secondary:hover { color: var(--secColor300) !important; }
.hero__nav { position: absolute; left: 0; right: 0; bottom: 32px; z-index: 5; display: flex; justify-content: center; }
.hero__dots { display: flex; gap: 10px; align-items: center; }
.hero__dot {
  width: 36px; height: 4px; background: rgba(255,255,255,0.28);
  border: none; padding: 0; cursor: pointer; border-radius: 99px; transition: background 200ms;
}
.hero__dot.is-active { background: var(--secColor300); }

/* ---- NEWS ---- */
.news { background: #fff; padding: var(--space-section) 0; border-bottom: 1px solid var(--borderSubtleColor); }
.news__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: auto auto; gap: 24px; }
.news__card {
  display: flex; flex-direction: column; text-decoration: none; background: #fff;
  border: 1px solid var(--borderSubtleColor); padding: 24px; transition: all 200ms;
  color: var(--priColor100); min-height: 220px;
}
.news__card:hover { border-color: var(--priColor100); transform: translateY(-2px); box-shadow: var(--iuasr-shadow-card-hover); }
.news__card-meta {
  display: flex; align-items: center; gap: 10px; font-size: 11.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--blackAltText);
  font-weight: 500; margin-bottom: 14px;
}
.news__card-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--blackAltText); }
.news__card-meta .tag { color: var(--secColor100); }
.news__card h3 { font-size: 21px; line-height: 1.25; margin: 0 0 10px; letter-spacing: -0.005em; text-wrap: balance; }
.news__card p { font-size: 14px; line-height: 1.6; color: var(--blackAltText); font-weight: 300; margin: 0; flex: 1; }
.news__card-cta { margin-top: 16px; font-size: 13px; font-weight: 500; color: var(--secColor100); display: inline-flex; align-items: center; gap: 6px; }
.news__card--featured { grid-row: 1 / span 2; background: var(--priColor100); color: #fff; border-color: var(--priColor100); padding: 36px; }
.news__card--featured:hover { box-shadow: 0 16px 40px rgba(32,21,71,0.2); }
.news__card--featured .news__card-meta, .news__card--featured .news__card-meta .tag { color: var(--secColor300); }
.news__card--featured h3 { font-size: 32px; line-height: 1.15; color: #fff; margin-bottom: 16px; }
.news__card--featured p { color: rgba(242,241,244,0.78); font-size: 15px; }
.news__card--featured .news__card-cta { color: var(--secColor300); margin-top: 24px; }
.news__card--text h3 { font-size: 18px; }
.news__card--text p { font-size: 13.5px; line-height: 1.55; }

/* ---- STUDIES ---- */
.studies { padding: var(--space-section) 0; background: var(--priColor103); }
.studies__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.study-card {
  background: #fff; border: 1px solid var(--borderSubtleColor); padding: 36px 32px 32px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  min-height: 420px; transition: all 200ms;
}
.study-card:hover { border-color: var(--priColor100); transform: translateY(-2px); box-shadow: var(--iuasr-shadow-card-hover); }
.study-card__level {
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--secColor100); font-weight: 600; margin: 0 0 16px;
  display: flex; align-items: center; gap: 12px;
}
.study-card__level::before { content: ""; width: 28px; height: 1.5px; background: var(--secColor100); }
.study-card h3 { font-size: 28px; line-height: 1.14; margin: 0 0 12px; letter-spacing: -0.012em; text-wrap: balance; max-width: 16ch; }
.study-card__meta {
  display: flex; gap: 24px; font-size: 13px; color: var(--blackAltText);
  margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--borderSubtleColor);
}
.study-card__meta b { display: block; color: var(--priColor100); font-family: var(--serif-font); font-size: 17px; line-height: 1; margin-top: 4px; }
.study-card__desc { font-size: 14.5px; line-height: 1.65; color: var(--blackAltText); font-weight: 300; margin: 0 0 28px; flex: 1; max-width: 50ch; }
.study-card__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.study-card__ornament { position: absolute; right: -40px; bottom: -40px; width: 200px; height: 200px; border: 1px solid var(--borderSubtleColor); border-radius: 50%; pointer-events: none; }
.study-card__ornament::after { content: ""; position: absolute; inset: 16px; border: 1px solid var(--borderSubtleColor); border-radius: 50%; }

/* ---- QUOTE ---- */
.quote { background: #fff; padding: var(--space-section) 0; }
.quote__grid { display: grid; grid-template-columns: 80px 1fr 280px; gap: 48px; align-items: center; }
.quote__mark { font-family: var(--serif-font); font-size: 140px; line-height: 0.6; color: var(--secColor100); margin-top: 24px; }
.quote__text { font-size: 38px; line-height: 1.25; color: var(--priColor100); margin: 0 0 28px; letter-spacing: -0.008em; text-wrap: balance; max-width: 22ch; font-style: italic; font-family: var(--serif-font); }
.quote__cite { font-size: 13.5px; color: var(--blackAltText); line-height: 1.55; }
.quote__cite b { display: block; color: var(--priColor100); font-size: 14.5px; font-weight: 500; margin-bottom: 4px; }
.quote__cite i { display: block; margin-top: 8px; font-style: italic; font-size: 12.5px; }
.quote__side { border-left: 1px solid var(--borderSubtleColor); padding-left: 32px; font-size: 13.5px; line-height: 1.6; color: var(--blackAltText); }
.quote__side h4 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--priColor100); font-weight: 600; margin: 0 0 10px; }

/* ---- PABO ---- */
.pabo { background: var(--priColor103); padding: var(--space-section) 0; position: relative; }
.pabo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.pabo__copy h2 { font-size: 44px; line-height: 1.08; margin: 0 0 20px; letter-spacing: -0.012em; text-wrap: balance; }
.pabo__copy h2 em { font-style: italic; color: var(--secColor100); }
.pabo__lede { font-size: 17px; line-height: 1.6; color: var(--priColor100); margin: 0 0 24px; max-width: 52ch; }
.pabo__body { font-size: 14.5px; line-height: 1.7; color: var(--blackAltText); font-weight: 300; margin: 0 0 14px; max-width: 54ch; }
.pabo__body p { margin: 0 0 14px; }
.pabo__actions { margin-top: 28px; }
.pabo__card { background: #fff; border: 1px solid var(--borderSubtleColor); padding: 36px; position: sticky; top: 110px; }
.pabo__card-tag { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--secColor100); font-weight: 600; margin: 0 0 14px; display: inline-flex; align-items: center; gap: 12px; }
.pabo__card-tag::before { content: ""; width: 28px; height: 1.5px; background: var(--secColor100); }
.pabo__card h3 { font-size: 30px; line-height: 1.1; margin: 0 0 20px; letter-spacing: -0.008em; }
.pabo__card ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pabo__card ul li { display: flex; gap: 12px; font-size: 14px; line-height: 1.55; color: var(--priColor100); }
.pabo__card ul li .icon { flex: none; color: var(--secColor100); margin-top: 3px; }
.pabo__card-when { background: var(--priColor103); padding: 18px 20px; margin-bottom: 24px; display: flex; gap: 24px; font-size: 13px; }
.pabo__card-when > div { display: flex; flex-direction: column; gap: 4px; }
.pabo__card-when .k { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blackAltText); font-weight: 600; }
.pabo__card-when .v { font-family: var(--serif-font); font-size: 17px; color: var(--priColor100); }

/* ---- TESTIMONIAL ---- */
.testimonial { background: #fff; padding: var(--space-section) 0; }
.testimonial__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; align-items: stretch; border-radius: var(--button-border-radius); overflow: hidden; background: var(--priColor100); color: #fff; }
.testimonial__photo { position: relative; min-height: 440px; background: #1a0f3a; }
.testimonial__photo::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 30%, rgba(255,210,176,0.4), transparent 55%), linear-gradient(180deg, transparent 30%, rgba(32,21,71,0.55) 100%), url("assets/img/docent-paneel.jpg") center/cover; }
.testimonial__photo--custom::before { background: linear-gradient(180deg, transparent 30%, rgba(32,21,71,0.55) 100%); z-index: 1; }
.testimonial__photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.testimonial__caption { position: absolute; left: 32px; bottom: 28px; right: 32px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.testimonial__caption .k { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--secColor300); font-weight: 600; }
.testimonial__caption .v { font-family: var(--serif-font); font-size: 22px; line-height: 1.2; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.35); }
.testimonial__body { padding: 60px 56px 52px; display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.testimonial__eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--secColor300); font-weight: 600; margin: 0; display: flex; align-items: center; gap: 12px; }
.testimonial__eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--secColor300); }
.testimonial__text { font-size: 26px; line-height: 1.4; margin: 0; color: #fff; letter-spacing: -0.005em; text-wrap: pretty; font-style: italic; font-family: var(--serif-font); }
.testimonial__attrib { display: flex; flex-direction: column; gap: 4px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.15); }
.testimonial__attrib .name { font-family: var(--serif-font); font-size: 20px; color: #fff; }
.testimonial__attrib .role { font-size: 12.5px; letter-spacing: 0.06em; color: rgba(255,210,176,0.85); }

/* ---- DONATE ---- */
.donate { background: var(--priColor100); color: #fff; padding: var(--space-section) 0; position: relative; overflow: hidden; }
.donate::before { content: ""; position: absolute; right: -200px; top: -200px; width: 600px; height: 600px; border: 1px solid rgba(255,210,176,0.06); border-radius: 50%; }
.donate::after { content: ""; position: absolute; right: -100px; top: -100px; width: 400px; height: 400px; border: 1px solid rgba(255,210,176,0.08); border-radius: 50%; }
.donate__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; position: relative; z-index: 2; align-items: center; }
.donate__copy h2 { font-size: 44px; line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.012em; text-wrap: balance; }
.donate__copy h2 em { font-style: italic; color: var(--secColor300); }
.donate__copy .eyebrow { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--secColor300); font-weight: 600; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.donate__copy .eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--secColor300); }
.donate__copy p, .donate__text p { font-size: 15.5px; line-height: 1.7; color: rgba(242,241,244,0.78); font-weight: 300; margin: 0 0 14px; max-width: 50ch; }
.donate__panel { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,210,176,0.18); padding: 32px; backdrop-filter: blur(6px); }
.donate__panel h4 { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--secColor300); font-weight: 600; margin: 0 0 22px; }
.donate__rows { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.donate__row { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.donate__row--last { border-bottom: 0; }
.donate__row .k { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,210,176,0.7); font-weight: 600; }
.donate__row .v { font-family: var(--serif-font); font-size: 18px; color: #fff; letter-spacing: 0.02em; }
.donate__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-paypal { background: var(--secColor300); color: var(--priColor100) !important; padding: 13px 24px; font-weight: 600; font-size: 14.5px; border-radius: var(--button-border-radius); display: inline-flex; align-items: center; gap: 10px; }
.btn-paypal:hover { background: #FFE6CB; }

/* ---- TEASERS ---- */
.teasers { padding: var(--space-section) 0; background: #fff; }
.teasers__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.teaser { display: flex; flex-direction: column; background: var(--priColor103); padding: 44px; text-decoration: none; color: var(--priColor100); min-height: 240px; transition: all 200ms; position: relative; overflow: hidden; border: 1px solid var(--borderSubtleColor); }
.teaser:hover { background: var(--priColor100); color: #fff; }
.teaser__tag { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--secColor100); margin-bottom: 14px; }
.teaser:hover .teaser__tag { color: var(--secColor300); }
.teaser h3 { font-size: 28px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.008em; max-width: 18ch; text-wrap: balance; }
.teaser p { font-size: 14px; line-height: 1.55; color: var(--blackAltText); font-weight: 300; margin: 0; flex: 1; }
.teaser:hover p { color: rgba(242,241,244,0.78); }
.teaser__cta { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--secColor100); }
.teaser:hover .teaser__cta { color: var(--secColor300); }

/* ---- PRE-FOOTER ---- */
.prefooter { background: var(--priColor103); padding: 88px 0 72px; border-top: 1px solid var(--borderSubtleColor); }
.prefooter__grid { display: grid; grid-template-columns: 1.2fr 2.5fr; gap: 80px; }
.newsletter h3 { font-size: 30px; line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.008em; text-wrap: balance; }
.newsletter p { font-size: 14px; line-height: 1.6; color: var(--blackAltText); font-weight: 300; margin: 0 0 22px; max-width: 42ch; }
.newsletter__form .iuasr-form-placeholder { font-size: 13px; color: var(--blackAltText); }
.newsletter__form .gform_wrapper { margin: 0; }
.newsletter__form .gfield { margin-bottom: 10px; }
.newsletter__form input:not([type=submit]), .newsletter__form select, .newsletter__form textarea {
  width: 100%; border: 1px solid var(--borderColor); background: #fff;
  font-family: inherit; font-size: 14px; padding: 12px 14px; color: var(--priColor100);
  border-radius: var(--button-border-radius);
}
.newsletter__form input:focus { outline: none; border-color: var(--secColor100); box-shadow: var(--iuasr-focus-ring); }
.newsletter__form .gform_button, .newsletter__form input[type=submit] {
  background: var(--secColor100); color: #fff; border: 0; padding: 13px 22px;
  font-family: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer;
  border-radius: var(--button-border-radius); transition: background 150ms;
}
.newsletter__form .gform_button:hover, .newsletter__form input[type=submit]:hover { background: var(--iuasr-btn-primary-hover); }
.quicklinks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.quicklinks h5 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blackAltText); font-weight: 600; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--borderSubtleColor); }
.quicklinks ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.quicklinks ul a { font-size: 14px; color: var(--priColor100); display: inline-flex; align-items: center; gap: 6px; }
.quicklinks ul a:hover { color: var(--secColor100); }
.quicklinks ul a .icon { opacity: 0.4; }

/* ---- HOME RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero__slide { padding: 48px 0 96px; }
  .hero h1 { font-size: 44px; }
  .news__grid { grid-template-columns: 1fr 1fr; }
  .news__card--featured { grid-row: 1; grid-column: 1 / -1; }
  .studies__grid { grid-template-columns: 1fr; }
  .study-card { min-height: 0; }
  .quote__grid { grid-template-columns: 1fr; gap: 24px; }
  .quote__side { border-left: 0; padding-left: 0; border-top: 1px solid var(--borderSubtleColor); padding-top: 20px; }
  .pabo__grid, .donate__grid, .prefooter__grid, .testimonial__grid { grid-template-columns: 1fr; gap: 32px; }
  .pabo__card { position: static; }
  .teasers__grid { grid-template-columns: 1fr; }
  .quicklinks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 36px; }
  .hero__copy { padding-left: 20px; padding-right: 20px; }
  .news__grid { grid-template-columns: 1fr; }
  .section__head h2 { font-size: 30px; }
  .quote__text { font-size: 28px; }
  .pabo__copy h2, .donate__copy h2 { font-size: 32px; }
  .testimonial__body { padding: 36px 28px; }
  .donate__grid { gap: 28px; }
  .quicklinks { grid-template-columns: 1fr; }
}

/* ============================================================
   9. QC PASS — design-fidelity fixes (motion, admin bar, contrast)
   ============================================================ */

/* WordPress admin bar: keep the sticky header below it when logged in. */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media screen and (max-width: 600px) {
  /* WP admin bar is position:absolute below 600px (scrolls away). */
  .admin-bar .site-header { top: 0; }
}

/* Motion: smooth hover transitions on buttons + interactive links
   (token timings, per the design system). Cards/nav already animate. */
.btn-primary, .btn-secondary, .hero__cta, .hero__cta-secondary, .btn-paypal,
.utility__cta, .news__card-cta, .teaser__cta, .quicklinks ul a, .mega ul a,
.footer__col ul a, .footer__bottom .legal a, .section__head .right a, .study-card__level {
  transition: background var(--iuasr-duration-normal) var(--iuasr-ease-standard),
              color var(--iuasr-duration-normal) var(--iuasr-ease-standard),
              border-color var(--iuasr-duration-normal) var(--iuasr-ease-standard);
}

/* Hero: slow Ken Burns zoom on the active slide (reduced-motion-safe). */
.hero__bg { transform: scale(1.08); transition: transform 8000ms ease-out; }
.hero__slide.is-active .hero__bg { transform: scale(1.02); }
@media (prefers-reduced-motion: reduce) {
  .hero__bg, .hero__slide.is-active .hero__bg { transform: none; transition: none; }
}

/* Contrast safety: donate heading is on the indigo section. */
.donate__copy h2 { color: #fff; }

/* Full logo lockup in the header (no text), left-aligned. */
.brand__logo { display: block; }
