/* ═══════════════════════════════════════════════════════════
   CHAINED BROTHERS — THEME
   Gedeelde basis: tokens, fonts, reset, achtergrond, nav, footer,
   knoppen, badges, section-koppen. Gebruikt op elke pagina.
═══════════════════════════════════════════════════════════════ */

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

:root {
    --gold:   #C9A84C;
    --gold-l: #E6CB7E;
    --gold2:  #A87C2A;
    --dark:   #060504;
    --card:   #111111;
    --card2:  #161310;
    --muted:  #6A6558;
    --border: #211E18;
    --text:   #E8E1CE;
    --green:  #4ADE80;
    --red:    #F87171;
    --blue:   #60A5FA;

    /* Getinte schaduwen (warm, i.p.v. puur zwart) + focus-ring + z-schaal */
    --shadow-sm:   0 2px 10px rgba(12,8,2,.5);
    --shadow-md:   0 14px 34px rgba(12,8,2,.55), 0 2px 8px rgba(0,0,0,.4);
    --shadow-gold: 0 12px 44px rgba(201,168,76,.16);
    --ring:        0 0 0 2px var(--dark), 0 0 0 4px rgba(201,168,76,.75);
    --z-grain: 60; --z-nav: 100; --z-skip: 200;
}

@font-face {
    font-family: 'Wide Latin';
    src: local('Wide Latin'), local('WideLatin'),
         url('../assets/fonts/LatinWide.ttf') format('truetype');
    font-display: swap;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--dark); color: #EEE; }
::selection { background: var(--gold); color: #111; }
a { color: inherit; }

/* ── Atmosferische achtergrond (gelaagd, pure CSS/SVG) ───────── */
.atmos { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.atmos-base {
    position: absolute; inset: 0;
    background:
        radial-gradient(90% 55% at 50% -8%, rgba(201,168,76,.16) 0%, rgba(201,168,76,.04) 30%, transparent 60%),
        radial-gradient(70% 50% at 50% 118%, rgba(168,124,42,.08) 0%, transparent 60%),
        radial-gradient(120% 90% at 15% 20%, rgba(40,30,16,.55) 0%, transparent 55%),
        radial-gradient(120% 90% at 88% 78%, rgba(30,24,14,.5) 0%, transparent 55%),
        linear-gradient(180deg, #0B0906 0%, #060504 55%, #090705 100%);
}
.atmos-emblem {
    position: absolute; top: 44%; left: 50%;
    width: 900px; height: 900px; transform: translate(-50%,-50%);
    background: var(--emblem-url, url('../assets/logos/logo-holland-hd.png')) center/contain no-repeat;
    opacity: .045; filter: grayscale(1) brightness(1.6) contrast(1.1);
    -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 68%);
            mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 68%);
    pointer-events: none;
}
.atmos-beam {
    position: absolute; top: -12%; left: 50%; transform: translateX(-50%);
    width: 620px; height: 90vh;
    background: linear-gradient(180deg, rgba(201,168,76,.14) 0%, rgba(201,168,76,.03) 40%, transparent 75%);
    clip-path: polygon(42% 0, 58% 0, 100% 100%, 0% 100%);
    filter: blur(8px); opacity: .8; pointer-events: none;
    animation: beamPulse 7s ease-in-out infinite;
}
@keyframes beamPulse { 0%,100%{opacity:.65} 50%{opacity:.95} }
.atmos-lamp { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 2px; height: 46px; background: linear-gradient(#000,#1a150c); }
.atmos-lamp::after {
    content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 16px; height: 16px; border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, #ffe8a8, var(--gold) 45%, #5a4416 100%);
    box-shadow: 0 0 26px 8px rgba(201,168,76,.55), 0 0 60px 20px rgba(201,168,76,.22);
    animation: lampFlicker 5s ease-in-out infinite;
}
@keyframes lampFlicker { 0%,100%{opacity:1} 47%{opacity:.92} 48%{opacity:.75} 49%{opacity:.95} }
.smoke { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; }
.smoke.s1 { width: 480px; height: 380px; left: -8%; top: 30%; background: radial-gradient(circle, rgba(60,46,24,.6), transparent 70%); animation: drift1 26s ease-in-out infinite; }
.smoke.s2 { width: 560px; height: 420px; right: -10%; top: 12%; background: radial-gradient(circle, rgba(48,38,22,.55), transparent 70%); animation: drift2 32s ease-in-out infinite; }
.smoke.s3 { width: 640px; height: 300px; left: 30%; bottom: -6%; background: radial-gradient(circle, rgba(201,168,76,.08), transparent 70%); animation: drift1 40s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(60px,-30px) scale(1.12)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-70px,26px) scale(1.08)} }
.atmos-grain {
    position: absolute; inset: -50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: .06; mix-blend-mode: overlay; pointer-events: none;
    animation: grainShift 1.2s steps(4) infinite;
}
@keyframes grainShift { 0%{transform:translate(0,0)} 25%{transform:translate(-4%,3%)} 50%{transform:translate(3%,-2%)} 75%{transform:translate(-2%,-3%)} 100%{transform:translate(2%,4%)} }
.vignette {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(ellipse 70% 60% at center, transparent 30%, rgba(0,0,0,.65) 78%, rgba(0,0,0,.92) 100%);
}

/* ── Navbar ──────────────────────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 36px; height: 60px;
    background: linear-gradient(180deg, rgba(6,5,4,.85), rgba(6,5,4,.35) 70%, transparent);
    backdrop-filter: blur(14px);
}
.nav-links, .nav-right { display: flex; gap: 0; list-style: none; flex: 1; }
.nav-right { justify-content: flex-end; align-items: center; }
.nav-links a, .nav-right a {
    font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--muted); text-decoration: none; padding: 0 13px; transition: color .2s;
}
.nav-links a:hover, .nav-right a:hover { color: var(--gold); }
.nav-brand {
    font-family: 'Wide Latin', serif; font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--gold); white-space: nowrap; display: flex; align-items: center; gap: 10px;
    text-shadow: 0 0 20px rgba(201,168,76,.35);
}
.chain { font-size: 12px; opacity: .45; }

/* ── Knoppen ─────────────────────────────────────────────────── */
.btn-outline {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px;
    border: 1px solid rgba(201,168,76,.5); border-radius: 4px;
    font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--gold); text-decoration: none; transition: all .25s; cursor: pointer; background: none;
}
.btn-outline:hover { background: var(--gold); color: #111; box-shadow: 0 0 24px rgba(201,168,76,.4); }
.btn-gold {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 14px 28px; border: none; border-radius: 7px;
    background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 45%, var(--gold2) 100%);
    font-family: 'Wide Latin', serif; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
    color: #1a1206; cursor: pointer; text-decoration: none;
    transition: transform .15s, box-shadow .25s; box-shadow: 0 8px 24px rgba(201,168,76,.25);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(201,168,76,.4); }
.btn-gold:active { transform: translateY(0); }

/* ── Badges ──────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 100px; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.badge-pub  { background: #0E2010; color: var(--green); border: 1px solid #1A3A20; }
.badge-priv { background: #1A1206; color: var(--gold);  border: 1px solid #2A1E08; }

/* ── Section-koppen ──────────────────────────────────────────── */
.section-tag { font-family: 'Wide Latin', serif; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.section-title { font-family: 'Wide Latin', serif; font-size: clamp(18px, 2.5vw, 28px); letter-spacing: .04em; text-transform: uppercase; line-height: 1.3; margin-bottom: 20px; color: #F3ECD9; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid #161310; display: flex; align-items: center; justify-content: space-between;
    padding: 30px 56px; background: #050403; flex-wrap: wrap; gap: 14px;
}
.footer-brand { font-family: 'Wide Latin', serif; font-size: 9px; color: #3A352A; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 11px; color: #3A352A; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 11px; color: #2A261E; }

/* ═══════════════════════════════════════════════════════════════
   REDESIGN-UPGRADE — toegankelijkheid, textuur, motion, spotlight
═══════════════════════════════════════════════════════════════════ */

/* Zichtbare focus (keyboard) — was afwezig */
a:focus-visible, button:focus-visible, input:focus-visible,
[tabindex]:focus-visible, label:focus-within {
    outline: none; box-shadow: var(--ring); border-radius: 7px;
}

/* Skip-to-content (screenreader/keyboard) */
.skip-link {
    position: fixed; left: 14px; top: -80px; z-index: var(--z-skip);
    background: var(--gold); color: #111; padding: 10px 18px; border-radius: 7px;
    font-size: 12px; font-weight: 700; letter-spacing: .04em; text-decoration: none;
    transition: top .25s ease;
}
.skip-link:focus { top: 14px; }

/* Globale grain-overlay — breekt digitale vlakheid op elke pagina */
.grain-overlay {
    position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none;
    opacity: .05; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Navbar: verdicht bij scroll + actieve link met onderstreping */
.nav { transition: height .25s ease, background .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
.nav.scrolled { height: 52px; background: rgba(6,5,4,.94); border-bottom-color: rgba(201,168,76,.1); }
.nav-links a, .nav-right a:not(.btn-outline) { position: relative; }
.nav-links a::after, .nav-right a:not(.btn-outline)::after {
    content: ''; position: absolute; left: 13px; right: 13px; bottom: -4px; height: 1px;
    background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after,
.nav-right a:not(.btn-outline):hover::after, .nav-right a.active::after { transform: scaleX(1); }
.nav-links a.active, .nav-right a.active { color: var(--gold); }

/* Knoppen: pressed-feedback (fysieke klik) */
.btn-outline:active { transform: translateY(1px); }

/* Scroll-reveal — gestaffeld intreden */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
[data-stagger].in > * { opacity: 1; transform: none; }
[data-stagger].in > *:nth-child(1){ transition-delay:.04s }
[data-stagger].in > *:nth-child(2){ transition-delay:.10s }
[data-stagger].in > *:nth-child(3){ transition-delay:.16s }
[data-stagger].in > *:nth-child(4){ transition-delay:.22s }
[data-stagger].in > *:nth-child(5){ transition-delay:.28s }
[data-stagger].in > *:nth-child(6){ transition-delay:.34s }

/* Spotlight-rand — kaartrand licht op onder de cursor (--mx/--my via JS) */
.spot { position: relative; }
.spot::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: radial-gradient(180px circle at var(--mx,50%) var(--my,-20%), rgba(201,168,76,.65), transparent 62%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.spot:hover::after { opacity: 1; }

/* Anker-scroll niet onder de vaste nav */
[id] { scroll-margin-top: 76px; }

@media (prefers-reduced-motion: reduce) {
    .reveal, [data-stagger] > * { transition: none; opacity: 1; transform: none; }
    .atmos-beam, .atmos-lamp::after, .hero-logo, .smoke, .atmos-grain { animation: none; }
}
