/*
   **************************************************************************
   *                                                                        *
   *   © 2026 Kees Kuijpers | Ontwikkeld door: Kees Kuijpers                *
   *   Project: Persoonlijk Profiel                                         *
   *                                                                        *
   **************************************************************************
*/

/* --- VARIABELEN & THEMA (CSS Custom Properties) --- */
:root {
    /* Brand Colors (retailZ) */
    --c-navy: #1E2A38;
    --c-teal: #2F9E9A;
    --c-yellow: #FBBB00;

    /* Light Mode (Standaard) */
    --bg-page: #FFFFFF;
    --bg-card: #F9FAFB;
    /* Zeer licht grijs voor subtiel contrast */
    --text-main: #1E2A38;
    --text-muted: #576575;
    --border-subtle: #E5E7EB;
    --btn-hover: #F3F4F6;

    /* Layout */
    --radius-l: 0px;
    /* Minimalist: strakke hoeken of zeer subtiel */
    --radius-m: 4px;
    --container-w: 600px;
    /* Compact reading width */

    /* Typography */
    --font-heading: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dark Mode Override */
html.dark-mode {
    --bg-page: #111111;
    /* Bijna zwart */
    --bg-card: #1A1A1A;
    --text-main: #E5E5E5;
    --text-muted: #A3A3A3;
    --border-subtle: #333333;
    --btn-hover: #262626;
    --c-navy: #E5E5E5;
    /* Navy wordt licht in dark mode voor leesbaarheid */
}

/* --- RESET & BASIS --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

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

button {
    font-family: inherit;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
}

/* --- CONTAINER --- */
.container {
    width: 100%;
    max-width: var(--container-w);
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* Veel whitespace */
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* --- ACCESSIBILITY (EAA / WCAG 2.2) --- */
.skip-link {
    /* Visually hidden until focused (SR Only pattern) */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    /* Extra failsafe */
    pointer-events: none;
    /* No clicks when hidden */

    /* Styling for when it appears */
    background: var(--c-teal);
    color: white;
    font-weight: 600;
    z-index: 9999;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    /* Visible on focus */
    opacity: 1;
    pointer-events: auto;
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    clip: auto;
    clip-path: none;
    margin: 0;
    padding: 12px 20px;
    outline: 3px solid white;
    outline-offset: -3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Strong Focus Indicators for Keyboard Navigation */
:focus-visible {
    outline: 3px solid var(--c-teal);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- CARDS (Minimalist: Geen schaduwen, alleen structuur) --- */
.card {
    background: transparent;
    padding: 0;
    border: none;
    text-align: left;
    /* Editorial style */
}

/* --- HERO --- */
.hero-card {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 24px;
    object-fit: cover;
    filter: grayscale(100%);
}

.role-badge {
    display: block;
    color: var(--c-teal);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

h1 {
    font-size: 2.5rem;
    margin: 0 0 16px;
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.bio-text {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 480px;
    margin: 0 auto 16px;
    /* Added bottom spacing */
    text-wrap: pretty;
}

.bio-text:last-of-type {
    margin-bottom: 0;
}

/* --- MOTTO --- */
.motto-card blockquote {
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-main);
    border-left: 2px solid var(--c-teal);
    padding-left: 20px;
    margin: 0;
}

/* --- EXPERTISE (Text Only) --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.usp-item h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.usp-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- LINKS LIST --- */
.link-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Aaneengesloten lijst */
    border-top: 1px solid var(--border-subtle);
}

.btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: padding-left 0.2s ease, color 0.2s ease;
}

.btn:hover {
    padding-left: 10px;
    color: var(--c-teal);
}

.btn strong {
    font-weight: 600;
    font-size: 1rem;
}

.btn-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.primary-link strong {
    color: var(--c-teal);
}

/* --- CONTACT LINKS (Text only) --- */
.contact-links {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.text-link {
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s;
}

.text-link:hover {
    color: var(--c-teal);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.company-details p {
    margin: 4px 0;
    line-height: 1.4;
}

.company-details strong {
    color: var(--text-main);
    font-size: 0.9rem;
}

.legal-numbers {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 8px;
}

.legal-nav {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
}

.theme-toggle {
    text-decoration: none;
    padding: 4px;
    border-radius: 50%;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.theme-toggle:hover {
    color: var(--text-main);
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    h1 {
        font-size: 2rem;
    }

    .container {
        gap: 32px;
    }
}

/* --- PRINT STYLES --- */
@media print {
    body {
        background: white !important;
        color: black !important;
        padding: 0 !important;
    }

    .container {
        max-width: 100% !important;
        gap: 20px !important;
    }

    .theme-toggle,
    .skip-link,
    .btn,
    .link-list,
    nav.legal-nav {
        display: none !important;
    }

    /* Show URLs for text links if useful, but hiding big buttons */
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8rem;
        color: #666;
    }

    h1,
    h3,
    p,
    blockquote {
        color: black !important;
        page-break-inside: avoid;
    }

    .legal-numbers {
        color: black !important;
        opacity: 1 !important;
    }
}

/* --- COOKIE BANNER ---*/
/* --- COOKIE MODAL (With Blur) --- */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;

    /* The Blur Effect */
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

html.dark-mode .cookie-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.cookie-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner {
    width: 90%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 32px;
    border-radius: var(--radius-m);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.cookie-overlay.visible .cookie-banner {
    transform: scale(1);
}

.cookie-text {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-direction: column;
}

@media (min-width: 400px) {
    .cookie-actions {
        flex-direction: row;
    }
}

.btn-accept {
    background: var(--c-teal);
    color: white;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--radius-m);
    font-size: 1rem;
    flex: 1;
    transition: opacity 0.2s;
}

.btn-accept:hover {
    opacity: 0.9;
}

.btn-deny {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 12px 24px;
    text-decoration: underline;
    background: transparent;
}