/*
   **************************************************************************
   *                                                                        *
   *   © 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%);
    border: 3px solid var(--c-teal);
    padding: 3px;
    /* Optional: space for ring effect if desired, otherwise 0 */
    padding: 0;
}

.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;
}

/* --- MANIFEST / LONG READ STYLES --- */
.container-manifest {
    width: 100%;
    max-width: 960px;
    /* Wider for sidebar layout */
    margin: 0 auto;
    padding: 0 20px;
}

.manifest-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    position: relative;
    padding-bottom: 80px;
}

@media (min-width: 1024px) {
    .manifest-layout {
        grid-template-columns: 240px 1fr;
        /* Sidebar + Content */
        align-items: start;
    }
}

/* Sticky TOC */
.toc-sidebar {
    display: none;
    /* Hidden on mobile by default */
}

@media (min-width: 1024px) {
    .toc-sidebar {
        display: block;
        position: sticky;
        top: 40px;
        height: auto;
        font-size: 0.9rem;
    }
}

.toc-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 16px;
}

.toc-list {
    list-style: none;
    border-left: 2px solid var(--border-subtle);
    padding-left: 0;
    margin: 0;
}

.toc-list li {
    margin: 0;
}

.toc-link {
    display: block;
    padding: 8px 0 8px 16px;
    color: var(--text-muted);
    transition: color 0.2s, border-left-color 0.2s;
    font-size: 0.9rem;
    border-left: 2px solid transparent;
    margin-left: -2px;
    /* Overlap border */
}

.toc-link:hover {
    color: var(--c-teal);
    border-left-color: var(--c-teal);
}

/* Mobile TOC (Collapsible) */
.mobile-toc {
    display: block;
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius-m);
    margin-bottom: 32px;
    border: 1px solid var(--border-subtle);
}

.mobile-toc summary {
    font-weight: 600;
    color: var(--c-teal);
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mobile-toc {
        display: none;
    }
}

/* Profit Stack Visualization */
.profit-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 48px 0;
    padding: 32px;
    background: var(--bg-card);
    border-radius: var(--radius-m);
}

.stack-block {
    background: var(--bg-page);
    border: 2px solid var(--border-subtle);
    padding: 24px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    border-radius: var(--radius-m);
    position: relative;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    color: var(--text-main);
}

.stack-block::after {
    /* Arrow down */
    content: "↓";
    font-size: 1.5rem;
    color: var(--c-teal);
    position: absolute;
    bottom: -34px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 400;
}

.stack-block:last-child::after {
    display: none;
    /* No arrow after last item */
}

.stack-block.highlight {
    background: var(--c-teal);
    color: white;
    border-color: var(--c-teal);
}

.stack-block span {
    display: block;
    font-weight: 400;
    font-size: 0.9rem;
    margin-top: 4px;
    opacity: 0.9;
}

/* Responsive Table (Card View on Mobile) */
.table-scroll {
    /* Remove scroll on mobile, handled by flex/grid */
    overflow-x: visible;
    margin: 32px 0;
}

.manifest-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.manifest-table th,
.manifest-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: top;
}

.manifest-table th {
    background: var(--bg-card);
    font-weight: 700;
    color: var(--text-main);
}

.manifest-table tr:last-child td {
    border-bottom: none;
}

/* Mobile Card View Transformation */
@media (max-width: 600px) {
    .manifest-table thead {
        display: none;
        /* Hide headers */
    }

    .manifest-table tr {
        display: block;
        margin-bottom: 24px;
        background: var(--bg-card);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-m);
        padding: 16px;
    }

    .manifest-table td {
        display: block;
        border-bottom: none;
        padding: 8px 0;
        position: relative;
    }

    /* Column 1: Kenmerk (Title) */
    .manifest-table td:nth-child(1) {
        font-weight: 700;
        color: var(--c-teal);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-size: 0.85rem;
        border-bottom: 1px solid var(--border-subtle);
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    /* Column 2: Oude Wereld */
    .manifest-table td:nth-child(2)::before {
        content: "Traditioneel:";
        display: block;
        font-size: 0.75rem;
        color: var(--text-muted);
        font-weight: 600;
        text-transform: uppercase;
        margin-bottom: 4px;
    }

    /* Column 3: retailZ Aanpak */
    .manifest-table td:nth-child(3) {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border-subtle);
        /* Separator */
    }

    .manifest-table td:nth-child(3)::before {
        content: "retailZ (2025):";
        display: block;
        font-size: 0.75rem;
        color: var(--c-teal);
        font-weight: 600;
        text-transform: uppercase;
        margin-bottom: 4px;
    }

    .manifest-table tr:nth-child(even) {
        background: var(--bg-card);
        /* Keep consistent card bg */
    }
}

@media (min-width: 601px) {
    .manifest-table tr:nth-child(even) {
        background: var(--bg-card);
    }
}

/* Manifest Typography */
.manifest-content {
    max-width: 680px;
    /* Optimal reading width */
}

/* ==========================================================================
   LANDING PAGE: DE SLIMME REBEL (Industrial/Raw Theme)
   ========================================================================== */

/* Hero Section Overrides */
.hero-section {
    text-align: left;
    padding: 4rem 0;
    border-bottom: 2px solid var(--text-main);
    /* Zwaarder, industrieel */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.hero-label {
    font-family: monospace;
    color: var(--c-teal);
    font-weight: bold;
    margin-bottom: 1rem;
    display: block;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Video Placeholder */
.video-placeholder {
    background: #000;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid var(--border-subtle);
    position: relative;
    border-radius: var(--radius-m);
    overflow: hidden;
}

.video-overlay {
    text-align: center;
    z-index: 2;
}

.play-icon {
    font-size: 3rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

/* Form Container */
.form-container {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-m);
    border: 2px solid var(--text-main);
}

/* Section Header (Industrial) */
.section-header {
    color: var(--c-teal);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--border-subtle);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Pillars List */
.pillars-list {
    list-style: none;
    display: grid;
    gap: 1.5rem;
}

.pillars-list li {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-m);
    border: 1px solid var(--border-subtle);
}

.pillars-list strong {
    color: var(--c-teal);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1em;
}

/* TOC Preview */
.toc-preview {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-m);
    font-family: monospace;
    border: 1px solid var(--border-subtle);
}

.toc-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    border-bottom: 1px dashed var(--border-subtle);
    padding-bottom: 0.25rem;
}

.toc-item:last-child {
    border-bottom: none;
}

/* Author Block */
.author-block {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-m);
    margin-top: 2rem;
}

.author-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--c-teal);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        text-align: center;
    }

    .author-block {
        flex-direction: column;
        text-align: center;
    }
}

.manifest-content h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 24px;
}

.manifest-content h2 {
    font-size: 1.75rem;
    margin-top: 56px;
    margin-bottom: 24px;
    color: var(--text-main);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.manifest-content h3 {
    font-size: 1.25rem;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.manifest-content p {
    margin-bottom: 24px;
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.manifest-content ul {
    padding-left: 20px;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 1.125rem;
}

.manifest-content li {
    margin-bottom: 12px;
}

.manifest-content blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-main);
    border-left: 3px solid var(--c-teal);
    padding-left: 24px;
    margin: 40px 0;
}

.manifest-header {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 32px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--c-teal);
    font-weight: 600;
    font-size: 0.9rem;

    /* Author Block */
    .author-block {
        display: flex;
        gap: 1.5rem;
        align-items: flex-start;
        /* Align top for better text flow */
        background: var(--bg-card);
        padding: 1.5rem;
        border-radius: var(--radius-m);
        margin-top: 2rem;
        border: 1px solid var(--border-subtle);
    }

    .author-img {
        width: 80px;
        /* Smaller, more integrated */
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--c-teal);
        flex-shrink: 0;
    }

    .author-info h3 {
        margin-top: 0;
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
        color: var(--text-main);
    }

    .author-info p {
        font-size: 0.95rem;
        margin: 0;
        line-height: 1.5;
        color: var(--text-muted);
    }

    /* Hero Clean (Book Page) */
    .hero-clean {
        text-align: center;
        padding: 4rem 0;
        border-bottom: 2px solid var(--text-main);
        margin-bottom: 2rem;
    }

    .hero-clean .hero-title {
        margin-left: auto;
        margin-right: auto;
        max-width: 800px;
    }

    .hero-clean .hero-sub {
        margin-left: auto;
        margin-right: auto;
        max-width: 650px;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .hero-grid {
            grid-template-columns: 1fr;
        }

        .hero-section,
        .hero-clean {
            text-align: left;
            /* Often better on mobile, or keep center? Let's stick to center for hero if design dictates, but user asked for responsive checks. */
            text-align: center;
        }

        .author-block {
            flex-direction: row;
            /* Keep side-by-side on mobile if space allows, or stack? */
            align-items: center;
            text-align: left;
        }

        .author-img {
            width: 60px;
            height: 60px;
        }
    }