/* Nos Ad Fontes Lyceum — static site styles */
:root {
  --navy: #0b2a4a;
  --navy-2: #123c6b;
  --blue: #1a5fd6;
  --gold: #c9a24b;
  --gold-soft: #f3e8cc;
  --cream: #faf7f0;
  --paper: #ffffff;
  --ink: #17202b;
  --muted: #5b6776;
  --line: #e4dfd2;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 42, 74, .12);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream);
  line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; color: var(--navy); margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 92%); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Top bar */
.topbar { background: var(--navy); color: #cfdcef; font-size: .88rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 240, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(11, 42, 74, .08); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--navy); }
.brand svg { width: 48px; height: 48px; }
.brand b { font-family: var(--serif); font-size: 1.2rem; line-height: 1.1; display: block; }
.brand small { color: var(--muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.menu { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.menu a { display: block; padding: .55rem 1rem; border-radius: 999px; text-decoration: none; color: var(--navy); font-weight: 500; font-size: .96rem; }
.menu a:hover { background: var(--gold-soft); }
.menu a[aria-current="page"] { background: var(--navy); color: #fff; }
.menu .cta { background: var(--gold); color: var(--navy); font-weight: 600; }
.menu .cta:hover { background: #d8b45f; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 12px; padding: .6rem .7rem; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #1d4f8c 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, #0e3560 100%); color: #fff; }
.hero::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 70px; background: var(--cream); clip-path: ellipse(60% 100% at 50% 100%); }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding: 5rem 0 7rem; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-weight: 600; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lead { font-size: 1.2rem; color: #d6e2f3; max-width: 36em; }
.btns { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.btn { font: inherit; font-weight: 600; cursor: pointer; border: 0; display: inline-block; padding: .9rem 1.5rem; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 20px rgba(201, 162, 75, .35); }
.btn-gold:hover { background: #d8b45f; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-dark { background: var(--navy); color: #fff; }
.hero-art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero-art .seal { width: 88%; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 25px 40px rgba(0,0,0,.35)); }
.hero-art .ring { position: absolute; inset: 4%; border: 1px dashed rgba(201,162,75,.5); border-radius: 50%; animation: spin 60s linear infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sections */
section { padding: 5rem 0; }
.section-head { max-width: 40em; margin-bottom: 3rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker { color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; display: block; margin-bottom: .6rem; }
.alt { background: var(--paper); }
.grid { display: grid; gap: 1.5rem; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; }
.alt .card { background: var(--cream); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.card .icon { width: 54px; height: 54px; border-radius: 16px; background: var(--navy); color: var(--gold); display: grid; place-items: center; margin-bottom: 1.2rem; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.card p { color: var(--muted); margin: 0; }
.card a.more { display: inline-block; margin-top: 1rem; font-weight: 600; text-decoration: none; }
.card a.more::after { content: " →"; }

/* Quote band */
.quote { background: var(--navy); color: #fff; text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 28em; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.35; font-style: italic; }
.quote cite { display: block; margin-top: 1.2rem; color: var(--gold); font-style: normal; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.ticks li { padding-left: 2rem; position: relative; margin-bottom: .8rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: 1rem; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 4px var(--gold-soft); }
.panel { background: linear-gradient(145deg, var(--navy-2), var(--navy)); color: #fff; border-radius: 28px; padding: 3rem; box-shadow: var(--shadow); }
.panel h3 { color: #fff; }
.panel .big { font-family: var(--serif); font-size: 3.4rem; color: var(--gold); line-height: 1; }

/* Page header */
.page-hero { background: linear-gradient(160deg, var(--navy), #0e3560); color: #fff; padding: 4rem 0 5.5rem; position: relative; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 50px; background: var(--cream); clip-path: ellipse(60% 100% at 50% 100%); }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #d6e2f3; max-width: 38em; font-size: 1.15rem; margin: 1rem 0 0; }

/* Tracks */
.track { display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.track:last-child { border: 0; }
.track .tag { font-family: var(--serif); font-size: 2rem; color: var(--gold); font-weight: 600; }
.pill { display: inline-block; background: var(--gold-soft); color: #6b5217; border-radius: 999px; padding: .2rem .8rem; font-size: .8rem; font-weight: 600; margin: .2rem .3rem .2rem 0; }

/* Contact */
.contact-card h3 { display: flex; align-items: center; gap: .6rem; }
.contact-card dl { margin: 1rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.2rem; }
.contact-card dt { color: var(--muted); font-size: .9rem; }
.contact-card dd { margin: 0; font-weight: 500; }
.todo { background: #fff6d6; border-radius: 6px; padding: 0 .4rem; color: #6b5217; font-weight: 500; }
form.contact { display: grid; gap: 1rem; }
form.contact label { font-weight: 600; font-size: .92rem; color: var(--navy); display: grid; gap: .35rem; }
form.contact input, form.contact textarea { font: inherit; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); }
form.contact input:focus, form.contact textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(26,95,214,.15); }
.note { font-size: .88rem; color: var(--muted); }

/* Footer */
.site-footer { background: #07192d; color: #a9b9cf; padding: 3.5rem 0 2rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-family: var(--serif); margin: 0 0 .8rem; font-size: 1.1rem; }
.site-footer a { color: #a9b9cf; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.3rem; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; }

@media (max-width: 900px) {
  .hero .container, .split { grid-template-columns: 1fr; }
  .hero-art { max-width: 320px; margin: 0 auto; order: -1; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .burger { display: block; }
  .menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); flex-direction: column; align-items: stretch; padding: 1rem 4%; border-bottom: 1px solid var(--line); display: none; box-shadow: 0 20px 30px rgba(0,0,0,.08); }
  .menu.open { display: flex; }
  .site-header .container { position: relative; }
  .track { grid-template-columns: 1fr; gap: .3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .topbar, .site-header, .burger { display: none; } }

/* Photos */
.hero-photo { position: relative; }
.hero-photo > img:first-child { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 60px rgba(0,0,0,.4); border: 4px solid rgba(201,162,75,.6); transform: rotate(1.5deg); }
.hero-photo .badge { position: absolute; left: -22px; bottom: -22px; width: 96px; height: 96px; border-radius: 50%; border: 4px solid var(--cream); background: #fff; box-shadow: var(--shadow); }
.gallery { columns: 4 220px; column-gap: 1rem; }
.gallery a { display: block; margin-bottom: 1rem; border-radius: 16px; overflow: hidden; break-inside: avoid; box-shadow: 0 4px 14px rgba(11,42,74,.12); }
.gallery img { width: 100%; height: auto; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.05); }
figure.photo { margin: 0; }
figure.photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
figure.photo.wide img { max-height: 420px; object-fit: cover; }
figure.photo figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.track .tag img { width: 80px; height: 80px; border-radius: 50%; }
.foot-logo { margin-top: 1rem; background: #fff; padding: 6px 10px; border-radius: 8px; width: 110px; height: auto; }
@media (max-width: 900px) { .hero-photo { max-width: 520px; margin: 0 auto; order: -1; } .hero-photo .badge { left: 8px; bottom: -18px; } }
.hero-photo > img:first-child { height: auto; }
.vmbo-badge { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; border: 1px solid #bbb; background: #fff; color: #555; font-family: var(--sans); font-weight: 700; font-size: .78rem; letter-spacing: .02em; }

/* v3 additions */
.container.narrow { width: min(860px, 92%); }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid.g4 { grid-template-columns: 1fr; } }
.card.linkcard { display: block; text-decoration: none; color: inherit; }
.card.linkcard h3 { color: var(--navy); }
.card.linkcard .more { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--blue); }
.card.linkcard .more::after { content: " →"; transition: margin .2s; }
.card.linkcard:hover .more::after { margin-left: 6px; }
.card .icon img { width: 100%; height: 100%; border-radius: 16px; object-fit: cover; }
.card .icon:has(img) { background: none; overflow: hidden; }
.card h3 + p { margin-top: .4rem; }
.card ul.ticks { margin-top: 1rem; }
.card .btns { margin-top: 1.2rem; }
.card .btn { padding: .65rem 1.1rem; font-size: .92rem; }
.crumbs { font-size: .88rem; margin-bottom: 1rem; color: #b9c9e0; }
.crumbs a { color: #d6e2f3; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.chips a { padding: .45rem 1rem; border-radius: 999px; background: var(--gold-soft); color: #6b5217; text-decoration: none; font-weight: 600; font-size: .9rem; }
.chips a:hover { background: var(--gold); color: var(--navy); }
section[id] { scroll-margin-top: 90px; }
.stats { display: grid; gap: 1rem; }
.bar { display: grid; grid-template-columns: 56px 1fr 56px; gap: .8rem; align-items: center; font-weight: 600; color: var(--navy); }
.bar div { background: var(--gold-soft); height: 14px; border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--blue)); border-radius: 999px; }
.bar b { text-align: right; font-variant-numeric: tabular-nums; }
.dls { display: grid; gap: .8rem; }
.dl { display: grid; grid-template-columns: 52px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.alt .dl { background: var(--cream); }
.dl:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.dl .ico { width: 52px; height: 52px; border-radius: 12px; background: #b3261e; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; letter-spacing: .05em; }
.dl .txt b { display: block; color: var(--navy); }
.dl .txt small { color: var(--muted); }
.dl .size { color: var(--muted); font-size: .85rem; }
/* dropdown nav */
.menu li { position: relative; }
.menu .chev { display: inline-block; width: 28px; height: 28px; border: 0; background: none; cursor: pointer; vertical-align: middle; margin-left: -.6rem; position: relative; }
.menu .chev::before { content: ""; position: absolute; inset: 9px 8px auto 8px; width: 7px; height: 7px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s; }
.menu .has-sub { display: flex; align-items: center; }
.menu .has-sub > a { padding-right: 1.2rem; }
.menu .has-sub.is-active > a:not([aria-current]) { background: var(--gold-soft); }
.menu .sub { list-style: none; margin: 0; padding: .5rem; position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 60; }
.menu .sub a { border-radius: 10px; }
.menu .has-sub:hover .sub, .menu .has-sub:focus-within .sub, .menu .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.menu .has-sub:hover .chev::before, .menu .has-sub.open .chev::before { transform: rotate(225deg); }
@media (max-width: 900px) {
  .menu .has-sub { flex-wrap: wrap; }
  .menu .has-sub > a { flex: 1; }
  .menu .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 1rem; min-width: 0; width: 100%; display: none; }
  .menu .has-sub.open .sub { display: block; }
  .menu .chev { margin-left: 0; width: 44px; height: 44px; }
  .menu .chev::before { inset: 17px 16px auto 16px; }
  .menu a { padding: .8rem 1rem; }
}
@media (max-width: 480px) { .brand small { display: none; } .brand b { font-size: 1.05rem; } .dl { grid-template-columns: 44px 1fr; } .dl .size { display: none; } }

/* Placeholders (search "Tekst volgt" in the HTML to find them) */
.placeholder { margin-top: 1rem; padding: .9rem 1.1rem; border: 2px dashed var(--gold); border-radius: 14px; background: #fff9e6; color: #6b5217; font-size: .93rem; line-height: 1.5; }
.placeholder b { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.placeholder span { display: block; margin-top: .25rem; color: #7d6a35; }
.placeholder a { color: #6b5217; }
