/*
 * hero - the home page opening band.
 *
 * Below 992px: the photo is full-bleed behind a navy overlay, with the text
 * reversed out over it. From 992px: a 7/5 split, photo on the right, the same
 * text back on the page background in navy.
 */

.hero {
    position: relative;
    background-color: var(--site-primary);
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* 80% navy. It was 60%, which was enough over the darker courthouse
       photograph but not over the office front, where the sky and the pale
       building left the headline hard to read. Darker also flatters a 640px
       photograph stretched across a phone. */
    background-color: rgba(var(--site-primary-rgb), 0.8);
}

.hero-inner {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

/* The row is the flex child that has to fill the band. `w-100` used to do that,
   but width:100% on a .row fights the row's own negative gutter margins: the box
   ends up a gutter wider than its parent and starts half a gutter to the left,
   so centred copy sits ~12px left of true centre. Obvious on a phone, where the
   hero copy is centred. Growing into the space leaves width alone. */
.hero-inner > .row {
    flex: 1 1 auto;
    min-width: 0;
}

.hero h1 {
    color: #ffffff;
}

.hero p {
    color: rgba(255, 255, 255, 0.92);
}

.hero .eyebrow {
    color: var(--site-accent);
}

.hero .rule {
    background-color: var(--site-accent);
}

.hero-split-media {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--site-radius);
    overflow: hidden;
}

.hero-split-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 992px) {
    .hero {
        background-color: var(--site-bg);
    }

    .hero-inner {
        min-height: 0;
    }

    .hero h1 {
        color: var(--site-primary);
    }

    .hero p {
        color: var(--site-muted);
    }

    .hero .eyebrow {
        color: var(--site-accent-ink);
    }

    .hero .rule {
        background-color: var(--site-accent-ink);
    }
}
