.hero { position: relative; overflow: hidden; }

.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; }

.hero-curve { display: none; }
.hero-curve-fill { fill: var(--color-cream); }
.hero-curve-line { fill: none; stroke: #8cb866; stroke-width: 1.2; vector-effect: non-scaling-stroke; }

.hero h1 { line-height: 1.18; margin-bottom: 1.25rem; }
.hero-features { list-style: none; padding: 0; }
.hero-features li { display: flex; align-items: center; font-size: .8rem; font-weight: 500; line-height: 1.35; }
.hero-features .icon { width: 30px; height: 30px; color: #4d8a3a; }

/* Phones and tablets: the text sits on the darkened photo */
@media (max-width: 991.98px) {
    .hero { --photo-height: clamp(380px, 56vw, 520px); background: #1f1d42; }

    .hero-media { position: absolute; top: 0; left: 0; right: 0; height: var(--photo-height); }
    .hero-media img { object-position: 38% center; /* keeps the wall logo from showing behind the text */ }
    .hero-media::after {
        top: 0;
        background: linear-gradient(rgba(22, 20, 48, .68), rgba(22, 20, 48, .76) 60%, #1f1d42 calc(100% - 1px));
    }

    .hero .container { position: relative; }
    .hero-content { padding: 3.5rem 0 1.75rem; color: #fff; text-align: center; }
    .hero .eyebrow { color: #b9dc8f; font-size: .68rem; }
    .hero h1 { color: #fff; font-size: clamp(1.75rem, 7vw, 2.75rem); }
    .hero-lead { max-width: 28rem; margin: 0 auto 1.5rem; font-size: 1rem; color: rgba(255, 255, 255, .88); }

    .hero-actions { flex-direction: column; max-width: 22rem; margin: 0 auto; }
    .hero .btn-brand {
        --bs-btn-color: var(--color-navy);
        --bs-btn-bg: #8cc152;
        --bs-btn-border-color: #8cc152;
        --bs-btn-hover-color: var(--color-navy);
        --bs-btn-hover-bg: #9dd063;
        --bs-btn-hover-border-color: #9dd063;
        --bs-btn-active-color: var(--color-navy);
        --bs-btn-active-bg: #9dd063;
    }
    .hero .btn-outline-brand {
        --bs-btn-color: #fff;
        --bs-btn-border-color: rgba(255, 255, 255, .6);
        --bs-btn-hover-bg: rgba(255, 255, 255, .15);
        --bs-btn-hover-border-color: #fff;
        --bs-btn-active-bg: rgba(255, 255, 255, .25);
    }

    .hero-features {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: .5rem;
        max-width: 28rem;
        margin: 1.5rem auto 0;
        padding-top: 1.25rem;
        border-top: 1px solid rgba(255, 255, 255, .2);
    }
    .hero-features li { flex-direction: column; gap: .4rem; font-size: .72rem; }
    .hero-features .icon { color: #b9dc8f; }
}

/* Desktop: text on the left, photo with a curved edge on the right */
@media (min-width: 992px) {
    .hero { display: flex; align-items: center; min-height: clamp(520px, 41vw, 700px); }

    .hero-media { position: absolute; top: 0; bottom: 0; right: 0; width: 60%; }
    .hero-media img { object-position: 75% center; }
    .hero-media::after { height: 12%; background: linear-gradient(transparent, var(--color-cream)); }

    .hero-curve { display: block; position: absolute; top: 0; left: -1px; width: 24%; height: 100%; }

    .hero .container { position: relative; }
    .hero-content { max-width: 37rem; padding: 2rem 0 3rem; }
    .hero h1 { font-size: clamp(2rem, 3.3vw, 3rem); }
    .hero-lead { font-size: 1.1rem; max-width: 26rem; margin-bottom: 2rem; }

    .hero-features { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin: 2.5rem 0 0; }
    .hero-features li { gap: .65rem; }
}

.hero-features span { max-width: 6.5rem; }
