/* 
 * Z.A. Dakwerken - Definitieve Gecentraliseerde Stylesheet v4.0
 * Met correcte headers, iconen en stijlen.
 */

/* ==========================================================================
   1. Basis & Typografie
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; width: 100%; position: relative; }
body { font-family: 'Open Sans', sans-serif; font-size: 16px; line-height: 1.7; color: #333; background-color: #f5f7fa; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; font-weight: 700; margin-bottom: 20px; color: #2c3e50; line-height: 1.3; }
h1 { font-size: 2.8rem; } h2 { font-size: 2.2rem; } h3 { font-size: 1.5rem; }
a { color: #b52128; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #9e1d23; }
img { max-width: 100%; height: auto; border-radius: 8px; vertical-align: middle; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; overflow-x: hidden; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; max-width: 100%; }
[class*="col-"] { padding: 0 15px; width: 100%; }
.col-6 { width: 50%; }
.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.text-center { text-align: center; }
.bg-light { background-color: #ffffff; }

/* Lijsten & Iconen (BELANGRIJKE FIX) */
main ul { list-style: disc outside; padding-left: 1.25rem; margin-left: 0; margin-bottom: 1rem; }
.fa-ul { list-style-type: none; padding-left: 2.5em; margin-left: 0; }
.fa-li { position: absolute; left: 0; top: 0.2em; color: #b52128; }
.usp-icon, .service-icon i, .footer-link i, .contact-icon, .feature-icon i, .fa-li .fas { color: #b52128; }
.usp-icon { font-size: 20px; }
.service-icon, .feature-icon { font-size: 48px; margin-bottom: 20px; }
.social-links a { font-size: 14px; margin-right: 8px; }

/* ==========================================================================
   2. Componenten
   ========================================================================== */
.btn { display: inline-block; padding: 14px 28px; border-radius: 8px; font-weight: 600; text-align: center; cursor: pointer; transition: all 0.3s ease; border: none; font-family: 'Montserrat', sans-serif; }
.btn-primary { background-color: #b52128; color: #fff; box-shadow: 0 4px 12px rgba(181, 33, 40, 0.3); }
.btn-primary:hover { background-color: #9e1d23; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(181, 33, 40, 0.4); }
.btn-secondary { background-color: #f5f7fa; color: #2c3e50; border: 2px solid #e0e5ea; }
.btn-secondary:hover { background-color: #e0e5ea; }
.btn-lg { padding: 16px 32px; font-size: 18px; }

.header { background-color: #ffffff; box-shadow: 0 2px 15px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo { max-width: 250px; } .logo img { height: 60px; }
.nav-list { display: flex; list-style: none; }
.nav-item { margin: 0 5px; }
.nav-link { display: block; padding: 12px 16px; color: #2c3e50; font-weight: 600; border-radius: 6px; transition: all 0.3s ease; }
.nav-link:hover, .nav-link.active { color: #b52128; background-color: rgba(181, 33, 40, 0.08); }
.hamburger { display: none; }
.usp-bar { background-color: #ffffff; padding: 12px 0; border-bottom: 1px solid #e8eef2; }
.usp-list { display: flex; justify-content: space-around; list-style: none; flex-wrap: wrap; }
.usp-item { display: flex; align-items: center; padding: 8px 12px; }
.usp-icon { margin-right: 10px; } .usp-text { font-size: 14px; font-weight: 600; }

/* --- HEADER TYPE 1: Grote Hero (voor index & dorpen) --- */
.hero { position: relative; background-size: cover; background-position: center; text-align: center; color: #fff; padding: 120px 0; }
.hero:before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(44, 62, 80, 0.65); }
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-title, .hero-subtitle { color: #fff; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero-title { font-size: 2.8rem; }
.hero-subtitle { font-size: 20px; }
.hero-buttons { margin-top: 30px; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }


/* --- HEADER TYPE 2: Compacte Page-Hero (voor subpagina's) --- */
.page-hero { position: relative; background-size: cover; background-position: center; text-align: center; color: #fff; padding: 100px 0; min-height: 300px; display: flex; align-items: center; justify-content: center; }
.page-hero:before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(44, 62, 80, 0.65); z-index: 0; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.page-hero-title, .page-hero-subtitle { color: #fff !important; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.page-hero-title { font-size: 2.5rem; }
.page-hero-subtitle { font-size: 18px; margin-bottom: 0; }


/* --- ACHTERGRONDAFBEELDINGEN --- */
.bg-hero-standard { background-image: url('../images/afbeeldingen_nieuw/IMG-20250620-WA0094.webp'); }
.bg-hero-dakwerken { background-image: url('../images/headers/home-header.jpg'); }
.bg-hero-renovatie { background-image: url('../images/afbeeldingen_nieuw/IMG-20250620-WA0091.webp'); }
.bg-hero-onderhoud { background-image: url('../images/afbeeldingen_nieuw/IMG-20250620-WA0047.webp'); }
.bg-hero-contact { background-image: url('../images/afbeeldingen_nieuw/IMG-20250620-WA0008.webp'); }
.bg-hero-referenties { background-image: url('../images/afbeeldingen_nieuw/IMG-20250620-WA0043.webp'); }
.bg-hero-privacy { background-image: url('../images/headers/contact-header.webp'); }
.bg-hero-daktips { background-image: url('../images/afbeeldingen_nieuw/IMG-20250620-WA0060.webp'); }

/* --- Algemene Componenten --- */
.service-card, .testimonial-card, .project-card, .feature-card { background-color: #ffffff; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,0.08); margin-bottom: 30px; transition: all 0.3s ease; overflow: hidden; }
.service-card:hover, .testimonial-card:hover, .project-card:hover, .feature-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.service-card { padding: 30px; border-top: 4px solid #b52128; text-align: center; }
.testimonial-card { padding: 30px; border-left: 4px solid #b52128; }
.feature-card { padding: 30px; text-align: center;}
.project-card { position: relative; height: 300px; }
.project-card img { width: 100%; height: 100%; object-fit: cover; }
.project-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%); color: #fff; }
.project-title, .project-category { color: #fff; margin-bottom: 5px; }

.cta-section { background-color: #b52128; color: #fff; padding: 60px 0; margin: 20px 0; }
.cta-title, .cta-text { color: #fff; text-align: center; }
.cta-text { max-width: 700px; margin: 0 auto 30px; }
.cta-section .btn-primary { background-color: #fff; color: #b52128; }
.cta-section .btn-primary:hover { background-color: #f0f0f0; }

.form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 8px; font-weight: 600; text-align: left;}
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 14px; border: 2px solid #e0e5ea; border-radius: 8px; font-family: inherit; font-size: 1rem; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: #b52128; }
.contact-info .contact-item { display: flex; align-items: flex-start; margin-bottom: 20px; text-align: left; }
.contact-info .contact-icon { margin-top: 5px; }

.footer { background-color: #ffffff; color: #333; padding: 10px 0 5px; }
/* --- Footer Fix (vervang de oude footer-regels met dit blok) --- */
.footer .col-md-3:first-child img {
    height: 60px; /* Match menu bar logo height */
    width: auto; /* Let width scale proportionally */
    max-width: 100%; /* Ensure it doesn't overflow its column */
    margin: 0 auto 5px auto;
    display: block;
}

.footer-heading { color: #2c3e50; font-size: 12px; margin-bottom: 5px; }
.footer-text {
    font-size: 12px;
    margin-bottom: 5px;
}
.footer ul {
    list-style: none;
    padding-left: 0;
}
.footer-links { list-style: none; padding-left: 0; }
.footer-link {
    font-size: 12px;
    margin-bottom: 3px; /* Further reduced margin-bottom */
    line-height: 1.4;
}

..footer .col-md-3:last-child .fa-star { color: gold; }; /* Make stars golden in the last column */
}.footer-link a { color: #555; }
.footer-link a:hover { color: #9e1d23; }
.footer-link i { 
    width: 20px; 
    text-align: center; 
    margin-right: 8px; 
    color: #b52128;
}
.footer-bottom { text-align: center; padding-top: 10px; border-top: 1px solid #e0e5ea; font-size: 10px; }
.two-columns { columns: 1; -webkit-columns: 1; -moz-columns: 1; }
/* --- Einde Footer Fix --- */

/* Custom Footer Grid for 4 columns (replacing Bootstrap grid) */
.footer .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px; /* Compensate for column padding */
}

.footer .col-12 {
    width: 100%;
    padding: 0 15px;
}

@media (min-width: 768px) { /* Equivalent to Bootstrap's md breakpoint */
    .footer .col-md-3 {
        width: 25%;
    }
}

.responsive-video { width: 100%; height: 300px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
audio { width: 100%; accent-color: #b52128; }

.cookie-consent { position: fixed; bottom: 0; left: 0; right: 0; background: #2c3e50; color: #fff; padding: 15px; z-index: 10000; display: none; }
.cookie-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; max-width: 1200px; margin: auto; }
.cookie-content p { margin-bottom: 0; flex-grow: 1; }
.cookie-content a { color: #fff; text-decoration: underline; }
.cookie-accept button { background-color: #b52128; color: #fff; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; }

/* Media Queries */
@media (min-width: 768px) { .col-md-4 { width: 33.33%; } .col-md-5 { width: 41.66%; } .col-md-6 { width: 50%; } .col-md-7 { width: 58.33%; } }
@media (max-width: 991px) {
    .nav-list { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: #fff; box-shadow: 0 8px 16px rgba(0,0,0,0.1); padding: 10px 0; border-radius: 0 0 8px 8px; }
    .nav-list.active { display: flex; } .nav-item { width: 100%; text-align: center; } .nav-link { padding: 15px; }
    .hamburger { display: block; cursor: pointer; width: 30px; height: 22px; position: relative; }
    .hamburger span { display: block; position: absolute; height: 3px; width: 100%; background: #333; border-radius: 3px; transition: 0.25s ease-in-out; left: 0; }
    .hamburger span:nth-child(1) { top: 0px; } .hamburger span:nth-child(2), .hamburger span:nth-child(3) { top: 9px; } .hamburger span:nth-child(4) { top: 18px; }
    .hamburger.active span:nth-child(1), .hamburger.active span:nth-child(4) { top: 9px; width: 0%; left: 50%; }
    .hamburger.active span:nth-child(2) { transform: rotate(45deg); }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg); }
}
@media (max-width: 767px) {
    .hero-title { font-size: 2.2rem; } .page-hero-title { font-size: 2rem; } h2 { font-size: 1.8rem; }
    .usp-bar.mobile-friendly { display: none; }
    .footer-links.two-columns { columns: 1; }
    
    /* Footer mobile improvements */
    .footer { padding: 30px 0 15px; }
    .footer .col-12 { margin-bottom: 25px; }
    .footer .col-12:last-child { margin-bottom: 0; }
    .footer .col-md-3:first-child img { margin-bottom: 15px; }
    .footer-text { font-size: 14px; line-height: 1.6; margin-bottom: 15px; }
    .footer-heading { font-size: 16px; font-weight: 700; margin-bottom: 15px; margin-top: 0; }
    .footer-link { font-size: 14px; margin-bottom: 10px; line-height: 1.6; }
    .footer-link i { font-size: 14px; }
    .social-links { margin-top: 15px; margin-bottom: 10px; }
    .social-link { font-size: 18px; margin-right: 15px; display: inline-block; }
    .footer-bottom { font-size: 12px; padding-top: 15px; margin-top: 10px; }
    
    /* Make contact info and links side by side on mobile */
    .footer .col-md-3:nth-child(2),
    .footer .col-md-3:nth-child(3) {
        width: 50%;
        float: left;
    }
}


/* ==========================================================================
   3. Custom Cards & Elements
   ========================================================================== */
.maintenance-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    padding: 40px;
    margin-bottom: 30px;
    border-top: 4px solid #b52128;
}

.maintenance-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.maintenance-card h4 {
    color: #b52128;
    margin-top: 20px;
    margin-bottom: 15px;
}

.maintenance-card ul {
    list-style: none;
    padding-left: 0;
}

.maintenance-card ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #333;
}

.maintenance-card .fa-li {
    left: 0;
    margin-right: 10px;
}

.price-box {
    background-color: #f5f7fa;
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
    text-align: center;
    border: 1px solid #e0e5ea;
}

.price-box h4 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.price-box .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #b52128;
    margin-bottom: 15px;
}

.price-box .small-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.price-box .btn {
    margin-top: 20px;
}

@media (max-width: 767px) {
    .maintenance-card {
        padding: 20px;
    }
    .price-box {
        margin-top: 20px;
        padding: 20px;
    }
    .price-box h4 {
        font-size: 1.5rem;
    }
    .price-box .price {
        font-size: 2rem;
    }
}



/* Voor en Na Cards */
.before-after-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px; /* Add some padding at the bottom */
}

.before-after-card .ba-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 20px 0 15px;
}

.before-after-card .ba-image-wrapper {
    position: relative;
    height: 250px; /* Fixed height for images */
    overflow: hidden;
    margin-bottom: 15px;
}

.before-after-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure images cover the area without distortion */
    border-radius: 8px;
}

.before-after-card .ba-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #b52128;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.ba-group {
    margin-bottom: 40px;
}

.ba-group .ba-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.ba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}



/* Project Gallery Images */
.project-gallery-image {
    width: 100%;
    height: 250px; /* Fixed height for gallery images */
    object-fit: cover; /* Ensure images cover the area without distortion */
    border-radius: 8px;
    margin-bottom: 20px; /* Add space between images */
}

.ba-image-wrapper {
    height: 200px; /* Fixed height for before/after images */
    overflow: hidden;
    margin-bottom: 15px;
}

.ba-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* Algemene Spacing */
p + .section, p + .container > .row, p + .responsive-video, p + .project-gallery-image {
    margin-top: 30px; /* Ruimte na platte tekst */
}

/* Referenties pagina tekstkleur */
.section.referenties-section p {
    color: #333; /* Standaard tekstkleur */
}



/* Verbeterde Spacing voor platte tekst */
p:not(.hero-subtitle):not(.page-hero-subtitle):not(.footer-text):not(.cta-text):not(.testimonial-text):not(.service-description):not(.project-category):not(.small-text) {
    margin-bottom: 20px;
}

/* Aanpassing voor fa-li vinkjes */
.fa-ul .fa-li {
    left: -1em; /* Verplaats de vinkjes meer naar links */
}

/* Header tekstkleur voor page-hero */
.page-hero-title, .page-hero-subtitle {
    color: #fff; /* Zorg ervoor dat de tekst wit is */
}



/* Service List Card for Index.html */
.service-list-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    padding: 30px;
    margin-bottom: 30px;
    border-top: 4px solid #b52128;
    max-width: 800px; /* Limit width for better readability */
    margin-left: auto;
    margin-right: auto;
}

.service-list-card .fa-ul {
    list-style-type: none;
    padding-left: 0;
}

.service-list-.fa-ul {
    list-style-type: none;
    padding-left: 0; /* Remove default padding */
}

.fa-ul li {
    position: relative;
    padding-left: 1.5em; /* Space for the icon */
    margin-bottom: 10px;
}

.fa-ul .fa-li {
    position: absolute;
    left: 0; /* Position the icon at the start of the padding */
    top: 0.2em; /* Adjust vertical alignment */
    color: #b52128;
}

.service-list-card .fa-li i {
    margin-right: 10px;
}




/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 3px solid #b52128;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(5px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: rgba(181, 33, 40, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(181, 33, 40, 0.3);
}

.back-to-top i {
    color: #b52128;
    font-size: 24px;
}

@media (max-width: 767px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top i {
        font-size: 20px;
    }
}

