/* ----------------------------------------
   style.css — Complete stylesheet
   - Gebruik Montserrat (import)
   - Globale variabelen, header, nav, sections
   - Downloads-pagina styles
   ---------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');

:root{
    --red: #DB0200;
    --black: #000000;
    --muted: #666666;
    --bg-light: #F9F9F9;
    --header-height: 80px;
}

/* Reset / basis */
* { box-sizing: border-box; }
html, body { height: 100%; }

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--black);
    background-color: #FFFFFF;
    /* reserveer ruimte voor vaste header */
    padding-top: var(--header-height);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

/* ---------- Header / Navigation ---------- */
header {
    background-color: var(--red);
    color: #fff;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
}

.logo h1 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}

.logo h3 {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 300;
    color: rgba(255,255,255,0.95);
    line-height: 1;
}

/* Primary nav */
nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

nav a:hover,
nav a:focus {
    background: rgba(255,255,255,0.08);
    outline: none;
}

nav a.active {
    background: rgba(255,255,255,0.12);
}

/* Mobile menu toggle (hamburger) */
.menu-toggle {
    display: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.menu-toggle div {
    width: 28px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    border-radius: 2px;
}

/* ---------- Responsive rules ---------- */
@media (max-width: 768px) {

    /* show hamburger, hide nav */
    .menu-toggle { display: flex; }
    nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--red);
        flex-direction: column;
        padding: 6px 0;
        gap: 0;
        z-index: 999;
    }
    /* toggled class from JS */
    nav.nav-active { display: flex; }
    nav a { display: block; padding: 12px 18px; border-radius: 0; }

    /* reduce logo text on small screens to save space */
    .logo h1, .logo h3 { display: none; }
    .logo img { height: 42px; }

    /* smaller header height on mobile */
    :root { --header-height: 64px; }
}

/* ---------- Main / Sections (algemeen) ---------- */
main {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* herbruikbare sectie layout (index gebruikt achtergrond-images inline) */
.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 20px; /* extra binnen sectie bovenkant (header is al outside) */
}

.section-content {
    background: rgba(0, 0, 0, 0.6);
    padding: 22px;
    border-radius: 10px;
    max-width: 1000px;
}

.section img {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 14px;
}

/* Buttons */
.button,
.download-btn {
    background-color: var(--red);
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.button:hover,
.download-btn:hover {
    background-color: #b40100;
}

/* ---------- Services/cards ---------- */
.services {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.service {
    background: rgba(255,255,255,0.95);
    color: #000;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    margin: 10px 0;
    box-shadow: 0px 2px 12px rgba(0,0,0,0.06);
    border-radius: 10px;
    text-align: center;
}

/* ---------- Footer ---------- */
footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* ---------- Downloads-pagina specifieke styling ---------- */
main.downloads-page {
    max-width: 920px;
    margin: calc(var(--header-height) + 28px) auto 60px;
    padding: 36px;
    background-color: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

main.downloads-page h2 {
    text-align: center;
    color: var(--red);
    font-size: 2rem;
    margin: 0 0 10px;
}

main.downloads-page .intro {
    text-align: center;
    color: #333;
    margin-bottom: 28px;
    font-size: 1.05rem;
}

/* per-download grouping */
.download-section {
    margin-bottom: 40px;
}

.category-title {
    color: var(--red);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.program-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.program-header img {
    height: 50px;
    width: auto;
    display: block;
}

.download-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 12px;
}

.download-card h4 {
    color: #000;
    margin: 0 0 8px;
}

.download-card p {
    color: #333;
    margin: 0 0 8px;
}

.download-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.download-card li {
    margin: 8px 0;
}

.download-card a {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
}

.download-card a:hover {
    text-decoration: underline;
}

/* compacte variant van de header in content (voor oude markup) */
.distribuflex-header,
.program-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.distribuflex-header img {
    height: 50px;
    width: auto;
}

/* ---------- Utility / kleine helpers ---------- */
hr {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin: 18px 0;
}

p { line-height: 1.7; color: #333; margin: 0 0 12px 0; }

.section-content p {
    color: #fff;
}

ul { padding-left: 0; margin: 0; }

a { color: var(--red); }

@media (max-width: 480px) {
    main.downloads-page {
        margin: calc(var(--header-height) + 12px) 12px 40px;
        padding: 20px;
    }
    .download-card { padding: 14px; }
    .logo img { height: 40px; }
}
