/* ==========================================================================
   Block — Hero
   Mobile-first, breakpoint at 768px
   ========================================================================== */

/* ── Section ── */
.block-hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    color: var(--color-white);
    background-color: var(--color-grey-ultra-dark);
}

/* ── Background Image ── */
.block-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.block-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Content Wrapper ── */
.block-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100svh;
    padding: calc(var(--header-height-mobile) + var(--space-xl)) var(--grid-margin) var(--space-xl);
}

/* ── Heading ── */
.block-hero__heading {
    color: var(--color-white);
}

/* ── Footer (subheading + CTA) ── */
.block-hero__footer {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: flex-start;
}

/* ── Subheading ── */
.block-hero__subheading {
    font-family: var(--font-body);
    font-size: var(--h6-size);
    font-weight: var(--weight-medium);
    line-height: var(--h6-line-height);
    color: var(--color-white);
}

/* ── CTA Button ── */
.block-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    height: var(--btn-primary-height);
    padding-left: var(--space-md);
    padding-right: 3px;
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-color);
    font-family: var(--font-body);
    font-size: var(--btn-primary-font-size);
    font-weight: var(--btn-primary-font-weight);
    line-height: 1;
    border-radius: var(--btn-primary-radius);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.block-hero__cta:hover {
    opacity: 0.9;
}

.block-hero__cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--btn-primary-icon-size);
    height: var(--btn-primary-icon-size);
    border-radius: 50%;
    background-color: var(--color-primary-orange);
    color: var(--color-white);
    flex-shrink: 0;
}

.block-hero__cta-icon svg {
    width: 20px;
    height: 20px;
}

/* ══════════════════════════════════════════════════════════════════════════
   Desktop (≥ 768px)
   ══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {

    .block-hero__content {
        padding-top: calc(var(--header-height-desktop) + var(--space-xl));
    }

    .block-hero__heading {
        max-width: 850px;
    }

    .block-hero__footer {
        align-items: flex-end;
        text-align: right;
    }

    .block-hero__subheading {
        font-size: var(--h4-size);
        font-weight: var(--weight-regular);
        line-height: var(--h4-line-height);
        max-width: 409px;
    }
}
