/*
 * Water Concepts
 * Homepage (gewone WP-pagina, per taal via Polylang)
 *
 * Alleen wat specifiek voor de homepage is: de banden
 * (categorieën licht, intro navy), de sectorkaarten half
 * over de navy band en de uitgelichte producten.
 *
 * De editorpatronen (eyebrow, wce-intro, wce-band,
 * sectiekop, gutter van secties binnen de content) staan
 * in blocks.css — laadt vóór dit bestand.
 */


/* ==========================================
   BANDEN
   Alleen op de homepage. De shop is verder
   overal wit; kleur wordt gericht ingezet.
   Ritme: hero (donker) → categorieën (lichte
   band) → producten (wit) → intro (navy band)
   → sectoren (wit, half over de navy band).

   Achtergrond via een pseudo-element achter
   de sectie, gecentreerd, max 2560px (gelijk
   aan .wrapper-site). De pagina blijft
   "Contained" — geen breakout van de content.

   Megamenu, PLP, shop en PDP blijven
   ongewijzigd (scope .entry-content).
========================================== */

.home .entry-content .category-cards,
.home .entry-content .wce-intro {
    position: relative;
    isolation: isolate;

    background: transparent;
}

.home .entry-content .category-cards::before,
.home .entry-content .wce-intro::before {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: -1;

    width: min(100vw, 2560px);

    transform: translateX(-50%);

    background: var(--neutral-100);
}


/* ------------------------------------------
   CATEGORIEËN — LICHTE BAND
   Kaarten wit (op --neutral-100 zouden ze
   wegvallen), pijlcirkel --neutral-100 (wit
   op wit valt weg). Hover = tussentint.
   Navy kaart blijft navy.
------------------------------------------ */

.home .entry-content .category-cards .category-card:not(.category-card--all) {
    background: var(--white);
}

.home .entry-content .category-cards .category-card:not(.category-card--all):hover {
    background: color-mix(in srgb, var(--neutral-100) 50%, var(--neutral-200));
}

.home .entry-content .category-cards .category-card__arrow {
    background: var(--neutral-100);
}

.home .entry-content .category-cards .category-card:hover .category-card__arrow {
    background: var(--blue-500);
}


/* ------------------------------------------
   INTRO — NAVY BAND
   Tekstkolom/lead: blocks.css. Hier alleen de
   band en de kleuren op --blue-950 (alle AA):
   eyebrow --teal-300, kop + lead wit,
   bodytekst --blue-300 (≈8,5:1).

   De sectorkaarten eronder schuiven
   --overlap over de onderrand: de band krijgt
   die ruimte extra als padding-bottom, de
   kaarten een even grote negatieve marge.
------------------------------------------ */

.home .entry-content {
    --overlap: 7rem;
}

.home .entry-content .wce-intro {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 5rem;
    padding-bottom: calc(3.5rem + var(--overlap));
}

.home .entry-content .wce-intro::before {
    background: var(--blue-950);
}

.home .entry-content .wce-intro .eyebrow {
    color: var(--teal-300);
}

.home .entry-content .wce-intro h2 {
    color: var(--white);
}

.home .entry-content .wce-intro p:not(.eyebrow) {
    color: var(--blue-300);
}

/* Lead: specifieker dan de bodytekst-regel hierboven. */
.home .entry-content .wce-intro h2 + p:not(.eyebrow) {
    color: var(--white);
}


/* ------------------------------------------
   SECTOREN — OP WIT, HALF OVER DE BAND
   Kaarten houden hun gewone --neutral-100-
   vlak (zoals de productkaarten). Liggende
   foto iets lager: 16:9 i.p.v. 3:2.
------------------------------------------ */

.home .entry-content .tag-cards {
    position: relative;
    z-index: 1;

    margin-top: calc(-1 * var(--overlap));
    padding-top: 0;
}

/*
.home .entry-content .category-card--tag .category-card__media {
    aspect-ratio: 16 / 9;
}
*/


/* ==========================================
   UITGELICHTE PRODUCTEN ([wce_featured_products])
   Kop gelijk aan de categoriekaarten, pill-knop
   rechts. Kaarten = PLP-productkaart (wc-plp.css
   laadt ook op de homepage). Op wit.
========================================== */

.home-products {
    padding: 5rem 0;
}

.home-products__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 2rem;

    margin-bottom: 2rem;
}

.home-products .home-products__eyebrow {
    margin: 0 0 0.625rem 0;

    color: var(--blue-500);

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 1.4;
    text-transform: uppercase;
}

.home-products .home-products__title {
    margin: 0;

    color: var(--blue-900);

    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

/* Zelfde pill als in de navy kaart "Alle producten". */
.home-products .home-products__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 12px 22px;

    border-radius: var(--radius-pill);

    background: var(--teal-500);
    color: var(--blue-900);

    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;

    transition: background-color .2s ease;
}

.home-products .home-products__button svg {
    width: 16px;
    height: 16px;
}

.home-products .home-products__button:hover {
    background: var(--teal-300);
    color: var(--blue-900);
}

.home-products .home-products__button:focus-visible {
    outline: 2px solid var(--blue-400);
    outline-offset: 3px;
}

.home-products ul.products {
    margin: 0 !important;
}


/* 4 per rij op desktop (PLP blijft 3). Override van de
   variabele uit wc-plp.css; deze selector is specifieker,
   dus ook de breakpoints hieronder opnieuw zetten. */
.home-products .woocommerce ul.products:has(> li.type-product) {
    --plp-columns: 4;
}

@media (max-width: 1024px) {

    .home-products .woocommerce ul.products:has(> li.type-product) {
        --plp-columns: 2;
    }
}

@media (max-width: 768px) {

    .home-products .woocommerce ul.products:has(> li.type-product) {
        --plp-columns: 1;
    }
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 1024px) {

    .home-products {
        padding: 4rem 0;
    }

    .home .entry-content {
        --overlap: 5rem;
    }

    .home .entry-content .wce-intro {
        padding-top: 4rem;
        padding-bottom: calc(3rem + var(--overlap));
    }

    .home-products .home-products__title {
        font-size: 1.5rem;
    }
}


/* ==========================================
   MOBIEL
========================================== */

@media (max-width: 768px) {

    .home-products {
        padding: 3rem 0;
    }

    .home .entry-content {
        --overlap: 3rem;
    }

    .home .entry-content .wce-intro {
        padding-top: 3rem;
        padding-bottom: calc(2rem + var(--overlap));
    }

    .home-products__head {
        margin-bottom: 1.5rem;
    }

    .home-products .home-products__title {
        font-size: 1.375rem;
    }
}