/* =========================
   Basis
   ========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #ffffff;
    background-color: #000000;
}

/* Achtergrond alleen op de home-page */
body.home-page {
    background: url("images/background/hero-background.jpg") center center / cover no-repeat fixed;
}

/* Donkere overlay zodat tekst leesbaar is */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

/* =========================
   Header + navigatie (desktop)
   ========================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.logo a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* Hamburger-knop: standaard VERBORGEN op grote schermen */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #888888;   /* grijs kader */
    background: transparent;
    cursor: pointer;
    gap: 5px;
}

/* Lijnen in de hamburger */
.nav-toggle-line {
    width: 22px;
    height: 2px;
    background-color: #ffffff;   /* witte streepjes */
    border-radius: 1px;
}

/* Hoofdmenu (desktop) */
.main-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav li {
    position: relative;
}

/* Hoofditems */
.main-nav a,
.submenu-toggle {
    color: #ffffff;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.95rem;
    border: 1px solid transparent;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Submenu knop (Photos / Painting) als button */
.submenu-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
}

/* Hover/actieve stijl */
.main-nav a:hover,
.submenu-toggle:hover,
.main-nav a:focus-visible,
.submenu-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Submenu: standaard verborgen (desktop) */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(0, 0, 0, 0.96);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    padding: 8px 0;
    display: none !important;
    z-index: 20;
}

/* Alleen tonen als li.has-submenu.open is (via JS) */
.has-submenu.open > .submenu {
    display: block !important;
}

.submenu li a {
    display: block;
    width: 100%;
    padding: 8px 16px;
    white-space: nowrap;
    font-size: 0.95rem;
}

.submenu li a:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* =========================
   Algemene content-layout
   ========================= */
main {
    position: relative;
    z-index: 1;
}

/* Voor home-page */
.content {
    position: relative;
    z-index: 1;
    padding: 80px 20px 40px; /* ruimte voor vaste header */
}

/* Voor galerijpagina's (als je class="gallery-page" gebruikt) */
.gallery-page {
    position: relative;
    z-index: 1;
    padding: 80px 20px 40px;
}

/* Home hero-tekst */
.hero-text {
    margin-top: 60px;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.55);
    padding: 20px 25px;
    border-radius: 8px;
}

.hero-text h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 1.1rem;
}

/* Buttons op de home */
.hero-links {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    color: #000000;
    background: #ffffff;
    font-size: 0.95rem;
    border: 1px solid #ffffff;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-button.secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.hero-button:hover {
    background: #dddddd;
    color: #000000;
}

/* Simpele layout voor foto-/schilderijpagina's */
.gallery-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.gallery-intro {
    margin-bottom: 20px;
    font-size: 1rem;
}

.page-title {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.page-intro {
    margin-bottom: 20px;
    font-size: 1rem;
}

/* =========================
   Foto-pagina: hoofdbeeld + filmstrip (thumbs)
   ========================= */
.main-photo-wrapper {
    margin-bottom: 16px;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.65);
    padding: 10px;
    border-radius: 2px;
}

.main-photo-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.thumb-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    max-width: 1800px;
}

.thumb-item {
    flex: 0 0 auto;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
}

.thumb-item img {
    display: block;
    width: 120px;
    height: auto;
}

.thumb-item.active {
    border-color: #ffffff;
}

/* =========================
   Mobiel (max 768px) - HAMBURGERMENU
   ========================= */
@media (max-width: 768px) {

    /* De header blijft permanent bovenaan staan tijdens scrollen. */
    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: #000000;
    }

    /* Toon de hamburger op klein scherm. */
    .nav-toggle {
        display: flex;
        background: #000000;
        border: 1px solid #ffffff;
    }

    .nav-toggle-line {
        background-color: #ffffff;
    }

    /* Uitklapmenu onder de vaste header. Standaard volledig verborgen. */
    .main-nav {
        display: none !important;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        height: auto;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        background: #ffffff;
        color: #000000;
        justify-content: flex-start;
        align-items: stretch;
        flex-direction: column;
        z-index: 9998;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    }

    /* Pas na klik wordt het mobiele menu zichtbaar. */
    .main-nav.open {
        display: flex !important;
    }

    .main-nav ul {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        background: #ffffff;
    }

    .main-nav li {
        width: 100%;
    }

    /* Elk menu-item krijgt zwarte tekst, witte achtergrond en 1px zwarte rand. */
    .main-nav a,
    .submenu-toggle {
        display: block;
        width: 100%;
        padding: 14px 16px;
        text-align: left;
        color: #000000;
        background: #ffffff;
        border: 1px solid #000000;
        border-radius: 0;
        font-size: 1rem;
        text-decoration: none;
    }

    .main-nav a:hover,
    .main-nav a:focus-visible,
    .submenu-toggle:hover,
    .submenu-toggle:focus-visible {
        color: #000000;
        background: #f2f2f2;
        border-color: #000000;
    }

    /* Submenu onder hoofditem, ook wit met zwarte tekst. */
    .submenu {
        position: static;
        min-width: 100%;
        background: #ffffff;
        margin-top: 0;
        padding: 0;
        padding-left: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .has-submenu.open > .submenu {
        display: block !important;
    }

    .submenu li a {
        padding: 12px 16px 12px 32px;
        font-size: 0.95rem;
        color: #000000;
        background: #ffffff;
        border: 1px solid #000000;
        white-space: normal;
    }

    .submenu li a:hover,
    .submenu li a:focus-visible {
        background: #f2f2f2;
        color: #000000;
    }

    .content,
    .gallery-page {
        padding: 80px 12px 40px;
    }

    .hero-text {
        margin-top: 40px;
    }

    .thumb-strip {
        max-width: 100%;
    }
}

/* =========================
   Iets bredere tablets (optioneel)
   ========================= */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-text {
        margin-top: 40px;
    }
}