/* ==========================================================================
   Hero Section
   Mobile: cropped image at top (~55vh), text below on light bg, navy text.
   Desktop: full background image with overlay, navy text on right.
   ========================================================================== */

.hero {
    background-color: var(--color-light-blue);
    position: relative;
    overflow: hidden;
}

/* Image panel - uses CSS variable set via inline style */
.hero--has-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45vh;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center left;
}

/* Dark overlay on top of the image panel */
.hero--has-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45vh;
    background-color: rgba(0, 0, 0, 0.30);
    z-index: 1;
}

/* Push content below the image area */
.hero--has-image {
    padding-top: 45vh;
}

.hero__inner {
    position: relative;
    z-index: 2;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding-top: var(--space-md);
    padding-bottom: var(--space-lg);
}

.hero__heading {
    font-size: 1.75rem;
    color: var(--color-navy);
    line-height: 1.2;
    font-weight: 700;
}

.hero__subheading {
    font-size: var(--font-size-body);
    color: var(--color-navy);
    line-height: 1.75;
    margin: 0;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.hero__buttons .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
}

/* ---- Desktop: image fills full section ---- */
@media ( min-width: 1024px ) {
    .hero {
        min-height: 620px;
        display: flex;
        align-items: center;
    }

    .hero--has-image {
        padding-top: 0;
    }

    .hero--has-image::after {
        height: 100%;
        background-position: center left;
    }

    .hero--has-image::before {
        height: 100%;
    }

    .hero__inner {
        display: flex;
        align-items: center;
        min-height: 620px;
        justify-content: flex-end;
    }

    .hero__content {
        max-width: 580px;
        align-items: flex-start;
        text-align: left;
        padding-top: 0;
        padding-bottom: 0;
    }

    .hero__heading {
        font-size: 2.75rem;
    }

    .hero__buttons {
        justify-content: flex-start;
    }

    .hero__buttons .btn {
        padding: 0.875rem 2rem;
        font-size: 0.9375rem;
    }
}
