/* ---
   Gravel Route Database - ALGEMENE GLOBALE Stylesheet
   --- */
:root {
    --color-primary: #008080;
    --color-secondary: #9B6B35;
    --color-accent: #FFD800;
    --color-surface: #FFFFFF;
    --color-bg: #f0f2f5;
    --color-text: #212529;
    --color-text-light: #FFFFFF;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); background-color: var(--color-bg); color: var(--color-text); line-height: 1.7; }
body.nav-open { overflow: hidden; }

/* --- Header & Navigatie --- */
.main-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 1rem 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
    transition: all 0.4s ease;
}
.main-header.scrolled {
    background-color: var(--color-secondary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    background-image: none;
}
.header-content {
    width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo-container img {
    height: 140px; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5));
    transition: height 0.4s ease;
}
.main-header.scrolled .logo-container img {
    height: 60px; filter: none;
}
.main-nav { display: flex; }
.main-nav a {
    color: var(--color-text-light); margin-left: 30px; font-size: 1.1rem;
    font-weight: 600; text-decoration: none;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5); transition: color 0.3s ease;
}
.main-header.scrolled .main-nav a { text-shadow: none; }
.main-header.scrolled .main-nav a:hover { color: var(--color-accent); }
.hamburger-menu {
    display: none; background: transparent; border: none; cursor: pointer;
    width: 30px; height: 24px; z-index: 1100; position: relative;
}
.hamburger-menu span {
    display: block; width: 100%; height: 3px; background-color: var(--color-text-light);
    border-radius: 3px; position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}
.main-header.scrolled .hamburger-menu span { background-color: var(--color-text-light); }
.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu span:nth-child(3) { bottom: 0; }
.nav-open .hamburger-menu span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-open .hamburger-menu span:nth-child(2) { opacity: 0; }
.nav-open .hamburger-menu span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 992px) {
    .main-nav {
        position: fixed; top: 0; left: -100%; width: 80%; max-width: 400px; height: 100vh;
        background-color: rgba(43, 43, 43, 0.95); backdrop-filter: blur(10px);
        box-shadow: 5px 0 15px rgba(0,0,0,0.2); flex-direction: column;
        justify-content: center; align-items: center;
        transition: left 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    }
    .main-nav.is-open { left: 0; }
    .main-nav a { margin: 20px 0; font-size: 1.8rem; text-shadow: none; color: var(--color-text-light); }
    .main-nav a:hover { color: var(--color-accent); }
    .hamburger-menu { display: block; }
}

/* --- Algemene Pagina Structuur --- */
.main-content { width: 100%; }
.main-footer {
    background-color: #3d2d1d; color: #ccc;
    padding: 3rem 1rem; text-align: center;
}
.footer-content { max-width: 600px; margin: 0 auto; }
.footer-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    margin-bottom: 1rem; border: 3px solid #FFD800;
}
.footer-name { font-size: 1.2rem; font-weight: bold; color: #fff; margin: 0 0 0.5rem 0; }
.footer-bio, .footer-credits, .footer-links, .footer-copyright { margin: 0.8rem 0; line-height: 1.6; }
.main-footer a { color: #FFD800; text-decoration: none; font-weight: 600; }
.main-footer a:hover { text-decoration: underline; color: #fff; }
.footer-copyright { margin-top: 2rem; font-size: 0.9rem; color: #aaa; }

/* --- Algemene Componenten --- */
.hero-header {
    height: 100vh; position: relative; display: flex;
    justify-content: center; align-items: center;
    text-align: center; color: var(--color-text-light);
    overflow: hidden;
}
.hero-image {
    position: absolute; top: 0; left: 0; width: 100%;
    height: 100%; object-fit: cover; z-index: 1;
}
.hero-header::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.5) 100%);
    z-index: 2;
}
.hero-title {
    position: relative; z-index: 3; text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    padding: 0 2rem; transform: translateY(-50px);
}
.hero-title h1 { font-size: clamp(2.5rem, 8vw, 5rem); color: var(--color-text-light); margin-bottom: 0.5rem; }
.hero-title p { font-size: clamp(1rem, 3vw, 1.5rem); font-style: italic; opacity: 0.9; }
.hero-title a { color: var(--color-text-light); text-decoration: underline; transition: color 0.3s ease; }
.hero-title a:hover { color: var(--color-accent); }

.btn-3d {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 8px; font-weight: bold;
    font-size: 1.1rem; text-decoration: none; border: none; cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    background-color: var(--color-accent); color: var(--color-text);
    box-shadow: 0 4px #c9ae00;
}
.btn-3d:hover {
    background-color: #ffe95c;
    transform: scale(0.98);
    box-shadow: 0 3px #c9ae00;
}
.btn-3d:active {
    transform: scale(0.96);
    box-shadow: 0 1px #c9ae00;
}

/* --- Algemene Animaties & Effecten --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Stijl voor Formulier Meldingen (Bevestiging na beoordeling) --- */
.form-message-success {
    background-color: #28a745; /* Groene achtergrond */
    color: #ffffff; /* Witte tekst */
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    opacity: 1;
    transform: translateY(0);
}
.form-message-success.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

/* --- Scroll-to-Top Knop --- */
.scroll-top-btn {
    position: fixed; bottom: 125px; right: 25px;
    width: 50px; height: 50px;
    background-color: var(--color-accent);
    border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 999; cursor: pointer; display: flex;
    justify-content: center; align-items: center;
    opacity: 0; visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
}
.scroll-top-btn.is-visible {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.scroll-top-btn:hover {
    background-color: #ffe95c;
    transform: scale(1.05);
}
.scroll-top-btn img {
    width: 28px;
    height: auto;
}

/* Algemene popup styling */
#cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: #ffffff; /* wit */
    color: #000000; /* zwarte tekst */
    padding: 25px 20px; /* grotere hoogte */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 9999;
    font-family: Arial, sans-serif;
    display: none;
    text-align: center;
    line-height: 1.6; /* meer verticale ruimte tussen regels */
}

/* Knoppen styling */
#cookie-popup button {
    background-color: #008080; /* teal */
    color: #ffffff; /* witte tekst */
    border: none;
    padding: 12px 20px; /* grotere knoppen */
    margin: 15px 8px 0 8px; /* verticale ruimte tussen knoppen en tekst */
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s, transform 0.1s;
}

/* Hover effect */
#cookie-popup button:hover {
    background-color: #006666; /* donkerdere afgeleide */
}

/* Ingedrukt effect */
#cookie-popup button:active {
    transform: scale(0.95);
}

/* Link styling */
#cookie-popup a {
    color: #008080;
    text-decoration: underline;
    margin: 0 5px;
    display: inline-block; /* meer verticale ruimte */
    margin-top: 10px;
    margin-bottom: 10px;
}