/* ==========================*/
/* EduDisplay Starter CSS    */
/* Update: 2026-04-18       */
/* ==========================*/
/* =============================================================== */
/* BASE STYLESHEET (PART A)                                       */
/* --------------------------------------------------------------- */
/* Gebruik van comment-blokjes:                                   */
/* [B01], [B02], ... = basissecties/fundament                     */
/* --------------------------------------------------------------- */
/* Inhoudsopgave base:                                             */
/* [B01] Variables                                                 */
/* [B02] Reset & Base Styles                                       */
/* [B03] Layout Components                                         */
/* [B04] Header & Navigation                                       */
/* [B05] Split Point (einde basisdeel)                            */
/* [B06] Responsive Global/Header/Nav                              */
/* =============================================================== */
/* [B01] ===== VARIABLES ===== */
:root {
    --primary-color: #FF5722;
    --primary-color-light: #fa7045;
    --secondary-color: #3CBCB4;
    --accent-color: #FF9800;
    --dark-color: #1A2530;
    --darker-color: #111722;
    --darkest-color: #0d1219;
    --light-color: #f5f5f5;
    --text-color: #e0e0e0;
    --dark-text-color: #333;
    --card-bg-color: #232d3d;
    --section-bg-color: #1a2435;
    --border-radius: 5px;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #2A9D8F);
    --gradient-dark: linear-gradient(135deg, var(--dark-color), #2C3E50);
    /* Totale duur van één loop (Stap 1 → 2 → 3); keyframe-% zijn % van deze tijd */
    --action-cycle-duration: 15s;
    --narrowcasting-cycle-duration: 22s;
    /* STARTER_WACHTWOORDRESET_UIT — heractiveer bij launch */
    /* --wachtwoordreset-cycle-duration: 20s; */
    /* Image paths */
    /* for local: /img/rooster_01.png */
    /* for remote: /static/dist/images/landing/rooster_01.png */
    --hero-bg-image: url('/static/dist/images/landing/rooster_01.png');
    /* Spacing variables */
    --spacing-xs: 0.25em;
    --spacing-sm: 0.5em;
    --spacing-md: 1em;
    --spacing-lg: 1.5em;
    --spacing-xl: 2em;
    /* Font sizes */
    --font-xs: 0.7em;
    --font-sm: 0.85em;
    --font-md: 1em;
    --font-lg: 1.2em;
    --font-xl: 1.4em;
    --font-xxl: 1.8em;
}
/* ========================*/
/* [B02] ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
ul {
    list-style: none;
}
html {
    scroll-behavior: smooth;
    min-width: 320px;
    overflow-x: auto;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--darker-color);
    background-image: linear-gradient(to bottom, var(--darkest-color), var(--darker-color));
    background-attachment: fixed;
}
/* STARTER_LANDING — Sticky footer bij weinig content (body.starter-site in starter_base.html) */
body.starter-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.starter-site main {
    flex: 1 0 auto; /* Laat main uitrekken zodat footer naar beneden duwt */
}
body.starter-site footer {
    margin-top: auto; /* Altijd onderaan */
}
img {
    max-width: 100%;
    height: auto;
}
a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}
a:hover {
    color: var(--secondary-color);
}
/* Reset h1 so class-based titles (.section-title, .hero-title) control size and spacing */
h1 {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}
h3 {
    color: var(--text-color);
    font-size: 1.05em;
    margin: 1em 0 1em 0;
    font-weight: 600;
}
h2 {
    color: var(--text-color);
    font-size: 1.05em;
    margin: 1em 0 1em 0;
}
/* [B03] ===== LAYOUT COMPONENTS ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    min-width: 320px;
}
.hero+.section {
    padding-top: calc(var(--spacing-xl) * 0.35);
}
.section {
    padding: calc(var(--spacing-xl) * 0.35) 0 calc(var(--spacing-xl) * 0.85);
    scroll-margin-top: 120px; /* Increased to match JavaScript offset for proper alignment with section titles */
}
/* =========================================================================
   STARTER_LANDING — body.starter-site (templates/pages/starter_base.html)
   Zoek in dit bestand op "STARTER_LANDING" of "starter-site" voor landing-specifieke CSS.
   Doel: subpagina’s zonder hero (Oplossing, FAQ, Contact, galerij) krijgen genoeg ruimte
   onder de vaste header vóór de eerste sectietitel.
   Responsive: zelfde selector in @media (max-width: 768px) verderop.
   ========================================================================= */
body.starter-site main > .section:first-child {
    padding-top: calc(4.8rem + var(--spacing-xl));
}
/* ----- EINDE STARTER_LANDING (eerste-sectie padding, desktop) ----- */
.section-title {
    text-align: center;
    margin-top: 1em;
    margin-bottom: 30px;
    color: var(--light-color);
    position: relative;
    font-size: 2.2rem;
    font-weight: 650;
    word-wrap: break-word;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 15px auto 0;
}
/* Functies-sectie: titel direct boven product-grid */
#product.section {
    padding-top: calc(var(--spacing-xl) * 0.9);
}
.sub-section {
    text-align: center;
    margin-top: 1.5em;
    margin-bottom: 40px;
    color: var(--light-color);
    position: relative;
    font-size: 1.5rem;
    word-wrap: break-word;
    /* Altijd zichtbaar - geen fade-in animatie om ontbrekende titels te voorkomen */
    opacity: 1 !important;
    transform: none !important;
}
.sub-section::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 15px auto 0;
}
/* [B04] ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 18, 25, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 0.75rem 0 0.55rem;
    min-width: 320px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
header.header-hidden {
    transform: translateY(-100%);
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 320px;
}
.logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.logo-img {
    height: 2.6em;
    margin-right: 10px;
}
.logo .site-title {
    display: inline-block;
    font-size: 2.0rem;
    line-height: 1.2;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    margin: 0;
    padding: 0;
}
nav {
    margin-left: auto;
}
nav ul {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
}
/* Zelfde “hover-bridge” voor alle items: voorkomt verticale verspringing t.o.v. submenu-li’s */
nav > ul > li {
    display: flex;
    align-items: center;
    margin: 0;
    padding-bottom: 10px;
    margin-bottom: -10px;
}
nav ul li a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    position: relative;
    padding: .3em 0;
    font-size: 1.0625em;
    line-height: 1.25;
    transition: color 0.2s ease;
    white-space: nowrap;
}
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background: linear-gradient(90deg, var(--secondary-color) 0%, rgba(60, 188, 180, 0.8) 100%);
    transition: width 0.2s ease-out;
}
nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}
nav ul li a:hover {
    color: var(--secondary-color);
    font-weight: 600;
}
nav ul li a.active {
    color: var(--secondary-color);
    font-weight: 700;
}
/* Producten submenu (desktop hover) */
.nav-item-products {
    position: relative;
}
/* Rij met hoofdlink + mobiele submenu-knop (knop alleen zichtbaar in @media max-width 900px) */
.nav-mobile-row {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35em;
}
.nav-submenu-toggle {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    min-height: 2.5rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.nav-submenu-toggle:hover,
.nav-submenu-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(60, 188, 180, 0.45);
    outline: none;
}
.nav-submenu-chevron {
    display: block;
    width: 0.45em;
    height: 0.45em;
    margin: 0 auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.22s ease;
}
.nav-item-products.nav-submenu-open .nav-submenu-chevron {
    transform: rotate(-135deg);
    margin-top: 0.2em;
}
.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 14.5em;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.45em 0;
    background: rgba(20, 25, 35, 0.98);
    border: 1px solid rgba(60, 188, 180, 0.22);
    border-radius: 6px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
    z-index: 1202;
}
.nav-submenu li {
    margin: 0;
}
.nav-submenu a {
    display: block;
    padding: 0.5em 0.9em;
    font-size: 0.93em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}
.nav-submenu a::after {
    display: none;
}
.nav-submenu a:hover,
.nav-submenu a:focus-visible,
.nav-submenu a.active {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.06);
}
.nav-submenu a.active {
    font-weight: 700;
}
/* Desktop: subitems links uitgelijnd (niet gecentreerd) met duidelijke inset */
@media (min-width: 901px) {
    .nav-submenu {
        text-align: left;
        align-items: stretch;
    }
    .nav-submenu li {
        text-align: left;
    }
    .nav-submenu a {
        text-align: left;
        padding: 0.5em 0.95em 0.5em 1.15em;
    }
}
.nav-item-products:hover .nav-submenu,
.nav-item-products:focus-within .nav-submenu {
    display: flex;
}
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
}
.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    transition: var(--transition);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    opacity: 0.98;
}
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
.menu-toggle:hover,
.menu-toggle:focus-visible,
.menu-toggle:active {
    border-radius: 8px;
    transition: background 0.2s;
}
/* Overlay achter het mobiele menu; klik sluit het menu */
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1198;
    background: transparent;
    pointer-events: none;
    transition: background 0.3s ease;
}
.menu-overlay.active {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.4);
}
/* Inloggen-knop in navigatie */
nav > ul > li:last-child > a {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.1) 0%, rgba(255, 87, 34, 0.05) 100%);
    color: var(--text-color) !important;
    border: 1px solid #b42f17;
    border-radius: 5px;
    padding: 5px 14px;
    font-weight: 600;
    margin-left: 18px;
    box-shadow: none;
    transition: all 0.25s cubic-bezier(.4, 2, .6, 1);
    text-decoration: none !important;
    position: relative;
    font-size: .95em;
}
nav > ul > li:last-child > a:hover,
nav > ul > li:last-child > a:focus-visible {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.2) 0%, rgba(255, 87, 34, 0.1) 100%);
    color: var(--primary-color) !important;
    text-decoration: none;
    box-shadow: none;
}
nav > ul > li:last-child > a::after {
    display: none !important;
}
.inloggen-text {
    display: inline;
}

/* [B05] ===== SPLIT POINT: einde base (tot en met header & navigation) ===== */

/* [B06] ===== RESPONSIVE GLOBAL/HEADER/NAV ===== */
@media (max-width: 992px) {
    :root {
        --spacing-md: 0.8em;
        --spacing-lg: 1.2em;
        --spacing-xl: 1.8em;
    }
    .container {
        padding: 0 1.5em;
    }
}

@media (max-width: 900px) {
    nav ul {
        display: none;
    }
    .menu-toggle {
        display: flex;
        position: absolute;
        right: 1.5em;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1201;
    }
    .menu-toggle span {
        background: transparent;
    }
    .nav-submenu-toggle {
        display: inline-flex;
        border-color: rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.03);
        justify-self: start;
    }
    .nav-submenu-toggle:hover,
    .nav-submenu-toggle:focus-visible {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.24);
    }
    .nav-mobile-row {
        display: grid;
        grid-template-columns: 1fr 2.5rem;
        align-items: center;
        column-gap: 0.5em;
        width: 100%;
        max-width: 18rem;
    }
    .nav-mobile-row > a {
        text-align: left;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-md: 0.7em;
        --spacing-lg: 1em;
        --spacing-xl: 1.5em;
        --font-lg: 1.1em;
        --font-xl: 1.2em;
    }
    .container {
        width: 100%;
        padding: 0 var(--spacing-md);
    }
    header {
        padding: 0.62rem 0 0.48rem;
    }
    .logo .site-title {
        font-size: 1.5rem;
    }
    nav ul {
        gap: var(--spacing-sm);
    }
    nav ul li a {
        font-size: .9em;
        padding: 3px 0;
    }
    .nav-submenu {
        display: none !important;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-md: 0.6em;
        --spacing-lg: 0.8em;
        --spacing-xl: 1.2em;
        --font-lg: 1rem;
        --font-xl: 1.1rem;
    }
    .container {
        width: 100%;
        padding: 0 !important;
    }
    header .container {
        padding: 0 .5em;
    }
    nav ul {
        align-items: center;
    }
    .logo {
        margin-left: 10px;
    }
}

@media (max-width: 320px) {
    body {
        min-width: 100%;
        overflow-x: hidden;
    }
    .container {
        width: 100%;
        min-width: 100%;
        padding: 0 var(--spacing-xs);
    }
    header .container {
        padding: 0 var(--spacing-xs);
    }
    nav ul {
        gap: 1px;
    }
    nav ul li a {
        font-size: 0.8125em;
        padding: 3px 1px;
        letter-spacing: -0.3px;
    }
}
