/* ==========================================================
   Edwin Gels – persoonlijke website
   Mobile-first. Kleuren geïnspireerd op Drenthe: bos, veen, licht.
   ========================================================== */

:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --soft: #ece7dc;
  --ink: #1b2620;
  --muted: #5b665f;
  --line: #ddd6c8;
  --forest: #1d3a2f;
  --forest-2: #2b5243;
  --accent: #f39200;
  --accent-ink: #1b1209;
  --accent-text: #a65a00;
  --egel: #2b5243;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(27,38,32,.05), 0 8px 24px -12px rgba(27,38,32,.18);
  --max: 1120px;
  --gutter: 20px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111814;
    --surface: #18221d;
    --soft: #152019;
    --ink: #eef0ea;
    --muted: #a5b0a8;
    --line: #2a3830;
    --forest: #0c1410;
    --forest-2: #1d3a2f;
    --accent: #f39200;
    --accent-ink: #1b1209;
    --accent-text: #f7a833;
    --egel: #7fb39a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
  }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p a { color: var(--accent-text); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 5vw, 2.6rem); }
h3 { font-size: 1.2rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- Header & navigatie ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: box-shadow .25s;
}
/* Wazige achtergrond op een aparte laag: backdrop-filter op de header zelf
   zou het schermvullende mobiele menu in de headerbalk opsluiten. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-name { color: var(--egel); }
.brand-tld { color: inherit; }
.brand-mark { width: 40px; height: 34px; color: var(--egel); flex: none; transition: transform .3s; }
.brand:hover .brand-mark { transform: rotate(-6deg); }

.nav-toggle {
  position: relative; z-index: 60;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-content: center; gap: 6px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
.menu-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .nav-toggle span:last-child  { transform: translateY(-4px) rotate(-45deg); }

.nav {
  position: fixed; inset: 0; z-index: 55; height: 100vh; height: 100dvh; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 80px 28px 40px; background: var(--bg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.menu-open .nav { opacity: 1; visibility: visible; transform: none; }
.menu-open { overflow: hidden; }
.menu-open .brand { position: relative; z-index: 60; }
.nav a {
  font-family: var(--font-display); font-size: 1.9rem; text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid var(--line);
}
.nav a.nav-cta { color: var(--accent-text); border-bottom: 0; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav {
    position: static; height: auto; overflow: visible; flex-direction: row; align-items: center; gap: 28px;
    padding: 0; background: none; opacity: 1; visibility: visible; transform: none;
  }
  .nav a { font-family: var(--font-body); font-size: .92rem; font-weight: 500; border: 0; color: var(--muted); }
  .nav a:hover { color: var(--ink); }
  .nav a.nav-cta { color: var(--accent-ink); background: var(--accent); padding: 8px 18px; border-radius: 999px; }
  .nav a.nav-cta:hover { filter: brightness(1.05); }
}

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: transform .15s, background .2s, border-color .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 32px 0 56px; }
.hero-grid { display: grid; gap: 40px; }
.eyebrow {
  margin: 0 0 14px; font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-text);
}
.hero h1 { font-size: clamp(2.6rem, 10vw, 4.6rem); font-weight: 400; }
.hero h1 .titles { display: block; font-family: var(--font-body); font-size: .95rem; font-weight: 500; letter-spacing: .08em; color: var(--muted); margin-top: 10px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; margin: 22px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 180px; }

.hero-photo { position: relative; max-width: 300px; justify-self: center; width: 100%; }
@media (min-width: 900px) { .hero-photo { max-width: 420px; } }
.photo-frame {
  aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, var(--forest-2), var(--forest));
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { height: 100%; display: grid; place-items: center; }
.photo-placeholder svg { width: 62%; height: auto; aspect-ratio: 593 / 499; color: #7fb39a; opacity: .9; }
.photo-badge {
  position: absolute; left: -8px; bottom: 24px;
  display: flex; flex-direction: column; padding: 12px 18px;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow);
}
.photo-badge strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--forest-2); }
@media (prefers-color-scheme: dark) { .photo-badge strong { color: var(--accent-text); } }
.photo-badge span { font-size: .78rem; color: var(--muted); }

@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 72px; }
  .hero-actions .btn { flex: 0 0 auto; }
  .photo-badge { left: -32px; }
}

/* ---------- Secties ---------- */
.section { padding: 64px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--forest); color: #eef0ea; }
.section-dark .section-head p { color: #b9c6bd; }
.section-dark p a { color: #f7b045; }
@media (min-width: 900px) { .section { padding: 104px 0; } }

.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin: 14px 0 0; }
.section-num {
  display: inline-block; margin-bottom: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; color: var(--accent-text);
}

/* ---------- Intro & chips ---------- */
.intro { padding-top: 8px; }
.intro-text { font-size: 1.1rem; margin: 0 0 40px; }
@media (min-width: 900px) { .intro-text { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.55; } }
.quote { margin: 0; padding: 28px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.quote figcaption { display: flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 14px; border-radius: 999px; font-size: .9rem;
  background: color-mix(in srgb, var(--forest-2) 10%, transparent); color: var(--ink);
}
.chips-light { margin-top: 24px; }
.chips-light li { background: transparent; border: 1px solid var(--line); }

/* ---------- Kaarten ---------- */
.cards { display: grid; gap: 14px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } .cards-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px; border-radius: var(--radius); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-sector { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.card-role { font-weight: 500; color: var(--ink) !important; }
.card-link { margin-top: auto; padding-top: 12px; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--muted); transition: color .2s; }
.card:hover .card-link { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

.section-dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: #eef0ea; }
.section-dark .card:hover { background: rgba(255,255,255,.09); }
.section-dark .card p { color: #b9c6bd; }
.section-dark .card-role { color: #eef0ea !important; }
.section-dark .card-sector { color: #f7b045; }
.section-dark .card-link { color: #b9c6bd; }

/* ---------- Eerdere functies ---------- */
.past { margin-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.past summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.past summary::-webkit-details-marker { display: none; }
.past summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; transition: transform .2s; }
.past[open] summary::after { transform: rotate(45deg); }
.past ul { list-style: none; margin: 0; padding: 0 0 8px; display: grid; gap: 14px; }
.past li { display: flex; flex-direction: column; }
.past li a { font-weight: 600; text-decoration: none; }
.past li a:hover { color: #f7b045; }
.past li span { font-size: .9rem; color: #b9c6bd; }
.past li a.past-link { font-weight: 500; font-size: .85rem; color: #f7b045; margin-top: 2px; }
.past li a.past-link:hover { text-decoration: underline; }

/* ---------- Tijdlijn ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; gap: 4px; padding: 0 0 28px 36px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--accent);
}
.tl-year { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.timeline h3 { font-size: 1.15rem; }
.timeline p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
@media (min-width: 900px) {
  .timeline::before { left: 127px; }
  .timeline li { grid-template-columns: 100px 1fr; gap: 56px; padding-left: 0; }
  .timeline li::before { left: 120px; }
  .tl-year { text-align: right; padding-top: 4px; }
}

/* ---------- Persoonlijk ---------- */
.personal-grid { display: grid; gap: 40px; }
.personal-grid p { color: var(--muted); }
@media (min-width: 900px) { .personal-grid { grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: center; } }

.peaks { width: 100%; }
.peaks-frame {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 5; border-radius: 24px; color: #fff;
  background: linear-gradient(170deg, var(--forest-2), var(--forest));
}
.peaks-frame .slide img { width: 100%; height: 100%; object-fit: cover; }
.peaks-frame .slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,20,16,0) 60%, rgba(12,20,16,.7) 100%);
}
.peak {
  position: absolute; left: 20px; right: 20px; bottom: 48px; z-index: 2;
  display: flex; flex-direction: column; gap: 2px;
}
.peak-name { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; }
.peak-meta { font-size: .8rem; letter-spacing: .02em; opacity: .85; }
.peaks-frame .slide .peak { opacity: 0; transform: translateY(10px); transition: opacity .6s .3s, transform .6s .3s; }
.peaks-frame .slide.active .peak { opacity: 1; transform: none; }
.peak-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; fill: rgba(255,255,255,.1); z-index: 0; }
.peaks-frame.has-photos .peak-art { display: none; }
.peaks-frame .slide.broken { display: block; }
.peaks-frame .slide.broken img, .peaks-frame .slide.broken::after { display: none; }
.slide-dots-in { position: absolute; z-index: 3; left: 16px; bottom: 14px; margin: 0; justify-content: flex-start; }
.slide-dots-in button::after { background: rgba(255,255,255,.5); }
@media (min-width: 900px) { .peaks-frame { aspect-ratio: 5 / 6; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #eef0ea; padding: 72px 0 24px; }
.footer-inner { display: grid; gap: 32px; }
.footer-inner p { color: #b9c6bd; margin: 10px 0 20px; }
.footer-mail {
  font-family: var(--font-display); font-size: clamp(1.6rem, 7vw, 2.8rem);
  text-decoration: none; border-bottom: 2px solid var(--accent); word-break: break-word;
}
.footer-mail:hover { color: #f7b045; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.socials a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); transition: background .2s, border-color .2s;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem; color: #b9c6bd;
}
.footer-bottom a { text-decoration: none; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1fr auto; align-items: end; } }

/* ---------- Animatie ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ---------- Egel-element ---------- */
.site-footer { position: relative; overflow: hidden; }
.site-footer > .container { position: relative; z-index: 1; }
.footer-egel {
  position: absolute; right: -60px; bottom: -40px; width: 340px; height: 286px;
  color: #7fb39a; opacity: .09; pointer-events: none;
}
@media (min-width: 900px) { .footer-egel { width: 520px; height: 438px; right: -40px; bottom: -80px; } }

/* ---------- Slideshow (hero) ---------- */
.slideshow { position: relative; isolation: isolate; }
.slideshow .photo-placeholder { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; margin: 0; opacity: 0;
  transition: opacity .55s ease-in-out;
  will-change: opacity; backface-visibility: hidden;
}
.slide.active { opacity: 1; z-index: 1; }
.slide.broken { display: none; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-egel {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 48px; height: 48px; padding: 9px 7px; border-radius: 50%;
  background: rgba(246,243,236,.92); color: var(--forest-2);
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  opacity: 0; transition: opacity .4s;
}
.slideshow.has-photos .slide-egel { opacity: 1; }
.slide-dots { display: flex; justify-content: center; gap: 2px; margin-top: 10px; min-height: 28px; }
.slide-dots:empty { display: none; }
.slide-dots button {
  width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.slide-dots button::after {
  content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--line);
  transition: width .3s, background .3s;
}
.slide-dots button[aria-selected="true"]::after { width: 22px; background: var(--accent); }
.hero-photo .photo-badge { z-index: 4; }

/* ---------- Organisatie-logo's ---------- */
.org-logo {
  position: relative; display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); margin-bottom: 6px;
}
.org-logo img { width: 26px; height: 26px; object-fit: contain; }
.org-logo b {
  display: none; font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  letter-spacing: .02em; color: var(--forest-2);
}
/* Brede (woord)logo's: vierkant houden en het linkerdeel (meestal het beeldmerk) tonen */
.org-logo.wide img { width: 30px; height: 30px; object-fit: cover; object-position: left center; }
.org-logo-sm.wide img { width: 22px; height: 22px; }
.org-logo.nologo { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.org-logo.nologo img { display: none; }
.org-logo.nologo b { display: block; }
.section-dark .org-logo { border-color: transparent; }
.section-dark /* Brede (woord)logo's: vierkant houden en het linkerdeel (meestal het beeldmerk) tonen */
.org-logo.wide img { width: 30px; height: 30px; object-fit: cover; object-position: left center; }
.org-logo-sm.wide img { width: 22px; height: 22px; }
.org-logo.nologo { background: rgba(255,255,255,.1); }
.section-dark .org-logo.nologo b { color: #f7b045; }
.org-logo-sm { width: 34px; height: 34px; border-radius: 9px; margin: 2px 0 0; }
.org-logo-sm img { width: 20px; height: 20px; }
.org-logo-sm b { font-size: .7rem; }
.past li { flex-direction: row; gap: 14px; align-items: flex-start; }
.past li > div { display: flex; flex-direction: column; }

.footer-bottom .credits { opacity: .8; }
.footer-bottom .credits a { text-decoration: underline; text-decoration-color: rgba(247,176,69,.6); text-underline-offset: 3px; }
.footer-bottom .credits a:hover { color: #f7b045; }
@media (max-width: 640px) {
  .footer-bottom .credits { display: block; margin-top: 2px; }
  .footer-bottom .credits .sep { display: none; }
}