/* Custom Styles for Nachtergaele Kristof BVBA */

:root {
    --primary-color: #024886;
    --primary-dark: #012d52;
    --primary-light: #0361a8;
    --accent-color: #00ADF1;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --bs-primary: #024886;
    --bs-primary-rgb: 2, 72, 134;
    --topbar-height: 42px;
    --navbar-main-height: 107px;
    --navbar-main-scrolled-height: 70px;
    --navbar-secondary-height: 90px;
    /* Fallback tot JS de zichtbare header meet; desktop ≈ navbar + dienstenbalk */
    --hero-header-offset: calc(var(--navbar-main-height) + var(--navbar-secondary-height));
}

/* Override Bootstrap primary color */
.text-primary {
    color: #024886 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    /* Ruimte voor fixed topbar zodat sticky dienstenbalk niet over content schuift */
    padding-top: var(--topbar-height);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Topbar */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1031;
    background: linear-gradient(135deg, #011e38 0%, var(--primary-dark) 50%, #011e38 100%);
    font-size: 0.8125rem;
    min-height: var(--topbar-height);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.topbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.topbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    min-height: var(--topbar-height);
    padding: 0.35rem 0;
}

.topbar-contacts,
.topbar-meta {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
}

.topbar-contacts {
    gap: 0.15rem 0.35rem;
    flex: 1 1 auto;
}

.topbar-meta {
    gap: 0.75rem;
    flex: 0 0 auto;
    justify-content: flex-end;
}

.topbar-link {
    font-size: inherit;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.2;
}

.topbar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.topbar-link i {
    font-size: 0.85rem;
    margin: 0;
    flex-shrink: 0;
}

.topbar-address {
    font-size: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    line-height: 1.2;
}

.topbar-address i {
    color: var(--accent-color);
    margin: 0;
    flex-shrink: 0;
}

.topbar-social-link {
    width: 1.75rem;
    height: 1.75rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.topbar-social-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

.topbar-social-link i {
    font-size: 1rem;
}

/* Main Navigation */
.navbar-main {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: top 0.25s ease, padding 0.25s ease;
    padding: 1rem 0;
    z-index: 1030;
    top: var(--topbar-height);
    overflow-anchor: none;
}

.navbar-main.scrolled {
    top: 0;
    padding: 0.5rem 0;
}

.navbar-main .navbar-brand {
    padding: 0;
}

.navbar-main .logo-img {
    height: 75px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: height 0.3s ease;
    /* filter: brightness(0) invert(1); */
}

.navbar-main.scrolled .logo-img {
    height: 50px;
}

.navbar-main .navbar-nav {
    position: relative;
    align-items: center;
}

.navbar-main .navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

/* Sliding highlight background */
.navbar-main .nav-highlight {
    position: absolute;
    background-color: var(--accent-color);
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.navbar-main .nav-highlight.active {
    opacity: 1;
}

.navbar-main .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.75rem 1.25rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
    border-radius: 0.5rem;
}

.navbar-main .navbar-nav .nav-link:hover {
    color: #fff !important;
}

.navbar-main .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-main .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%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-main .btn-light {
    background-color: #fff;
    border: none;
    font-weight: 500;
}

.navbar-main .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Vacatures link with badge */
.navbar-main .nav-vacatures {
    position: relative;
    display: inline-flex;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.navbar-main .nav-vacatures:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.vacature-badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(40%, -40%);
    background-color: #e74c3c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: translate(40%, -40%) scale(1);
    }
    50% {
        transform: translate(40%, -40%) scale(1.15);
    }
}

.navbar-main .btn-accent {
    background-color: var(--accent-color) !important;
    color: #fff !important;
    border-radius: 0.5rem;
    padding: 0.6rem 1.25rem !important;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.navbar-main .btn-accent:hover {
    background-color: #00c4ff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 173, 241, 0.4);
}

/* Breekwerf Banner Section */
.breekwerf-section {
    margin: 4rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.breekwerf-banner {
    background: url('../images/recyclagepark.webp') center center / cover no-repeat;
    background-color: var(--primary-color);
    overflow: hidden;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.breekwerf-banner:hover {
    transform: scale(1.01);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.breekwerf-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(2, 72, 134, 0.85) 0%, rgba(1, 45, 82, 0.75) 100%);
    z-index: 1;
}

.breekwerf-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 3rem 2rem;
}

.breekwerf-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 173, 241, 0.4);
}

.breekwerf-title {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.breekwerf-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    margin: 0;
}

.breekwerf-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(0, 173, 241, 0.4);
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}

.breekwerf-banner:hover .breekwerf-btn {
    background-color: #00c4ff;
    border-color: #00c4ff;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 173, 241, 0.6);
}

.breekwerf-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.breekwerf-banner:hover .breekwerf-btn i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .breekwerf-title {
        font-size: 2.5rem;
    }
    
    .breekwerf-subtitle {
        font-size: 1.2rem;
    }
    
    .breekwerf-banner {
        min-height: 300px;
    }
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 4rem 0;
}

.about-stat {
    text-align: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    flex: 1;
    transition: transform 0.3s ease;
}

.about-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.about-features {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon-wrapper {
    flex-shrink: 0;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.feature-item h5 {
    color: var(--primary-color);
}

/* Secondary Navigation - Diensten */
.navbar-secondary {
    background-color: #e8f1f8;
    border-bottom: 1px solid #d0e0ed;
    padding: 0.5rem 0;
    position: sticky;
    top: calc(var(--topbar-height) + var(--navbar-main-height));
    z-index: 1029;
    transition: top 0.25s ease, padding 0.25s ease;
    overflow-anchor: none;
}

.navbar-secondary.scrolled {
    top: var(--navbar-main-scrolled-height, 70px);
    padding: 0.35rem 0;
}

.navbar-secondary .nav {
    gap: 0.5rem;
}

.navbar-secondary .nav-item {
    text-align: center;
}

.navbar-secondary .nav-link {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.navbar-secondary .nav-link:hover {
    color: var(--primary-color);
    transform: scale(1.18);
}

.navbar-secondary .nav-link i,
.navbar-secondary .nav-link .service-icon-img {
    font-size: 1.25rem;
    display: block;
    transition: all 0.3s ease;
}

.navbar-secondary .nav-link .service-icon-img {
    width: auto;
    height: auto;
    max-width: none;
    object-fit: contain;
}

/* Scrolled state - compact diensten */
.navbar-secondary.scrolled .nav-link {
    font-size: 0.7rem;
    padding: 0.3rem 0.75rem;
    gap: 0.15rem;
}

.navbar-secondary.scrolled .nav-link i {
    font-size: 0.95rem;
}

.navbar-secondary .nav-link:hover i,
.navbar-secondary .nav-link:hover .service-icon-img {
    transform: scale(1.2);
}

/* Hero Section — vult resterende viewport onder header/adresbalk */
.hero-section {
    position: relative;
    min-height: calc(100vh - var(--hero-header-offset));
    min-height: calc(100dvh - var(--hero-header-offset));
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Hero Background Video */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    background: #012d52;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    pointer-events: none;
}

/* Dark overlay for text readability */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(2, 72, 134, 0.85) 0%, rgba(1, 45, 82, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-overlay {
    display: none;
}

/* Hero Text Animations */
.hero-title {
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeInUp 1s ease-out forwards;
    animation-delay: 0.2s;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeInUp 1s ease-out forwards;
    animation-delay: 0.5s;
}

.hero-buttons {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeInUp 1s ease-out forwards;
    animation-delay: 0.8s;
}

.hero-buttons .btn {
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px) scale(1.02);
}

.hero-contact {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeInUp 1s ease-out forwards;
    animation-delay: 1.1s;
}

@keyframes heroFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle accent underline on title */
.hero-title::after {
    content: '';
    display: block;
    width: 0;
    height: 4px;
    background: var(--accent-color);
    margin: 1rem auto 0;
    border-radius: 2px;
    animation: expandLine 1s ease-out forwards;
    animation-delay: 1.2s;
}

@keyframes expandLine {
    0% {
        width: 0;
    }
    100% {
        width: 120px;
    }
}

/* Typewriter effect */
.typewriter-text {
    display: inline-block;
}

.typewriter-cursor {
    display: inline-block;
    color: var(--accent-color);
    animation: blinkCursor 1s infinite;
    margin-left: 2px;
}

@keyframes blinkCursor {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.service-icon {
    display: inline-block;
    padding: 1rem;
    background: rgba(2, 72, 134, 0.1);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.service-icon-img {
    object-fit: contain;
}

.feature-box .service-icon-img {
    width: 1.75rem;
    height: 1.75rem;
}

.footer-links .service-icon-img {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

/* Feature Box */
.feature-box {
    transition: transform 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
}

/* Cards */
.card {
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.625rem 1.5rem;
}

.btn-primary {
    background-color: #024886;
    border: none;
}

.btn-primary:hover {
    background-color: #012d52;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 72, 134, 0.4);
}

.btn-outline-primary {
    border-width: 2px;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 72, 134, 0.3);
}

/* Sections */
section {
    padding: 4rem 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.display-3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(2, 72, 134, 0.25);
}

/* Newsletter Section */
.bg-primary {
    background-color: #024886 !important;
}

/* Footer */
.footer-main {
    background-color: #024886;
    color: #fff;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-left: 0;
    padding-right: 0;
}

.footer-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.footer-logo {
    height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.footer-address {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.footer-main p {
    color: rgba(255, 255, 255, 0.85);
}

.footer-main a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-main a:hover {
    color: var(--accent-color);
}

.footer-title {
    color: #fff;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-legal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent-color);
}

.footer-main .btn-accent {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-main .btn-accent:hover {
    background-color: #00c4ff;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .navbar-main {
        top: 0;
    }
    
    .navbar-main .logo-img {
        height: 45px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 0;
    }
    
    .topbar {
        font-size: 0.75rem;
        --topbar-height: auto;
        min-height: 0;
    }

    .topbar-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35rem 0.75rem;
        padding: 0.45rem 0;
        min-height: 0;
    }

    .topbar-contacts {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .navbar-main {
        top: 0 !important;
        padding: 0.5rem 0;
    }
    
    .navbar-main .logo-img {
        height: 40px;
    }
    
    .hero-section {
        background-attachment: scroll;
        --hero-header-offset: var(--navbar-main-height);
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .topbar-link {
        font-size: 0.75rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth transitions for anchor links */
section {
    scroll-margin-top: 150px;
}

/* Pure tekst / CMS content pagina's */
.nachtergaele-text-page {
    max-width: 920px;
}

.page-rich-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #333;
}

.page-rich-text h1,
.page-rich-text h2,
.page-rich-text h3,
.page-rich-text h4 {
    color: var(--primary-color);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.page-rich-text p {
    margin-bottom: 1rem;
}

.page-rich-text ul,
.page-rich-text ol {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.page-rich-text li {
    margin-bottom: 0.35rem;
}

/* Service pages */
.service-page {
    background: linear-gradient(180deg, #f4f8fb 0%, #ffffff 25%);
}

.service-hero {
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.service-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(1, 45, 82, 0.25) 0%, rgba(1, 45, 82, 0.9) 100%);
}

.service-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 3rem 0;
}

.service-hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 0.75rem;
}

.service-hero-content p {
    max-width: 760px;
    font-size: 1.1rem;
    opacity: 0.95;
}

.service-content-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(2, 72, 134, 0.08);
    padding: 2rem;
}

.service-content-card ul {
    margin-top: 1rem;
    padding-left: 1.25rem;
}

.service-content-card li {
    margin-bottom: 0.45rem;
}

.service-visual {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(2, 72, 134, 0.08);
    padding: 1rem;
}

.service-photo-placeholder {
    min-height: 240px;
    border-radius: 0.8rem;
    border: 2px dashed rgba(2, 72, 134, 0.25);
    background: linear-gradient(145deg, #e9f3fb 0%, #f6fbff 100%);
    color: #4d6f8c;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.2rem;
}

.service-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.service-photo-grid .service-photo-thumb {
    aspect-ratio: 4 / 3;
    border: 0;
    box-shadow: none;
    cursor: default;
}

.service-photo-main {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    background: #eef4f9;
    cursor: zoom-in;
    border-radius: 0.65rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    line-height: 0;
}

.service-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease;
}

.service-photo.is-switching {
    opacity: 0.45;
}

.service-photo-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.service-photo-thumb {
    flex: 0 0 calc(25% - 0.375rem);
    width: calc(25% - 0.375rem);
    aspect-ratio: 16 / 10;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 0.4rem;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    background: #eef4f9;
    cursor: pointer;
    line-height: 0;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.service-photo-thumb:hover,
.service-photo-thumb:focus-visible {
    border-color: rgba(2, 72, 134, 0.45);
    transform: translateY(-1px);
    outline: none;
}

.service-photo-thumb.is-active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.service-photo-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.service-lightbox[hidden] {
    display: none;
}

.service-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 24, 40, 0.88);
}

.service-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    max-height: calc(100vh - 2.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-lightbox-figure {
    margin: 0;
    width: 100%;
    text-align: center;
}

.service-lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 6rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    background: #0b1c2c;
}

.service-lightbox-caption {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.service-lightbox-close,
.service-lightbox-nav {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.service-lightbox-close:hover,
.service-lightbox-nav:hover,
.service-lightbox-close:focus-visible,
.service-lightbox-nav:focus-visible {
    background: rgba(255, 255, 255, 0.24);
    outline: none;
}

.service-lightbox-close {
    top: 0;
    right: 0;
    z-index: 2;
}

.service-lightbox-prev {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.service-lightbox-next {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

body.service-lightbox-open {
    overflow: hidden;
}

.service-cta-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0466b2 100%);
    color: #fff;
    border-radius: 1rem;
    box-shadow: 0 16px 36px rgba(2, 72, 134, 0.25);
    padding: 1.5rem;
}

.service-cta-bar p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
}

.service-cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.service-cta-actions .btn-light {
    font-weight: 600;
}

.service-cta-actions .btn-outline-light {
    border-width: 2px;
}

.service-hero--montagewerken {
    background-image: url('../images/subpaginas/montagewerken.jpg');
}

.service-hero--afbraakwerken {
    background-image: url('../images/subpaginas/afbraakwerken.jpeg');
}

.service-hero--funderingswerken {
    background-image: url('../images/subpaginas/funderingswerken.jpg');
}

.service-hero--grondwerken {
    background-image: url('../images/subpaginas/grondwerken.jpeg');
}

.service-hero--kraanwerk {
    background-image: url('../images/subpaginas/kraanwerk.jpg');
}

.service-hero--dakrenovatie {
    background-image: url('../images/subpaginas/dakrenovatie.jpeg');
}

@media (max-width: 768px) {
    .service-hero {
        min-height: 300px;
        margin-top: 60px;
    }

    .service-content-card {
        padding: 1.4rem;
    }

    .service-photo-main {
        aspect-ratio: 4 / 3;
    }

    .service-photo-thumb {
        flex: 0 0 calc(33.333% - 0.35rem);
        width: calc(33.333% - 0.35rem);
    }

    .service-lightbox-prev,
    .service-lightbox-next {
        width: 2.4rem;
        height: 2.4rem;
    }

    .service-lightbox-prev {
        left: 0.15rem;
    }

    .service-lightbox-next {
        right: 0.15rem;
    }
}

/* Jobs page */
.jobs-page {
    background: linear-gradient(180deg, #f4f8fb 0%, #ffffff 30%);
}

.jobs-hero {
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    position: relative;
    background: url('../images/hero/original-63C0E724-058A-41DA-9A6A-ECA1471533BE.jpeg') center center / cover no-repeat;
}

.jobs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(1, 45, 82, 0.25) 0%, rgba(1, 45, 82, 0.9) 100%);
}

.jobs-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 3rem 0;
}

.jobs-hero-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
}

.jobs-intro-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 12px 28px rgba(2, 72, 134, 0.08);
    padding: 1.25rem 1.5rem;
}

.jobs-count-badge {
    display: inline-block;
    background: rgba(0, 173, 241, 0.12);
    color: var(--primary-color);
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 999px;
}

.job-overview-card {
    border: 1px solid rgba(2, 72, 134, 0.12);
    background: #fff;
    border-radius: 1rem;
    padding: 1.1rem 1.15rem;
    box-shadow: 0 10px 24px rgba(2, 72, 134, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.job-overview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(2, 72, 134, 0.12);
    border-color: rgba(0, 173, 241, 0.35);
}

.job-overview-card:focus-visible {
    outline: 3px solid rgba(0, 173, 241, 0.55);
    outline-offset: 2px;
}

.job-overview-title {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.job-overview-meta {
    color: #5f6f7a;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.job-overview-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.95rem;
}

.jobs-back-link {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 600;
}

.jobs-back-link:hover {
    color: #fff;
}

.job-detail-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 12px 28px rgba(2, 72, 134, 0.08);
    padding: 1.75rem;
}

.job-detail-card h2 {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}

.job-detail-card ul {
    margin-bottom: 1.3rem;
    padding-left: 1.2rem;
}

.job-detail-card li {
    margin-bottom: 0.45rem;
}

.job-apply-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0466b2 100%);
    color: #fff;
    border-radius: 1rem;
    box-shadow: 0 16px 36px rgba(2, 72, 134, 0.25);
    padding: 1.5rem;
    position: sticky;
    top: 110px;
}

.job-apply-card h3,
.job-apply-card h4,
.job-apply-card p {
    color: #fff;
}

.job-apply-card a {
    color: #fff;
}

.job-apply-card .job-apply-btn {
    color: var(--primary-color);
    font-weight: 700;
}

.jobs-accordion .accordion-item {
    border: none;
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(2, 72, 134, 0.08);
    margin-bottom: 1rem;
    scroll-margin-top: 170px;
}

.jobs-accordion .accordion-button {
    font-weight: 700;
    color: var(--primary-color);
    padding: 1rem 1.25rem;
}

.jobs-accordion .accordion-button:not(.collapsed) {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0466b2 100%);
    box-shadow: none;
}

.jobs-accordion .accordion-body {
    padding: 1.5rem;
}

.jobs-accordion .accordion-body h3 {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.jobs-accordion .accordion-body ul {
    padding-left: 1.2rem;
    margin-bottom: 1.25rem;
}

.jobs-accordion .accordion-body li {
    margin-bottom: 0.4rem;
}

.jobs-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0466b2 100%);
    color: #fff;
    border-radius: 1rem;
    box-shadow: 0 16px 36px rgba(2, 72, 134, 0.25);
    padding: 1.5rem;
}

.jobs-cta a {
    color: #fff;
}

.jobs-cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .jobs-hero {
        min-height: 280px;
        margin-top: 60px;
    }
}

/* Contact page */
.contact-page {
    background: linear-gradient(180deg, #f4f8fb 0%, #ffffff 28%);
}

.contact-hero {
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    position: relative;
    background: url('../images/hero/original1.jpeg') center center / cover no-repeat;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(1, 45, 82, 0.25) 0%, rgba(1, 45, 82, 0.9) 100%);
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding-bottom: 2rem;
}

.contact-hero-content h1 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-hero-content p {
    max-width: 640px;
    margin-bottom: 0;
    opacity: 0.95;
}

.contact-info-card,
.contact-form-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(2, 72, 134, 0.08);
    padding: 1.75rem;
}

.contact-info-list li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-info-list i {
    color: var(--accent-color);
    font-size: 1.15rem;
    margin-top: 0.2rem;
}

.contact-info-list strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.contact-info-list span,
.contact-info-list a {
    color: #445566;
    text-decoration: none;
}

.contact-info-list a:hover {
    color: var(--primary-color);
}

.contact-info-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.contact-map {
    border-radius: 0.85rem;
    overflow: hidden;
    border: 1px solid rgba(2, 72, 134, 0.12);
    aspect-ratio: 16 / 10;
    background: #eef4f9;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
}

.contact-form textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.form-submit-loading,
.form-submit-success {
    text-align: center;
    padding: 2rem 1rem;
}

.form-submit-loading-spinner {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 1rem;
    border: 3px solid rgba(2, 72, 134, 0.15);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: contactSpin 0.8s linear infinite;
}

@keyframes contactSpin {
    to { transform: rotate(360deg); }
}

.form-submit-success-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 173, 241, 0.15);
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.form-message {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: 240px;
        margin-top: 60px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 1.35rem;
    }
}
