:root {
    /* Warmere blauwtinten: van sky tot sapphire */
    --primary: #2C5F8D;          /* sapphire — warme donkerblauw */
    --primary-dark: #1E4668;     /* iets dieper voor hover/footer */
    --primary-light: #5DA3C7;    /* sky */
    --accent: #A8D8EA;           /* zachte sky highlight (vervangt geel) */
    --soft-bg: #EAF2F8;          /* zachte achtergrond "Wie wij zijn" */
    --text: #1c1c1c;
    --muted: #6d7685;
    --light: #F5F9FC;
    --white: #ffffff;
    --max-width: 1140px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

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

h1, h2, h3, h4, h5, h6 {
    font-family: "Raleway", "Open Sans", sans-serif;
    color: var(--primary);
    margin: 0 0 0.6em;
    line-height: 1.25;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h6 { font-size: 1rem; color: var(--muted); font-weight: 500; font-style: italic; margin-bottom: 0.4em; }

p { margin: 0 0 1em; }

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

/* Header */
.site-header {
    background: var(--white);
    border-bottom: 1px solid #e3ebf2;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}
.site-title {
    font-family: "Raleway", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}
.site-title a { color: inherit; }

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}
.main-nav a {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
    touch-action: manipulation;
}
.main-nav a:hover,
.main-nav a.active { border-bottom-color: var(--primary-light); }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--primary);
    padding: 6px 8px;
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 110px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero h1, .hero h2 { color: var(--white); }
.hero h1 { font-size: 3.2rem; margin-bottom: 14px; }
.hero .lead { font-size: 1.3rem; opacity: 0.95; }

/* Home hero — met achtergrondfoto en quote */
.hero-home {
    background-image:
        linear-gradient(135deg, rgba(30, 70, 104, 0.45) 0%, rgba(44, 95, 141, 0.35) 50%, rgba(30, 70, 104, 0.55) 100%),
        url("images/resilience.jpg");
    background-size: cover;
    background-position: center;
    padding: clamp(60px, 12vw, 140px) 20px;
}
.hero-overlay { display: none; }
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero-home h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.hero-home .lead {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    margin-bottom: 28px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}
.hero-home .hero-sub {
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    max-width: 620px;
    margin: 0 auto 28px;
    opacity: 0.95;
}

.hero-quote {
    max-width: 640px;
    margin: 0 auto 28px;
    padding: 22px 26px;
    background: rgba(255, 255, 255, 0.12);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.hero-quote p {
    font-family: "Raleway", sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-style: italic;
    line-height: 1.5;
    margin: 0 0 10px;
}
.hero-quote cite {
    display: block;
    font-size: 0.9rem;
    font-style: normal;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* Sections */
.section { padding: 70px 0; }
.section-light { background: var(--light); }
.section-soft { background: var(--soft-bg); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-compact { padding: 40px 0 50px; }
.hero-compact { padding: 60px 20px 50px; }
.hero-compact h1 { font-size: 2.4rem; }

/* Featured image band (tussen hero en content) */
.featured-image {
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: center;
    display: block;
}
.featured-quote {
    position: relative;
    margin: 0;
}
.featured-quote figcaption {
    background: var(--soft-bg);
    padding: 24px 20px;
    text-align: center;
    font-style: italic;
    color: var(--primary-dark);
    font-size: 1.05rem;
}

/* Sectie met transparante achtergrondfoto — content blijft leesbaar */
.section-bg-image {
    position: relative;
    padding-top: 35px;
    background-image: linear-gradient(rgba(255,255,255,0.82), rgba(255,255,255,0.82)), url("images/breathing.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}
.section-bg-image .section-title {
    margin-bottom: 30px;
}
.section-bg-image .section-title,
.section-bg-image .featured-caption {
    position: relative;
}
.featured-caption {
    text-align: center;
    font-style: italic;
    color: var(--primary-dark);
    max-width: 700px;
    margin: 40px auto 0;
    font-size: 1.05rem;
}

/* Cards grid — gelijke grootte */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}
.card {
    background: var(--white);
    border: 1px solid #e3ebf2;
    border-radius: 6px;
    padding: 30px;
    box-shadow: 0 2px 6px rgba(44,95,141,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(44,95,141,0.12);
}
.card h3 { margin-top: 0; }
.card p { flex-grow: 1; }
.card .btn { align-self: flex-start; margin-top: 16px; }

/* Profile — foto in gekleurd vlak */
.profile {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 48px;
    margin-bottom: 60px;
    align-items: start;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(44,95,141,0.06);
}
.profile-img {
    background: var(--soft-bg);
    padding: 20px;
    border-radius: 6px;
}
.profile-img img {
    border-radius: 4px;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}
.profile.reverse { grid-template-columns: 1fr 340px; }
.profile.reverse .profile-img { order: 2; }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}
.section-compact .contact-grid { margin-top: 0; }
.contact-item h4 {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.contact-item p { font-size: 1.05rem; }

.socials { display: flex; gap: 16px; margin-top: 8px; }
.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
}
.socials a:hover { background: var(--primary-light); color: var(--white); }

/* Button */
.btn {
    display: inline-block;
    background: var(--primary-light);
    color: var(--white);
    padding: 12px 26px;
    border-radius: 4px;
    font-weight: 700;
    transition: background 0.2s;
    border: 0;
    cursor: pointer;
    touch-action: manipulation;
}
.btn:hover { background: var(--primary); color: var(--white); }

.btn-light {
    background: var(--white);
    color: var(--primary);
}
.btn-light:hover { background: var(--accent); color: var(--primary); }

/* Training detail lijst */
.training-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5em;
}
.training-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    border-bottom: 1px solid #e3ebf2;
}
.training-list li:last-child { border-bottom: 0; }
.training-list li::before {
    content: "›";
    position: absolute;
    left: 6px;
    top: 8px;
    color: var(--primary-light);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: #c9d8e8;
    padding: 40px 0 20px;
    margin-top: 60px;
    text-align: center;
}
.site-footer a { color: var(--accent); }
.site-footer a:hover { color: var(--white); }
.site-footer p { margin: 6px 0; font-size: 0.9rem; }

/* Responsive */

/* Tablet groot (≤ 1024px) — licht compactere hero */
@media (max-width: 1024px) {
    .hero { padding: 80px 20px; }
    .hero-compact { padding: 50px 20px 42px; }
}

/* Tablet (≤ 960px) */
@media (max-width: 960px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet klein / grote telefoon (≤ 860px) */
@media (max-width: 860px) {
    .cards { grid-template-columns: 1fr; }
    .section { padding: 50px 0; }
    .section-title { margin-bottom: 32px; }
    .profile, .profile.reverse {
        grid-template-columns: 260px 1fr;
        gap: 32px;
        padding: 32px 28px;
    }
    .profile.reverse { grid-template-columns: 1fr 260px; }
    /* Tweekolomsgrid op trainingen.html — inline gezet — terug naar één kolom */
    .container > div[style*="grid-template-columns:1fr 1fr"],
    .container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* Mobiel (≤ 768px) */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.25rem; }
    .hero { padding: 60px 20px; }
    .hero h1 { font-size: 2.2rem; }
    .hero .lead { font-size: 1.15rem; }
    .hero-compact { padding: 42px 20px 34px; }
    .hero-compact h1 { font-size: 2rem; }
    .hero-home { padding: 70px 18px; }
    .hero-quote { padding: 18px 20px; }
    .section-compact { padding: 28px 0 36px; }
    .site-title { font-size: 1.15rem; }
    .nav-toggle { display: block; }
    .header-inner { padding: 14px 0; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid #e3ebf2;
        padding: 12px 20px;
        box-shadow: 0 4px 12px rgba(44,95,141,0.08);
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 12px; }
    .main-nav a { display: block; padding: 10px 0; }
    .profile, .profile.reverse {
        grid-template-columns: 1fr;
        padding: 28px 22px;
        gap: 24px;
    }
    .profile.reverse .profile-img { order: 0; }
    .profile-img { max-width: 320px; margin: 0 auto; }
    .featured-image { height: 220px; }
    .site-footer { padding: 30px 0 16px; margin-top: 40px; }
}

/* Kleine telefoon (≤ 480px) */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section { padding: 40px 0; }
    .section-compact { padding: 22px 0 28px; }
    .card { padding: 22px; }
    .hero-home { padding: 56px 16px; }
    .hero-compact { padding: 34px 16px 26px; }
    .hero-compact h1 { font-size: 1.75rem; }
    .hero-quote p { font-size: 1rem; }
    .btn { padding: 11px 22px; font-size: 0.95rem; }
    .contact-grid { gap: 22px; }
    .featured-image { height: 160px; }
}

/* Toegankelijkheid: minder beweging */
@media (prefers-reduced-motion: reduce) {
    .card { transition: none; }
    .card:hover { transform: none; }
}
