/* --- Global Styles --- */
:root {
    --primary-color: #000;
    --secondary-color: #C1B085;
    --light-color: #ffffff;
    --background-color: #f4f4f4;
    --text-color: #333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-color);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 250px;
    overflow-anchor: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    margin-bottom: 15px;
    font-weight: 700;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

header {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 5px 0;
    border-bottom: 4px solid var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

header .container {
    display: grid;
    padding-top: 10px;
    padding-bottom: 10px;
    place-items: center;
    transition: padding 0.3s ease-in-out;
}

header h1 {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
}

header ul {
    display: flex;
    align-items: center;
    list-style: none;
    font-size: medium;
    font-weight: 800;
    margin: 0;
    padding: 0;
}

header li {
    padding: 0 25px;
}

header a {
    color: var(--light-color);
    font-weight: 500;
    text-transform: none;
    transition: color 0.3s;
    font-size: medium;
    font-weight: 600;
}

header a:hover {
    color: var(--secondary-color);
}

.info-box {
    display: grid;
    place-items: center;

    opacity: 1;
    overflow: hidden;
    max-height: none;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.info-box-scrolled {
    background-color: rgba(51, 51, 51, 0.7);
    opacity: 0.9;
}

.header-scrolled {
    padding: 2px 0;
    background: rgba(51, 51, 51, 0.9);
}

.header-scrolled .info-box {
    opacity: 0;
    /* Fade out */
    max-height: 0;
    /* Collapse the height */
    padding: 0;
    /* Ensure no padding remains */
    margin: 0;
    /* Ensure no margin remains */
}

#logo {
    background-image: url('logo.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 150px;
    height: 150px;
}

#subtitle {
    padding-bottom: 16px;
    font-style: italic;
    text-align: center;
}

.nav-phone a {
    background: #EABD00;
    color: black;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.nav-phone a:hover {
    background: #A49671;
    color: black;
}

.nav-whatsapp a {
    background: var(--secondary-color);
    color: var(--light-color);
    padding: 8px 15px;
    font-size: 1.2em;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.nav-whatsapp a:hover {
    background: #A49671;
}

.lang-selector select {
    background: #444;
    color: var(--light-color);
    border: 1px solid #666;
    padding: 5px;
    border-radius: 3px;
    margin-left: 15px;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--light-color);
    padding: 15px 30px;
    margin-top: 20px;
    font-size: 1.2em;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s;
}

.cta-button:hover {
    background: #A49671;
    transform: translateY(-2px);
}

.section.animate {
    opacity: 1;
    transform: translateY(0);
}

.section {
    opacity: 0;
    transform: translateY(0px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    min-height: 150px;
    margin-bottom: 20px;
    background-color: #f4f4f4;
}

.hero-section {
    background-color: gold;
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--light-color);
    text-align: center;
    padding: 120px 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.transparent-block {
    background-color: rgba(36, 35, 35, 0.4);
    padding: 20px;
    color: white;
    /* Make the text readable against the dark background */
    text-align: center;
    line-height: 1.5;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h2 {
    font-size: 3.5em;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.4em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.services-section {
    text-align: center;
    padding: 60px 0;
    background: var(--background-color);
}

.services-section .container {
    padding: 20px;
}

.service-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 20px;
}

.service-item {
    flex: 1;
    padding: 30px 20px;
    margin: 0;
    background: var(--light-color);
    border: 1px solid #e0e0e0;
    border-bottom: 4px solid var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    min-width: 280px;
    transition: transform 0.3s, box-shadow 0.3s;
    color: #000;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

#hero {
    transition-delay: 0.2s;
}

/* --- START: New Diensten Detail Section Styles --- */

#diensten-detail {
    padding: 60px 0;
    transition-delay: 0.4s;
    background: var(--light-color);

}

h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 40px;
}

.diensten-first {
    background: var(--background-color);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-bottom: 5px solid var(--secondary-color);
}

.diensten-intro {
    background: var(--background-color);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 5px solid var(--secondary-color);
}

.diensten-second {
    background: var(--background-color);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-right: 5px solid var(--secondary-color);
}

.diensten-first h4 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.diensten-intro h4 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.diensten-second h4 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.onze-dakdiensten {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.onze-dakdiensten h3 {
    grid-column: 1 / -1;
    text-align: center;
}

.dienst-item {
    padding: 20px;
    flex: 1;
    padding: 30px 20px;
    margin: 0;
    background: var(--light-color);
    border: 1px solid #e0e0e0;
    border-bottom: 4px solid var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    min-width: 280px;
    transition: transform 0.3s, box-shadow 0.3s;

}

.dienst-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dienst-item h4 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.projecten-sectie {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.project-voorbeeld {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.project-voorbeeld img {
    max-width: 100%;
    width: 300px;
    border: 5px solid var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.voor,
.na {
    p {
        text-align: center;
    }
}

.voor p,
.na p {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--primary-color);
}

.proces-afbeeldingen {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.proces-afbeeldingen img {
    max-width: 250px;
    max-height: 256px;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 5px;
}

/* --- END: New Diensten Detail Section Styles --- */

/* --- Slideshow Styles for proces-afbeeldingen --- */
.slideshow-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 auto;
    max-width: 1200px;
    /* Enable horizontal scrolling */
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) #eee;
}

.slideshow-track {
    display: flex;
    width: auto;
    /* Remove animation */
    /* animation: slideshow-move 18s linear infinite; */
}

.slideshow-track img {
    min-width: 250px;
    max-width: 250px;
    height: auto;
    margin-right: 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.slideshow-btn {
    display: none;
}


.about-section {
    padding: 60px 0;
    background: var(--light-color);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.about-text {
    flex: 1;
}

.contact-section {
    padding: 60px 0;
    text-align: center;
    background: var(--background-color);
    border-top: 1px solid #ddd;
}

.contact-section h3 {
    color: var(--primary-color);
}

#contact-form {
    display: grid;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

#contact-form label {
    margin-top: 10px;
    font-weight: bold;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

#contact-form .cta-button {
    width: 100%;
    margin-top: 10px;
}

.contact-info {
    margin-top: 20px;
    font-size: 1.1em;
}

footer {
    background: var(--primary-color);
    color: #a0a0a0;
    padding-top: 40px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--light-color);
    margin-bottom: 20px;
    font-size: 1.2em;
    text-align: center;
}

.footer-col p,
.footer-col li {
    margin-bottom: 10px;
    text-align: center;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col a {
    color: #a0a0a0;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--light-color);
}

.footer-bottom {
    background: #111;
    color: #777;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9em;
}

.hidden {
    display: none;
}

.success {
    color: green;
    font-weight: bold;
    margin-top: 10px;
}

.error {
    color: red;
    font-weight: bold;
    margin-top: 10px;
}

@media (max-width: 500px) {
    html {
        /* padding-top: 260px; */
        scroll-padding-top: -230px;
    }
}

@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    header h1 {
        margin-bottom: 10px;
    }

    header ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-section h2 {
        font-size: 1.5em;
    }

    .hero-section p {
        font-size: 1.2em;
    }

    .service-item {
        flex-basis: 100%;
        margin: 10px 0;
    }

    .project-voorbeeld {
        gap: 20px;
    }

    .project-voorbeeld img {
        width: 100%;
        /* Make images full width on small screens */
    }

    .proces-afbeeldingen {
        gap: 10px;
    }

    .proces-afbeeldingen img {
        width: 45%;
        /* Allow for two per row on small screens */
    }
}

.privacy-policy {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.privacy-policy h1 {
    margin-bottom: 2rem;
}

.privacy-policy section {
    margin-bottom: 2rem;
}

.privacy-policy h2 {
    margin-bottom: 1rem;
}

.privacy-policy ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-policy li {
    margin-bottom: 0.5rem;
}

p {
    text-align: justify;
}


/*
/ Animations for pair buttons: Call or Whatsapp
*/
.slide-animation-container {
    position: relative;
    height: 50px;
    /* Adjust based on your button height */
    margin: 20px 0;
}

.slide-button {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
}

.slide-button.first {
    animation-delay: 0s;

}

.slide-button.second {
    animation-delay: 5s;
}

/* Classes to control the visible/hidden states (Unchanged) */
.visible {
    opacity: 1;
    pointer-events: auto;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

#cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 18, 18, 0.95);
    color: #fff;
    z-index: 2000;
    padding: 14px 0;
    display: none;
    /* JS will toggle */
    transition: transform 0.28s ease, opacity 0.28s ease;
    transform: translateY(0);
}

#cookie-banner.cookie-hide {
    transform: translateY(110%);
    opacity: 0;
}

#cookie-banner .cookie-inner {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6px 0;
}

#cookie-banner .cookie-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.3;
    padding-right: 12px;
}

#cookie-banner .cookie-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    white-space: nowrap;
}

#cookie-banner .cookie-accept,
#cookie-banner .cookie-more {
    background: var(--secondary-color);
    color: var(--light-color);
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

#cookie-banner .cookie-more {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

@media (max-width: 700px) {
    #cookie-banner .cookie-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    #cookie-banner .cookie-actions {
        justify-content: flex-end;
    }

    p {
        text-align: left;
    }
}