/* ============================================
   RESPONSIVE CSS — MOBIEL & TABLET
   Geladen bij max-width: 1199px
   ============================================ */


/* ============================================
   VERBERG MAX MEGA MENU OP MOBIEL
   ============================================ */
#mega-menu-wrap-primary,
.mega-menu-wrap {
    display: none !important;
}


/* ============================================
   BOOTSTRAP OFFCANVAS MOBIEL MENU
   ============================================ */

/* Logo kolom: breder op mobiel */
.col-mobile-logo {
    flex: 0 0 60%;
    max-width: 60%;
}

.col-mobile-toggle {
    flex: 0 0 40%;
    max-width: 40%;
}

/* Hamburger knop */
.mobile-hamburger {
    background: none !important;
    line-height: 1;
}

.mobile-hamburger:focus {
    box-shadow: none !important;
}

/* Nav items */
.mobile-nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 24px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease, color 0.15s ease;
}

.mobile-nav-item:hover {
    background: #f8f8f8;
    color: #b42227;
}

.mobile-nav-item.mobile-nav-active {
    color: #b42227;
    font-weight: 600;
    background: #fdf2f2;
}

.mobile-nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: #b42227;
    flex-shrink: 0;
}

/* Footer sectie in offcanvas */
.mobile-nav-footer {
    margin-top: auto;
    padding: 20px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

.mobile-nav-contact:hover {
    color: #b42227;
}

.mobile-nav-contact .bi {
    font-size: 16px;
    color: #b42227;
    width: 20px;
    text-align: center;
}

/* Offcanvas body: flex zodat footer onderaan plakt */
#mobileMenu .offcanvas-body {
    display: flex;
    flex-direction: column;
}


/* ---- BODY PADDING ---- */
body {
    padding: 15px 15px 0 15px;
}


/* ---- HEADER ---- */
.site-header {
    height: calc(50vh - 30px);
}

.site-header.home {
    height: calc(70vh - 30px);
}

.site-header .header-content {
    padding: 12px 15px !important;
}

.col-mobile-logo {
    flex: 0 0 60% !important;
    max-width: 60% !important;
}

.col-mobile-toggle {
    flex: 0 0 40% !important;
    max-width: 40% !important;
}

.site-header .header-content .img-fluid {
    max-height: 45px;
    width: auto;
}

/* Header footer tekst */
.header-footer {
    padding: 15px !important;
}

.header-footer div[style*="font-size: 18px"] {
    font-size: 13px !important;
}

.header-footer div[style*="font-size: 28px"] {
    font-size: 18px !important;
}

.header-footer .border-start {
    display: none !important;
}

.header-footer .ps-4 {
    display: none !important;
}


/* ---- HEADER HOOGTE VARIANTEN ---- */
.site-header.header-medium {
    height: calc(35vh - 30px);
}

.site-header.header-small {
    height: calc(25vh - 30px);
}


/* ---- SECTIONS PADDING ---- */
.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.p-5 {
    padding: 1.5rem !important;
}

.p-4 {
    padding: 1rem !important;
}

.px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.pe-5 {
    padding-right: 1rem !important;
}

.ps-0.pe-5 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Services section images — stack on mobile */
.services-section .col-lg-6:first-child {
    display: none;
}
.services-section .col-lg-6:last-child {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Override inline padding: 100px en 80px op front-page/dienst secties */
div[style*="padding: 100px"],
div[style*="padding:100px"],
div[style*="padding: 80px"],
div[style*="padding:80px"],
.content {
    padding: 40px 0 !important;
}

section .container {
    padding-left: 15px;
    padding-right: 15px;
}

.mt-5 {
    margin-top: 2rem !important;
}


/* ---- TYPOGRAPHY ---- */
h1, .h1 { font-size: 1.75rem; }
h2, .h2 { font-size: 1.4rem; }
h3, .h3 { font-size: 1.15rem; }

.main-title {
    font-size: 1.5rem !important;
}

.main-subtitle {
    font-size: 0.95rem !important;
}


/* ---- CTA SECTIONS ---- */
.cta-section {
    padding: 25px 20px;
    margin-top: 30px;
}

.cta-title {
    font-size: 22px;
}

.cta-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
}

.btn {
    padding: 12px 24px;
    font-size: 14px;
}

.cta-button,
.cta-button-light {
    padding: 12px 24px;
    font-size: 14px;
}


/* ---- CARDS ---- */
.card-img img {
    height: 200px;
}

.card-img .btn-more {
    padding: 10px 20px;
    font-size: 11px;
    bottom: 0.75rem;
    left: 0.75rem;
}

.card-img .badge,
.card-img-top .badge {
    top: 0.75rem;
    left: 0.75rem;
    font-size: 10px;
    padding: 4px 10px;
}

.card-flush {
    padding-right: 0;
}


/* ---- PROJECTEN SWIPER ---- */
.projecten-blok .card-flush .card-img img {
    height: 220px;
}

.projectenSwiper .swiper-button-prev,
.projectenSwiper .swiper-button-next {
    display: none;
}

.hide-xs {
    display: none !important;
}


/* ---- PRODUCT SWIPER (front-page) ---- */
.image-card img {
    height: 200px;
}


/* ---- WERKWIJZE SECTIE ---- */
.steps-nav {
    flex-wrap: wrap;
}

.step-tab {
    flex: 0 0 33.33%;
    padding: 12px 8px;
    border-bottom: 1px solid #e5e5e5;
}

.step-name {
    font-size: 10px;
}

.slide-panel {
    flex-direction: column;
    height: auto;
    min-height: auto;
}

.content-left,
.content-right {
    flex: none;
    width: 100%;
}

.content-left {
    min-height: 250px;
}

.content-right {
    min-height: 250px;
}

.content-left-inner {
    padding: 30px 20px;
}

.content-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.content-text {
    font-size: 14px;
}

.right-content {
    padding: 30px 20px;
}

.right-title {
    font-size: 20px;
}

.right-text {
    font-size: 14px;
}


/* ---- SERVICE CARDS ---- */
.service-card {
    padding: 20px 15px;
}

.service-icon {
    width: 60px;
    height: 60px;
}

.service-icon .bi {
    font-size: 28px;
}

.service-title {
    font-size: 16px;
}

.service-description {
    font-size: 13px;
}


/* ---- FOOTER ---- */
footer .row > .col-lg {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 1.5rem;
}

footer .col-lg.offset-sm-1 {
    margin-left: 0 !important;
}

footer .col-6 {
    font-size: 12px;
}

/* Footer CTA form */
.cta.py-5 {
    padding: 1.5rem 0 !important;
}

.cta .container .row .col-md-6 {
    margin-bottom: 1rem;
}

/* Footer reviews */
.footer-reviews .container {
    padding: 0 15px;
}

.footer-reviews-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px !important;
}

.footer-reviews-header h2 {
    font-size: 18px !important;
}


/* ---- INSPIREREN GRID ---- */
.insp-img-wrap {
    height: 240px;
}


/* ---- VOOR/NA SLIDER ---- */
.voor-na-after img,
.voor-na-before img {
    height: 280px;
}


/* ---- CONTACT FORM ---- */
.wpcf7-form > p:first-of-type {
    grid-template-columns: 1fr;
    gap: 0;
}

.wpcf7-form {
    padding: 1rem;
    margin: 0;
}


/* ---- COL BREAKOUT VERWIJDEREN ---- */
.col-breakout-lg-left,
.col-breakout-lg-right {
    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* ---- CONTENT SECTIE: AFBEELDINGEN FIX ---- */
/* Voorkomt dat ratio-gebaseerde afbeeldingen over tekst vallen */
.content .row.g-3.g-md-8 {
    flex-direction: column !important;
}

.content .row.g-3.g-md-8 > .col-md-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Image grid binnen content: stack de kolommen */
.content .row.g-3.g-md-8 .row.g-3 {
    flex-wrap: nowrap;
}

.content .row.g-3.g-md-8 .row.g-3 .col-5 {
    flex: 0 0 40%;
    max-width: 40%;
}

.content .row.g-3.g-md-8 .row.g-3 .col-7 {
    flex: 0 0 60%;
    max-width: 60%;
}

/* Ratio containers: beperk hoogte en stop overflow */
.content .ratio {
    overflow: hidden;
}

.content .ratio > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Verwijder parallax op mobiel */
.content .ratio-move img {
    transform: none !important;
}

/* Tekst kolom: zorg voor voldoende ruimte boven */
.content .row.g-3.g-md-8 > .col-md-6.offset-lg-1 {
    margin-left: 0 !important;
    padding-top: 2rem;
}

/* Intro sectie: col-breakout figure fix */
.col-breakout-lg-right figure,
.col-breakout-lg-left figure {
    height: auto !important;
}

.col-breakout-lg-right .ratio,
.col-breakout-lg-left .ratio {
    --mm-aspect-ratio: 66.67%;
}

/* Ratio-single: zorg dat het contained blijft */
.ratio-single::before {
    padding-top: 66.67%;
}

.ratio-single > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ---- FORM LABELS OP DONKERE ACHTERGROND ---- */
.form-label {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    font-size: 0.85rem !important;
}

/* Form labels op lichte achtergrond (bijv. wpcf7) */
.wpcf7-form .form-label,
.bg-white .form-label,
.bg-light .form-label {
    color: #333 !important;
}

/* CTA / footer contactform labels */
.cta .form-label,
.content .form-label,
footer .cta .form-label {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Form control placeholders op donkere achtergrond */
.cta .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.cta .form-control {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.4);
}


/* ---- SFEERIMPRESSIE ---- */
.sfeer-img-wrap {
    aspect-ratio: 4 / 3;
}


/* ---- RATIO / IMAGES ---- */
.ratio-16x9 {
    --bs-aspect-ratio: 56.25%;
}

.image-wrapper .info-box {
    width: 220px;
    font-size: 12px;
}


/* ---- GOOGLE REVIEWS FOOTER BADGE ---- */
.footer-google-badge .p-3 {
    padding: 0.5rem !important;
}


/* ---- PROJECT CTA TOAST ---- */
.project-cta-toast {
    width: calc(100vw - 30px);
    left: 15px;
    right: 15px;
    bottom: 15px;
    padding: 18px 18px 16px;
}


/* ---- WHATSAPP BUTTON ---- */
.wa-float {
    width: 48px;
    height: 48px;
    font-size: 24px;
    bottom: 20px;
    right: 15px;
}


/* ============================================
   TABLET PORTRAIT (768px – 1024px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1024px) {
    body {
        padding: 20px 20px 0 20px;
    }

    .site-header.home {
        height: calc(60vh - 40px);
    }

    .site-header {
        height: calc(45vh - 40px);
    }

    .header-footer div[style*="font-size: 18px"] {
        font-size: 15px !important;
    }

    .header-footer div[style*="font-size: 28px"] {
        font-size: 22px !important;
    }

    .card-img img {
        height: 220px;
    }

    .projecten-blok .card-flush .card-img img {
        height: 240px;
    }

    .image-card img {
        height: 220px;
    }

    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.6rem; }
    
    .main-title {
        font-size: 1.75rem !important;
    }

    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .content {
        padding: 60px 0;
    }

    .insp-img-wrap {
        height: 280px;
    }

    footer .row > .col-lg {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .step-tab {
        flex: 1;
    }

    .step-name {
        font-size: 12px;
    }

    .slide-panel {
        height: 400px;
    }
}


/* ============================================
   TABLET LANDSCAPE (1025px – 1199px)
   ============================================ */
@media (min-width: 1025px) and (max-width: 1199px) {
    body {
        padding: 25px 25px 0 25px;
    }

    .site-header.home {
        height: calc(70vh - 50px);
    }

    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .content {
        padding: 60px 0;
    }

    footer .row > .col-lg {
        flex: 0 0 25%;
        max-width: 25%;
    }
}


/* ============================================
   TELEFOON PORTRAIT (< 576px)
   ============================================ */
@media (max-width: 575px) {
    body {
        padding: 8px 8px 0 8px;
    }

    .site-header.home {
        height: calc(55vh - 16px);
    }

    .site-header {
        height: calc(35vh - 16px);
    }

    .site-header.header-medium {
        height: calc(28vh - 16px);
    }

    .site-header.header-small {
        height: calc(22vh - 16px);
    }

    .site-header .header-content .img-fluid {
        max-height: 38px;
    }

    .header-footer div[style*="font-size: 18px"] {
        font-size: 11px !important;
    }

    .header-footer div[style*="font-size: 28px"] {
        font-size: 15px !important;
    }

    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .p-5 {
        padding: 1rem !important;
    }

    h1, .h1 { font-size: 1.5rem; }
    h2, .h2 { font-size: 1.25rem; }
    h3, .h3 { font-size: 1.05rem; }

    .main-title {
        font-size: 1.3rem !important;
    }

    .main-subtitle {
        font-size: 0.85rem !important;
    }

    /* Cards */
    .card-img img {
        height: 180px;
    }

    .projecten-blok .card-flush .card-img img {
        height: 200px;
    }

    .image-card img {
        height: 180px;
    }

    /* CTA */
    .cta-section {
        padding: 20px 15px;
        margin-top: 20px;
    }

    .cta-title {
        font-size: 18px;
    }

    .cta-subtitle {
        font-size: 13px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .cta-button,
    .cta-button-light {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Werkwijze */
    .step-tab {
        flex: 0 0 50%;
        padding: 10px 6px;
    }

    .step-number {
        font-size: 12px;
    }

    .step-name {
        font-size: 9px;
    }

    .content-left-inner {
        padding: 24px 16px;
    }

    .content-title {
        font-size: 20px;
    }

    .content-text {
        font-size: 13px;
    }

    .right-content {
        padding: 24px 16px;
    }

    .right-title {
        font-size: 18px;
    }

    .right-text {
        font-size: 13px;
    }

    /* Footer */
    footer .row > .col-lg {
        flex: 0 0 100%;
        max-width: 100%;
    }

    footer .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: left !important;
        margin-bottom: 0.5rem;
    }

    .footer-review-card {
        padding: 15px;
    }

    .footer-reviews .col-md-4 {
        margin-bottom: 0.5rem;
    }

    /* Inspireren */
    .insp-img-wrap {
        height: 200px;
    }

    /* Services */
    .service-card {
        padding: 15px 12px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }

    .service-icon .bi {
        font-size: 24px;
    }

    .service-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .service-description {
        font-size: 12px;
    }

    /* Voor/na */
    .voor-na-after img,
    .voor-na-before img {
        height: 220px;
    }

    /* Content sectie images: kleiner op telefoon */
    .content .ratio.ratio-3x4 {
        --bs-aspect-ratio: 120%;
    }

    .content .row.g-3.g-md-8 .row.g-3 .col-5 {
        flex: 0 0 45%;
        max-width: 45%;
    }

    .content .row.g-3.g-md-8 .row.g-3 .col-7 {
        flex: 0 0 55%;
        max-width: 55%;
    }

    .voor-na-button {
        width: 40px;
        height: 40px;
    }

    .voor-na-button .bi {
        font-size: 13px;
    }

    /* Video in header */
    .site-header video {
        object-position: center center;
    }

    /* Contact CTA knoppen */
    .contact-cta-buttons {
        flex-direction: column;
    }

    .contact-cta-buttons .btn {
        width: 100%;
    }

    /* Promise tag */
    .promise-tag {
        font-size: 10px;
        padding: 3px 10px;
    }

    /* Highlight box */
    .highlight-box {
        padding: 18px;
    }

    .highlight-title {
        font-size: 16px;
    }

    .highlight-text {
        font-size: 13px;
    }

    /* Breadcrumbs */
    #breadcrumbs {
        font-size: 12px;
    }

    /* Portfolio filter */
    .form-select {
        padding: 0.65rem 2.5rem 0.65rem 1rem;
        font-size: 14px;
    }
}


/* ============================================
   TELEFOON LANDSCAPE (landscape + small)
   ============================================ */
@media (max-width: 767px) and (orientation: landscape) {
    .site-header.home {
        height: calc(90vh - 16px);
    }

    .site-header {
        height: calc(70vh - 16px);
    }

    .site-header.header-medium {
        height: calc(60vh - 16px);
    }

    .header-footer div[style*="font-size: 28px"] {
        font-size: 16px !important;
    }

    .slide-panel {
        flex-direction: row;
        height: 300px;
        min-height: 300px;
    }

    .content-left,
    .content-right {
        flex: 1;
        width: auto;
        min-height: auto;
    }
}


/* ============================================
   FLEX CONTENT BLOCKS SPACING
   ============================================ */
.flex-content-block .container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Dienst template images */
.dienst-content img,
.template-content img {
    width: 100%;
    height: auto;
    object-fit: cover;
}


/* ============================================
   PRINT OVERRIDE — geen body padding
   ============================================ */
@media print {
    body {
        padding: 0 !important;
    }
}
