/* --- Basis & Variabelen --- */
:root {
    --primary-orange: #E8751A;
    --dark-bg: #1A1D20;
    --light-bg: #F8F9FA;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --border-color: #E0E0E0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: 0.3s ease;
}

/* --- Typografie --- */
h1, h2, h3 {
    font-weight: 700;
}

.text-orange {
    color: var(--primary-orange);
}

/* --- Navigatie --- */
.navbar {
    background: #fff;
    padding: 15px 5%;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-orange);
    border-top: 20px solid var(--primary-orange);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2px;
}

    .logo-icon span {
        color: var(--dark-bg);
        font-weight: bold;
        font-size: 1.2rem;
    }

.logo-text {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.1;
    color: var(--dark-bg);
}

    .logo-text small {
        font-weight: normal;
        color: #666;
        font-size: 0.9rem;
    }

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

    .nav-links a {
        color: var(--text-dark);
        font-weight: 500;
        font-size: 0.95rem;
    }

        .nav-links a.active, .nav-links a:hover {
            color: var(--primary-orange);
            border-bottom: 2px solid var(--primary-orange);
            padding-bottom: 5px;
        }

/* --- Knoppen --- */
.btn-primary {
    background: var(--primary-orange);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
}

    .btn-primary:hover {
        background: #d66415;
    }

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
    padding: 10px 20px;
    border-radius: 4px;
}

    .btn-outline:hover {
        background: rgba(255,255,255,0.1);
    }

.btn-outline-dark {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
    padding: 10px 30px;
    border-radius: 4px;
    font-weight: 600;
}

    .btn-outline-dark:hover {
        background: var(--text-dark);
        color: #fff;
    }

/* --- Hero Sectie met Slider --- */
.hero {
    position: relative;
    padding: 80px 5%;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--text-light);
    background-color: var(--dark-bg);
}

/* De container voor de slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Individuele slides met een vloeiende fade-animatie */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* AANGEPAST: 'contain' toont de hele foto op normale grootte in het midden, zonder dat er stukken wegvallen */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: fadeSlider 15s infinite;
}

    /* Timing voor 3 foto's (elke foto is 5 seconden in beeld) */
    .hero-slide:nth-child(1) {
        animation-delay: 0s;
    }

    .hero-slide:nth-child(2) {
        animation-delay: 5s;
    }

    .hero-slide:nth-child(3) {
        animation-delay: 10s;
    }

@keyframes fadeSlider {
    0%, 20% {
        opacity: 1;
    }

    33%, 87% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Donkere transparante laag over de foto's */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 29, 32, 0.65);
    z-index: 1;
}

/* Zorg dat de tekst en de knoppen vóór de foto's en overlay staan */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 500px;
}

    .hero-content h1 {
        font-size: 3.5rem;
        line-height: 1.1;
        margin-bottom: 20px;
    }

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 20px;
}

    .hero-subtitle .dot {
        color: var(--primary-orange);
        margin: 0 5px;
    }

.hero-text {
    color: #ccc;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Fake grafisch 'R' element op de achtergrond */
.hero-graphic {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.1;
}

.large-r-outline {
    font-size: 400px;
    font-weight: bold;
    color: transparent;
    -webkit-text-stroke: 10px var(--primary-orange);
    line-height: 1;
}

/* --- USPs --- */
.usps {
    background: #fff;
    padding: 40px 5%;
    border-bottom: 1px solid var(--border-color);
}

.usp-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.usp-icon {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid var(--text-dark);
    border-radius: 50%;
}

.usp-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.usp-item p {
    font-size: 0.9rem;
    color: #666;
}

/* --- Algemene sectie headers --- */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

.header-line {
    width: 50px;
    height: 3px;
    background: var(--primary-orange);
    margin: 0 auto;
}

/* --- Diensten --- */
.services-section {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--dark-bg);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

    .service-icon-wrapper span {
        font-size: 1.8rem;
        color: var(--primary-orange);
    }

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- Projecten --- */
.projects-section {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.project-card-custom {
    background-color: var(--dark-bg);
    height: 250px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.center-btn {
    text-align: center;
}

/* --- CTA Banner --- */
.cta-banner {
    background: #0f1113;
    color: #fff;
    padding: 40px 5%;
    border-top: 2px solid var(--primary-orange);
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-text h2 {
    margin-bottom: 5px;
}

/* --- Footer --- */
.main-footer {
    background: var(--dark-bg);
    color: #ccc;
    padding: 50px 5% 20px 5%;
    border-top: 1px solid #333;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo .logo-icon span {
    color: #fff;
}

.footer-logo .logo-text {
    color: #fff;
}

.footer-info {
    display: flex;
    gap: 15px;
}

.info-icon {
    color: var(--primary-orange);
    font-size: 1.5rem;
}

.info-title {
    color: #fff;
    font-weight: bold;
    margin-bottom: 5px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

    .social-btn:hover {
        border-color: var(--primary-orange);
        color: var(--primary-orange);
    }

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* ==========================================================================
   Responsiveness voor Mobiel
   ========================================================================== */

@media (max-width: 900px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 20px;
    }

    .nav-links {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
        padding: 0;
    }

    .nav-container .btn-primary {
        width: 100%;
        text-align: center;
        display: block;
        box-sizing: border-box;
    }

    .hero {
        padding: 40px 5%;
        min-height: 400px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-graphic {
        display: none;
    }

    .hero-buttons {
        justify-content: center;
    }

    .usp-container, .services-grid, .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-info {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    main {
        padding: 2rem 1rem !important;
    }

    .hero {
        min-height: 350px;
    }

    .form-container, .card, .project-detail-card {
        width: 100% !important;
        padding: 1.5rem !important;
        box-sizing: border-box;
    }

    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="password"],
    input[type="file"],
    textarea,
    select {
        width: 100% !important;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    .usp-container, .services-grid, .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}
