/* ── hero.css ───────────────────────────────────────────
   Module: nf--hero
   ──────────────────────────────────────────────────────── */

.nf--hero {
    background-color: var(--black);
    padding: var(--spacing9) var(--grid-outer-margin, var(--spacing8));
    display: flex;
    align-items: center;
}

.nf--hero__grid {
    display: flex;
    align-items: center;
    gap: var(--spacing8);
    width: calc(var(--grid-column-width) * 12 + var(--grid-gap) * 11);
    margin: 0 auto;
}

.nf--hero__copy {
    flex: 0 0 44%;
}

.nf--hero__topic {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange);
    margin: 0 0 2rem;
}

.nf--hero__heading {
    font-size: clamp(2.9rem, 3.8vw, 5.1rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: var(--white);
    margin: 0 0 2.8rem;
}

.nf--hero__copy > p:not(.nf--hero__topic) {
    color: var(--white);
    font-size: clamp(1.2rem, 1.0vw, 1.5rem);
    font-weight: 500;
    margin: 0 0 3.6rem;
    max-width: 44ch;
}

.nf--hero__copy .nf--check-list li {
    color: var(--white);
    font-weight: 500;
}

.nf--hero__art {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32rem;
}

.nf--hero__art svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 var(--spacing3) var(--spacing6) rgba(0, 0, 0, 0.45));
}

/* ── Centered variant ───────────────────────────────────
   Heading + sub + CTAs centered, illustration full-width below.
   ──────────────────────────────────────────────────────── */
.nf--hero--centered .nf--hero__grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nf--hero--centered .nf--hero__copy {
    flex: 0 0 auto;
    max-width: 70ch;
}

.nf--hero--centered .nf--hero__heading {
    font-size: clamp(3.2rem, 4.5vw, 5.8rem);
    margin-left: auto;
    margin-right: auto;
}

.nf--hero--centered .nf--hero__copy > p:not(.nf--hero__topic) {
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.nf--hero--centered .nf--hero__art {
    flex: 0 0 auto;
    width: 100%;
    margin-top: var(--spacing7);
    min-height: 0;
}

/* ── Badge pills (optional) ─────────────────────────────
   Row of pill tags above the heading — e.g. compliance badges.
   ──────────────────────────────────────────────────────── */
.nf--hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.8rem;
}

.nf--hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.nf--hero__badge svg {
    width: 1.2rem;
    height: 1.2rem;
    color: var(--orange);
}

/* ── Background pattern (optional) ─────────────────────
   Open SVG slot — author provides any inline <svg> per page.
   CSS handles positioning; opacity is fixed here.
   ──────────────────────────────────────────────────────── */
.nf--hero__pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.4;
}

.nf--hero__pattern svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: none;
}

.nf--hero:has(.nf--hero__pattern) {
    position: relative;
    overflow: hidden;
}

.nf--hero:has(.nf--hero__pattern) .nf--hero__grid {
    position: relative;
    z-index: 1;
}

/* ── Stats bar (optional) ───────────────────────────────
   Horizontal stats row below the CTA group.
   Uses global .nf--stats-row + .nf--stat__num / .nf--stat__label internals.
   This wrapper adds the top-border separator and fixes label colour on dark bg.
   ──────────────────────────────────────────────────────── */
.nf--hero__stats {
    padding-top: 3.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 4.8rem;
}

.nf--hero__stats .nf--stat__num {
    font-size: 3.2rem;
}

.nf--hero__stats .nf--stat__label {
    color: rgba(255, 255, 255, 0.62);
}

/* Fallback width for viewports where ATOSS grid vars aren't defined (900–1136px) */
@media (max-width: 1136px) {
    .nf--hero__grid {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .nf--hero {
        padding: var(--spacing6) var(--spacing4);
    }

    .nf--hero__grid {
        flex-direction: column;
    }

    .nf--hero__copy {
        flex: 0 0 auto;
    }

    .nf--hero__art {
        min-height: 0;
        width: 100%;
    }
}
