/* ============================================
   Kartmaatjes.nl — huisstijl
   Kleuren afgeleid uit het logo:
   - Inkt (zwart)      #0B0B0C
   - Kartmaatjes rood  #D0112E
   - Sven blauw        #0B63D6
   - Rafi groen        #2FA836
   - Achtergrond grijs #F4F4F5
   Type: Archivo Black (display, racing/numberplate karakter) + Inter (body)
   ============================================ */

:root {
    --ink: #0b0b0c;
    --ink-soft: #3a3a3d;
    --red: #d0112e;
    --blue: #0b63d6;
    --green: #2fa836;
    --grey-bg: #f4f4f5;
    --white: #ffffff;
    --border: #e2e2e5;

    --font-display: 'Archivo Black', 'Arial Black', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius: 14px;
    --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

a { color: inherit; }

/* focus visibility, keyboard use */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

/* ---------- Header / nav ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 16px;
}

.brand-logo {
    height: 56px;
    width: auto;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

.tab-list {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.tab-link {
    display: inline-block;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    color: var(--ink-soft);
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.tab-link:hover {
    background: var(--grey-bg);
    color: var(--ink);
}

.tab-link.is-active {
    background: var(--ink);
    color: var(--white);
}

/* ---------- Hero ---------- */

.hero {
    background: var(--grey-bg);
    padding: 56px 0 48px;
    border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--red);
    margin: 0 0 12px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.12;
    margin: 0 0 28px;
    max-width: 20ch;
}

.hero-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.kart-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 10px;
    border-radius: 999px;
    background: var(--white);
    border: 2px solid var(--ink);
    font-weight: 700;
    font-size: 0.9rem;
}

.kart-badge-number {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--white);
    background: var(--ink);
    border-radius: 999px;
    padding: 3px 10px;
}

.kart-badge--blue .kart-badge-number { background: var(--blue); }
.kart-badge--green .kart-badge-number { background: var(--green); }

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(208, 17, 46, 0.28);
}

/* ---------- Tab panels ---------- */

.tab-panels {
    padding: 56px 24px 80px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.2s ease;
}

.tab-panel.is-active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin: 0 0 28px;
    max-width: 24ch;
}

.prose {
    max-width: 68ch;
}

.prose p {
    margin: 0 0 18px;
    color: var(--ink-soft);
}

.prose .lead {
    font-size: 1.1rem;
    color: var(--ink);
    font-weight: 600;
}

.prose strong { color: var(--ink); }

.check-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    max-width: 68ch;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--ink-soft);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--red);
}

.price-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.3rem;
    background: var(--ink);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius);
    margin-top: 8px;
}

.placeholder-block {
    background: var(--grey-bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    color: var(--ink-soft);
}

/* ---------- Sponsortiers ---------- */

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 32px;
}

.tier-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.tier-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin: 0 0 6px;
}

.tier-price {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--red);
    margin: 0 0 20px;
}

.tier-period {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-soft);
    margin-top: 2px;
}

.tier-intro {
    color: var(--ink-soft);
    margin-bottom: 20px;
}

.tier-voordelen-titel {
    font-weight: 700;
    margin-bottom: 12px;
}

.tier-afsluiter {
    color: var(--ink-soft);
    font-style: italic;
    margin-top: 20px;
    margin-bottom: 0;
}

/* ---------- Coureurs ---------- */

.coureurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    margin-top: 8px;
}

.coureur-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.coureur-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--grey-bg);
}

.coureur-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coureur-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.coureur-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
}

.coureur-body {
    padding: 24px;
}

.coureur-body h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0 0 4px;
}

.coureur-meta {
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin: 0 0 16px;
}

.coureur-bio-titel {
    font-size: 1rem;
    margin: 0 0 10px;
}

.coureur-body p {
    color: var(--ink-soft);
    margin: 0 0 14px;
}

.coureur-cta {
    background: var(--grey-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
}

.coureur-cta h4 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1rem;
}

.contact-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.contact-list li {
    margin-bottom: 6px;
    font-size: 0.92rem;
}

.tbd {
    color: var(--ink-soft);
    font-style: italic;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--ink);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    height: 48px;
    margin: 0 auto 16px;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-weight: 600;
    margin: 0 0 8px;
}

.footer-copy {
    color: #9a9a9d;
    font-size: 0.85rem;
    margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 780px) {
    .nav-toggle { display: flex; }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .main-nav.is-open { display: block; }

    .header-inner { flex-wrap: wrap; }

    .tab-list {
        flex-direction: column;
        gap: 2px;
        padding: 8px 0 4px;
    }

    .tab-link { display: block; }

    .hero { padding: 40px 0 36px; }

    .tab-panels { padding: 40px 20px 60px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
