/* ================================================================
   OVERLAST — Hoofdstijl
   Bootstrap 5.3 aanvulling
   ================================================================ */

:root {
    --ol-primary:    #1e3a5f;
    --ol-primary-light: #2d5891;
    --ol-accent:     #f59e0b;
    --ol-accent-dark:#d97706;
    --ol-bg:         #f8f9fb;
    --ol-text:       #1f2937;
    --ol-muted:      #6b7280;
    --ol-border:     #e5e7eb;
    --ol-header-h:   120px;
}

/* ── Basis ──────────────────────────────────────────────────────── */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--ol-text);
    background: var(--ol-bg);
    overflow-x: hidden;
}

a { color: var(--ol-primary-light); }
a:hover { color: var(--ol-primary); }

/* ── Sticky header ──────────────────────────────────────────────── */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* ── Topbalk ────────────────────────────────────────────────────── */
.topbar {
    background: #f1f5f9;
    border-bottom: 1px solid var(--ol-border);
    font-size: .8rem;
}

.topbar-link {
    color: var(--ol-muted);
    text-decoration: none;
    transition: color .15s;
}

.topbar-link:hover { color: var(--ol-primary); }

/* ── Navigatie ──────────────────────────────────────────────────── */
.overlast-navbar {
    background: var(--ol-primary);
    padding: .75rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.navbar-brand { text-decoration: none; }

.navbar-logo {
    max-height: 65px;
    width: auto;
}
@media (max-width: 991.98px) { .navbar-logo { max-height: 50px; } }
@media (max-width: 767.98px) { .navbar-logo { max-height: 42px; } }
@media (max-width: 575.98px) { .navbar-logo { max-height: 34px; } }

.brand-icon {
    width: 44px; height: 44px;
    background: var(--ol-accent);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: var(--ol-primary);
    flex-shrink: 0;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
}

.brand-sub {
    font-size: .65rem;
    color: rgba(255,255,255,.55);
    font-weight: 400;
    letter-spacing: .5px;
    text-transform: uppercase;
    line-height: 1;
}

.overlast-navbar .nav-link {
    color: rgba(255,255,255,.8);
    font-weight: 500;
    border-radius: 6px;
    padding: .4rem .75rem;
    transition: all .15s;
}

.overlast-navbar .nav-link:hover,
.overlast-navbar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.12);
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--ol-primary) 0%, var(--ol-primary-light) 100%);
    padding: 4rem 0;
    color: #fff;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 2rem;
    max-width: 520px;
}

#hero-map,
#hero-map-404 {
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
}

/* ── "Hoe werkt het" kaarten ────────────────────────────────────── */
.how-card-wrap {
    position: relative;
    padding-top: 22px;
}

.how-step-badge {
    position: absolute;
    top: 10px; left: 0; right: 0;
    margin: 0 auto;
    width: 25px; height: 25px;
    border-radius: 50%;
    background: #1e3a5f;
    color: #e6a817;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(30,58,95,.25);
}

.how-card {
    border-radius: 16px;
    border: 1px solid var(--ol-border);
    background: #fff;
    transition: transform .2s, box-shadow .2s;
}

.how-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.how-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: #e8eef8;
    color: #3b5fa0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto;
}

/* ── Meldingenkaart knop ────────────────────────────────────────── */
.btn-melding-card {
    background-color: #3b5fa0;
    border-color:     #3b5fa0;
    transition: background-color .2s, border-color .2s, color .2s;
}
.btn-melding-card:hover,
.btn-melding-card:focus {
    background-color: #f59e0b;
    border-color:     #f59e0b;
    color: #1a1a1a !important;
}

/* ── Meldingenkaarten ───────────────────────────────────────────── */
.report-card {
    border-radius: 12px;
    background-color: #f0f8ff;
    transition: transform .2s, box-shadow .2s;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.1) !important;
}

.category-badge {
    font-size: .7rem;
    font-weight: 600;
    padding: .3em .6em;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.category-geluidsoverlast  { background: #fef3c7; color: #92400e; }
.category-verkeersoverlast { background: #dbeafe; color: #1e40af; }
.category-afvaloverlast    { background: #d1fae5; color: #065f46; }
.category-stankoverlast    { background: #ede9fe; color: #5b21b6; }
.category-vandalisme       { background: #fee2e2; color: #991b1b; }
.category-openbare_orde    { background: #ffedd5; color: #9a3412; }
.category-overlast_dieren  { background: #ecfccb; color: #365314; }
.category-overig           { background: #f3f4f6; color: #374151; }

/* ── Footer ─────────────────────────────────────────────────────── */
.overlast-footer {
    background: var(--ol-primary);
    color: rgba(255,255,255,.85);
    padding: 3rem 0 0;
}

.footer-heading {
    color: rgba(255,255,255,.5);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.footer-links { margin: 0; }

.footer-links a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: .875rem;
    line-height: 2;
    transition: color .15s;
}

.footer-links a:hover { color: var(--ol-accent); }

.overlast-footer .border-secondary { border-color: rgba(255,255,255,.1) !important; }
.overlast-footer .text-muted { color: rgba(255,255,255,.45) !important; }

/* ── Pagina-inhoud ──────────────────────────────────────────────── */
.page-content h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2rem; }
.page-content h3 { font-size: 1.2rem; font-weight: 600; margin-top: 1.5rem; }
.page-content p  { line-height: 1.8; color: var(--ol-text); }
.page-content ul, .page-content ol { line-height: 1.8; }

/* ── Spacing overrides ──────────────────────────────────────────── */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 7rem !important;
}

/* ── Scroll-animatie ────────────────────────────────────────────── */
@keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rise-ready { opacity: 0; }

.rise-animate {
    animation: rise .55s ease both;
}

@media (prefers-reduced-motion: reduce) {
    .rise-ready  { opacity: 1; }
    .rise-animate { animation: none; }
}

/* ── Utilities ──────────────────────────────────────────────────── */
.text-white-75 { color: rgba(255,255,255,.75) !important; }
.bg-primary    { background-color: var(--ol-primary) !important; }

.btn-warning {
    background-color: var(--ol-accent);
    border-color: var(--ol-accent);
    color: #1a1a1a;
}

.btn-warning:hover {
    background-color: var(--ol-accent-dark);
    border-color: var(--ol-accent-dark);
    color: #1a1a1a;
}

/* ── Responsief ─────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .hero-section { padding: 2.5rem 0; }
    #hero-map, #hero-map-404 { height: 250px; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.5rem; }
    #hero-map, #hero-map-404 { height: 200px; }
}

/* ── Advertentie simulatie-blok ─────────────────────────────────── */
.advertentie-simulatie {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    margin: .75rem 0;
    padding: 1rem;
    background: repeating-linear-gradient(
        -45deg,
        #fff9e6,
        #fff9e6 8px,
        #fff3cc 8px,
        #fff3cc 16px
    );
    border: 2px dashed #f59e0b;
    border-radius: .5rem;
    min-height: 90px;
    text-align: center;
}

.advertentie-simulatie__label {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: #f59e0b;
    color: #1a1a1a;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .2rem .6rem;
    border-radius: 999px;
}

.advertentie-simulatie__tekst {
    font-size: .75rem;
    color: #92400e;
    font-style: italic;
}

/* ── Buurtsupporter CTA (twee-kolommen) ─────────────────────────── */
/* Accentfont wordt dynamisch geladen via <link> in de view (home/index.php) */

.cta-section { }

.cta-titel {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    line-height: 1.25;
}

.cta-accent-woord {
    font-family: 'Dancing Script', cursive;
    font-size: 1.2em;
    font-weight: 700;
    font-style: normal;
    display: inline-block;
    line-height: 1;
}

.cta-kernpunten li {
    font-size: 1rem;
}

.cta-check-icoon {
    color: #22c55e;
    font-size: 1.1rem;
    margin-top: .1rem;
}

/* Rechterkolom afbeelding + icoon overlay */
.cta-rechts-wrap {
    position: relative;
    display: block;
}

.cta-rechts-afb {
    border-radius: .75rem;
    width: 100%;
    object-fit: cover;
    max-height: 480px;
    display: block;
}

.cta-icoon-badge {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 3rem;
    padding: .5rem .5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
    display: flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
}

.cta-icoon-badge .cta-icoon-bi {
    font-size: 1.75rem;
    color: var(--ol-primary);
}

.cta-icoon-badge .cta-icoon-img {
    max-height: 75px;
    width: auto;
}
