/* Hero: full-bleed image stage with the trust strip across its bottom.
 * Desktop: hero + strip fill the viewport below the header (top bar + nav); --ocf-hero-height is the minimum. */
.ocf-hero {
    --hero-curve: clamp(0.5rem, 1.2vw, 1.125rem); /* depth of the arc at the edges */
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .ocf-hero {
        min-height: calc(100svh - var(--neptune-header-offset) - var(--wp-admin-bar-offset));
    }

    .ocf-hero__stage {
        flex: 1;
    }
}
.ocf-hero__stage {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: var(--ocf-hero-height);
    overflow: hidden;
    /* Photo sits on top of the trust strip: its bottom edge is one wide, subtle arc (lowest in the middle,
     * rising toward both sides) with a soft cast shadow. */
    border-radius: 0 0 50% 50% / 0 0 var(--hero-curve) var(--hero-curve);
    /* Hairline highlight traces the whole arc so both sides read equally, then the soft cast shadow. */
    box-shadow:
        0 1px 0 0 color-mix(in srgb, var(--ocf-heading-alt) 28%, transparent),
        0 8px 16px -10px color-mix(in srgb, var(--ocf-dark-bg) 32%, transparent);
    color: var(--ocf-heading-alt);
}

.ocf-hero__media,
.ocf-hero__shade {
    position: absolute;
    inset: 0;
}

.ocf-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Even sheet over the photo (no directional gradient), lightly tinted toward the primary. */
.ocf-hero__shade {
    background: var(--neptune-overlay-light);
}

.ocf-hero__grid {
    position: relative;
    padding-block: calc(var(--ocf-grid-gap) * 2);
}

.ocf-hero--proof .ocf-hero__grid {
    flex: 1;
    display: flex;
    align-items: center;
}

.ocf-hero__content {
    max-width: var(--ocf-hero-content-width);
}

.ocf-hero .ocf-hero__headline {
    color: inherit;
    font-size: calc(var(--font-h1-size) * 1.25);
}

.ocf-hero__intro {
    margin: calc(var(--ocf-grid-gap) * 0.75) 0 calc(var(--ocf-grid-gap) * 1.25);
    font-family: var(--ocf-font-accent);
    font-size: var(--font-h3-size);
    line-height: 1.4;
}

/* Trust bar: rating plus up to three hero_check_items on the same deep navy as the top bar, so the two frame the hero. */
.ocf-hero-proof {
    position: relative;
    z-index: 2;
    margin-top: calc(-1 * var(--hero-curve));
    padding-top: var(--hero-curve);
    --proof-ink: var(--ocf-heading-alt);
    --proof-line: color-mix(in srgb, var(--ocf-heading-alt) 14%, transparent);
    background: var(--neptune-deep);
    color: var(--proof-ink);
}

.ocf-hero-proof__bar {
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    margin-block: 0;
    padding: 0;
    list-style: none;
}

.ocf-hero-proof__bar li {
    display: flex;
    align-items: center;
    gap: calc(var(--ocf-space-unit) * 0.5);
    padding: calc(var(--ocf-grid-gap) * 0.5) var(--ocf-grid-gap);
    color: var(--proof-ink);
    font-size: var(--ocf-font-small-size);
    font-weight: var(--font-weight-bold);
    line-height: 1.35;
}

.ocf-hero-proof__bar li:first-child {
    padding-left: 0;
}

.ocf-hero-proof__bar li + li {
    border-left: var(--card-border-width) solid var(--proof-line);
}

.ocf-hero-proof__bar svg {
    flex-shrink: 0;
    width: calc(var(--ocf-space-unit) * 1.0625);
    height: calc(var(--ocf-space-unit) * 1.0625);
    color: var(--ocf-secondary);
}

.ocf-hero-proof__value {
    font-family: var(--ocf-font-heading);
    font-size: var(--font-h3-size);
    font-weight: var(--ocf-font-h2-weight);
    line-height: 1;
}

.ocf-hero-proof__rating > span:last-child {
    display: flex;
    flex-direction: column;
}

.ocf-hero-proof__stars {
    color: var(--neptune-star);
    font-size: calc(var(--ocf-font-small-size) * 0.9);
    line-height: 1.3;
    letter-spacing: calc(var(--ocf-space-unit) * 0.125);
}

.ocf-hero-proof__label {
    color: color-mix(in srgb, var(--proof-ink) 72%, transparent);
    font-size: calc(var(--ocf-font-small-size) * 0.9);
    font-weight: var(--font-weight-regular);
}

@media (max-width: 1023px) {
    .ocf-hero-proof__bar {
        grid-auto-flow: row;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ocf-hero-proof__bar li:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .ocf-hero-proof__bar li:nth-child(n + 3) {
        border-top: var(--card-border-width) solid var(--proof-line);
    }

    .ocf-hero-proof__bar li:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .ocf-hero__stage {
        min-height: var(--ocf-hero-height-mobile);
        justify-content: end;
    }

    .ocf-hero__media img {
        object-position: 60% center;
    }

    .ocf-hero__shade {
        background: var(--neptune-overlay);
    }

    .ocf-hero__grid {
        padding-block: calc(var(--ocf-grid-gap) * 1.5);
    }

    .ocf-hero__intro {
        margin-bottom: calc(var(--ocf-grid-gap) * 0.875);
    }

    /* Phones: no trust strip; the hero runs straight into the next section. */
    .ocf-hero-proof {
        display: none;
    }
}
