/*-----------------------------------------------
|   Kids of Iron Theme CSS
|   Version: 1.0.0
|   Gebaseerd op Battle4Life theme structuur
-----------------------------------------------*/

/* ===========================
   KLEURENPALET & VARIABELEN
=========================== */
:root {
    /* Kids of Iron Brand Colors */
    --koi-blue:          #1B7093;
    --koi-blue-dark:     #0d4a62;
    --koi-blue-light:    #2a93bc;
    --koi-blue-pale:     #8FC8E6;
    --koi-red:           #D60E17;
    --koi-red-light:     #f03540;
    --koi-orange:        #E87722;
    --koi-white:         #ffffff;
    --koi-cream:         #f5f9fc;
    --text-dark:         #1a2a35;
    --text-muted:        #6c757d;
    --bg-light:          #f0f7fa;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.18);

    /* Misc */
    --transition: all 0.3s ease;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
}

/* ===========================
   BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Lato', 'Exo 2', sans-serif;
    color: var(--text-dark);
    background: #fff;
}

a { color: var(--koi-blue); text-decoration: none; }
a:hover { color: var(--koi-blue-dark); }

.section-title {
    font-family: 'marvin', 'Exo 2', sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.text-koi-blue  { color: var(--koi-blue) !important; }
.text-koi-red   { color: var(--koi-red) !important; }
.bg-koi-blue    { background-color: var(--koi-blue) !important; }

/* ===========================
   NAVIGATIE
=========================== */
.navbar {
    transition: var(--transition);
    padding: 0.9rem 0;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(13, 74, 98, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    padding: 0.45rem 0;
}

/* Logo groot op homepage, klein in navbar */
.navbar-brand .koi-logo-nav {
    height: 52px;
    transition: var(--transition);
}
.navbar.scrolled .koi-logo-nav {
    height: 38px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.92) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    letter-spacing: 0.03em;
}
.nav-link:hover,
.nav-link.active { color: var(--koi-blue-pale) !important; }

/* Nav knoppen */
.nav-buttons { align-items: center; }

.btn-nav {
    padding: 0.38rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-nav-inschrijven {
    background: linear-gradient(135deg, var(--koi-red), var(--koi-red-light));
    color: #fff;
    border: none;
    box-shadow: 0 3px 10px rgba(214,14,23,0.35);
}
.btn-nav-inschrijven:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214,14,23,0.45);
    color: #fff;
}

.btn-nav-vrijwilliger {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-nav-vrijwilliger:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
    transform: translateY(-2px);
}

/* Offcanvas mobiel menu */
.offcanvas {
    background: var(--koi-blue-dark);
    color: #fff;
}
.offcanvas .nav-link { color: rgba(255,255,255,0.85) !important; padding: 0.75rem 0 !important; border-bottom: 1px solid rgba(255,255,255,0.08); }
.offcanvas .nav-link:last-child { border: none; }
.offcanvas .nav-link:hover { color: var(--koi-blue-pale) !important; }

/* ===========================
   CTA KNOPPEN
=========================== */
.btn-cta-primary {
    background: linear-gradient(135deg, var(--koi-red), var(--koi-red-light));
    color: #fff; border: none; font-weight: 700;
    padding: 0.8rem 1.6rem; border-radius: var(--radius-sm);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(214,14,23,0.3);
}
.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 22px rgba(214,14,23,0.45);
    color: #fff;
}

.btn-cta-secondary {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    color: #fff; border: 2px solid rgba(255,255,255,0.35);
    font-weight: 700; padding: 0.8rem 1.6rem;
    border-radius: var(--radius-sm); transition: var(--transition);
}
.btn-cta-secondary:hover {
    background: rgba(255,255,255,0.22);
    color: #fff; transform: translateY(-3px);
}

.btn-cta-blue {
    background: linear-gradient(135deg, var(--koi-blue), var(--koi-blue-light));
    color: #fff; border: none; font-weight: 700;
    padding: 0.8rem 1.6rem; border-radius: var(--radius-sm);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(27,112,147,0.3);
}
.btn-cta-blue:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 22px rgba(27,112,147,0.45);
    color: #fff;
}

/* ===========================
   OVER ONS (HOMEPAGE)
=========================== */
.about-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-stat-card {
    min-width: 0;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(6px);
}

.about-stat-icon {
    font-size: 2rem;
    color: var(--koi-blue-pale);
}

.about-stat-value {
    font-size: 2rem;
}

.about-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 575px) {
    .about-stats-grid {
        grid-template-columns: 1fr;
    }
}
/* ===========================
   HERO SECTIE (HOMEPAGE)
=========================== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(
        160deg,
        rgba(13,74,98,0.88) 0%,
        rgba(27,112,147,0.75) 50%,
        rgba(13,74,98,0.9) 100%
    ), url('../assets/img/bg/hero-bg.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/img/patterns/hex-pattern.webp') repeat;
    opacity: 0.07;
    pointer-events: none;
}

/* Groot KOI logo op hero */
.hero-logo-wrap {
    text-align: center;
    margin-bottom: 2.5rem;
}
.hero-logo-wrap img {
    width: min(420px, 80vw);
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.45));
    animation: logoFloat 4s ease-in-out infinite;
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.hero-title {
    font-family: 'marvin', 'Exo 2', sans-serif;
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 3px 16px rgba(0,0,0,0.35);
}
.hero-title .text-accent {
    color: var(--koi-blue-pale);
}

.hero-subtitle {
    color: rgba(255,255,255,0.82);
    font-size: 1.15rem;
    font-weight: 400;
    margin-top: 0.75rem;
}

/* Scroll-down pijl */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    animation: bounce 2s infinite;
    font-size: 2rem;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(10px); }
}

/* ===========================
   SPONSOREN BALK (BOVENAAN)
=========================== */
.sponsors-bar-top {
    background: var(--koi-blue-dark);
    padding: 0.7rem 0;
    overflow: hidden;
}
.sponsors-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 0 2rem;
    animation: scrollTicker 30s linear infinite;
    white-space: nowrap;
}
.sponsors-inner:hover { animation-play-state: paused; }
.sponsors-inner span {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    flex-shrink: 0;
}
.sponsors-inner img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s;
    flex-shrink: 0;
}
.sponsors-inner img:hover { opacity: 1; }
@keyframes scrollTicker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===========================
   COUNTDOWN TIMER
=========================== */
.timer-section {
    background: var(--koi-blue);
    background-image: url('../assets/img/bg/bg_hex.webp');
    background-size: cover;
    background-blend-mode: multiply;
    padding: 4rem 0;
    position: relative;
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.countdown-item {
    text-align: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    min-width: 110px;
    transition: var(--transition);
}
.countdown-item:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-4px);
}
.countdown-number {
    display: block;
    font-family: 'marvin', 'Exo 2', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.countdown-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--koi-blue-pale);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.4rem;
}

/* ===========================
   INFO BAR (DATUM / LOCATIE / LEEFTIJD / #)
=========================== */
.info-bar {
    background: var(--koi-blue-dark);
    padding: 1.5rem 0;
}
.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
}
.info-item i {
    font-size: 1.5rem;
    color: var(--koi-blue-pale);
    margin-bottom: 0.3rem;
}
.info-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.55);
    font-weight: 600;
}
.info-value {
    font-family: 'marvin', 'Exo 2', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

/* ===========================
   SECTIES GENERIEK
=========================== */
.koi-section {
    padding: 5rem 0;
}
.koi-section-alt {
    padding: 5rem 0;
    background: var(--bg-light);
}
.koi-section-dark {
    padding: 5rem 0;
    background: var(--koi-blue-dark);
    color: #fff;
}

.section-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--koi-red);
    margin-bottom: 0.6rem;
}
.section-heading {
    font-family: 'marvin', 'Exo 2', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--koi-blue-dark);
    line-height: 1.15;
}
.section-heading.light { color: #fff; }

/* ===========================
   GALLERIJ / VIDEO SECTIE
=========================== */
.gallery-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.gallery-card img,
.gallery-card video {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.gallery-card:hover img,
.gallery-card:hover video { transform: scale(1.06); }
.gallery-card .play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,74,98,0.55);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-card:hover .play-overlay { opacity: 1; }
.play-overlay i { font-size: 3.5rem; color: #fff; }

/* Video modal */
.koi-modal-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.88);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.koi-modal-overlay.active { display: flex; }
.koi-modal-inner {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.koi-modal-inner iframe {
    width: 100%; height: 100%;
    border: none;
}
.koi-modal-close {
    position: absolute;
    top: -2.5rem; right: 0;
    color: #fff; font-size: 1.8rem;
    background: none; border: none;
    cursor: pointer; line-height: 1;
}

/* ===========================
   PROGRAMMA / LEEFTIJDSGROEPEN
=========================== */
.age-group-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--koi-blue);
    transition: var(--transition);
}
.age-group-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-left-color: var(--koi-red);
}
.age-group-card .ag-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--koi-blue);
    color: #fff;
    font-family: 'marvin', 'Exo 2', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
    flex-shrink: 0;
}
.age-group-card h4 {
    font-family: 'marvin', 'Exo 2', sans-serif;
    font-weight: 800;
    color: var(--koi-blue-dark);
    margin-bottom: 0.3rem;
}
.age-group-card .disciplines {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}
.discipline-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex; align-items: center; gap: 0.3rem;
}
.badge-swim  { background: #dff2fb; color: #0a6a8a; }
.badge-bike  { background: #fff3e0; color: #b35000; }
.badge-run   { background: #fce4e5; color: #a00c12; }

/* Tijden tabel */
.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table th {
    background: var(--koi-blue);
    color: #fff;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.schedule-table td {
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    border-bottom: 1px solid #e8f2f8;
}
.schedule-table tr:last-child td { border: none; }
.schedule-table tr:hover td { background: var(--bg-light); }

/* ===========================
   SPONSORS RASTER
=========================== */
.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}
.sponsor-item {
    display: flex; align-items: center; justify-content: center;
    padding: 1.2rem 2rem;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    min-width: 160px;
}
.sponsor-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.sponsor-item img {
    max-height: 60px;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(40%);
    transition: filter 0.3s;
}
.sponsor-item:hover img { filter: grayscale(0%); }

/* ===========================
   FAQ
=========================== */
.faq-item {
    border: 1px solid #daedf6;
    border-radius: var(--radius-md);
    margin-bottom: 0.85rem;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }

.faq-question {
    width: 100%; text-align: left;
    background: none; border: none;
    padding: 1.2rem 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 700; font-size: 1rem;
    color: var(--koi-blue-dark);
    cursor: pointer;
    transition: background 0.2s;
}
.faq-question:hover { background: var(--koi-cream); }
.faq-question.open { color: var(--koi-blue); }
.faq-question i { transition: transform 0.3s; font-size: 1.1rem; color: var(--koi-blue); }
.faq-question.open i { transform: rotate(180deg); }

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.3rem;
    color: #444;
    line-height: 1.75;
    font-size: 0.95rem;
}
.faq-answer.open { display: block; }
.faq-answer a { color: var(--koi-blue); font-weight: 600; }
.faq-answer ol, .faq-answer ul { padding-left: 1.3rem; }
.faq-answer li { margin-bottom: 0.4rem; }

/* FAQ categorie tabs */
.faq-tabs {
    display: flex; gap: 0.6rem; flex-wrap: wrap;
    margin-bottom: 2rem;
}
.faq-tab {
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 2px solid var(--koi-blue);
    background: none;
    color: var(--koi-blue);
    font-weight: 600; font-size: 0.85rem;
    cursor: pointer; transition: var(--transition);
}
.faq-tab:hover, .faq-tab.active {
    background: var(--koi-blue);
    color: #fff;
}

/* ===========================
   CONTACT SECTIE
=========================== */
.contact-card {
    background: var(--koi-cream);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid #cce4f0;
}
.contact-card .contact-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--koi-blue);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* ===========================
   INNER PAGINA HEADER (niet homepage)
=========================== */
.page-hero {
    background: linear-gradient(135deg, var(--koi-blue-dark), var(--koi-blue));
    background-image: url('../assets/img/patterns/hex-pattern.webp');
    background-blend-mode: overlay;
    background-size: cover;
    padding: 8rem 0 4rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: #fff;
    clip-path: ellipse(60% 100% at 50% 100%);
}
.page-hero-logo {
    height: 56px;
    margin-bottom: 1.5rem;
}
.page-hero-title {
    font-family: 'marvin', 'Exo 2', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: #fff;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
    background: var(--koi-blue-dark);
    color: rgba(255,255,255,0.75);
    padding: 4rem 0 0;
}
.footer-logo img {
    height: 70px;
    opacity: 0.9;
    margin-bottom: 1rem;
}
.footer-tagline {
    font-family: 'marvin', 'Exo 2', sans-serif;
    font-size: 1rem;
    color: var(--koi-blue-pale);
    margin-bottom: 0.5rem;
}
.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--koi-blue-pale);
    margin-bottom: 1.2rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
    color: rgba(255,255,255,0.65);
    transition: color 0.2s;
    font-size: 0.9rem;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}
.footer-legal-links ul { margin: 0; padding: 0; }
.footer-legal-links li { list-style: none; }
.footer-legal-links a { color: rgba(255,255,255,0.45); font-size: .8rem; text-decoration: none; transition: var(--transition); }
.footer-legal-links a:hover { color: var(--koi-blue-pale); }
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    transition: var(--transition);
    margin-right: 0.5rem;
}
.footer-social a:hover {
    background: var(--koi-blue);
    color: #fff;
    transform: translateY(-2px);
}

/* ===========================
   PAGE TEMPLATES
=========================== */
.content-area {
    padding: 3rem 0 5rem;
}
.content-area h1,
.content-area h2 { color: var(--koi-blue-dark); font-family: 'marvin', 'Exo 2', sans-serif; }

/* ===========================
   404 PAGINA
=========================== */
.error-404 {
    min-height: 70vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 3rem;
}
.error-404 .error-code {
    font-family: 'marvin', 'Exo 2', sans-serif;
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 900;
    color: var(--koi-blue);
    line-height: 1;
    opacity: 0.18;
}

/* ===========================
   HULPKLASSEN
=========================== */
.rounded-koi { border-radius: var(--radius-md); }
.shadow-koi   { box-shadow: var(--shadow-md); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 991px) {
    .hero-logo-wrap img { width: 72vw; }
    .countdown-item { padding: 1.1rem 1.3rem; min-width: 80px; }
    .age-group-card { margin-bottom: 1rem; }
}

@media (max-width: 767px) {
    .koi-section, .koi-section-alt, .koi-section-dark { padding: 3rem 0; }
    .timer-section { padding: 2.5rem 0; }
    .countdown-wrapper { gap: 1rem; }
    .countdown-number { font-size: 2rem; }
    .page-hero { padding: 7rem 0 3.5rem; }
    .site-footer { padding: 3rem 0 0; }
    .sponsors-inner { gap: 1.5rem; }
}

@media (max-width: 575px) {
    .info-item { padding: 0.4rem 0.5rem; }
    .info-value { font-size: 0.85rem; }
    .schedule-table th, .schedule-table td { padding: 0.45rem 0.65rem; font-size: 0.8rem; }
}
