/*
 * Full-height home page hero. Pulled up by `margin-top:
 * calc(var(--header-height) * -1)` so its photo starts at the very top of
 * the viewport, underneath the sticky header (02-header.css) - the same
 * "photo behind the header" technique already used in the sibling site/
 * project's 05-hero.css, just via a plain photo + scrim here instead of a
 * pre-baked white frame.
 *
 * Layout is a column flexbox: `.hero__body` is the only flex-growing child,
 * so it centers the title block in whatever space is left, and
 * `.hero-bullets-wrap` - a fixed-height sibling after it - always ends up
 * flush with the bottom edge on desktop, per the client's request. On
 * mobile `.hero` drops back to natural height (no 100vh), so there is no
 * extra space to push the bullets into and they just follow normally.
 */

.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    margin-top: calc(var(--header-height) * -1);
    padding-top: var(--header-height);
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* scaled up so the blur's own edge softening never shows the section edge */
    transform: scale(1.1);
    filter: blur(0.63vw);
}

.hero__scrim {
    position: absolute;
    inset: 0;
    /* lighter near the header so the photo still reads faintly, fading to
       fully opaque toward the bullet strip for crisp text contrast there */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.94) 55%, rgba(255, 255, 255, 0.99) 100%);
}

.hero__decor {
    position: absolute;
    top: 6vw;
    right: 4vw;
    z-index: 1;
    width: 12vw;
    height: 12vw;
    background-image: radial-gradient(var(--color-accent) 1.5px, transparent 1.5px);
    background-size: 1.15vw 1.15vw;
    opacity: 0.2;
}

.hero__body {
    position: relative;
    z-index: 1;
    padding: 3vw 0;
}

.hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.52vw;
    padding: 0.52vw 1.15vw;
    margin: 0 0 1.46vw;
    background: rgba(47, 111, 237, 0.09);
    color: var(--color-accent);
    font-size: 0.78vw;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
}

.hero__kicker::before {
    content: "";
    width: 0.42vw;
    height: 0.42vw;
    border-radius: 50%;
    background: var(--color-accent);
}

.hero__title {
    max-width: 46vw;
    font-size: 3.13vw;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-primary);
    margin: 0 0 1.35vw;
}

.hero__subtitle {
    max-width: 36vw;
    font-size: 1.04vw;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0 0 2.19vw;
}

.hero__actions {
    gap: 1.04vw;
}

.hero__cta {
    display: inline-block;
    padding: 1.04vw 2.19vw;
    font: inherit;
    font-weight: 700;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hero__cta--primary {
    background: var(--color-cta);
    color: #fff;
    box-shadow: 0 0.63vw 1.25vw rgba(230, 57, 70, 0.28);
}

.hero__cta--primary:hover,
.hero__cta--primary:focus-visible {
    background: var(--color-cta-dark);
    color: #fff;
    transform: translateY(-0.1vw);
    box-shadow: 0 0.83vw 1.46vw rgba(230, 57, 70, 0.34);
}

.hero__cta--secondary {
    background: rgba(255, 255, 255, 0.6);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.hero__cta--secondary:hover,
.hero__cta--secondary:focus-visible {
    background: var(--color-primary);
    color: #fff;
}

.hero-bullets-wrap {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--color-border-soft);
}

.hero-bullets {
    --bs-gutter-x: 1.67vw;
    --bs-gutter-y: 1.67vw;
    padding: 1.67vw 0;
}

.hero-bullets__item {
    gap: 0.83vw;
    text-align: left;
    font-size: 0.83vw;
    font-weight: 700;
    color: var(--color-text);
}

.hero-bullets__icon {
    flex: 0 0 auto;
    width: 1.98vw;
    height: 1.98vw;
    padding: 0.42vw;
    border-radius: 50%;
    background: rgba(47, 111, 237, 0.1);
    color: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
    .hero__cta {
        transition: none;
    }
}

@media only screen and (max-width: 767.98px) {
    .hero {
        /* mirrors 02-header.css: no pull-up on mobile, header stays solid */
        margin-top: 0;
        padding-top: 0;
        min-height: auto;
    }

    .hero__bg {
        transform: scale(1.15);
        filter: blur(1.6vw);
    }

    .hero__decor {
        display: none;
    }

    .hero__body {
        padding: 12vw 0;
    }

    .hero__kicker {
        padding: 1.6vw 4vw;
        margin: 0 0 4vw;
        font-size: 3.2vw;
    }

    .hero__kicker::before {
        width: 1.6vw;
        height: 1.6vw;
    }

    .hero__title {
        max-width: none;
        font-size: 7.47vw;
        margin: 0 0 4vw;
    }

    .hero__subtitle {
        max-width: none;
        font-size: 4.27vw;
        margin: 0 0 6.4vw;
    }

    .hero__actions {
        width: 100%;
        gap: 3.2vw;
    }

    .hero__cta {
        width: 100%;
        text-align: center;
        padding: 4vw 0;
    }

    .hero-bullets {
        --bs-gutter-x: 4.27vw;
        --bs-gutter-y: 4.27vw;
        padding: 6.4vw 0;
    }

    .hero-bullets__item {
        gap: 3.2vw;
        font-size: 3.73vw;
    }

    .hero-bullets__icon {
        width: 8vw;
        height: 8vw;
        padding: 1.6vw;
    }
}
