/* ==========================================================================
   De Bandenberg BV — publieke website
   Donker/oranje thema, geïnspireerd op de originele site.
   ========================================================================== */

:root {
    --bg: #0d0600;
    --bg-2: #17100a;
    --bg-3: #1f1811;
    --text: #f7fafc;
    --muted: rgba(247, 250, 252, .68);
    --accent: #fdac45;
    --accent-600: #f5951f;
    --card: #ffffff;
    --card-text: #241708;
    --card-muted: #6b6257;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 18px 40px rgba(0, 0, 0, .35);
    --maxw: 1180px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 22px;
}

.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    border: 0;
    transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn-accent {
    background: var(--accent);
    color: #2a1a05;
    box-shadow: 0 8px 20px rgba(253, 172, 69, .28);
}
.btn-accent:hover { background: var(--accent-600); transform: translateY(-1px); }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.05rem; }
.btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

.icon { display: inline-block; vertical-align: middle; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 6, 0, .82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 800; font-size: 1.25rem; letter-spacing: .2px; }
.brand-logo { height: 46px; width: auto; }
.brand-emblem {
    display: grid; place-items: center;
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--accent); color: #2a1a05; font-weight: 900;
    transform: skewX(-6deg);
}
.brand-name { font-style: italic; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-list { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a, .nav-link { font-weight: 600; color: rgba(255,255,255,.9); }
.nav-list > li > a:hover, .mega-toggle:hover { color: var(--accent); }
.mega-toggle { background: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; color: rgba(255,255,255,.9); display: inline-flex; align-items: center; gap: .3rem; padding: 0; }
.caret { font-size: .7em; opacity: .7; transition: transform .2s; }
.has-mega:hover .caret { transform: rotate(180deg); }

/* Mega menu — breed paneel onder de header (i.p.v. smalle dropdown) */
.header-inner { position: relative; }
.has-mega { position: static; }
.mega {
    position: absolute; top: 100%; left: 0; right: 0; padding-top: 14px;
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 40;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner {
    background: #17100a; border: 1px solid rgba(255,255,255,.1); border-radius: 16px;
    box-shadow: 0 24px 50px rgba(0,0,0,.55); padding: 1.3rem 1.5rem;
}
.mega-title { margin: 0 0 1rem; color: var(--accent); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.mega-item { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 10px; font-weight: 600; color: rgba(255,255,255,.88); }
.mega-item:hover { background: rgba(253,172,69,.12); color: var(--accent); }
.mega-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(253,172,69,.14); color: var(--accent); flex: 0 0 auto; }
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.icon-btn {
    display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: #eef2f7; color: #1877f2;
}
.icon-btn:hover { background: #fff; }
.icon-btn.fb { background: #1877f2; color: #fff; }
.icon-btn.fb:hover { background: #0f66d0; color: #fff; }
.icon-btn.li { background: #0a66c2; color: #fff; }
.icon-btn.li:hover { background: #08528f; color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--text); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 62vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    border-bottom: 5px solid var(--accent);
}
.hero:not(.hero--placeholder)::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(90deg, rgba(13,6,0,.82) 0%, rgba(13,6,0,.5) 46%, rgba(13,6,0,.2) 100%);
}
.hero--placeholder {
    background:
        radial-gradient(1200px 400px at 80% -10%, rgba(253,172,69,.25), transparent 60%),
        linear-gradient(120deg, #14100b, #241708 60%, #3a2409);
}
.hero-inner { position: relative; z-index: 1; padding-block: 5rem; }
.hero-copy { max-width: 620px; }
.hero-copy h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; margin: 0 0 1rem; }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.82); margin: 0 0 1.8rem; }

/* ---------- Sections ---------- */
.section { padding-block: 4.5rem; }
.section--tight { padding-block: 2.5rem; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; text-align: center; margin: 0 0 .4rem; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 2rem; }

/* ---------- Cards ---------- */
.card {
    background: var(--card);
    color: var(--card-text);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow);
}
.card h3 { color: var(--accent-600); margin: .2rem 0 .5rem; font-size: 1.05rem; }
.card p { color: var(--card-muted); margin: 0; font-size: .95rem; }
.feature-icon, .service-icon {
    display: grid; place-items: center;
    width: 46px; height: 46px; border-radius: 12px;
    background: rgba(253, 172, 69, .16); color: var(--accent-600);
    margin-bottom: .9rem;
}

.feature-grid, .service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.3rem;
    margin-top: 2.4rem;
}
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.3rem;
    margin-top: 1.3rem;
}
.highlight-card { display: flex; align-items: center; gap: 1rem; }
.highlight-card .feature-icon { margin: 0; flex: 0 0 auto; }

.service-card { display: flex; flex-direction: column; }
.service-link { color: #2b6cb0; font-weight: 700; font-size: .9rem; margin-top: 1rem; }
.service-link:hover { color: var(--accent-600); }

/* ---------- CTA band ---------- */
.cta-band .cta-text { color: rgba(255,255,255,.82); font-size: 1.1rem; margin-top: .6rem; }

/* ---------- Partners ---------- */
.partner-row { display: flex; align-items: center; justify-content: center; gap: 1.1rem; flex-wrap: wrap; }
.partner {
    background: #fff; border-radius: 14px; padding: .85rem 1.2rem;
    display: flex; align-items: center; justify-content: center;
    min-height: 90px; min-width: 158px; flex: 0 1 auto;
}
.partner img { max-height: 56px; width: auto; }
.partner-text {
    font-weight: 900; letter-spacing: 1px; text-transform: uppercase;
    color: #3a2a12; font-size: .9rem;
}

/* Doorlopende logo-banner (marquee) bij meer dan 4 logo's */
.partner-marquee {
    overflow: hidden; width: 100%; padding: .3rem 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partner-track {
    display: flex; gap: 1.1rem; width: max-content;
    animation: partner-scroll 38s linear infinite;
}
.partner-track .partner { flex: 0 0 auto; }
.partner-marquee:hover .partner-track { animation-play-state: paused; }
@keyframes partner-scroll {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
    .partner-track { animation: none; transform: none; }
}

/* ---------- Contact ---------- */
.contact-section { background: var(--bg-2); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
}
.contact-heading { color: var(--accent); font-size: 1.15rem; margin: 0 0 1rem; }
.contact-block + .contact-block { }
.contact-list, .hours-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.contact-list li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .8rem; color: rgba(255,255,255,.85); }
.contact-list .icon { color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.contact-list a:hover { color: var(--accent); }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.85); }

/* ---------- Contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: .85rem; color: rgba(255,255,255,.8); font-weight: 600; }
.field .opt { color: var(--muted); font-weight: 400; }
.contact-form input, .contact-form textarea {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius-sm);
    padding: .7rem .9rem;
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--accent); background: rgba(255,255,255,.09);
}
.err { color: #ffb4a2; font-size: .8rem; }
.hp { position: absolute; left: -9999px; }

.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .92rem; }
.alert-ok { background: rgba(72, 187, 120, .18); border: 1px solid rgba(72,187,120,.4); color: #c6f6d5; }
.alert-error { background: rgba(245, 101, 101, .16); border: 1px solid rgba(245,101,101,.4); color: #fed7d7; }

.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); filter: grayscale(.2) contrast(1.05); }

/* ---------- Footer ---------- */
.spoed-bar { background: var(--bg); padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.06); }
.spoed-inner { display: flex; align-items: center; justify-content: center; gap: 1.3rem; flex-wrap: wrap; }
.spoed-bar p { margin: 0; font-weight: 700; }
.footer-social { display: flex; gap: .6rem; }
.copyright-bar { background: var(--accent); color: #2a1a05; padding: 1rem 0; }
.copyright-bar .container { display: flex; justify-content: space-between; align-items: center; gap: .6rem 1.2rem; flex-wrap: wrap; }
.copyright-bar p { margin: 0; font-size: .9rem; font-weight: 600; }
.footer-contact { font-size: .85rem !important; font-weight: 500 !important; }
.footer-contact a { color: #2a1a05; font-weight: 700; }
.footer-contact a:hover { text-decoration: underline; }
.copyright-bar .admin-link a { opacity: .7; }
.copyright-bar .admin-link a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Subpagina's ---------- */
.page-hero {
    padding: 4rem 0 2.5rem;
    background:
        radial-gradient(900px 300px at 85% -20%, rgba(253,172,69,.18), transparent 60%),
        linear-gradient(130deg, #14100b, #241708);
    border-bottom: 4px solid var(--accent);
}
.page-hero--split .container {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 2.6rem;
    align-items: center;
}
.page-hero-figure {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 22px 45px rgba(0,0,0,.42);
}
.page-eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin: 0 0 .6rem; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.12; margin: 0 0 1rem; max-width: 820px; }
.page-intro { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 760px; margin: 0; }
.container.narrow { max-width: 820px; }

.page-body { padding-top: 3rem; }
.content-block { margin-bottom: 2.4rem; }
.content-block h2 { font-size: 1.4rem; color: var(--accent); margin: 0 0 .6rem; }
.content-block p { color: rgba(255,255,255,.85); margin: 0 0 .8rem; font-size: 1.02rem; }
.check-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.check-list li { position: relative; padding-left: 1.9rem; color: rgba(255,255,255,.85); }
.check-list li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    width: 1.3rem; height: 1.3rem; display: grid; place-items: center;
    background: rgba(253,172,69,.16); color: var(--accent); border-radius: 50%; font-size: .8rem; font-weight: 700;
}
.page-cta { margin-top: 3rem; padding: 2rem; text-align: center; background: var(--bg-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); }
.page-cta p { margin: 0 0 .4rem; font-weight: 700; font-size: 1.15rem; }
.page-cta .btn-row { margin-top: 1rem; }
.btn-ghost-light { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-ghost-light:hover { background: rgba(253,172,69,.12); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .map { height: 260px; }
}
@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed; inset: 72px 0 auto 0;
        background: rgba(13,6,0,.98);
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 1rem 22px 1.6rem;
        border-bottom: 1px solid rgba(255,255,255,.1);
        transform: translateY(-120%); transition: transform .25s ease;
    }
    .site-nav.open { transform: translateY(0); }
    .nav-list { flex-direction: column; gap: 0; align-items: stretch; width: 100%; }
    .nav-list > li { border-bottom: 1px solid rgba(255,255,255,.08); }
    .nav-link, .dropdown-toggle { display: block; padding: .9rem 0; width: 100%; text-align: left; }
    /* Mega menu als accordion op mobiel: dicht, opent bij .open */
    .mega-toggle { justify-content: space-between; width: 100%; }
    .mega { position: static; transform: none; padding: 0; overflow: hidden; max-height: 0; opacity: 1; visibility: visible; transition: max-height .28s ease; }
    .has-mega.open .mega { max-height: 640px; }
    .has-mega.open .caret { transform: rotate(180deg); }
    .mega-inner { background: rgba(255,255,255,.03); border: 0; box-shadow: none; border-radius: 10px; padding: .3rem .3rem .5rem; margin: .2rem 0 .4rem; }
    .mega-title { display: none; }
    .mega-grid { grid-template-columns: 1fr; gap: 0; }
    .mega-item { padding: .7rem .6rem; }
    .mega-ico { width: 30px; height: 30px; }
    .nav-actions { margin-top: 1rem; justify-content: flex-start; }
    .highlight-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }

    /* Hero op mobiel: nette uitsnede + leesbare tekst onderaan */
    .hero { min-height: 74vh; align-items: flex-end; background-position: 24% center; }
    .hero:not(.hero--placeholder)::before {
        background: linear-gradient(to top, rgba(13,6,0,.95) 6%, rgba(13,6,0,.4) 52%, rgba(13,6,0,.05) 100%);
    }
    .hero-inner { padding-block: 1.5rem 2.4rem; }
    .hero-copy { max-width: 100%; }
    .hero-copy h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
    .hero-sub { font-size: 1.02rem; margin-bottom: 1.3rem; }

    /* Subpagina-hero: foto onder de tekst op mobiel */
    .page-hero { padding: 2.5rem 0 2rem; }
    .page-hero--split .container { grid-template-columns: 1fr; gap: 1.4rem; }
    .page-hero-figure { aspect-ratio: 16 / 10; }
}
@media (max-width: 480px) {
    .feature-grid, .service-grid { grid-template-columns: 1fr; }
}
