/* =============================================================
   VECTIVO — professional.css
   Footer, cookie-modal, error-pages, legal pages, accessibility
   ============================================================= */

/* ── SKIP LINK (accessibility) ─────────────────────────────── */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--aqua);
    color: var(--leisteen);
    padding: 12px 20px;
    border-radius: var(--radius, 4px);
    font-weight: 700;
    z-index: 1100;            /* boven cookie-bar */
    text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible {
    left: 8px;
    top: 8px;
    outline: 3px solid var(--hemelgrijs);
    outline-offset: 2px;
}

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer {
    background: var(--leisteen);
    border-top: 1px solid rgba(56, 174, 255, 0.12);
    padding: 64px 0 24px;
    margin-top: 64px;
}
.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 640px) {
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
}
@media (min-width: 1024px) {
    .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
}

.footer-col-h {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--hemelgrijs);
    margin-bottom: 16px;
}

.footer-col-brand .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.footer-tagline {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--staal-mid);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.footer-tagline em {
    font-style: normal;
    color: var(--aqua);
}
.footer-blurb {
    font-size: 14px;
    color: var(--staal-mid);
    line-height: 1.6;
    max-width: 340px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-col li {
    font-size: 14px;
    color: var(--staal-mid);
    line-height: 1.55;
}
.footer-col a {
    color: var(--staal-mid);
    transition: color 0.15s;
}
.footer-col a:hover,
.footer-col a:focus-visible {
    color: var(--aqua);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
    font-size: 12px;
    color: var(--staal);
}
@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
.footer-cookie-btn {
    color: var(--staal-mid);
    font-size: 12px;
    border-bottom: 1px dotted rgba(126, 148, 180, 0.4);
    padding: 0;
    transition: color 0.15s, border-color 0.15s;
}
.footer-cookie-btn:hover,
.footer-cookie-btn:focus-visible {
    color: var(--aqua);
    border-bottom-color: var(--aqua);
}

/* ── COOKIE BAR (bottom, non-modal) ──────────────────────── */
.cookie-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    padding: 12px;
    pointer-events: none;
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-bar[hidden] { display: none !important; }
.cookie-bar.is-shown {
    transform: translateY(0);
    opacity: 1;
}

.cookie-bar-card {
    pointer-events: auto;
    background: var(--diep);
    border: 1px solid rgba(56, 174, 255, 0.25);
    border-radius: var(--radius-lg, 10px);
    padding: 18px 20px;
    max-width: 980px;
    margin: 0 auto;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Banner-view: tekst links, knoppen rechts (desktop) */
.cookie-view[data-view="banner"] {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media (min-width: 880px) {
    .cookie-view[data-view="banner"] {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cookie-bar-text { flex: 1; min-width: 0; }

.cookie-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--hemelgrijs);
    margin-bottom: 6px;
}

.cookie-body {
    font-size: 13.5px;
    color: var(--staal-mid);
    line-height: 1.55;
    margin: 0;
}
.cookie-body a {
    color: var(--aqua);
    border-bottom: 1px solid rgba(0, 229, 204, 0.3);
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}
@media (max-width: 879px) {
    .cookie-actions {
        justify-content: stretch;
    }
    .cookie-actions .btn { flex: 1; min-width: 100px; }
}

/* Settings view — verticale layout */
.cookie-view[data-view="settings"] {
    padding: 4px 0;
}
.cookie-view[data-view="settings"] .cookie-title {
    font-size: 17px;
    margin-bottom: 14px;
}

.cookie-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cookie-row:last-of-type { border-bottom: none; }
.cookie-row h3 {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--hemelgrijs);
    margin-bottom: 4px;
}
.cookie-row p {
    font-size: 12.5px;
    color: var(--staal-mid);
    line-height: 1.55;
    margin: 0;
}

.cookie-view[data-view="settings"] .cookie-actions {
    margin-top: 14px;
    justify-content: flex-end;
}

/* Buttons binnen cookie-bar — compact */
.cookie-bar .btn {
    padding: 8px 14px;
    font-size: 13px;
}
.cookie-bar .btn-text {
    background: none;
    color: var(--staal-mid);
    padding: 8px 6px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cookie-bar .btn-text:hover { color: var(--aqua); }

/* ── SWITCH (toggle) ───────────────────────────────────────── */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}
.switch-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--hemelgrijs);
    border-radius: 50%;
    transition: transform 0.2s;
}
.switch input:checked + .switch-slider {
    background: var(--aqua);
}
.switch input:checked + .switch-slider::before {
    transform: translateX(20px);
    background: var(--leisteen);
}
.switch input:focus-visible + .switch-slider {
    outline: 2px solid var(--aqua);
    outline-offset: 2px;
}
.switch.is-locked {
    opacity: 0.5;
    cursor: not-allowed;
}
.switch.is-locked .switch-slider { cursor: not-allowed; }

/* ── ERROR PAGES ───────────────────────────────────────────── */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background:
        radial-gradient(ellipse 60% 80% at 50% 50%, rgba(56, 174, 255, 0.08) 0%, transparent 70%),
        var(--leisteen);
}
.error-inner {
    text-align: center;
    max-width: 540px;
}
.error-code {
    font-family: var(--font-display);
    font-size: clamp(80px, 18vw, 160px);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--aqua);
    line-height: 1;
    margin-bottom: 12px;
    text-shadow: 0 4px 24px rgba(0, 229, 204, 0.2);
}
.error-code-warn {
    color: #FBBF24;
    text-shadow: 0 4px 24px rgba(251, 191, 36, 0.2);
}
.error-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    color: var(--hemelgrijs);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.error-body {
    font-size: 17px;
    color: var(--staal-mid);
    line-height: 1.65;
    margin-bottom: 32px;
}
.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── LEGAL PAGES ───────────────────────────────────────────── */
.legal-page {
    padding: 80px 0 96px;
    background: var(--leisteen);
}
.legal-head {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.legal-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--hemelgrijs);
    margin-bottom: 14px;
    line-height: 1.1;
}
.legal-intro {
    font-size: 18px;
    color: var(--staal-mid);
    line-height: 1.6;
    margin-bottom: 16px;
}
.legal-meta {
    font-size: 13px;
    color: var(--staal);
}
.legal-body {
    font-size: 16px;
    line-height: 1.75;
    color: var(--hemelgrijs);
}
.legal-body h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--hemelgrijs);
    margin: 40px 0 16px;
    letter-spacing: -0.01em;
}
.legal-body h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--hemelgrijs);
    margin: 28px 0 12px;
}
.legal-body p { margin-bottom: 1.1em; }
.legal-body ul, .legal-body ol { padding-left: 24px; margin-bottom: 1.2em; }
.legal-body li { margin-bottom: 0.5em; }
.legal-body strong { color: var(--hemelgrijs); font-weight: 600; }
.legal-body a {
    color: var(--aqua);
    border-bottom: 1px solid rgba(0, 229, 204, 0.3);
}
.legal-body a:hover { border-bottom-color: var(--aqua); }
.legal-body hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 32px 0;
}

/* ── ACCESSIBILITY — focus styles ──────────────────────────── */
:focus-visible {
    outline: 2px solid var(--aqua, #00E5CC);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Reduced motion respect — al in main.css, hier verzekerd */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent,
    .cookie-consent-card {
        transition: none;
    }
}
