/* ── Layout ─────────────────────────────────────────────────── */
.hero {
    position: relative;
    display: grid;
    overflow: hidden;
    aspect-ratio: var(--hero-mobile-ratio, 3/4);
    width: 100%;
}

@media (min-width: 768px) {
    .hero {
        aspect-ratio: 16/9;
        max-height: 90vh;
    }
}

/* ── Background image (absolute — not in layout flow) ───────── */
.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--hero-focal-point, center);
}

.hero--parallax .hero__bg {
    inset: -5% 0;
    height: 110%;
    will-change: transform;
}

/* ── Overlay (absolute) ─────────────────────────────────────── */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--hero-overlay-opacity, 0.35));
}

/* ── Content (grid flow — determines container height) ──────── */
.hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: var(--ovelia-spacing-semantic-gap-lg);
    width: min(100%, var(--ovelia-layout-max-width));
    margin: 0 auto;
    padding-inline: var(--ovelia-layout-side-padding);
    padding-block: 2rem;
    color: var(--ovelia-colors-semantic-text-inverse);
}

@media (min-width: 768px) {
    .hero__content {
        justify-content: center;
        align-items: center;
    }
}

/* ── Text group: subtitle sits tight above title ────────────── */
.hero__text-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .hero__text-group {
        align-items: center;
    }
}

/* ── Subtitle (eyebrow) ─────────────────────────────────────── */
.hero__subtitle {
    text-transform: uppercase;
    font-size: var(--ovelia-font-style-section-eyebrow-size);
    line-height: var(--ovelia-font-style-section-eyebrow-line-height);
    letter-spacing: var(--ovelia-font-style-section-eyebrow-letter-spacing);
}

/* ── Title ──────────────────────────────────────────────────── */
.hero__title {
    font-family: var(--ovelia-font-style-page-title-family);
    font-size: var(--ovelia-typography-fontsize-hero-banner);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    text-align: left;
    color: inherit;
    margin: 0;
}

@media (min-width: 768px) {
    .hero__title {
        text-align: center;
    }
}

/* ── Caption (small text below title) ──────────────────────── */
.hero__caption {
    font-family: var(--ovelia-typography-fontfamily-sans);
    font-size: var(--ovelia-typography-fontsize-base);
    line-height: var(--ovelia-typography-lineheight-normal);
    color: inherit;
    opacity: 0.85;
    max-width: 38rem;
    text-align: left;
    margin: 0;
}

@media (min-width: 768px) {
    .hero__caption {
        text-align: center;
    }
}
