/* ==========================================================================
   Mobile UX & Conversie Optimalisatie
   Epic 7 — KristofDV.be
   ========================================================================== */

/* ==========================================================================
   Fix parallax/fixed banners on touch & small screens.
   iOS Safari and Android Chrome anchor `background-attachment: fixed` to the
   viewport instead of the element, so combined with `background-size: cover`
   the visible slice of the scaled image often falls outside the banner and
   leaves it blank. Force scroll-attachment on mobile.
   ========================================================================== */
@media (max-width: 1024px), (hover: none) {
    .js__parallax-window,
    .g-bg--fixed,
    [style*="background-attachment: fixed"],
    [style*="no-repeat fixed"] {
        background-attachment: scroll !important;
    }
}

/* ==========================================================================
   Story 7.1 — Hero Compacter op Mobiel
   ========================================================================== */

@media (max-width: 768px) {
    /* Hero padding: extra ruimte voor vaste header zodat logo niet over titel valt */
    .js__parallax-window .g-padding-y-150--xs {
        padding-top: 160px !important;
        padding-bottom: 60px !important;
    }

    /* Marge onder hero content verkleinen */
    .js__parallax-window .g-margin-b-60--xs {
        margin-bottom: 25px !important;
    }

    /* Hero titels compacter */
    .js__parallax-window h1 {
        font-size: 28px !important;
    }

    .js__parallax-window h1 span {
        font-size: 18px !important;
    }

    .js__parallax-window h2 {
        font-size: 11px !important;
    }

    /* Scroll-pijl verbergen — neemt ruimte in op mobiel */
    .js__parallax-window a[href="#js__scroll-to-section"] {
        display: none;
    }

    /* Header-btns: voorkomen dat telefoon-bubble en offerte-knop in elkaar lopen.
       .header-tel is een inline <a> met verticale padding, die geen hoogte
       afdwingt op zijn wrapper-<div>. Daardoor overlapt de witte bubble met
       de knop eronder in de column-layout (<=600px). */
    .js__parallax-window .header-btns {
        gap: 14px;
    }

    .js__parallax-window .header-btns .header-tel {
        display: inline-block;
    }

    .js__parallax-window .header-btns .btn-offerte-header {
        margin-top: 0 !important;
    }

    /* Homepage swiper hero ook compacter */
    .g-fullheight--xs {
        min-height: 65vh !important;
        height: auto !important;
    }

    .g-fullheight--xs .g-ver-center--xs {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .g-fullheight--xs h1 {
        font-size: 24px !important;
    }

    .g-fullheight--xs p {
        font-size: 13px !important;
    }

    /* Scroll indicator op homepage ook verbergen */
    .s-scroll-to-section-v1--bc {
        display: none;
    }
}

/* ==========================================================================
   Story 7.2 — Offerte Link Opvallend in Navigatie
   ========================================================================== */

/* Specifiek de "Offerte" link (tweede offerte.php link in het menu) */
li.s-header__nav-menu-item:nth-last-child(4) .s-header__nav-menu-link[href="/offerte.php"] {
    color: #fff !important;
    background: #13b1cd !important;
    padding: 8px 20px !important;
    border-radius: 25px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease;
}

li.s-header__nav-menu-item:nth-last-child(4) .s-header__nav-menu-link[href="/offerte.php"]:hover {
    background: #0e8fa6 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(19, 177, 205, 0.3);
}

/* ==========================================================================
   Story 7.4 — Trust Bar Verbeteren op Mobiel
   ========================================================================== */

@media (max-width: 768px) {
    /* Trust bar items onder elkaar op kleine schermen */
    .g-padding-y-15--xs .col-sm-3 {
        display: block !important;
        width: 100% !important;
        padding: 6px 15px !important;
        text-align: left !important;
        border-bottom: 1px solid #f0f0f0;
    }

    .g-padding-y-15--xs .col-sm-3:last-child {
        border-bottom: none;
    }

    .g-padding-y-15--xs .col-sm-3 span {
        font-size: 13px !important;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .g-padding-y-15--xs .col-sm-3 i {
        font-size: 16px !important;
        min-width: 20px;
        text-align: center;
    }
}

/* ==========================================================================
   Story 7.3 — Tussen-CTA Styling
   Strak en subtiel, past bij de rest van het design
   ========================================================================== */

.cta-tussen {
    text-align: center;
    padding: 50px 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.cta-tussen p {
    margin-bottom: 15px;
}

.cta-tussen .s-btn {
    margin: 5px;
}

@media (max-width: 768px) {
    .cta-tussen {
        padding: 35px 15px;
    }

    .cta-tussen .s-btn {
        display: block;
        margin: 10px auto;
        max-width: 280px;
    }
}

/* Variant: donkere achtergrond (gebruikt voor "Liever eerst even bellen?") */
.cta-tussen--dark {
    background: #2d3436;
    color: #fff;
    border: none;
}

.cta-tussen--dark p {
    color: rgba(255, 255, 255, 0.85);
}

.cta-tussen--dark .g-font-weight--700 {
    color: #fff;
}

/* ==========================================================================
   Story 7.5 — Prominent Blok Homepage
   ========================================================================== */

.homepage-cta-blok {
    background: #fff;
    border-top: 3px solid #13b1cd;
    text-align: center;
    padding: 55px 15px;
}

.homepage-cta-blok h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.homepage-cta-blok p {
    font-size: 17px;
    color: #555;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.homepage-cta-blok .cta-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .homepage-cta-blok {
        padding: 40px 15px;
    }

    .homepage-cta-blok h2 {
        font-size: 22px;
    }

    .homepage-cta-blok .cta-btns {
        flex-direction: column;
        align-items: center;
    }

    .homepage-cta-blok .cta-btns .s-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ==========================================================================
   Prevent horizontal overflow (alle pagina's)
   ========================================================================== */

html, body {
    overflow-x: hidden;
}
