/* 
 * Z.A. Dakwerken - Improved CSS
 * Fixes for navigation readability and project overlay issues
 */

/* Navigation improvements - better contrast and readability */
.nav-link {
    display: block;
    padding: 12px 16px;
    color: #2c3e50; /* Dark gray for better readability */
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    background-color: transparent;
    border: none;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.nav-link:hover, .nav-link.active {
    color: #b52128; /* Red from logo instead of blue */
    background-color: rgba(181, 33, 40, 0.08);
}



/* Project overlay improvements - less intrusive */
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    color: #fff;
}

/* Icon color improvements - use red from logo instead of blue */
.fas.fa-medal,
.fas.fa-award,
.fas.fa-check-circle,
.fas.fa-shield-alt,
.fas.fa-tools, 
.fas.fa-hammer, 
.fas.fa-wrench,
.fas.fa-home,
.fas.fa-user-tie,
.fas.fa-phone,
.fas.fa-envelope,
.fas.fa-map-marker-alt,
.fas.fa-clock {
    color: #b52128 !important; /* Red from logo */
}

/* Social media icons */
.fab.fa-facebook-f,
.fab.fa-instagram,
.fab.fa-whatsapp,
.fab.fa-linkedin-in {
    color: #b52128 !important; /* Red from logo */
}

/* Button improvements */
.btn-primary {
    background-color: #b52128; /* Red from logo */
    color: #fff;
    box-shadow: 0 4px 12px rgba(181, 33, 40, 0.3);
}

.btn-primary:hover {
    background-color: #9e1d23; /* Darker red on hover */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(181, 33, 40, 0.4);
}

/* Testimonial card accent */
.testimonial-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #b52128; /* Red accent instead of blue */
}

/* Service card accent */
.service-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border-top: 4px solid #b52128; /* Red accent instead of blue */
}

/* CTA section */
.cta-section {
    background-color: #b52128; /* Red background instead of blue */
    color: #fff;
    text-align: center;
    padding: 80px 0;
    border-radius: 12px;
    margin: 20px 0;
}

/* Form focus states */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #b52128; /* Red focus color */
    box-shadow: 0 0 0 3px rgba(181, 33, 40, 0.1);
}

/* Cookie consent button */
.cookie-accept .btn {
    background-color: #b52128; /* Red background */
    color: #ffffff;
    font-weight: 600;
}

.cookie-accept .btn:hover {
    background-color: #9e1d23; /* Darker red on hover */
}


/* Fix for image sizing in project cards - remove grey bars */
.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 300px; /* Fixed height for consistency */
    background: transparent; /* Remove any background color */
}

.project-card img {
    width: 100% !important;
    height: 100% !important; /* Fill the entire card */
    object-fit: cover !important; /* Cover the entire area */
    object-position: center !important; /* Center the image */
    display: block !important; /* Remove any inline spacing */
    border-radius: 12px !important; /* Match card border radius */
    margin: 0 !important;
    padding: 0 !important;
}

/* Specific fix for project section images */
.projects-section .project-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 12px !important;
}

/* Make sure overlay positioning works with full image */
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    color: #fff;
    height: auto;
    border-radius: 0 0 12px 12px; /* Only bottom corners rounded */
}



/* Fix for video sizing - make all videos the same size regardless of orientation */
video {
    width: 100% !important;
    height: 300px !important; /* Fixed height for all videos */
    object-fit: cover !important; /* Crop to fit the container */
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

/* Ensure video containers have consistent styling */
.section video {
    width: 100% !important;
    height: 300px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

/* Override any inline styles for videos */
video[style] {
    width: 100% !important;
    height: 300px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}



/* Form validation styles */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}


/* Scroll to top button styles */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background-color: #ffffff;
    color: #b52128;
    border: 2px solid #b52128;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(181, 33, 40, 0.2);
    font-size: 18px;
    font-weight: bold;
}

.scroll-top-btn.hover,
.scroll-top-btn:hover {
    background-color: #b52128;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(181, 33, 40, 0.3);
}




.project-gallery-image {
    width: 100%;
    height: 250px; /* Of een andere gewenste hoogte */
    object-fit: cover;
    border-radius: 8px;
}
