@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================================
   Race Pace (RCPC) — Performance by Design stijl: wit + navy, RAG voor zones
   ============================================================================ */

:root {
    /* Zelfde als Performance by Design: wit, navy, grijzen */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --text-primary: #0F1C2D;
    --text-secondary: #5F6368;
    --text-tertiary: #5F6368;

    /* RAG / zone-kleuren voor grafieken, tabellen, schema's */
    --zone-1: #22C55E;   /* green */
    --zone-2: #84CC16;   /* lime/amber-green */
    --zone-3: #F59E0B;   /* amber */
    --zone-4: #EF4444;   /* red */

    /* Headings / CTA — navy zoals PBD */
    --color-h1: #0F1C2D;
    --color-h2: #0F1C2D;
    --color-h3: #1F2A38;
    --color-h4: #3A3F45;
    --color-cta: #0F1C2D;
    --color-cta-hover: #1C2A40;
    --color-navy-light: #E2E8F0;

    /* Borders */
    --border-subtle: #E2E8F0;
    --border-medium: #CBD5E1;
    --border-strong: #94A3B8;

    /* Functional (RAG) */
    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;

    /* Typography */
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-black: 900;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    --space-10: 4rem;
    --space-12: 6rem;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition-base: 200ms ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--bg-primary);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-cta); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--color-cta-hover); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Top bar */
.top-bar {
    background: var(--bg-tertiary);
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    text-align: center;
}

/* Navbar */
.navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-4) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.nav-logo {
    font-weight: var(--font-bold);
    font-size: var(--text-xl);
    color: var(--color-h1);
    display: inline-flex;
    align-items: center;
}

.nav-logo:hover { color: var(--color-h1); }

.nav-logo-img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-6);
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: var(--font-medium);
}

.nav-menu a:hover { color: var(--text-primary); }

.nav-cta {
    background: var(--color-cta);
    color: #fff !important;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-weight: var(--font-semibold);
}

.nav-cta:hover { background: var(--color-cta-hover); color: #fff !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: var(--space-4) 0;
    }
    .nav-menu.active { display: flex; }
    .nav-actions .nav-cta { margin-right: auto; }
}

/* Hero — visuele impact, animatie, aandacht voor de CTA */
.hero {
    background: linear-gradient(160deg, #F0FDF4 0%, var(--bg-secondary) 35%, var(--bg-primary) 100%);
    padding: var(--space-12) 0;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 70% 20%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(34, 197, 94, 0.05) 0%, transparent 45%);
    pointer-events: none;
}

.hero .container {
    text-align: left;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--zone-1);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-4);
    opacity: 0;
    animation: heroFadeUp 0.6s ease 0.1s forwards;
}

.hero-title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    color: var(--color-h1);
    margin-bottom: var(--space-4);
    line-height: 1.2;
    max-width: 720px;
    opacity: 0;
    animation: heroFadeUp 0.6s ease 0.2s forwards;
}

.hero-title .highlight {
    color: var(--zone-1);
    background: linear-gradient(180deg, transparent 60%, rgba(34, 197, 94, 0.25) 60%);
    padding: 0 0.15em;
    box-decoration-break: clone;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    max-width: 720px;
    opacity: 0;
    animation: heroFadeUp 0.6s ease 0.35s forwards;
}

.hero-buttons {
    margin-bottom: var(--space-6);
    opacity: 0;
    animation: heroFadeUp 0.6s ease 0.5s forwards;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-hero-cta {
    box-shadow: var(--shadow-md);
}
.btn-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: background var(--transition-base), transform var(--transition-base);
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--color-cta);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-cta-hover);
    color: #fff;
}

/* Sections — links uitgelijnd, eenheid met PBD high-end coaching */
.section {
    padding: var(--space-10) 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    font-size: var(--text-3xl);
    color: var(--color-h1);
    margin-bottom: var(--space-6);
    text-align: left;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 0 var(--space-8);
    text-align: left;
    line-height: 1.7;
}

/* Leesbare breedte voor tekstblokken (eenheid, editorial feel) */
.content-prose {
    max-width: 720px;
    text-align: left;
}

.card-steps {
    max-width: 640px;
}

/* Hoe het werkt: 50% tekst, 50% afbeelding */
.uitleg-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
}
@media (max-width: 768px) {
    .uitleg-wrap {
        grid-template-columns: 1fr;
    }
    .uitleg-figure { order: -1; justify-content: flex-start; }
}
.uitleg-text .section-subtitle { max-width: none; }
.uitleg-text { min-width: 0; }
.uitleg-figure {
    position: sticky;
    top: 100px;
    display: flex;
    justify-content: center;
    align-items: start;
}
.curve-model-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Cards */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.card h3 {
    color: var(--color-h1);
    margin-bottom: var(--space-3);
    font-size: var(--text-xl);
}

.card--full-width,
.card--full-width.content-prose {
    max-width: none;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-10) 0 var(--space-6);
    margin-top: var(--space-12);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-column h3, .footer-column h4 {
    color: var(--color-h1);
    margin-bottom: var(--space-3);
    font-size: var(--text-base);
}

.footer-column p, .footer-column ul {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.footer-column ul { list-style: none; }

.footer-column ul li { margin-bottom: var(--space-2); }

.footer-bottom {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-subtle);
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

/* Cookie consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-medium);
    padding: var(--space-4);
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.cookie-text h3 { color: var(--color-h1); margin-bottom: var(--space-2); font-size: var(--text-lg); }
.cookie-text p { color: var(--text-secondary); font-size: var(--text-sm); margin-bottom: var(--space-2); }
.cookie-buttons { display: flex; gap: var(--space-3); }
.btn-accept { background: var(--color-cta); color: #fff; padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); border: none; cursor: pointer; font-weight: var(--font-medium); }
.btn-decline { background: transparent; color: var(--text-secondary); padding: var(--space-2) var(--space-4); border: 1px solid var(--border-medium); border-radius: var(--radius-md); cursor: pointer; }
