/* ============================================================
   WEBHOUSE UPGRADE-LAAG v1.2
   Nieuwe componenten + polish bovenop build/main.css.
   Geen build-stap nodig; dit bestand wordt als laatste geladen.
   ------------------------------------------------------------
   Inhoud:
   01. Utilities & reduced motion
   02. Header-CTA
   03. Hero (canvas, CTA-rij, microcopy, shimmer)
   04. Logomarquee
   05. Statistieken-band
   06. Zo werken wij (proces)
   07. Vergelijking (Webhouse vs grote partij)
   08. FAQ-accordeon
   09. Sticky mobiele CTA-balk
   10. Knop- & kaartpolish (sweep, tilt, glow, focus)
   11. Formulier-vertrouwenssignalen
   ============================================================ */

/* ---------- 01. Utilities ---------- */
.wh-hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    .wh-marquee-track { animation: none !important; }
    .wh-tiltable { transform: none !important; }
    .banner-sec h1 strong { animation: none !important; }
}

/* ---------- 02. Header-CTA ---------- */
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    background-image: linear-gradient(-87deg, #146795 0%, #0B5988 100%);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    padding: 1.3rem 2.4rem;
    border-radius: 5rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(88, 197, 241, 0.35), 0 6px 24px rgba(11, 89, 136, 0.35);
    transition: box-shadow 0.3s ease, color 0.3s ease;
}
.header-cta:hover {
    color: #fff;
    box-shadow: 0 0 0 1px rgba(88, 197, 241, 0.9), 0 8px 30px rgba(88, 197, 241, 0.35);
}
.header-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.28) 50%, transparent 68%);
    background-size: 250% 100%;
    background-position: 120% 0;
    transition: background-position 0.7s ease;
    pointer-events: none;
}
.header-cta:hover::before { background-position: -20% 0; }
@media (max-width: 991.98px) { .header-cta { display: none; } }

/* ---------- 03. Hero ---------- */
.banner-sec { isolation: isolate; }
.wh-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.banner-sec .container { position: relative; z-index: 2; }

/* Canvas-laag op binnenpagina-heroes en 404: onder de tekst */
.service-banner .wh-hero-canvas { z-index: 0; }
.service-banner .container { position: relative; z-index: 1; }
.error-wrapper .wh-hero-canvas { z-index: 0; }
.error-wrapper .container { position: relative; z-index: 1; }

/* Glimmend accentwoord in de titel */
.banner-sec h1 strong {
    background-image: linear-gradient(100deg, #58C5F1 20%, #CDEFFF 42%, #58C5F1 60%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: wh-shimmer 5.5s ease-in-out infinite;
}
@keyframes wh-shimmer {
    0%, 100% { background-position: 110% 0; }
    50% { background-position: -10% 0; }
}

/* CTA-rij + microcopy */
.wh-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    justify-content: center;
    align-items: center;
}
.wh-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 2.4rem;
    justify-content: center;
    margin-top: 2.2rem;
    font-size: 1.4rem;
    color: rgba(253, 253, 253, 0.72);
}
.wh-hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}
.wh-hero-trust svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #58C5F1;
    flex-shrink: 0;
}

/* ---------- 04. Logomarquee ---------- */
.wh-logos-sec {
    padding: 2rem 0 1rem;
    position: relative;
    z-index: 2;
}
.wh-logos-label {
    text-align: center;
    font-size: 1.3rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(253, 253, 253, 0.55);
    margin-bottom: 2.4rem;
}
.wh-marquee {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.wh-marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 7rem;
    padding-right: 7rem;
    white-space: nowrap;
    will-change: transform;
}
.wh-marquee-ready .wh-marquee-track { animation: wh-marquee 30s linear infinite; }
.wh-marquee:hover .wh-marquee-track { animation-play-state: paused; }
@keyframes wh-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.wh-marquee-track img {
    height: 4.4rem;
    width: auto;
    max-width: 16rem;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.wh-marquee-track img:hover { opacity: 1; }
@media (max-width: 767.98px) {
    .wh-marquee-track { gap: 4rem; padding-right: 4rem; }
    .wh-marquee-track img { height: 3.2rem; max-width: 12rem; }
}

/* ---------- 05. Statistieken-band ---------- */
.wh-stats-sec { padding: 3rem 0; }
.wh-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 991.98px) { .wh-stats-grid { grid-template-columns: repeat(2, 1fr); } }
.wh-stat {
    text-align: center;
    padding: 3.2rem 2rem;
    border-radius: 2rem;
    border: 1px solid rgba(253, 253, 253, 0.16);
    background: rgba(253, 253, 253, 0.05);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.wh-stat-value {
    font-size: 5.4rem;
    font-weight: 700;
    line-height: 1.05;
    color: #fff;
    display: block;
}
.wh-stat-value .wh-counter { font-variant-numeric: tabular-nums; }
.wh-stat-value em {
    font-style: normal;
    color: #58C5F1;
}
.wh-stat-label {
    display: block;
    margin-top: 1rem;
    font-size: 1.6rem;
    color: rgba(253, 253, 253, 0.72);
}
@media (max-width: 767.98px) {
    .wh-stat { padding: 2.4rem 1.4rem; border-radius: 1.6rem; }
    .wh-stat-value { font-size: 3.4rem; }
    .wh-stat-label { font-size: 1.3rem; }
}

/* ---------- 06. Zo werken wij (proces) ---------- */
.wh-process { padding: 7rem 0; }
.wh-process .section-head { margin-bottom: 6rem; }
.wh-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.4rem;
    position: relative;
}
.wh-process-line {
    position: absolute;
    top: 3.4rem;
    left: calc(12.5% + 3.4rem);
    right: calc(12.5% + 3.4rem);
    height: 2px;
    background: rgba(253, 253, 253, 0.18);
    overflow: hidden;
    border-radius: 2px;
}
.wh-process-line-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #58C5F1, #9747FF);
    transform-origin: left;
    transform: scaleX(var(--progress, 0));
    transition: transform 0.2s linear;
}
.wh-step { position: relative; padding-top: 0.4rem; }
.wh-step-num {
    width: 6.8rem;
    height: 6.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(184deg, #425787 0%, #5A5091 100%);
    border: 1px solid rgba(88, 197, 241, 0.4);
    box-shadow: 0 0 0 6px rgba(88, 197, 241, 0.08);
    margin-bottom: 2.4rem;
    position: relative;
    z-index: 1;
}
.wh-step h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.wh-step p {
    font-size: 1.6rem;
    color: rgba(253, 253, 253, 0.78);
    margin: 0;
}
@media (max-width: 991.98px) {
    .wh-process { padding: 4rem 0; }
    .wh-process .section-head { margin-bottom: 3.5rem; }
    .wh-steps { grid-template-columns: 1fr; gap: 0; }
    .wh-process-line {
        top: 3.4rem;
        bottom: 3.4rem;
        left: 3.3rem;
        right: auto;
        width: 2px;
        height: auto;
    }
    .wh-process-line-fill { transform: scaleY(var(--progress, 0)); transform-origin: top; }
    .wh-step {
        display: grid;
        grid-template-columns: 6.8rem 1fr;
        gap: 0 2rem;
        padding-bottom: 3.6rem;
    }
    .wh-step-num { margin-bottom: 0; }
    .wh-step h3 { align-self: center; margin: 0; }
    .wh-step p { grid-column: 2; margin-top: 0.8rem; }
}

/* ---------- 07. Vergelijking ---------- */
.wh-compare-sec { padding: 7rem 0; }
.wh-compare-sec .section-head { margin-bottom: 5rem; }
.wh-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.4rem;
    max-width: 96rem;
    margin: 0 auto;
    align-items: stretch;
}
@media (max-width: 767.98px) { .wh-compare-grid { grid-template-columns: 1fr; } }
.wh-compare-col {
    border-radius: 2rem;
    padding: 4rem 3.6rem;
    position: relative;
    overflow: hidden;
}
.wh-compare-col.wh-us {
    background: linear-gradient(184deg, #425787 0%, #5A5091 100%);
    border: 1px solid rgba(88, 197, 241, 0.5);
    box-shadow: 0 24px 60px rgba(20, 12, 48, 0.35);
}
.wh-compare-col.wh-them {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(253, 253, 253, 0.14);
}
.wh-compare-col h3 {
    font-size: 2.4rem;
    margin-bottom: 2.6rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.wh-compare-col.wh-them h3 { color: rgba(253, 253, 253, 0.6); }
.wh-compare-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.7rem;
}
.wh-compare-col li {
    display: flex;
    align-items: flex-start;
    gap: 1.3rem;
    font-size: 1.7rem;
    line-height: 1.45;
}
.wh-compare-col.wh-them li { color: rgba(253, 253, 253, 0.55); }
.wh-compare-ico {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.15em;
}
.wh-us .wh-compare-ico { background: rgba(88, 197, 241, 0.18); color: #58C5F1; }
.wh-them .wh-compare-ico { background: rgba(253, 253, 253, 0.08); color: rgba(253, 253, 253, 0.45); }
.wh-compare-ico svg { width: 1.2rem; height: 1.2rem; }
.wh-compare-badge {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #58C5F1;
    background: rgba(88, 197, 241, 0.14);
    border: 1px solid rgba(88, 197, 241, 0.4);
    border-radius: 3rem;
    padding: 0.6rem 1.4rem;
    margin-bottom: 1.8rem;
}
.wh-compare-cta {
    text-align: center;
    margin-top: 4rem;
}
@media (max-width: 991.98px) {
    .wh-compare-sec .section-head { margin-bottom: 3.5rem; }
    .wh-compare-col { padding: 3.2rem 2.6rem; }
    .wh-compare-col h3 { font-size: 2.1rem; margin-bottom: 2rem; }
}
@media (max-width: 767.98px) {
    .wh-compare-sec { padding: 4rem 0; }
    .wh-compare-col { padding: 3rem 2.4rem; }
    .wh-compare-col li { font-size: 1.5rem; }
}

/* ---------- 08. FAQ ---------- */
.wh-faq-sec { padding: 7rem 0; }
.wh-faq-sec .section-head { margin-bottom: 4rem; }
.wh-faq-list {
    max-width: 86rem;
    margin: 0 auto;
    border-top: 1px solid rgba(253, 253, 253, 0.16);
}
.wh-faq-item { border-bottom: 1px solid rgba(253, 253, 253, 0.16); }
.wh-faq-q {
    width: 100%;
    background: none;
    border: 0;
    color: #FDFDFD;
    font-family: inherit;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    padding: 2.6rem 5rem 2.6rem 0.4rem;
    position: relative;
    cursor: pointer;
    transition: color 0.25s ease;
}
.wh-faq-q:hover { color: #58C5F1; }
.wh-faq-item.open .wh-faq-q { color: #58C5F1; }
.wh-faq-q::before,
.wh-faq-q::after {
    content: "";
    position: absolute;
    right: 1.4rem;
    top: 50%;
    width: 1.8rem;
    height: 2px;
    background: currentColor;
    transition: transform 0.35s ease;
}
.wh-faq-q::after { transform: rotate(90deg); }
.wh-faq-item.open .wh-faq-q::after { transform: rotate(0deg); }
.wh-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.wh-faq-a-inner {
    padding: 0 0.4rem 2.8rem;
    font-size: 1.7rem;
    line-height: 1.55;
    color: rgba(253, 253, 253, 0.78);
    max-width: 72rem;
}
.wh-faq-a-inner p { margin: 0 0 1.2rem; }
.wh-faq-a-inner p:last-child { margin-bottom: 0; }
@media (max-width: 767.98px) {
    .wh-faq-sec { padding: 4rem 0; }
    .wh-faq-q { font-size: 1.8rem; padding: 2rem 4.4rem 2rem 0.2rem; }
    .wh-faq-a-inner { font-size: 1.5rem; }
}

/* ---------- 09. Sticky mobiele CTA-balk ---------- */
.wh-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    display: none;
    gap: 0.8rem;
    justify-content: center;
    padding: 0.9rem 1.2rem calc(0.9rem + env(safe-area-inset-bottom));
    background: linear-gradient(0deg, rgba(24, 12, 40, 0.97), rgba(24, 12, 40, 0.88));
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(88, 197, 241, 0.25);
    transform: translateY(110%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.wh-sticky-cta.visible { transform: translateY(0); }
@media (max-width: 991.98px) { .wh-sticky-cta { display: flex; } }
.wh-sticky-cta a {
    flex: 1 1 0;
    max-width: 24rem;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    padding: 1.15rem 1.2rem;
    border-radius: 5rem;
    white-space: nowrap;
}
.wh-sticky-cta a svg {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}
.wh-sticky-cta .wh-call {
    background: transparent;
    border: 1px solid rgba(253, 253, 253, 0.4);
    color: #fff;
    font-weight: 700;
}
.wh-sticky-cta .btn {
    min-width: 0;
    font-size: 1.4rem;
    padding: 1.15rem 1.2rem;
    box-shadow: none;
}
/* Zwevende widget wijkt op mobiel voor de sticky balk */
@media (max-width: 991.98px) {
    body.wh-cta-visible .contact-widget { opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
    .contact-widget { transition: opacity 0.3s ease, visibility 0.3s ease; }
}

/* ---------- 10. Knop- & kaartpolish ---------- */
.btn { transition: transform 0.25s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.btn-primary,
.btn-light {
    position: relative;
    overflow: hidden;
}
.btn-primary::before,
.btn-light::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.22) 50%, transparent 68%);
    background-size: 250% 100%;
    background-position: 120% 0;
    transition: background-position 0.7s ease;
    pointer-events: none;
}
.btn-primary:hover::before,
.btn-light:hover::before { background-position: -20% 0; }
.btn-primary:hover { box-shadow: 0 10px 34px rgba(88, 197, 241, 0.35); }
.btn:focus-visible,
.wh-faq-q:focus-visible,
.header-cta:focus-visible {
    outline: 2px solid #58C5F1;
    outline-offset: 3px;
}

/* 3D-tilt + lichtglans op kaarten */
.wh-tiltable {
    transform-style: preserve-3d;
    transform: perspective(90rem) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg));
    transition: transform 0.18s ease-out;
}
.wh-tiltable::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(38rem circle at var(--glowX, 50%) var(--glowY, 50%), rgba(88, 197, 241, 0.12), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}
.wh-tiltable:hover::after { opacity: 1; }

/* ---------- 11. Formulier-vertrouwenssignalen ---------- */
.wh-form-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.6rem;
    justify-content: center;
    margin-top: 2.4rem;
    font-size: 1.4rem;
    color: rgba(253, 253, 253, 0.65);
}
.wh-form-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}
.wh-form-trust svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #58C5F1;
    flex-shrink: 0;
}

/* ---------- 12. Mobiel & tablet ---------- */
/* Contactblok in het mobiele menu uitlijnen met de menu-items
   (de menulijst heeft 3rem padding-links; het blok volgt die lijn) */
@media (max-width: 767.98px) {
    .header-menu-container .header-menu-inner .header-subdetails {
        margin-left: 3rem;
        width: calc(100% - 3rem);
        max-width: calc(100% - 3rem);
        margin-bottom: 3rem;
        align-self: flex-start;
    }
}

/* Kleine (verticale) schermen: CTA's over de volle breedte, compactere chips */
@media (max-width: 575.98px) {
    .wh-hero-ctas { gap: 1.2rem; }
    .wh-hero-ctas .btn { width: 100%; justify-content: center; }
    .wh-hero-ctas .btn.with-arrow { justify-content: space-between; }
    .wh-hero-trust { gap: 0.6rem 1.6rem; font-size: 1.3rem; margin-top: 1.8rem; }
    .wh-form-trust { gap: 0.8rem 1.8rem; font-size: 1.3rem; }
    .wh-stats-grid { gap: 1rem; }
    .wh-compare-cta .btn { width: 100%; justify-content: space-between; }
}

/* Kleine horizontale (landscape) schermen: geen sticky balk die de
   beperkte hoogte opeet, en een compactere hero */
@media (max-height: 500px) {
    .wh-sticky-cta { display: none !important; }
    .banner-sec { padding-block: 10rem 5rem; min-height: 100vh; }
    .wh-hero-trust { margin-top: 1.4rem; }
}
