/* =================================================================
   Maasmond Maritime — stylesheet
   Editorial maritime: deep navy, brass accents, foam whites.
   Fonts: Fraunces (display) + Archivo (body)
   ================================================================= */

:root {
    --navy:        #0b2a47;
    --navy-deep:   #061a30;
    --navy-soft:   #14395c;
    --sea:         #2a6f97;
    --sea-light:   #5b8fb0;
    --brass:       #c69749;
    --brass-light: #e0b35f;
    --foam:        #f3f1ea;
    --foam-warm:   #ece7da;
    --ink:         #11202e;
    --ink-soft:    #3a4a57;
    --white:       #ffffff;

    --maxw: 1180px;
    --radius: 4px;
    --shadow: 0 18px 50px -22px rgba(6, 26, 48, .45);
    --shadow-soft: 0 10px 30px -18px rgba(6, 26, 48, .35);

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Archivo', system-ui, sans-serif;
}

/* ----------------------------- reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--foam);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; font-weight: 600; }

.sr-only {
    position: absolute; 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: -999px; top: 0; z-index: 1000;
    background: var(--brass); color: var(--navy-deep); padding: .7rem 1.2rem;
    font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ----------------------------- layout ----------------------------- */
.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--soft { background: var(--foam-warm); }
.section--navy { background: var(--navy); color: var(--foam); }
.section--intro { padding-bottom: 1rem; }

.kicker {
    display: inline-block;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .74rem;
    font-weight: 700;
    color: var(--brass);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2.6rem;
}
.kicker::before {
    content: ""; position: absolute; left: 0; top: 50%;
    width: 2rem; height: 1px; background: var(--brass);
}
.kicker--light { color: var(--brass-light); }
.kicker--light::before { background: var(--brass-light); }

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.9rem);
    color: var(--navy);
    letter-spacing: -.01em;
    margin-bottom: 1.2rem;
    max-width: 22ch;
}
.center .section-title { margin-inline: auto; }
.section-title--light { color: var(--white); }
.lede {
    font-size: 1.18rem;
    color: var(--ink-soft);
    max-width: 60ch;
}
.center .lede { margin-inline: auto; }
.text-light { color: rgba(243,241,234,.82); max-width: 60ch; }

/* ----------------------------- buttons ----------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem; padding: .9rem 1.7rem;
    font-family: var(--font-body); font-weight: 600; font-size: .95rem;
    letter-spacing: .02em; cursor: pointer; border: 1px solid transparent;
    border-radius: var(--radius); transition: transform .25s, background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold  { background: var(--brass); color: var(--navy-deep); }
.btn--gold:hover { background: var(--brass-light); }
.btn--navy  { background: var(--navy); color: var(--foam); }
.btn--navy:hover { background: var(--navy-deep); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--line  { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--line:hover { background: var(--navy); color: var(--foam); }
.btn--block { width: 100%; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .4rem;
    font-weight: 600; color: var(--sea);
    letter-spacing: .01em;
}
.link-arrow::after { content: "→"; transition: transform .25s; }
.link-arrow:hover::after { transform: translateX(5px); }

/* ============================ HEADER ============================ */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    background: var(--navy-deep);
    transition: background .35s, box-shadow .35s, padding .35s;
    padding: .55rem 0;
}
body.has-hero .site-header { background: transparent; }
.site-header.scrolled {
    background: rgba(6,26,48,.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 24px -14px rgba(0,0,0,.6);
}
.header-inner {
    width: min(var(--maxw), 94vw); margin-inline: auto;
    display: flex; align-items: center; justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: .7rem; color: var(--foam); }
.brand-mark { color: var(--brass); display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.brand-sub  { font-size: .68rem; letter-spacing: .42em; color: var(--brass); font-weight: 700; }

.nav-list { list-style: none; display: flex; align-items: center; gap: .3rem; padding: 0; }
.nav-list a {
    display: block; padding: .55rem .85rem; font-size: .92rem; font-weight: 500;
    color: rgba(243,241,234,.85); border-radius: var(--radius);
    transition: color .2s, background .2s; position: relative;
}
.nav-list a:hover { color: var(--white); }
.nav-list a.is-active { color: var(--brass-light); }
.nav-list a.is-active::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .28rem;
    height: 2px; background: var(--brass);
}
.nav-cta-item { margin-left: .6rem; }
.nav-cta {
    background: var(--brass); color: var(--navy-deep) !important;
    padding: .55rem 1.1rem !important; font-weight: 700 !important;
    border-radius: var(--radius); transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--brass-light); transform: translateY(-1px); }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; background: none; border: 0;
    cursor: pointer; padding: .5rem; z-index: 110;
}
.nav-toggle span:not(.sr-only) {
    width: 26px; height: 2px; background: var(--foam); transition: transform .3s, opacity .3s;
}

/* ============================ HERO ============================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: var(--foam); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(105deg, rgba(6,26,48,.92) 0%, rgba(6,26,48,.6) 45%, rgba(6,26,48,.25) 100%),
        linear-gradient(0deg, rgba(6,26,48,.7), rgba(6,26,48,0) 40%);
}
.hero-content {
    position: relative; z-index: 1;
    width: min(var(--maxw), 92vw); margin-inline: auto;
    padding: 9rem 0 6rem; max-width: 720px;
}
.hero-title {
    font-size: clamp(2.6rem, 7vw, 5rem);
    font-weight: 600; letter-spacing: -.02em; margin-bottom: 1.4rem;
}
.hero-title { font-style: italic; }
.hero-lead { font-size: 1.2rem; color: rgba(243,241,234,.9); max-width: 52ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-scroll {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 1;
}
.hero-scroll span {
    display: block; width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.5);
    border-radius: 12px; position: relative;
}
.hero-scroll span::after {
    content: ""; position: absolute; left: 50%; top: 7px; transform: translateX(-50%);
    width: 3px; height: 7px; background: var(--brass-light); border-radius: 2px;
    animation: scrolldot 1.8s infinite;
}
@keyframes scrolldot { 0%{opacity:0; top:7px;} 40%{opacity:1;} 80%{opacity:0; top:18px;} 100%{opacity:0;} }

/* ============================ FEATURES ============================ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.feature-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-soft); display: flex; flex-direction: column;
    transition: transform .3s, box-shadow .3s; border: 1px solid rgba(11,42,71,.06);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-img { aspect-ratio: 16/10; overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.feature-card:hover .feature-img img { transform: scale(1.06); }
.feature-body { padding: 1.6rem 1.7rem 1.9rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.feature-body h3 { font-size: 1.4rem; color: var(--navy); }
.feature-body p { color: var(--ink-soft); flex: 1; }
.feature-card--accent { border-top: 4px solid var(--brass); }

/* ============================ STATS ============================ */
.section--stats { background: var(--navy); color: var(--foam); padding: clamp(3rem,6vw,4.5rem) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat { padding: 1rem; position: relative; }
.stat + .stat::before {
    content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px;
    background: rgba(255,255,255,.14);
}
.stat-value {
    display: block; font-family: var(--font-display); font-size: clamp(2.3rem, 5vw, 3.4rem);
    font-weight: 600; color: var(--brass-light); line-height: 1;
}
.stat-label { display: block; margin-top: .6rem; font-size: .9rem; letter-spacing: .04em; color: rgba(243,241,234,.78); }

/* ============================ SPLIT ============================ */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-text p { color: var(--ink-soft); margin-bottom: 1.8rem; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.news-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ============================ APP ============================ */
.section--app { background: var(--navy-deep); color: var(--foam); }
.app-cta { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.app-text { color: rgba(243,241,234,.8); margin-top: .4rem; }
.app-badges { display: flex; gap: 1rem; flex-wrap: wrap; }
.app-badges img { height: 52px; width: auto; transition: transform .25s; }
.app-badges a:hover img { transform: translateY(-3px); }

/* ============================ PAGE HERO ============================ */
.page-hero { position: relative; color: var(--foam); display: flex; align-items: flex-end; min-height: 56vh; }
.page-hero--short { min-height: 44vh; }
.page-hero-media { position: absolute; inset: 0; z-index: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(6,26,48,.92), rgba(6,26,48,.45) 55%, rgba(6,26,48,.55));
}
.page-hero-content { position: relative; z-index: 1; padding: 8rem 0 3.5rem; }
.page-title { font-size: clamp(2.2rem, 5.5vw, 4rem); font-style: italic; font-weight: 600; }
.page-hero-lead { color: rgba(243,241,234,.85); font-size: 1.1rem; margin-top: .8rem; }

/* ============================ ARTICLE ============================ */
.article { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.article--reverse { grid-template-columns: 1.2fr .8fr; }
.article-body p { margin-bottom: 1.2rem; color: var(--ink-soft); }
.section--navy .article-body p { color: rgba(243,241,234,.82); }
.article-portrait img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.portrait-cap { margin-top: 1rem; color: var(--ink-soft); font-size: .95rem; }
.portrait-cap strong { color: var(--navy); font-family: var(--font-display); font-size: 1.15rem; }
.article-body .btn { margin-top: .6rem; }

/* ============================ GALLERY ============================ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.gallery-item { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.gallery-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption { padding: 1rem 1.2rem; font-size: .92rem; color: var(--ink-soft); }
.gallery-item figcaption strong { color: var(--navy); }

/* ============================ FORMS ============================ */
.form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-intro p { color: var(--ink-soft); }
.checklist, .contact-list { list-style: none; padding: 0; margin-top: 1.6rem; display: grid; gap: .9rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--ink-soft); }
.checklist li::before {
    content: "⚓"; position: absolute; left: 0; top: 0; color: var(--brass); font-size: 1rem;
}
.contact-list li { display: flex; align-items: center; gap: .9rem; }
.contact-ico {
    display: grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: 0 0 auto;
    background: var(--foam-warm); color: var(--navy); border-radius: 50%; font-size: 1.05rem;
}

.form-card {
    background: var(--white); border-radius: var(--radius); padding: 2.2rem;
    box-shadow: var(--shadow); border-top: 4px solid var(--brass);
}
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .45rem; color: var(--navy); }
.field input, .field textarea {
    width: 100%; padding: .85rem 1rem; font: inherit; color: var(--ink);
    background: var(--foam); border: 1px solid rgba(11,42,71,.15); border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(42,111,151,.15); background: #fff;
}
.field-hp { position: absolute; left: -9999px; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: 1rem; }

.alert { padding: 1.2rem 1.4rem; border-radius: var(--radius); margin-bottom: 1.4rem; }
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert--success { background: #e7f3ec; border-left: 4px solid #2f8f5b; color: #1d5e3b; }
.alert--success h3 { color: #1d5e3b; margin-bottom: .3rem; }
.alert--error { background: #fbeaea; border-left: 4px solid #c0392b; color: #8e2b22; }

/* ============================ SEARCH ============================ */
.search-box {
    display: flex; gap: .6rem; margin: 2rem auto 1rem; max-width: 620px; flex-wrap: wrap;
}
.search-box input {
    flex: 1; min-width: 220px; padding: 1rem 1.2rem; font: inherit;
    border: 1px solid rgba(11,42,71,.2); border-radius: var(--radius); background: #fff;
}
.search-box input:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(42,111,151,.15); }
.search-hint { font-size: .85rem; color: var(--ink-soft); }
.quick-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; margin-top: 3rem; text-align: left; }
.quick-link {
    flex: 0 1 320px;
    display: flex; align-items: center; gap: 1rem; padding: 1.3rem 1.5rem;
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft);
    transition: transform .25s, box-shadow .25s; border: 1px solid rgba(11,42,71,.06);
}
.quick-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quick-icon { font-size: 1.7rem; }
.quick-link span span, .quick-link > span:last-child { display: block; }
.quick-link strong { display: block; color: var(--navy); font-family: var(--font-display); font-size: 1.1rem; }
.quick-link span:last-child { color: var(--ink-soft); font-size: .9rem; }

/* ============================ MEDIA ============================ */
.media-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.8rem; }
.media-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-soft); display: flex; flex-direction: column;
    transition: transform .3s, box-shadow .3s; border: 1px solid rgba(11,42,71,.06);
}
.media-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.media-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.media-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.media-card:hover .media-img img { transform: scale(1.05); }
.media-badge {
    position: absolute; top: 1rem; left: 1rem; background: #c0392b; color: #fff;
    font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    padding: .35rem .8rem; border-radius: 2px;
}
.media-body { padding: 1.6rem 1.8rem 1.9rem; display: flex; flex-direction: column; gap: .7rem; }
.media-body h3 { font-size: 1.45rem; color: var(--navy); }
.media-body p { color: var(--ink-soft); }

/* ============================ SPONSORS ============================ */
.sponsor-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; }
.sponsor-tile {
    aspect-ratio: 3/2; display: grid; place-items: center; background: var(--white);
    border: 1px dashed rgba(11,42,71,.25); border-radius: var(--radius); color: var(--ink-soft);
    font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; transition: border-color .25s, color .25s;
}
.sponsor-tile:hover { border-color: var(--brass); color: var(--brass); }
.sponsor-tile--logo { border-style: solid; padding: 1.2rem; }
.sponsor-tile--logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
a.sponsor-tile--logo { cursor: pointer; }
.sponsor-note { margin-top: 1.8rem; color: var(--ink-soft); font-size: .9rem; }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--navy-deep); color: rgba(243,241,234,.8); position: relative; }
.footer-wave { line-height: 0; }
.footer-wave svg { width: 100%; height: 90px; display: block; }
.footer-inner {
    width: min(var(--maxw), 92vw); margin-inline: auto;
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem;
    padding: 1.5rem 0 3rem;
}
.brand--footer { color: var(--foam); margin-bottom: 1rem; }
.footer-tagline { color: var(--brass-light); font-family: var(--font-display); font-style: italic; font-size: 1.05rem; }
.footer-since { margin-top: .5rem; font-size: .92rem; }
.footer-col h4 {
    font-family: var(--font-body); text-transform: uppercase; letter-spacing: .16em;
    font-size: .78rem; color: var(--brass); margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer-col a { font-size: .94rem; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-apps { display: grid; gap: .8rem; }
.footer-apps img { height: 44px; width: auto; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    width: min(var(--maxw), 92vw); margin-inline: auto;
    padding: 1.4rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    font-size: .85rem; color: rgba(243,241,234,.6);
}

/* ============================ TO TOP ============================ */
.to-top {
    position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
    width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
    background: var(--brass); color: var(--navy-deep); font-size: 1.2rem; font-weight: 700;
    box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(12px);
    transition: opacity .3s, transform .3s, background .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--brass-light); }

/* ============================ REVEAL ANIM ============================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 980px) {
    .feature-grid, .gallery, .quick-links, .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3)::before { display: none; }
    .sponsor-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 820px) {
    .nav-toggle { display: flex; }
    .nav-list {
        position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
        background: var(--navy-deep); flex-direction: column; align-items: stretch;
        padding: 6rem 1.6rem 2rem; gap: .2rem; transform: translateX(105%);
        transition: transform .35s ease; box-shadow: -20px 0 60px -20px rgba(0,0,0,.6);
    }
    .nav-list.open { transform: translateX(0); }
    .nav-list a { padding: .9rem .4rem; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.08); }
    .nav-list a.is-active::after { display: none; }
    .nav-cta-item { margin: 1rem 0 0; }
    .nav-cta { display: block; text-align: center; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .split, .article, .article--reverse, .form-layout { grid-template-columns: 1fr; }
    .article--reverse .article-portrait { order: -1; }
    .media-grid { grid-template-columns: 1fr; }
    .app-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .feature-grid, .gallery, .quick-links, .stats-grid, .sponsor-grid { grid-template-columns: 1fr; }
    .stat::before { display: none !important; }
    .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
    .hero-actions .btn, .news-actions .btn { flex: 1; }
    .sponsor-grid { grid-template-columns: repeat(2,1fr); }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* CMS-logo in de header (vervangt het tekstmerk indien ingesteld) */
.brand-logo {
    display: block;
    height: 44px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
}
.site-header.is-stuck .brand-logo { height: 38px; }

/* CMS-logo in de footer */
.brand-logo--footer {
    height: 56px;
    max-width: 240px;
    margin-bottom: .2rem;
}

/* ============================ SEARCH RESULTS ============================ */
.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.result-item { margin: 0; }
.result-link {
    display: flex; align-items: center; gap: 1rem; text-decoration: none;
    background: var(--white); border: 1px solid rgba(11,42,71,.12); border-radius: var(--radius);
    padding: .9rem 1.1rem; color: var(--navy); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.result-link:hover { border-color: var(--brass); box-shadow: 0 10px 30px -18px rgba(11,42,71,.4); transform: translateY(-2px); }
.result-ico {
    flex: 0 0 auto; min-width: 52px; height: 40px; padding: 0 .5rem; border-radius: 6px;
    background: var(--navy); color: var(--brass-light); font-size: .7rem; font-weight: 700; letter-spacing: .05em;
    display: inline-flex; align-items: center; justify-content: center;
}
.result-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.result-name { font-weight: 600; word-break: break-word; }
.result-meta { font-size: .82rem; color: var(--ink-soft); }
.result-open { flex: 0 0 auto; color: var(--brass); font-size: .85rem; font-weight: 600; white-space: nowrap; }

.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.pager-btn {
    padding: .55rem 1.1rem; border: 1px solid rgba(11,42,71,.2); border-radius: 6px;
    color: var(--navy); text-decoration: none; font-weight: 600; font-size: .9rem; transition: border-color .2s, background .2s;
}
.pager-btn:hover { border-color: var(--brass); background: var(--foam); }
.pager-btn.is-disabled { opacity: .4; pointer-events: none; }
.pager-info { color: var(--ink-soft); font-size: .9rem; }
.no-results { color: var(--ink-soft); }

@media (max-width: 560px) {
    .result-open { display: none; }
}

.index-note {
    background: #fff7e6; border: 1px solid #f0d9a8; color: #7a5b14;
    border-radius: var(--radius); padding: .7rem 1rem; font-size: .9rem; margin-top: 1rem;
}

/* ============================ SEARCH OVERLAY ============================ */
.search-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(6, 26, 48, .72); backdrop-filter: blur(2px);
    display: flex; align-items: center; justify-content: center; padding: 1.5rem;
    opacity: 0; transition: opacity .2s ease;
}
.search-overlay.is-visible { opacity: 1; }
.search-overlay-card {
    background: var(--white); border-radius: var(--radius); padding: 2rem 2.4rem;
    text-align: center; max-width: 360px; border-top: 4px solid var(--brass);
    box-shadow: 0 30px 70px -30px rgba(0,0,0,.6);
}
.search-spinner {
    display: inline-block; width: 38px; height: 38px; border-radius: 50%;
    border: 3px solid rgba(11,42,71,.15); border-top-color: var(--brass);
    animation: search-spin .8s linear infinite; margin-bottom: 1rem;
}
@keyframes search-spin { to { transform: rotate(360deg); } }
.search-overlay-title { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); margin: 0 0 .3rem; }
.search-overlay-sub { font-size: .88rem; color: var(--ink-soft); margin: 0; }

/* ============================ SUBSCRIBE TOGGLE ============================ */
.toggle-field { display: flex; gap: .6rem; margin-bottom: 1.2rem; }
.toggle-opt {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .7rem 1rem; border: 1px solid rgba(11,42,71,.2); border-radius: 8px;
    cursor: pointer; font-weight: 600; color: var(--ink-soft); transition: border-color .2s, background .2s, color .2s;
}
.toggle-opt:has(input[value="subscribe"]:checked) {
    border-color: #2f8f5b; background: #e7f3ec; color: #1d5e3b;
}
.toggle-opt:has(input[value="subscribe"]:checked) input { accent-color: #2f8f5b; }
.toggle-opt:has(input[value="unsubscribe"]:checked) {
    border-color: #c0392b; background: #fbeaea; color: #8e2b22;
}
.toggle-opt:has(input[value="unsubscribe"]:checked) input { accent-color: #c0392b; }
.toggle-opt input { accent-color: var(--brass); }

/* Bevestigingsknop volgt de keuze: groen = aanmelden, rood = afmelden */
.form:has(input[value="subscribe"]:checked) .btn--gold { background: #2f8f5b; color: #fff; }
.form:has(input[value="subscribe"]:checked) .btn--gold:hover { background: #277a4d; }
.form:has(input[value="unsubscribe"]:checked) .btn--gold { background: #c0392b; color: #fff; }
.form:has(input[value="unsubscribe"]:checked) .btn--gold:hover { background: #a5311f; }

.alert--info { background: #eaf2fb; border-left: 4px solid #2f6db0; color: #234d7a; }
