/* ==========================================================
   Homepage hero – mobile-first, works down to 300px.
   Replaces banner.css and the old inline .acc-img style.
   ========================================================== */

.hero {
    --hero-accent: #0b5ed7;
    --hero-text: #1a1a1a;
    --hero-muted: #4b5563;

    padding: 1.5rem .75rem 2rem;
    color: var(--hero-text);
    background: linear-gradient(180deg, #f3f6fb 0%, #ffffff 100%);
}

.hero__inner {
    display: grid;
    gap: 1.5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero__content {
    min-width: 0;                   /* lets long words wrap instead of overflowing on tiny screens */
}

.hero__title {
    margin: 0 0 .5rem;
    font-size: clamp(1.5rem, 7vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: break-word;
}

.hero__tagline {
    margin: 0 0 .75rem;
    font-size: clamp(1.1rem, 5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.25;
}
.hero__tagline span {
    color: var(--hero-accent);
}

.hero__lead {
    margin: 0 0 1.25rem;
    max-width: 38rem;
    font-size: 1rem;
    color: var(--hero-muted);
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;               /* comfortable touch target */
    padding: .65rem 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: var(--hero-accent);
    border-radius: 8px;
    transition: background-color .2s;
}
.hero__btn:hover {
    background: #0a4fb3;
}

.hero__media {
    margin: 0;
    min-width: 0;
}
.hero__img {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;                   /* aspect ratio comes from the width/height attributes: no layout shift */
    margin-inline: auto;
    border-radius: 12px;
}

/* Very small phones */
@media (max-width: 360px) {
    .hero { padding-inline: .5rem; }
    .hero__btn { width: 100%; }
}

/* Tablet / desktop: text left, image right */
@media (min-width: 768px) {
    .hero { padding: 2.5rem 1.5rem 3rem; }
    .hero__inner {
        grid-template-columns: 1.1fr 1fr;
        gap: 2.5rem;
    }
}

/* Gentle entrance: transform only, so it never delays the largest contentful paint */
@media (prefers-reduced-motion: no-preference) {
    .hero__content > * {
        animation: hero-rise .6s ease both;
    }
    .hero__content > :nth-child(2) { animation-delay: .1s; }
    .hero__content > :nth-child(3) { animation-delay: .2s; }
    .hero__content > :nth-child(4) { animation-delay: .3s; }
}
@keyframes hero-rise {
    from { transform: translateY(14px); }
    to   { transform: none; }
}