/* ========================================================================== 
   1. CSS Variables
   ========================================================================== */
:root {
    --mx-rood-color: #f70d27;
    --mx-rood-color-rgb: 247,13,39;
    --mx-paars-color: #392844;
    --mx-paars-color-rgb: 57,40,68;
    --mx-zwart-color: #121212;
    --mx-zwart-color-rgb: 18,18,18;
    --mx-bruin-color: #951b16;
    --mx-bruin-color-rgb: 149,27,22;
    --mx-geel-color: #fffd47;
    --mx-geel-color-rgb: 255,253,71;
    --header-height: 145px;
}

/* ========================================================================== 
   2. Base / Reset
   ========================================================================== */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}
@media (min-width: 768px) {
    html { font-size: 16px; }
}

body {
    font-family: museo-sans, serif;
    font-weight: 300;
    color: white;
}

a {
    text-decoration: none;
    color: inherit;
}
a:hover,
header a:hover,
.header a:hover {
    color: var(--mx-rood-color);
    text-decoration: none;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: none;
}

.text-black, .color-zwart { color: var(--mx-zwart-color); }

/* ========================================================================== 
   3. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: ff-tisa-sans-web-pro, serif;
    margin-bottom: 0;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--mx-zwart-color);
}

.home h1 {
    font-family: baka-too;
    letter-spacing: 0.05rem;
    font-size: 8rem;
    text-transform: none;
    font-weight: 400;
    line-height: 0.6;
}

h2 { font-size: 2.25rem; font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.75rem; font-weight: 700; line-height: 1.4; }
h4 { font-size: 1.5rem; font-weight: 600; line-height: 1.4; }
h5 { font-size: 1.25rem; font-weight: 600; line-height: 1.5; }
h6 { font-size: 1rem; font-weight: 600; line-height: 1.5; }

@media (max-width: 991px) {
    h1 { font-size: 3.5rem; }
    .home h1 { font-size: 5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 767px) {
    h1 { font-size: 1.5rem; }
    .home h1 { font-size: 3.5rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }
}

.baka-too {
    font-family: baka-too;
    letter-spacing: 0.05rem;
    line-height: 1;
}

.pageheader {
    letter-spacing: 0.05rem;
    font-size: 8rem;
    margin-top: 2rem;
    font-family: baka-too;
    line-height: 1;
    font-weight: 400;
}

/* Helpers */
.fw-boldest { font-weight: 800; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.small { font-size:0.7rem;}

/* ========================================================================== 
   4. Color Utility Classes
   ========================================================================== */
.bg-paars { background-color: var(--mx-paars-color); color:white;}
.bg-rood { background-color: var(--mx-rood-color); color: white; }
.bg-zwart { background-color: var(--mx-zwart-color); color: white; }
.bg-bruin {
    background-color: var(--mx-bruin-color);
    color: white;
}

.color-rood { color: var(--mx-rood-color); }
.color-paars { color: var(--mx-paars-color); }

.border-bottom-paars { border-bottom: 1px solid var(--mx-paars-color); }

/* ========================================================================== 
   5. Navigation / Header
   ========================================================================== */
header.header { transition: background-color .3s ease, background .3s ease; }
header.header.header-home:not(.header-scrolled),
header.header.header-home:not(.header-scrolled) #mainNavbar {
    background: transparent !important;
}
header.header-default {
    background-color: transparent;
}

.header-home.header-scrolled, .header-default.header-scrolled {
    background-color: rgba(var(--mx-zwart-color-rgb),0.7) !important;
}

/* Homepage video */

.hero-video-behind-header {
    margin-top: calc(var(--header-height) * -1);
    padding-top: var(--header-height);
}

.hero-video {
    position: relative;
    height: 80vh;
    max-height: 900px;
    overflow: hidden;
    z-index: 1;
}

.home.container {
    margin-top: 5rem;
}

/* Keep existing iframe cover logic */
#heroPlayerDesktop, #heroPlayerMobile {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vw;
    height: 67.5vw;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@media (max-aspect-ratio:16/9) {
    #heroPlayerDesktop, #heroPlayerMobile {
        width: 177.78vh;
        height: 100vh;
    }
}

#heroPlayerDesktop {
    display: none;
}

@media (min-width:768px) {
    #heroPlayerDesktop {
        display: block;
    }

    #heroPlayerMobile {
        display: none;
    }
}

.navbar-light .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link {
    font-weight: 800;
    text-transform: uppercase;
    color: white;
}

.navbar-light .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .show>.nav-link,
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .show>.nav-link {
    color: var(--mx-rood-color);
}

.navbar-light .navbar-toggler,
.navbar-dark .navbar-toggler {
    color: white;
    border-color: rgba(0, 0, 0, .1);
    background-color: var(--mx-rood-color);
}

.navbar-light .navbar-toggler-icon,
.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand.logo img {
    height: 85px;
    max-height: 85px;
    margin-top: 1rem;
    margin-left: 0;
}
@media (max-width: 991px) {
    .navbar-brand.logo img { height: 85px; max-height: 85px; }
}
@media (max-width: 767px) {
    .navbar-brand.logo img { height: 75px; max-height: 75px; }
}

.dropdown-item:focus, .dropdown-item:hover {
    /*background-color:var(--mx-rood-color);*/
    color: var(--mx-paars-color)!important;
    background-color:transparent!important;
}
.dropdown-item {font-weight:800;}

/* ========================================================================== 
   6. Buttons
   ========================================================================== */
.btn {
    line-height: 1;
    padding: 0.5rem;
}

a.btn:hover,
.btn.bg-rood:hover, .btn.bg-paars:hover {
    background-color: var(--mx-rood-color);
    color: white;
    border-color:var(--mx-rood-color)!important;
}

    a.btn.bg-rood, .btn.bg-rood {
        border-top: 1px solid var(--mx-rood-color) !important;
        border-bottom: 0 !important
    }

    a.btn.bg-paars, .btn.bg-paars {
        border-top: 1px solid var(--mx-paars-color) !important;
        border-bottom: 0 !important
    }

.btn-filter,
.filter-btn { /* unify filter buttons */
    color: var(--mx-paars-color);
    background-color: white;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 1px solid var(--mx-paars-color);
}

.btn-filter.active,
.filter-btn.active {
    background-color: var(--mx-paars-color);
    color: white;
    border-color: var(--mx-paars-color);
}

.btn-filter:hover,
.filter-btn:hover {
    background-color: var(--mx-rood-color);
    color: white;
    border-color: var(--mx-rood-color);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    font-weight: 600;
}
.btn-outline-light:hover {
    background-color: white;
    color: var(--mx-paars-color);
}

/* ========================================================================== 
   7. Cards & Components
   ========================================================================== */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.project-card:hover {
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.175) !important;
}
.project-card:hover .project-image { opacity: 0.8; }

.project-image { transition: opacity 0.3s ease; }

.badge {
    font-size: 0.8rem;
    background-color: var(--mx-zwart-color);
    padding: 0.5rem;
    position: absolute;
    bottom: 0;
    left: 1rem;
    z-index: 1;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0.2rem;
    border-top-right-radius: 0.2rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cta-card {
    background: linear-gradient(135deg, var(--mx-paars-color) 0%, rgba(var(--mx-paars-color-rgb), 0.85) 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.cta-card:hover { box-shadow: 0 1rem 3rem rgba(0,0,0,0.2); }

.cta-card-alt {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--mx-zwart-color);
}
.cta-card-alt:hover {
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.15);
    border-color: rgba(var(--mx-paars-color-rgb), 0.7);
}
.cta-card-alt .cta-icon { color: var(--mx-paars-color); }

@media (max-width: 991px) {
    .cta-card, .cta-card-alt { padding: 2rem !important; }
    .cta-icon i { font-size: 2rem !important; }
}

/* Inspiration cards */
.inspiration-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
.inspiration-card {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.inspiration-card p { color: var(--mx-zwart-color)!important; }
.inspiration-card-link:hover .inspiration-card {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}
.inspiration-category {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.inspiration-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.inspiration-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}
.inspiration-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--mx-paars-color);
    opacity: 1;
    transition: opacity 0.3s ease;
}
.inspiration-card-link:hover .inspiration-link i { transform: translateX(4px); }
.inspiration-link i { transition: transform 0.3s ease; }

/* Review cards */
.review-card {
    background: linear-gradient(135deg, rgba(var(--mx-paars-color-rgb), 0.08) 0%, rgba(var(--mx-paars-color-rgb), 0.03) 100%);
    border: 2px solid rgba(var(--mx-paars-color-rgb), 0.2);
    transition: all 0.3s ease;
}
.slider-slide a { display: block; height: 100%; }
.slider-slide a:hover .review-card {
    background: linear-gradient(135deg, rgba(var(--mx-paars-color-rgb), 0.15) 0%, rgba(var(--mx-paars-color-rgb), 0.08) 100%);
    border-color: var(--mx-paars-color);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.review-stars { font-size: 1.5rem; letter-spacing: 0.25rem; }
.review-card blockquote {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2c3e50;
    max-width: 90%;
}
.review-card cite {hero-caption
    font-size: 0.95rem;
    color: var(--mx-paars-color);
    font-style: normal;
}
.slider-slide a:hover .review-card cite i { transform: translateX(3px); }

/* ========================================================================== 
   8. Tabs
   ========================================================================== */
.nav-tabs {
    border-bottom: 1px solid var(--mx-zwart-color);
}
    .nav-tabs .nav-link {
        background-color: var(--mx-paars-color);
        color: white;
        border: 1px solid var(--mx-paars-color);
        border-bottom: none;
        margin-right: 2px;
        border-radius: 0.375rem 0.375rem 0 0;
        transition: background-color 0.2s ease-in-out;
    }

.nav-tabs .nav-link:not(.active):hover {
    background-color: var(--mx-rood-color);
    border-color: var(--mx-rood-color);
}
.nav-tabs .nav-link.active {
    background-color: var(--mx-rood-color);
    color: white;
    border-color: var(--mx-rood-color);
}
.nav-tabs .nav-item { margin-right: 0.5rem; }
.nav-tabs .nav-item:last-child { margin-right: 0; }

/* ========================================================================== 
   9. Scroll Top Button
   ========================================================================== */
/*.scroll-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    background-color: var(--mx-rood-color);
    color: white;
    border-radius: 8px;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 996;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}*/
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: transparent;
    color: red;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 996;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 800;
}

    .scroll-top:hover {
        background-color: rgba(var(--mx-paars-color-rgb), 0.85);
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.2);
        color: white;
    }

    .scroll-top.active {
        opacity: 1;
        visibility: visible;
    }

    .scroll-top i {
        font-size: 28px;
        line-height: 0;
        font-weight:800;
    }

    @media (max-width: 768px) {
        .scroll-top {
            bottom: 20px;
            right: 20px;
            width: 45px;
            height: 45px;
        }

            .scroll-top i {
                font-size: 24px;
            }
    }
    /* ========================================================================== 
   10. Expandable Description
   ========================================================================== */
    .description-expandable {
        position: relative;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }

        .description-expandable.expanded {
            max-height: 2000px;
        }

    .description-fade {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 120px;
        background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.3) 20%, rgba(255,255,255,0.6) 40%, rgba(255,255,255,0.8) 60%, rgba(255,255,255,0.95) 80%, #fff 100%);
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.3s ease;
        z-index: 10;
    }

    .description-expandable.expanded .description-fade {
        opacity: 0;
    }

    .description-hidden {
        padding-top: 1rem;
        position: relative;
        z-index: 1;
    }

    .description-toggle {
        color: var(--mx-paars-color);
        font-weight: 600;
        transition: all 0.3s ease;
        position: relative;
        z-index: 20;
    }

        .description-toggle:hover {
            color: rgba(var(--mx-paars-color-rgb), 0.8);
        }

        .description-toggle .toggle-icon {
            transition: transform 0.3s ease;
        }
    /* ========================================================================== 
   11. Quotes
   ========================================================================== */
    .quote-callout {
        position: relative;
        padding: 2rem 0rem 1.5rem 0rem;
        background: transparent;
        border-left: 0;
        border-radius: 0.5rem;
        font-style: italic;
    }

    .quote-icon {
        position: relative;
        text-align: center;
        font-size: 3rem;
        color: white;
        opacity: 1;
        line-height: 0;
        font-weight: normal;
    }

    .quote-text {
        font-size: 3.25rem;
        font-weight: 400;
        line-height: 1.2;
        color: white;
        margin-bottom: 0.5rem;
        margin-top: 1.5rem;
        text-align: center;
        font-family: baka-too;
        letter-spacing: 0.05rem;
        line-height: 1;
    }

    .quote-author {
        display: block;
        font-size: 0.95rem;
        font-style: normal;
        font-weight: 600;
        color: white;
        text-align: center;
        padding-right: 1rem;
        margin-top: 1rem;
    }

    @media (max-width: 768px) {
        .quote-callout {
            padding: 1.5rem 1rem 1rem;
        }

        .quote-text {
            font-size: 1.5rem;
            padding-left: 1.5rem;
        }

        .quote-icon {
            font-size: 3.5rem;
            left: 0.75rem;
        }
    }
    /* ========================================================================== 
   12. Slider / Gallery
   ========================================================================== */
    .slider-container {
        position: relative;
    }

    .slider-track {
        transition: transform 0.5s ease;
        will-change: transform;
    }

    .slider-slide {
        position: relative;
        flex: 0 0 calc(25% - 0.75rem);
        min-width: calc(25% - 0.75rem);
        transition: opacity 0.3s ease;
    }

    @media (max-width: 991px) {
        .slider-slide {
            flex: 0 0 calc(33.333% - 0.667rem);
            min-width: calc(33.333% - 0.667rem);
        }
    }

    @media (max-width: 767px) {
        .slider-slide {
            flex: 0 0 calc(50% - 0.5rem);
            min-width: calc(50% - 0.5rem);
        }
    }

    @media (max-width: 575px) {
        .slider-slide {
            flex: 0 0 100%;
            min-width: 100%;
        }
    }

    .image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        border-radius: 0.5rem;
        pointer-events: none;
        z-index: 1;
    }

    .bg-gradient-overlay {
        background: linear-gradient(to top, rgba(var(--mx-zwart-color-rgb),1) 0%, rgba(var(--mx-zwart-color-rgb),0.6) 50%, transparent 100%);
    }
    /* ========================================================================== 
   13. Masonry / Credits
   ========================================================================== */
    .credits-masonry {
        column-gap: 2rem;
        orphans: 1;
        widows: 1;
    }

    @media (min-width: 1200px) {
        .credits-masonry {
            column-count: 4;
        }
    }

    @media (min-width: 768px) and (max-width: 1199px) {
        .credits-masonry {
            column-count: 3;
        }
    }

    @media (min-width: 576px) and (max-width: 767px) {
        .credits-masonry {
            column-count: 2;
        }
    }

    @media (max-width: 575px) {
        .credits-masonry {
            column-count: 1;
        }
    }

    .credits-column {
        break-inside: avoid;
        page-break-inside: avoid;
        -webkit-column-break-inside: avoid;
        display: inline-block;
        width: 100%;
    }

    .credit-item {
        margin-bottom: 1.25rem;
    }

.credits-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--mx-zwart-color);
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

    .credits-name {
        font-size: 0.875rem;
        line-height: 1.4;
        color: var(--mx-zwart-color);
        margin-bottom: 0;
    }
    /* Simplified Credits */
    .credits-content {
        column-gap: 2rem;
        orphans: 2;
        widows: 2;
    }

    @media (min-width: 1200px) {
        .credits-content {
            column-count: 4;
        }
    }

    @media (min-width: 768px) and (max-width: 1199px) {
        .credits-content {
            column-count: 3;
        }
    }

    @media (min-width: 576px) and (max-width: 767px) {
        .credits-content {
            column-count: 2;
        }
    }

    @media (max-width: 575px) {
        .credits-content {
            column-count: 1;
        }
    }

    .credits-content h3 {
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--mx-zwart-color);
        margin-bottom: 0.25rem;
        break-inside: avoid;
        break-after: avoid;
    }

.credits-content p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--mx-zwart-color);
    color: var(--mx-zwart-color);
    margin-bottom: 1.25rem;
    break-inside: avoid;
}
    /* ========================================================================== 
   14. Page: Projecten (moved from inline style)
   ========================================================================== */
    .grid-sizer {
        height: 0;
        padding: 0;
        margin: 0;
        visibility: hidden;
    }

    .grid-item {
        margin-bottom: 1.5rem;
    }
    /* Hover elevation (retain if desired) */
    .project-card:hover {
        transform: translateY(-5px);
    }

        .project-card:hover .project-image {
            opacity: 0.85;
        }
    /* ========================================================================== 
   15. Page: Projecten (moved from inline style)
   ========================================================================== */

    .hero-project-ratio {
        height: 80vh;
    }
    /* ========================================================================== 
   16. Nieuwsbrief CTA background
   ========================================================================== */
    .bg-nieuwsbrief {
        background: linear-gradient(0deg, rgba(var(--mx-paars-color-rgb), 0.7), rgba(var(--mx-paars-color-rgb), 0.7)), url('/img/PATROON_DEF.svg');
        background-repeat: repeat-x;
        background-size: cover;
    }
    /* ========================================================================== 
   17. Misc
   ========================================================================== */
    header, header .btn, header input, header .form-control {
        font-size: 0.9rem;
    }

    .bg-paars-gradient {
        /*background: linear-gradient(0deg, rgba(var(--mx-paars-color-rgb), 0.5), rgba(var(--mx-paars-color-rgb), 0.5)), url('/img/PATROON_DEF.svg');*/
        background-repeat: repeat-x;
        background-size: cover;
    }
    /*.hero-caption {*/
    /* fallback for very old browsers */
    /*background-color: rgba(var(--mx-zwart-color-rgb), 1);*/
    /* gradient from bottom (black) to top (transparent) */
    /*background-image: linear-gradient( to top, rgba(var(--mx-zwart-color-rgb), 1) 0%, rgba(var(--mx-zwart-color-rgb), 0) 100% );*/
    /* ensure the gradient covers the element */
    /*background-repeat: no-repeat;
    background-size: cover;
}*/