/* _hero.css — Hero section component
   BEM: .hero, .hero__media, .hero__overlay, .hero__inner, .hero__eyebrow,
        .hero__title, .hero__body, .hero__actions
   ============================================================================ */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Subtle brand flourish — a soft overlapping radial glow instead of a
   gradient fill. Sits behind the content on colour-only (no image) heroes. */

  /* .hero:not(.hero--has-media)::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--color-accent) 16%, transparent) 0%, transparent 55%),
        radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--color-highlight) 12%, transparent) 0%, transparent 50%);
    pointer-events: none;
} */

/* ── Media (image / video background) ───────────────────────────────────── */

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

.hero__media img,
.hero__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ── Overlay — a simple dim scrim for text legibility over photography ───── */

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(25, 6, 45, 0.30) 0%,
        rgba(25, 6, 45, 0.65) 100%
    );
}

/* ── Content ─────────────────────────────────────────────────────────────── */

.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding: 0 var(--space-6);
    color: var(--color-white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: start;
}

.hero__inner > * {
    grid-column: 1;
}

.hero__eyebrow {
    color: var(--color-highlight);
    margin-bottom: var(--space-4);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
    font-weight: 900;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: var(--space-6);
    letter-spacing: -0.01em;
    max-width: 18ch;
}

.hero__body {
    font-size: var(--text-md);
    color: rgba(255, 255, 255, .88);
    max-width: 55ch;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-10);
}

/* ── No image: colour-only hero ─────────────────────────────────────────────
   Without a background image the forced-white text (used for legibility over
   imagery) is dropped so the text follows the chosen section background colour
   — e.g. dark text on a Light background, white on Dark. */
.hero:not(.hero--has-media) .hero__body { color: inherit; }

/* ── Content layout modifiers (column width of text area) ───────────────── */

.hero--layout-08-1 .hero__inner   { grid-template-columns: 0.8fr 1fr; }
.hero--layout-1-08 .hero__inner   { grid-template-columns: 1fr 0.8fr; }
.hero--layout-15-1 .hero__inner   { grid-template-columns: 1.5fr 1fr; }
.hero--layout-1-15 .hero__inner   { grid-template-columns: 1fr 1.5fr; }
.hero--layout-2-3 .hero__inner    { grid-template-columns: 2fr 1fr; }
.hero--layout-1-3 .hero__inner    { grid-template-columns: 1fr 2fr; }
.hero--layout-3-4 .hero__inner    { grid-template-columns: 3fr 1fr; }
.hero--layout-full .hero__inner   { grid-template-columns: 1fr; }

/* ── Modifier: split (heading left column, eyebrow/body/actions right) ──── */
.hero--layout-split .hero__inner {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-16);
    align-items: center;
}
.hero--layout-split .hero__title {
    grid-column: 1;
    align-self: start;
    margin-bottom: 0;
    max-width: none;
}
/* The right column is one flex block so it centres as a unit against the
   title's full height, instead of each piece sitting in its own grid row. */
.hero--layout-split .hero__split-body {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    max-width: none;
}
.hero--layout-split .hero__split-body .hero__eyebrow { margin-bottom: var(--space-2); }
.hero--layout-split .hero__split-body .hero__body    { max-width: none; }
.hero--layout-split .hero__split-body .hero__actions { margin-top: var(--space-6); }

@media (max-width: 768px) {
    .hero--layout-split .hero__inner { grid-template-columns: 1fr; }
    .hero--layout-split .hero__title,
    .hero--layout-split .hero__split-body {
        grid-column: 1;
    }
}

/* ── Modifier: centered ──────────────────────────────────────────────────── */

.hero--center .hero__inner {
    text-align: center;
}

.hero--center .hero__title,
.hero--center .hero__body {
    margin-inline: auto;
}

.hero--center .hero__actions {
    justify-content: center;
}

/* ── Modifier: compact (archive pages) ──────────────────────────────────── */

.hero--compact {
    min-height: var(--hero-height-sm);
}

/* ── Scroll indicator ────────────────────────────────────────────────────── */

.hero__scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, .6);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: heroScrollBounce 2s ease-in-out infinite;
}

@keyframes heroScrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

@media (max-width: 768px) {
    .hero__inner {
        padding-inline: var(--space-4);
        padding-block: var(--space-16);
        grid-template-columns: 1fr;
    }

    .hero__body {
        font-size: var(--text-md);
    }
}
