/* ============================================================================
 * La Toxica  Design System V5  Wave 2 Hero Variants
 * ----------------------------------------------------------------------------
 * File:        assets/css/heroes-v5.css
 * Created:     2026-05-04
 * Sprint:      V5 Wave 2 (hero partials + hero-specific CSS)
 * Source:      seo-audit-v2.0/design-system/source.html lines 41-106
 * Loads at:    wp_enqueue_scripts priority 27
 * Cascade:     after design-system-v5 (26), before press-mentions /
 *              reservation-redesign / reviews-marquee (28+).
 *
 * This file declares the four hero variants (A, B, C, D) using BEM-style
 * selectors namespaced under .latoxica-hero-{a,b,c,d}. The shared
 * utilities (.latoxica-hero-bg, .latoxica-papel-strip, .latoxica-eyebrow,
 * .latoxica-meta-vertical, .latoxica-script-accent, .latoxica-stroke,
 * .latoxica-button, .latoxica-wrap, .latoxica-bleed, .latoxica-reveal)
 * live in design-system-v5.css and layout-overhaul.css. Do not redeclare
 * them here.
 *
 * Each hero ships responsive font-size adjustments at <=768px to keep
 * reading width sane on mobile, plus a prefers-reduced-motion override
 * that suspends the eyebrow rule sweep animation.
 * ========================================================================== */


/* ----------------------------------------------------------------------------
 * Shared hero baseline
 * --------------------------------------------------------------------------
 * All four heroes establish a positioning context for absolute children
 * (vertical meta, papel strip, decorative bg layer) and isolate the stack
 * so blend-modes and z-indexes from outer layouts do not bleed in.
 * -------------------------------------------------------------------------- */
.latoxica-hero-a,
.latoxica-hero-b,
.latoxica-hero-c,
.latoxica-hero-d {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--os-blanchi);
    background: var(--noir-azabache);
}


/* ----------------------------------------------------------------------------
 * Hero A  full immersive (V6 Wave 2 legacy-aligned)
 * --------------------------------------------------------------------------
 * Hero A is the cover-image variant. The photo bleeds full frame as a
 * background-image div (legacy hero-carousel-1.jpg falls back when caller
 * passes no URL). A soft top-to-bottom darkening overlay sits above the
 * photo so the bottom-left H1 plus CTA pair stays legible. Content anchors
 * bottom-left via flexbox align-self: flex-end. Vertical meta label sits
 * bottom-right (hidden below 1280px via the Wave 1 utility).
 *
 * V6 W2 changes vs V5: photo moved from <img> with luminosity blend to
 * background-image div at full saturation; new overlay div carries the
 * gradient stops; content uses align-self instead of relying on parent
 * align-items.
 * -------------------------------------------------------------------------- */
.latoxica-hero-a {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 56px 64px;
    min-height: clamp(620px, 84vh, 920px);
}

.latoxica-hero-a__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

.latoxica-hero-a__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.10) 0%,
        rgba(0, 0, 0, 0.35) 55%,
        rgba(10, 10, 10, 0.78) 100%);
    pointer-events: none;
}

.latoxica-hero-a__content {
    position: relative;
    z-index: 2;
    align-self: flex-end;
    max-width: min(90%, 64rem);
}

.latoxica-hero-a__title {
    font-family: var(--latoxica-font-display);
    font-weight: 700;
    font-size: var(--latoxica-fs-h1-tight);
    line-height: 0.92;
    letter-spacing: -0.04em;
    color: var(--os-blanchi);
    margin: 0 0 24px;
}

.latoxica-hero-a__title em {
    font-style: italic;
    color: var(--or-cierge);
    font-weight: 400;
}

.latoxica-hero-a__sub {
    color: var(--creme-tortilla);
    font-size: 1.125rem;            /* 18px */
    max-width: 32.5rem;             /* 520px */
    line-height: 1.55;
    margin: 0 0 32px;
}

.latoxica-hero-a__caveat {
    margin: 0 0 18px;
}

.latoxica-hero-a__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.latoxica-hero-a__meta {
    /* Position is inherited from .latoxica-meta-vertical (Wave 1). */
}


/* ----------------------------------------------------------------------------
 * Hero B  split (media + text)
 * --------------------------------------------------------------------------
 * Two equal columns at >= 901px, single-column stack at <= 900px. Media
 * column carries a radial cempasuchil glow placeholder when no photo is
 * supplied; text column anchors content top, mono meta label bottom.
 * -------------------------------------------------------------------------- */
.latoxica-hero-b {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: clamp(480px, 70vh, 760px);
}

.latoxica-hero-b__media {
    position: relative;
    background: linear-gradient(160deg, #2a1a12 0%, #0d0807 100%);
    overflow: hidden;
}

.latoxica-hero-b__media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(231, 111, 0, 0.25) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.latoxica-hero-b__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.latoxica-hero-b__media .placeholder__label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--latoxica-font-mono);
    font-size: 0.6875rem;            /* 11px */
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gris-clair);
}

.latoxica-hero-b__text {
    background: var(--noir-azabache);
    padding: 100px 56px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
}

.latoxica-hero-b__top {
    display: flex;
    flex-direction: column;
}

.latoxica-hero-b__title {
    font-family: var(--latoxica-font-display);
    font-weight: 700;
    font-size: var(--latoxica-fs-h2);
    line-height: 0.95;
    letter-spacing: -0.035em;
    color: var(--os-blanchi);
    margin: 0 0 28px;
}

.latoxica-hero-b__title em {
    font-style: italic;
    color: var(--or-cierge);
    font-weight: 400;
}

.latoxica-hero-b__manifesto {
    font-family: var(--latoxica-font-display);
    font-style: italic;
    font-size: 1.1875rem;            /* 19px */
    color: var(--creme-tortilla);
    line-height: 1.45;
    max-width: 36ch;
    margin: 0;
}

.latoxica-hero-b__caveat {
    margin: 18px 0 0;
}

.latoxica-hero-b__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.latoxica-hero-b__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.latoxica-hero-b__mono {
    font-family: var(--latoxica-font-mono);
    color: var(--gris-clair);
    font-size: 0.6875rem;            /* 11px */
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


/* ----------------------------------------------------------------------------
 * Hero C  cantina menu with papel picado, centred
 * --------------------------------------------------------------------------
 * Vertical centred stack: papel strip (top), eyebrow, italic title, hairline
 * rule, Caveat sub, CTA row. Mono detail row anchors bottom edge.
 * -------------------------------------------------------------------------- */
.latoxica-hero-c {
    padding: 100px 56px 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(236, 44, 145, 0.10) 0%, transparent 50%),
        var(--noir-azabache);
    min-height: clamp(560px, 80vh, 880px);
}

.latoxica-hero-c__papel {
    /* Composes .latoxica-papel-strip (Wave 1). */
    margin-bottom: 24px;
}

.latoxica-hero-c__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.latoxica-hero-c__title {
    font-family: var(--latoxica-font-display);
    font-style: italic;
    font-weight: 400;
    font-size: var(--latoxica-fs-h2);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--os-blanchi);
    margin: 0 0 8px;
}

.latoxica-hero-c__title strong {
    font-style: normal;
    font-weight: 700;
    color: var(--or-cierge);
    display: block;
}

.latoxica-hero-c__rule {
    width: 80px;
    height: 1px;
    background: var(--or-cierge);
    margin: 28px auto;
    opacity: 0.6;
}

.latoxica-hero-c__sub {
    /* Composes .latoxica-script-accent. */
    margin: 0 0 28px;
}

.latoxica-hero-c__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.latoxica-hero-c__detail {
    position: absolute;
    bottom: 32px;
    left: 56px;
    right: 56px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    font-family: var(--latoxica-font-mono);
    font-size: 0.625rem;             /* 10px */
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(168, 158, 146, 0.7);
    pointer-events: none;
}


/* ----------------------------------------------------------------------------
 * Hero D  typographic
 * --------------------------------------------------------------------------
 * Centred-vertical stack with a 132px display title that may carry the
 * .latoxica-stroke modifier on inline spans. Bottom row pairs sub copy
 * with CTA pair, justified opposite ends.
 * -------------------------------------------------------------------------- */
.latoxica-hero-d {
    padding: 100px 56px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--noir-azabache);
    min-height: clamp(480px, 70vh, 760px);
}

.latoxica-hero-d::before {
    content: '';
    position: absolute;
    right: -10%;
    top: -10%;
    width: 70%;
    height: 70%;
    background: radial-gradient(
        circle,
        rgba(236, 44, 145, 0.10) 0%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
}

.latoxica-hero-d__bg {
    /* Optional overlay layer for subtle gold weave on D variants. */
    z-index: 0;
}

.latoxica-hero-d__content {
    position: relative;
    z-index: 2;
}

.latoxica-hero-d__title {
    font-family: var(--latoxica-font-display);
    font-weight: 700;
    font-size: var(--latoxica-fs-h1);
    line-height: 0.86;
    letter-spacing: -0.045em;
    color: var(--os-blanchi);
    margin: 0;
    max-width: 11ch;
}

.latoxica-hero-d__title em {
    font-style: italic;
    font-weight: 400;
    color: var(--or-cierge);
}

.latoxica-hero-d__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 48px;
    gap: 40px;
    flex-wrap: wrap;
}

.latoxica-hero-d__sub {
    font-size: 1rem;                 /* 16px */
    color: var(--creme-tortilla);
    max-width: 42ch;
    line-height: 1.55;
    margin: 0;
}

.latoxica-hero-d__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}


/* ----------------------------------------------------------------------------
 * Responsive  Hero B grid collapse
 * -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .latoxica-hero-b {
        grid-template-columns: 1fr;
    }

    .latoxica-hero-b__media {
        aspect-ratio: 4 / 3;
        position: relative;
    }

    .latoxica-hero-b__text {
        padding: 56px 32px 48px;
    }
}


/* ----------------------------------------------------------------------------
 * Responsive  mobile font scaling (<= 768px)
 * --------------------------------------------------------------------------
 * Drop padding, tighten line-heights, and clamp display titles down so the
 * reading width stays inside 100vw without horizontal scroll.
 * -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .latoxica-hero-a,
    .latoxica-hero-c,
    .latoxica-hero-d {
        padding-left: 24px;
        padding-right: 24px;
    }

    .latoxica-hero-a {
        padding-bottom: 40px;
    }

    .latoxica-hero-c,
    .latoxica-hero-d {
        padding-top: 72px;
        padding-bottom: 40px;
    }

    .latoxica-hero-a__title {
        font-size: clamp(2.25rem, 11vw, 4rem);
    }

    .latoxica-hero-b__title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .latoxica-hero-c__title {
        font-size: clamp(2.25rem, 11vw, 4rem);
    }

    .latoxica-hero-d__title {
        font-size: clamp(2.5rem, 14vw, 5rem);
        max-width: 14ch;
    }

    .latoxica-hero-d__row {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 32px;
        gap: 24px;
    }

    .latoxica-hero-c__detail {
        left: 24px;
        right: 24px;
        bottom: 20px;
        font-size: 0.5625rem;        /* 9px */
        letter-spacing: 0.14em;
    }
}


/* ----------------------------------------------------------------------------
 * Reduced motion  suspend eyebrow sweep inside heroes
 * -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .latoxica-hero-a .latoxica-eyebrow::before,
    .latoxica-hero-a .latoxica-eyebrow::after,
    .latoxica-hero-b .latoxica-eyebrow::before,
    .latoxica-hero-b .latoxica-eyebrow::after,
    .latoxica-hero-c .latoxica-eyebrow::before,
    .latoxica-hero-c .latoxica-eyebrow::after,
    .latoxica-hero-d .latoxica-eyebrow::before,
    .latoxica-hero-d .latoxica-eyebrow::after {
        animation: none !important;
        transition: none !important;
    }
}
