/**
 * amenai hero — shared page hero (refresh 2026).
 *
 * One full-bleed photo, a soft radial shade to quiet busy areas of the image,
 * a directional scrim for text legibility, and a copy block on one side.
 * Rendered by templates/hero.php via amenai_hero().
 *
 * Palette is the existing brand: ink #0B1230, navy #1F2859, ice #E1EFF2.
 * No blend modes and no blurred text-shadow: both corrupt in PDF export and
 * render inconsistently across browsers. Legibility comes from the scrim.
 */

.amenai-hero {
    position: relative;
    overflow: hidden;
    height: 560px;
    background-color: #0B1230;
}

.amenai-hero--tall  { height: 640px; }
.amenai-hero--short { height: 420px; }

.amenai-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    display: block;
}

/* Soft radial shade: quiets a busy/undesired area of the photo without a
   visible patch. Position is tunable per page via --amenai-hero-dim-x/y. */
.amenai-hero__dim {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        38% 34% at var(--amenai-hero-dim-x, 53%) var(--amenai-hero-dim-y, 43%),
        rgba(11, 18, 48, .52),
        rgba(11, 18, 48, .26) 55%,
        rgba(11, 18, 48, 0) 80%
    );
}

/* Directional scrim carrying the copy. */
.amenai-hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        270deg,
        rgba(11, 18, 48, .92) 0%,
        rgba(11, 18, 48, .74) 26%,
        rgba(11, 18, 48, .32) 48%,
        rgba(11, 18, 48, 0) 66%
    );
}

.amenai-hero--left .amenai-hero__scrim {
    background: linear-gradient(
        90deg,
        rgba(11, 18, 48, .92) 0%,
        rgba(11, 18, 48, .74) 26%,
        rgba(11, 18, 48, .32) 48%,
        rgba(11, 18, 48, 0) 66%
    );
}

.amenai-hero__inner {
    position: relative;
    height: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.amenai-hero--left .amenai-hero__inner { justify-content: flex-start; }

.amenai-hero__copy {
    max-width: 460px;
    z-index: 2;
}

.amenai-hero__eyebrow {
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #c7d6e2;
    font-weight: 600;
    margin: 0 0 14px;
}

.amenai-hero__title {
    font-weight: 600;
    font-size: 45px;
    line-height: 1.06;
    color: #fff;
    letter-spacing: -.015em;
    margin: 0;
}

.amenai-hero__sub {
    font-weight: 400;
    font-size: 16px;
    color: #e7edf8;
    margin: 16px 0 0;
    line-height: 1.5;
}

.amenai-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.amenai-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: 14px 26px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.amenai-hero__btn--primary {
    background: #E1EFF2;
    color: #101838;
}

.amenai-hero__btn--primary:hover {
    background: #fff;
    transform: translateY(-2px);
}

.amenai-hero__btn--ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .55);
    font-weight: 400;
}

.amenai-hero__btn--ghost:hover { border-color: #fff; }

.amenai-hero__btn:focus-visible {
    outline: 2px solid #E1EFF2;
    outline-offset: 3px;
}

/* ---- Tablet / mobile: photo stays, scrim becomes a bottom-up wash ---- */
@media (max-width: 900px) {
    .amenai-hero,
    .amenai-hero--tall,
    .amenai-hero--short { height: 480px; }

    .amenai-hero__scrim,
    .amenai-hero--left .amenai-hero__scrim {
        background: linear-gradient(
            0deg,
            rgba(11, 18, 48, .94) 0%,
            rgba(11, 18, 48, .78) 34%,
            rgba(11, 18, 48, .38) 62%,
            rgba(11, 18, 48, .12) 100%
        );
    }

    .amenai-hero__dim { opacity: .5; }

    .amenai-hero__inner,
    .amenai-hero--left .amenai-hero__inner {
        align-items: flex-end;
        justify-content: flex-start;
        padding: 0 22px 34px;
    }

    .amenai-hero__copy { max-width: 100%; }
    .amenai-hero__title { font-size: 32px; }
    .amenai-hero__sub { font-size: 15px; }
}

@media (max-width: 480px) {
    .amenai-hero,
    .amenai-hero--tall,
    .amenai-hero--short { height: 440px; }
    .amenai-hero__title { font-size: 27px; }
    .amenai-hero__btn { padding: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .amenai-hero__btn { transition: none; }
    .amenai-hero__btn--primary:hover { transform: none; }
}
