/* =========================================
   1. VARIABELEN & BASIS INSTELLINGEN
   ========================================= */
:root {
    --primary: #eb5e28;    /* M+S Oranje */
    --dark: #121212;       /* Diepzwart */
    --grey-card: #1a1a1a;  /* Kaart achtergrond */
    --grey-table: rgba(37, 37, 37, 0.6); /* Transparant voor glas-effect */
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--dark);
    color: var(--white);
    overflow: hidden;
    line-height: 1.6;
}

/* =========================================
   2. LANGUAGE SWITCHER (Fixed top right)
   ========================================= */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 8px;
    background: rgba(0,0,0,0.7);
    padding: 8px;
    border-radius: 30px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow);
}

.lang-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--primary);
    box-shadow: 0 0 10px rgba(235, 94, 40, 0.4);
}

.lang-btn:hover:not(.active) {
    background: rgba(255,255,255,0.1);
}

/* =========================================
   3. SCROLL SNAP STRUCTUUR
   ========================================= */
.scroll-container {
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    /* Subtiele mesh gradient achtergrond voor de hele site */
    background: radial-gradient(circle at 20% 30%, #1a1a1a 0%, #0a0a0a 100%);
}

.full-page {
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    padding: 2rem;
    text-align: center;
    position: relative;
}

/* =========================================
   4. HERO SECTIE (Met Vignette)
   ========================================= */
.hero {
    background:
            linear-gradient(rgba(0,0,0,0.2), rgba(18,18,18,1)),
            url('images/msbandencentrale.png') center/cover no-repeat;
}

.logo-main {
    font-size: clamp(2.5rem, 10vw, 5.5rem);
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.logo-main span {
    color: var(--primary);
}

.hero-slogan {
    font-size: clamp(1rem, 4vw, 1.8rem);
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.subtle-num { color: var(--primary); font-weight: 700; }

/* =========================================
   5. VESTIGINGEN (MODERN CARDS)
   ========================================= */
.locations-bg {
    background-color: #0f0f0f;
    /* Subtiel industrieel patroon */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23eb5e28' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.section-title {
    margin-bottom: 2.5rem;
    font-size: clamp(1.8rem, 6vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
    max-width: 1300px;
    justify-content: center;
}

.location-card {
    flex: 1 1 calc(25% - 1.5rem);
    min-width: 280px;
    height: 50vh;
    background-size: cover;
    background-position: center; /* Focus op rechterkant van foto */
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.location-card:hover {
    transform: scale(1.03) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.status-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 20%, rgba(0,0,0,0.95));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.card-info h3 { font-size: 1.8rem; margin-bottom: 0.3rem; letter-spacing: 1px; }
.card-info p { font-size: 1rem; opacity: 0.7; margin-bottom: 1.2rem; }

.card-buttons {
    display: flex;
    gap: 10px;
}

.btn-card {
    flex: 1;
    display: inline-block;
    padding: 12px 5px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: all 0.3s;
    text-align: center;
    border: none;
}

.btn-maps {
    background: var(--white);
    color: var(--dark);
}

.btn-card:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* =========================================
   6. PRIJSLIJST (GLASSMORPHISM)
   ========================================= */
.prices-bg { background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%); }

.price-container {
    width: 100%;
    max-width: 850px;
    background: var(--grey-table);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.price-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 12px 28px;
    background: transparent;
    border: 2px solid var(--primary);
    color: white;
    cursor: pointer;
    font-weight: bold;
    border-radius: 50px;
    transition: 0.3s;
    text-transform: uppercase;
}

.tab-btn.active {
    background: var(--primary);
    box-shadow: 0 5px 15px rgba(235, 94, 40, 0.3);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.5s ease; }

.price-table {
    width: 100%;
    min-width: 400px;
    border-collapse: collapse;
}

.price-table th, .price-table td {
    padding: 1.2rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.price-table th {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.price-note {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.5;
    font-style: italic;
}

/* =========================================
   7. FOOTER SECTIE
   ========================================= */
.footer-section {
    background: #0a0a0a;
    border-top: 1px solid rgba(235, 94, 40, 0.2);
}

.company-details { margin: 2rem 0; }
.company-details p { margin-bottom: 0.5rem; font-size: 1rem; opacity: 0.8; }

.footer-email a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.footer-email a:hover { text-decoration: underline; }

.site-footer {
    margin-top: 2rem;
    font-size: 0.75rem;
    opacity: 0.3;
    letter-spacing: 1px;
}

/* =========================================
   8. ANIMATIES & INDICATORS
   ========================================= */
.scroll-wrapper { margin-top: 3rem; }
.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.6;
    animation: pulse 2s infinite;
}

.arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    margin: 1rem auto;
    animation: bounce 2s infinite;
}

     /* Styling voor de Merken Sectie */
 .brands-section {
     background: #161616;
     padding: 60px 20px;
 }
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
    justify-items: center;
}
.brand-item {
    width: 120px;
    height: auto;
    opacity: 0.6;
    filter: grayscale(1) invert(1); /* Zorgt dat zwarte logo's wit worden voor je donkere thema */
    transition: all 0.4s ease;
}
.brand-item:hover {
    opacity: 1;
    filter: grayscale(0) invert(0); /* Toont originele kleuren bij hover */
    transform: scale(1.1);
}
.camionetten-box {
    margin-top: 25px;
    padding: 15px;
    border: 2px dashed var(--primary);
    border-radius: 12px;
    background: rgba(235, 94, 40, 0.05);
    color: var(--white);
    font-weight: 800;
    text-transform: uppercase;
}
/* Tabel scroll fix voor mobiel */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* =========================================
   10. MERKEN & PRIJSLIJST EXTRA'S
   ========================================= */

/* De Merken Sectie styling */
.brands-section {
    background: #111111; /* Iets donkerder dan de rest voor contrast */
    padding: 60px 20px;
    width: 100%;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
    justify-items: center;
}

.brand-item {
    width: 120px;
    height: auto;
    opacity: 0.6;
    /* Invert zorgt dat zwarte logo's wit worden op je donkere achtergrond */
    filter: grayscale(1) invert(1) brightness(1.5);
    transition: all 0.4s ease;
}

.brand-item:hover {
    opacity: 1;
    filter: grayscale(0) invert(0) brightness(1); /* Terug naar originele kleur */
    transform: scale(1.1);
}

/* De Camionetten Box binnen de prijslijst */
.camionetten-box {
    margin-top: 25px;
    padding: 15px;
    border: 2px dashed var(--primary);
    border-radius: 12px;
    background: rgba(235, 94, 40, 0.05);
    color: var(--white);
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
    animation: fadeIn 0.8s ease;
}

/* Extra responsive fix voor de tabellen op mobiel */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 10px;
}

.minimal-info-section { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; }
.minimal-row { font-size: 0.9rem; margin-bottom: 5px; opacity: 0.8; }
.orange-text { color: var(--primary); font-weight: bold; opacity: 1; }

@media (max-width: 600px) {
    .minimal-row {
        font-size: 0.8rem;
    }
}

/* Kleine aanpassing voor de prijslijst container op kleine schermen */
@media (max-width: 650px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 logo's naast elkaar op mobiel */
        gap: 20px;
    }
    .brand-item {
        width: 100px;
    }
}


@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(10px) rotate(45deg); }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


/* =========================================
   11. INTERACTIEVE UPGRADES (TOEVOEGINGEN)
   ========================================= */

/* Subtiele glans-animatie voor de actieve tab en knoppen */
.lang-btn.active, .tab-btn.active, .btn-card {
    position: relative;
    overflow: hidden;
}

.lang-btn.active::after, .tab-btn.active::after, .btn-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    /* Verander 'dashed' naar 'ease' of verwijder het */
    transition: all 0.6s ease;
    animation: shine 4s infinite linear;
}

@keyframes shine {
    0% { left: -60%; }
    20% { left: 120%; }
    100% { left: 120%; }
}

/* Interactie voor de Locatie Kaarten */
.location-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--primary);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.location-card:hover::before {
    opacity: 0.5;
}

/* Link-hover effect voor de e-mail in de footer */
.footer-email a {
    position: relative;
    display: inline-block;
}

.footer-email a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.footer-email a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Klik-effect voor alle knoppen (Active state) */
.btn-card:active, .tab-btn:active, .lang-btn:active {
    transform: scale(0.95);
    filter: brightness(0.9);
}

/* Scroll-snap verbetering: Smooth focus */
.full-page {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Extra touch voor de prijs-tabel rijen */
.price-table tr:hover td {
    background: rgba(235, 94, 40, 0.05);
    color: var(--primary);
    transition: all 0.2s ease;
}

/* Maak de "status-tag" kloppend (Pulse effect voor 'Open') */
.status-tag {
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(235, 94, 40, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(235, 94, 40, 0); }
    100% { box-shadow: 0 0 0 0 rgba(235, 94, 40, 0); }
}

.nav-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot:hover {
    background: rgba(235, 94, 40, 0.5); /* Oranje gloed */
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(235, 94, 40, 0.6);
}

#preloader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-content { text-align: center; }

.loading-bar {
    width: 0;
    height: 3px;
    background: var(--primary);
    margin-top: 10px;
    animation: loadProgress 1.5s ease-in-out forwards;
}

@keyframes loadProgress {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Klasse om te verbergen via JS */
.loaded {
    opacity: 0;
    visibility: hidden;
}
.about-text {
    max-width: 600px;
    margin: 1.5rem auto;
    font-style: italic;
    line-height: 1.8;
    opacity: 0.9;
    font-size: 0.95rem;
}
.legal-links {
    margin-top: 10px;
    font-size: 0.7rem;
    opacity: 0.5;
}
.legal-links a {
    color: white;
    text-decoration: none;
}
.legal-links a:hover {
    text-decoration: underline;
}
/* Zorg dat de modal zelf zichtbaar is als display op block staat */
.modal {
    display: none;
    position: fixed;
    z-index: 3000; /* Hoger dan de nav-dots */
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    overflow-y: auto;
}

/* De witte/grijze box in het midden */
.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid var(--primary);
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    color: white;
}

/* De sluitknop (X) */
.close-modal-terms, .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--primary);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

/* De container voor de tekst */
.terms-text-container {
    margin-top: 20px;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.6;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}
/* Scrollbar styling voor modal */
.terms-text-container::-webkit-scrollbar { width: 5px; }
.terms-text-container::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* =========================================
   12. RESPONSIVE DESIGN (BREAKPOINTS)
   ========================================= */
@media (max-width: 1100px) {
    .location-card { flex: 1 1 calc(50% - 1.5rem); height: 35vh; }
}

@media (max-width: 650px) {
    .full-page { padding: 1.5rem; }
    .location-card { flex: 1 1 100%; height: 280px; }
    .flex-container {
        max-height: 70vh;
        overflow-y: auto;
        padding: 10px;
        scrollbar-width: none; /* Hide scrollbar for clean look */
    }
    .flex-container::-webkit-scrollbar { display: none; }
    .section-title { font-size: 1.6rem; margin-bottom: 1.5rem; }
    .price-container { padding: 1.5rem; }
    .tab-btn { padding: 10px 18px; font-size: 0.75rem; }
    .price-table { min-width: 300px; }
}

@media (max-height: 700px) {
    .logo-main { font-size: 2.5rem; }
    .section-title { margin-bottom: 1rem; }
    .location-card { height: 200px; }
}

