/* BATES v0.26.156 – homepage visual foundation
   Existing BATES palette: navy/blue/red/white only. */

.bates-home-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(560px, 72vh, 760px);
    overflow: hidden;
    background: #13203c;
}

.bates-home-hero .hero-parallax-media {
    transform: none !important;
    will-change: auto !important;
}

.bates-home-hero .hero-parallax-media::after,
.bates-home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bates-home-hero .hero-parallax-media::after {
    background:
        linear-gradient(90deg, rgba(8, 21, 48, .90) 0%, rgba(19, 50, 105, .73) 42%, rgba(19, 50, 105, .24) 72%, rgba(19, 50, 105, .08) 100%),
        linear-gradient(0deg, rgba(8, 21, 48, .28), transparent 45%);
}

.bates-home-hero::after {
    z-index: 1;
    background:
        radial-gradient(circle at 18% 22%, rgba(47, 91, 177, .20), transparent 34%),
        linear-gradient(180deg, transparent 72%, rgba(8, 21, 48, .18));
}

.bates-home-hero .hero-cover-inner {
    position: relative;
    z-index: 2;
    min-height: inherit;
    display: flex;
    align-items: center;
    padding-top: clamp(56px, 8vh, 92px);
    padding-bottom: clamp(64px, 9vh, 104px);
}

.bates-home-hero .hero-copy {
    width: min(760px, 72vw);
    max-width: 100%;
}

.bates-home-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255,255,255,.88);
    font-size: 13px;
    letter-spacing: .10em;
}

.bates-home-hero .eyebrow::before {
    content: "";
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: #d71920;
}

.bates-home-hero h1 {
    max-width: 780px;
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 5.4vw, 76px);
    line-height: .99;
    letter-spacing: -.035em;
    text-wrap: balance;
    text-shadow: 0 2px 18px rgba(0,0,0,.18);
}

.bates-home-hero .hero-lead {
    max-width: 680px;
    margin-top: 22px;
    color: rgba(255,255,255,.88);
    font-size: clamp(17px, 1.55vw, 21px);
    line-height: 1.55;
}

.bates-home-hero .hero-actions {
    margin-top: 28px;
    gap: 12px;
}

.bates-home-hero .hero-actions .button {
    min-height: 50px;
    padding-inline: 22px;
    box-shadow: 0 10px 28px rgba(8, 21, 48, .18);
}

.bates-home-hero .hero-actions .button:first-child {
    background: #2f5bb1;
    border-color: #2f5bb1;
}

.bates-home-hero .hero-actions .button:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(8, 21, 48, .24);
}

.bates-home-hero .hero-highlights {
    margin-top: 32px;
    max-width: 720px;
}

.bates-home-hero .hero-highlights > div {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.14);
    backdrop-filter: none;
}

/* Trust strip */
.bates-home-trust {
    position: relative;
    z-index: 5;
    margin-top: -32px;
    padding-bottom: 24px;
}

.bates-home-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(47, 91, 177, .15);
    border-radius: 18px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 18px 42px rgba(19, 32, 60, .10);
}

.bates-home-trust-item {
    appearance: none;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px 18px;
    border: 0;
    border-right: 1px solid rgba(19, 32, 60, .08);
    background: transparent;
    color: #13203c;
    text-align: left;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}

.bates-home-trust-item:last-child {
    border-right: 0;
}

.bates-home-trust-item:hover,
.bates-home-trust-item:focus-visible {
    background: #f6f8fd;
    outline: none;
}

.bates-home-trust-icon {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #eef3ff;
    color: #2f5bb1;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .03em;
}

.bates-home-trust-item strong,
.bates-home-trust-item small {
    display: block;
}

.bates-home-trust-item strong {
    margin-bottom: 3px;
    font-size: 14px;
    line-height: 1.2;
}

.bates-home-trust-item small {
    color: #66718a;
    font-size: 12px;
    line-height: 1.35;
}

/* Gentle reveal only; no image/parallax animation. */
html.bates-home-motion [data-home-reveal] {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .36s ease, transform .36s ease;
}

html.bates-home-motion [data-home-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .bates-home-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bates-home-trust-item:nth-child(2) {
        border-right: 0;
    }

    .bates-home-trust-item:nth-child(-n+2) {
        border-bottom: 1px solid rgba(19, 32, 60, .08);
    }
}

@media (max-width: 760px) {
    .bates-home-hero {
        min-height: 620px;
    }

    .bates-home-hero .hero-parallax-media::after {
        background:
            linear-gradient(180deg, rgba(8, 21, 48, .48) 0%, rgba(8, 21, 48, .82) 58%, rgba(8, 21, 48, .94) 100%);
    }

    .bates-home-hero .hero-cover-inner {
        align-items: flex-end;
        padding-top: 88px;
        padding-bottom: 76px;
    }

    .bates-home-hero .hero-copy {
        width: 100%;
    }

    .bates-home-hero h1 {
        font-size: clamp(38px, 11vw, 56px);
    }

    .bates-home-hero .hero-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    .bates-home-hero .hero-actions .button {
        width: 100% !important;
        justify-content: center;
    }

    .bates-home-trust {
        margin-top: -22px;
    }

    .bates-home-trust-grid {
        grid-template-columns: 1fr;
        border-radius: 14px;
    }

    .bates-home-trust-item,
    .bates-home-trust-item:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid rgba(19, 32, 60, .08);
    }

    .bates-home-trust-item:last-child {
        border-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.bates-home-motion [data-home-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .bates-home-trust-item,
    .bates-home-hero .button {
        transition: none !important;
        transform: none !important;
    }
}
