/**
 * Vlot Staal - Responsive Mobile Styles
 */

/* =============================================================================
   MOBILE BASE (< 992px)
   ============================================================================= */

/* Touch-friendly tap targets */
@media (max-width: 991.98px) {
    /* Minimum 44px touch targets */
    a, button, .btn, input:not(.form-check-input), select, textarea {
        min-height: 44px;
    }
    
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Better text rendering on mobile */
    body {
        -webkit-text-size-adjust: 100%;
        text-rendering: optimizeSpeed;
    }
}

/* =============================================================================
   HEADER MOBILE
   ============================================================================= */
@media (max-width: 991.98px) {
    header {
        padding: 0;
    }
    
    header .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    header .navbar {
        padding: 0.75rem 0;
    }
    
    header .navbar .navbar-brand img {
        height: 2.75rem;
    }
    
    header .navbar .menu-container {
        padding: 0;
    }
    
    /* Mobile menu toggle */
    header .navbar .menu-container [data-bs-toggle="offcanvas"] {
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    header .navbar .menu-container [data-bs-toggle="offcanvas"] i {
        font-size: 1.75rem;
        color: var(--color-primary, #1a3a68);
    }
}

/* =============================================================================
   OFFCANVAS MOBILE NAVIGATION
   ============================================================================= */
.offcanvas {
    max-width: 85vw;
    width: 320px;
    background-color: #f8f9fa;
}

.offcanvas-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #dee2e6;
}

.offcanvas-body {
    padding: 1rem;
}

/* Mobile nav items */
.mob-nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mob-nav .nav-item {
    margin-bottom: 0.5rem;
}

.mob-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background-color: #1a3a68;
    color: #fff !important;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    min-height: 52px;
}

.mob-nav .nav-link:hover,
.mob-nav .nav-link:focus {
    background-color: #0f2444;
}

.mob-nav .nav-link a {
    color: #fff;
    text-decoration: none;
    flex-grow: 1;
}

/* Submenu styling */
.mob-nav .collapse ul {
    padding: 0.5rem 0 0 0;
    margin: 0;
    list-style: none;
}

.mob-nav .collapse ul .nav-item {
    margin-bottom: 0.25rem;
}

.mob-nav .collapse ul .nav-link {
    background-color: #2e5090;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
}

.mob-nav .collapse ul .nav-link:hover {
    background-color: #1a3a68;
}

/* Toggle icon */
.mob-nav .toggle-icon {
    transition: transform 0.2s ease;
}

.mob-nav [aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* =============================================================================
   HERO SECTIONS MOBILE
   ============================================================================= */
@media (max-width: 991.98px) {
    .row-type-intro,
    .row-type-intro__image {
        padding-top: 100px;
        padding-bottom: 2rem;
        min-height: 40vh;
    }
    
    .row-type-intro__extended .departments {
        border-radius: 0.75rem 0.75rem 0 0;
    }
    
    .row-type-intro__extended .departments .department {
        padding: 1.25rem;
    }
}

/* =============================================================================
   TYPOGRAPHY MOBILE
   ============================================================================= */
@media (max-width: 991.98px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    
    .fs-80 { font-size: 2.5rem; }
    .fs-32 { font-size: 1.25rem; }
    
    p, .content {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* =============================================================================
   SPACING MOBILE
   ============================================================================= */
@media (max-width: 991.98px) {
    .py-7 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .pb-125 { padding-bottom: 3rem; }
    .mb-125 { margin-bottom: 3rem; }
    
    .height50 { height: 25px; }
    .height25 { height: 12px; }
    
    .pt-lg-10 { padding-top: 2rem !important; }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Section spacing */
    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* =============================================================================
   GRID & COLUMNS MOBILE
   ============================================================================= */
@media (max-width: 991.98px) {
    /* Stack columns */
    
    
    .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
    
    /* Full width on mobile */
    .w-xs-100 { width: 100% !important; }
    
    /* Square blocks */
    .square-block {
        aspect-ratio: auto;
        min-height: 200px;
        height: auto;
    }
}

/* =============================================================================
   CARDS & BLOCKS MOBILE
   ============================================================================= */
@media (max-width: 991.98px) {
    .product-item {
        padding: 1.25rem;
    }
    
    .sector-item {
        padding: 1.5rem 1rem;
        margin-bottom: 0.75rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    /* Block content */
    .block-content {
        padding: 1.25rem;
    }
}

/* =============================================================================
   BUTTONS MOBILE
   ============================================================================= */
@media (max-width: 991.98px) {
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .btn-lg {
        padding: 1rem 1.5rem;
    }
    
    .btn-sm {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Inline buttons stay inline */
    .d-inline-flex .btn,
    .btn-group .btn {
        width: auto;
    }
}

/* =============================================================================
   FORMS MOBILE
   ============================================================================= */
@media (max-width: 991.98px) {
    .form-control {
        padding: 0.875rem 1rem;
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
}

/* =============================================================================
   IMAGES MOBILE
   ============================================================================= */
@media (max-width: 991.98px) {
    img {
        height: auto;
    }
    
    .fotos img {
        margin-bottom: 0.75rem;
    }
    
    .ratio {
        margin-bottom: 1rem;
    }
    
    /* Gallery grid */
    .fotos .row > [class*="col-"] {
        margin-bottom: 0.75rem;
    }
}

/* =============================================================================
   SWIPER MOBILE
   ============================================================================= */
@media (max-width: 991.98px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 0.875rem !important;
    }
    
    /* Hide arrows on very small screens */
    @media (max-width: 575.98px) {
        .swiper-button-next,
        .swiper-button-prev {
            display: none;
        }
    }
}

/* =============================================================================
   TIMELINE / HISTORY SLIDER MOBILE
   ============================================================================= */
@media (max-width: 991.98px) {
    .progress-bar {
        margin: 0 30px;
    }
    
    .slider .text-container {
        padding: 1rem;
    }
    
    .slider .image-container img {
        max-height: 250px;
        object-fit: cover;
    }
}

/* =============================================================================
   ACCORDION MOBILE
   ============================================================================= */
@media (max-width: 991.98px) {
    .accordion-button {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
}

/* =============================================================================
   FOOTER MOBILE
   ============================================================================= */
@media (max-width: 991.98px) {
    footer {
        text-align: center;
        background-image: none;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    footer h3 {
        margin-bottom: 1rem;
    }
    
    .site-footer ul {
        display: inline-block;
        text-align: left;
    }
    
    .social-media {
        justify-content: center;
    }
    
    footer .global-partners {
        justify-content: center;
    }
    
    /* Footer columns stack */
    .footer-1, .footer-2, .footer-3, .footer-4 {
        margin-bottom: 1.5rem;
    }
}

/* =============================================================================
   UTILITY CLASSES MOBILE
   ============================================================================= */
@media (max-width: 991.98px) {
    .hide-xs { display: none !important; }
    .show-xs { display: block !important; }
    
    .text-xs-center { text-align: center !important; }
    .text-xs-left { text-align: left !important; }
    
    .order-xs-first { order: -1 !important; }
    .order-xs-last { order: 13 !important; }
    
    .mb-xs-3 { margin-bottom: 1rem !important; }
    .mb-xs-4 { margin-bottom: 1.5rem !important; }
    
    .px-xs-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
    .px-xs-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
}

/* =============================================================================
   SMALL MOBILE (< 576px)
   ============================================================================= */
@media (max-width: 575.98px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.375rem; }
    
    .fs-80 { font-size: 2rem; }
    .fs-32 { font-size: 1.125rem; }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
    }
    
    /* Card adjustments */
    .product-item,
    .sector-item {
        padding: 1rem;
    }
    
    /* Offcanvas full width on small screens */
    .offcanvas {
        max-width: 100vw;
        width: 100vw;
    }
}

/* =============================================================================
   LANDSCAPE MOBILE
   ============================================================================= */
@media (max-width: 991.98px) and (orientation: landscape) {
    .row-type-intro,
    .row-type-intro__extended {
        min-height: 60vh;
        padding-top: 80px;
    }
}

/* =============================================================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================================================= */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .btn:hover {
        transform: none;
    }
    
    .card:hover {
        transform: none;
        box-shadow: var(--shadow, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
    }
    
    .product-item:hover,
    .sector-item:hover {
        transform: none;
    }
    
    /* Active states for touch */
    .btn:active {
        transform: scale(0.98);
    }
    
    .product-item:active,
    .sector-item:active {
        transform: scale(0.98);
    }
}

/* =============================================================================
   SAFE AREA (Notched phones)
   ============================================================================= */
@supports (padding: max(0px)) {
    header {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    footer {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
    
    .offcanvas {
        padding-left: max(1rem, env(safe-area-inset-left));
    }
}

/* =============================================================================
   HIGH CONTRAST / ACCESSIBILITY
   ============================================================================= */
@media (prefers-contrast: high) {
    .btn {
        border-width: 3px;
    }
    
    a:focus,
    button:focus,
    .btn:focus {
        outline: 3px solid currentColor;
        outline-offset: 2px;
    }
}

/* =============================================================================
   REDUCED DATA MODE
   ============================================================================= */
@media (prefers-reduced-data: reduce) {
    /* Skip loading decorative background images */
    footer {
        background-image: none !important;
    }
}

/* =============================================================================
   CONTACT PAGINA MOBILE
   ============================================================================= */
@media (max-width: 991.98px) {
    .contact-card {
        padding: 1.5rem !important;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem !important;
        margin-top: 1rem;
    }
    
    .contact-form .btn {
        width: 100%;
        margin-top: 1rem;
    }
}

/* =============================================================================
   FOOTER MOBILE - MEER BODY
   ============================================================================= */
@media (max-width: 991.98px) {
    footer.site-footer {
        padding-top: 3rem !important;
        padding-bottom: 2rem !important;
        margin-top: 2rem;
    }
    
    footer h3.widget-title {
        margin-bottom: 1rem;
    }
    
    footer .widget {
        margin-bottom: 0.5rem;
        padding: 0px;
    }
}

/* =============================================================================
   SECTIONS MOBILE - MEER BODY
   ============================================================================= */
@media (max-width: 991.98px) {
    section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    .content {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .py-6 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

.row-type-text-image-card {
	margin: 0px 15px;
}

/* =============================================================================
   SCROLL FIX - iOS scroll wordt niet geblokkeerd
   ============================================================================= */
@media (max-width: 991.98px) {
    html {
        overflow-x: clip;
    }
    body {
        overflow-x: unset;
    }
    #page {
        overflow-x: hidden;
    }
}

/* =============================================================================
   HOMEPAGE HERO - VIDEO VOLLEDIG ZICHTBAAR, DEPARTMENTS ERONDER
   ============================================================================= */
.vs-hero-wrap {
    background-color: #1a3a68;
}

.vs-hero-video {
    padding-top: 60vh;
}

@media (min-width: 992px) {
    .vs-hero-video {
        padding-top: 55vh;
    }
}

.vs-hero-overlay {
    background: linear-gradient(to top, rgba(10, 35, 56, 0.75) 0%, rgba(10, 35, 56, 0.15) 60%, transparent 100%);
    z-index: 0;
}

.vs-hero-content-wrap {
    height: 100%;
}

.vs-hero-text h1 {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
}

@media (max-width: 991.98px) {
    .vs-hero-video {
        padding-top: 56vw;
        min-height: 280px;
    }

    .vs-hero-text h1 {
        font-size: clamp(1.375rem, 5.5vw, 2rem) !important;
        margin-bottom: 0.375rem !important;
    }

    .vs-hero-text .fs-6 p {
        font-size: 0.9375rem;
        margin-bottom: 0;
        line-height: 1.5;
    }
}

@media (max-width: 575.98px) {
    .vs-hero-video {
        padding-top: 62vw;
        min-height: 240px;
    }
}

/* Departments altijd ONDER de video */
.vs-hero-departments {
    background-color: #1a3a68;
}

.vs-hero-departments .departments {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.vs-hero-departments .department {
    background-color: #2e4c77;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    min-height: 70px;
}

.vs-hero-departments .departments > :nth-child(2n) .department {
    background-color: #1a3a68;
}

.vs-hero-departments .department:hover {
    background-color: #336096;
}

.vs-hero-departments .department:last-child {
    border-bottom: none;
}

@media (min-width: 992px) {
    .vs-hero-video {
        padding-bottom: 130px;
    }
    .vs-hero-departments {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: transparent;
    }
    .vs-hero-departments .departments {
        border-radius: 0.625rem 0.625rem 0 0;
        overflow: hidden;
        border-top: none;
        margin-top: 0;
    }
    .vs-hero-departments .department {
        border-bottom: none;
        border-right: 1px solid rgba(255,255,255,0.07);
        min-height: 130px;
        height: 100%;
    }
    .vs-hero-departments .department:last-child {
        border-right: none;
    }
    .vs-hero-departments .department i {
        font-size: 40px !important;
    }
}

@media (max-width: 991.98px) {
    .vs-hero-departments .department i {
        font-size: 1.75rem !important;
        width: 2rem;
        text-align: center;
    }
    .vs-hero-departments .department h4 {
        font-size: 0.9375rem !important;
        margin-bottom: 0 !important;
    }
    .vs-hero-departments .department .small {
        font-size: 0.8125rem !important;
    }
}

/* =============================================================================
   VS OFFCANVAS MOBIEL MENU
   ============================================================================= */
.vs-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.375rem;
    border-radius: 0.375rem;
    transition: background-color 0.15s ease;
    display: flex;
    align-items: center;
}

.vs-menu-toggle:hover {
    background-color: rgba(26, 58, 104, 0.08);
}

.vs-menu-toggle .bi-list {
    font-size: 2rem;
    color: var(--color-primary);
    display: block;
    line-height: 1;
}

.vs-offcanvas {
    width: 320px;
    max-width: 88vw;
    background-color: #0f2444;
    border-right: none;
    display: flex;
    flex-direction: column;
}

.vs-offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background-color: #ffffff;
    border-bottom: 3px solid var(--color-accent);
    flex-shrink: 0;
}

.vs-offcanvas-logo img {
    height: 44px;
    width: auto;
}

.vs-offcanvas-close {
    background: none;
    border: none;
    cursor: pointer;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-primary);
    font-size: 1.125rem;
    transition: background-color 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.vs-offcanvas-close:hover {
    background-color: rgba(26, 58, 104, 0.1);
    color: var(--color-accent);
}

.vs-offcanvas-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0 1.25rem 0;
    display: flex;
    flex-direction: column;
}

/* Nav lijst - geen li::before pseudo-element */
.vs-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 1rem;
    padding-left: 0px !important;
}

.mb-xs-0 {
	margin-bottom: 0px !important;
}

.vs-nav li::before {
    display: none !important;
    content: none !important;
}

.vs-nav-item {
    border-radius: 0.5rem;
    overflow: hidden;
}

.vs-nav-link {
    display: flex;
    align-items: stretch;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    transition: background-color 0.15s ease;
    min-height: 50px;
}

.vs-nav-item.has-children > .vs-nav-link {
    border-radius: 0.5rem 0.5rem 0 0;
}

.vs-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.13);
}

/* Tekst link: verticaal gecentreerd */
.vs-nav-link-text {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.3;
    min-height: 50px;
}

.vs-nav-link-text:hover {
    color: var(--color-accent);
}

/* Toggle knop naast linktekst */
.vs-nav-toggle {
    background: none;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.12);
    cursor: pointer;
    width: 3rem;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.65);
    flex-shrink: 0;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.vs-nav-toggle:hover {
    color: var(--color-accent);
    background-color: rgba(255,255,255,0.05);
}

.vs-nav-toggle .bi-chevron-down {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.vs-nav-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

/* Submenu */
.vs-submenu {
    background-color: rgba(0,0,0,0.2);
    border-radius: 0 0 0.5rem 0.5rem;
    overflow: hidden;
}

.vs-subnav {
    list-style: none;
    padding: 0.25rem 0;
    margin: 0;
}

.vs-subnav li::before {
    display: none !important;
    content: none !important;
}

.vs-subnav-item {
    margin: 0;
}

.vs-subnav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.625rem 1rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.15s ease, background-color 0.15s ease;
    min-height: 44px;
}

.vs-subnav-link:hover {
    color: var(--color-accent);
    background-color: rgba(255,255,255,0.05);
}

.vs-subnav-link .bi-arrow-right-short {
    font-size: 1.125rem;
    flex-shrink: 0;
    color: var(--color-accent);
    opacity: 0.7;
}

/* Contactinfo onderin menu */
.vs-offcanvas-contact {
    margin-top: 1.25rem;
    padding: 1rem 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vs-contact-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9375rem;
    min-height: 44px;
    transition: color 0.15s ease;
}

.vs-contact-link:hover { color: var(--color-accent); }
.vs-contact-link .bi { font-size: 1rem; color: var(--color-accent); flex-shrink: 0; }

/* =============================================================================
   FOOTER MOBIEL - col-12, minder witruimte
   ============================================================================= */
@media (max-width: 575.98px) {
    footer {
        text-align: left !important;
        background-image: none;
    }

    footer .row > [class*="col-"] {
        text-align: left !important;
    }

    footer .row > [class*="col-"]:last-child {
        margin-bottom: 0 !important;
    }

    /* Offsets wegzetten op mobiel */
    footer .offset-sm-1 {
        margin-left: 0 !important;
    }

    footer h3,
    footer h3.widget-title {
        text-align: left !important;
        margin-bottom: 0.75rem;
    }

    .site-footer ul {
        display: block;
        text-align: left !important;
    }

    .social-media {
        justify-content: flex-start !important;
    }

    footer .global-partners {
        justify-content: flex-start !important;
    }

    footer .border-top .col-md-6 {
        text-align: left !important;
    }

    /* Minder padding rondom footer */
    footer.site-footer {
        padding-top: 2rem !important;
        padding-bottom: 1.5rem !important;
    }

    footer .widget {
        margin-bottom: 0.5rem;
    }

    footer h3.widget-title {
        padding-bottom: 0.5rem;
        margin-bottom: 0.75rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    footer .offset-sm-1 {
        margin-left: 8.333%;
    }
}

/* =============================================================================
   OVER ONS - sector iconen zelfde hoogte, 2x2 grid
   ============================================================================= */
@media (max-width: 991.98px) {
    /* Branches sector items: zelfde hoogte via flexbox */
    .branches-sector-grid,
    .col-lg-6 .row.align-items-center {
        align-items: stretch !important;
    }

    .col-lg-6 .col-6 .sector-item {
        height: 90px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
}

/* =============================================================================
   SECTOREN GELE BLOKKEN - compacter op mobiel
   ============================================================================= */
@media (max-width: 991.98px) {
    .row-type-text-images .sector-item {
        padding: 1.25rem 0.75rem !important;
    }
    .row-type-text-images .sector-item .fs-80 {
        font-size: 2.25rem !important;
    }
    .row-type-text-images .sector-item .fs-32 {
        font-size: 1rem !important;
    }
    .row-type-text-images .row > [class*="col-"] {
        margin-bottom: 0.75rem !important;
    }
}

@media (max-width: 575.98px) {
    .row-type-text-images .sector-item .fs-80 {
        font-size: 1.875rem !important;
    }
    .row-type-text-images .sector-item .fs-32 {
        font-size: 0.9375rem !important;
    }
}

/* =============================================================================
   DIENSTEN USP BLOKKEN - 2x2, compacter
   ============================================================================= */
@media (max-width: 991.98px) {
    .usp-item.sector-item {
        min-height: 90px;
        padding: 0.875rem 0.5rem !important;
    }
    .usp-item.sector-item i {
        font-size: 24px !important;
    }
}

/* =============================================================================
   PROJECTEN SWIPER KAART - knop altijd onderaan
   ============================================================================= */
.product-item .block-content {
    display: flex;
    flex-direction: column;
}

.product-item .block-content .flex-grow-1 {
    flex: 1;
}

@media (max-width: 991.98px) {
    .productSwiper .swiper-slide {
        margin-top: 0 !important;
    }
    .product-item {
        border-radius: 0.5rem;
        overflow: hidden;
    }
    .product-item img {
        height: 200px !important;
    }
}

/* =============================================================================
   SINGLE PROJECT / DIENST PAGINA - MOBIEL
   ============================================================================= */
@media (max-width: 991.98px) {
    .fotos .col-6 img,
    .fotos .col-lg-3 img {
        height: 160px !important;
    }

    .single-project .col-lg-4 .p-4,
    .single-dienst .col-lg-3 .p-4 {
        position: static !important;
        margin-top: 2rem;
    }
}

/* =============================================================================
   CONTACT FORMULIER MOBIEL - privacy + knop correct stapelen
   ============================================================================= */
@media (max-width: 767.98px) {
    /* Rij met privacy + submit: verticaal stapelen */
    .wpcf7 .col-12.d-flex.justify-content-between {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem;
    }

    .wpcf7 .col-12.d-flex.justify-content-between .btn,
    .wpcf7 .col-12.d-flex.justify-content-between [type="submit"],
    .wpcf7 .col-12.d-flex.justify-content-between .wpcf7-submit {
        width: 100%;
        justify-content: center;
    }

    /* Formulier velden full-width op mobiel */
    .wpcf7 .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Minder padding rondom formulier wrapper */
    .contact-form-wrapper {
        padding: 1.25rem !important;
        margin-top: 0 !important;
    }
}

/* =============================================================================
   SAFE AREA (inkeping-schermen)
   ============================================================================= */
@supports (padding: max(0px)) {
    header {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}
