/* Sprint 13 premium homepage visual layer. */
.hbat-icon {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.hbat-image-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(47, 107, 63, 0.14);
    border-radius: var(--hbat-radius-md, 0.5rem);
    background:
        linear-gradient(145deg, rgba(47, 107, 63, 0.08), rgba(185, 133, 47, 0.08)),
        var(--hbat-color-surface, #ffffff);
    box-shadow: 0 1.5rem 3.5rem rgba(24, 33, 20, 0.1);
}

.hbat-image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hbat-home-hero {
    padding-block: var(--hbat-space-16, 4rem);
    background:
        radial-gradient(circle at 82% 18%, rgba(185, 133, 47, 0.13), transparent 18rem),
        linear-gradient(135deg, #ffffff 0%, #f7faf4 46%, #eaf3e4 100%);
}

.hbat-home-hero__inner {
    gap: var(--hbat-space-16, 4rem);
}

.hbat-home-hero__content {
    max-width: 41rem;
}

.hbat-home-hero__summary {
    max-width: 38rem;
}

.hbat-home-actions {
    gap: var(--hbat-space-4, 1rem);
}

.hbat-button,
.hbat-header-cta {
    transition:
        transform 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease;
}

.hbat-button:hover,
.hbat-header-cta:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 1rem 2.25rem rgba(47, 107, 63, 0.22);
}

.hbat-button:focus-visible,
.hbat-header-cta:focus-visible {
    box-shadow:
        0 0 0 0.25rem rgba(47, 107, 63, 0.18),
        0 1rem 2.25rem rgba(47, 107, 63, 0.2);
}

.hbat-home-hero__visual {
    position: relative;
    min-height: 28rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.hbat-home-hero__media {
    position: relative;
    min-height: 28rem;
}

.hbat-home-hero__image {
    aspect-ratio: 4 / 5;
    min-height: 28rem;
    border-radius: 0.75rem;
}

.hbat-home-hero__image::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(24, 33, 20, 0.2)),
        repeating-linear-gradient(90deg, rgba(47, 107, 63, 0.16) 0 1px, transparent 1px 3.5rem),
        repeating-linear-gradient(0deg, rgba(47, 107, 63, 0.08) 0 1px, transparent 1px 3.5rem);
}

.hbat-home-hero__image-placeholder {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 100%;
    place-items: center;
    gap: var(--hbat-space-4, 1rem);
    padding: var(--hbat-space-8, 2rem);
    color: var(--hbat-color-primary, #2f6b3f);
    text-align: center;
}

.hbat-home-hero__svg {
    width: 6rem;
    height: 6rem;
}

.hbat-home-hero__image-placeholder span {
    max-width: 14rem;
    color: var(--hbat-color-text, #182114);
    font-weight: 800;
}

.hbat-home-hero__metric {
    position: absolute;
    right: -1rem;
    bottom: var(--hbat-space-8, 2rem);
    display: grid;
    gap: var(--hbat-space-1, 0.25rem);
    width: min(15rem, 74%);
    padding: var(--hbat-space-4, 1rem);
    border: 1px solid rgba(47, 107, 63, 0.14);
    border-radius: var(--hbat-radius-md, 0.5rem);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1rem 2.5rem rgba(24, 33, 20, 0.12);
}

.hbat-home-hero__metric--primary {
    top: var(--hbat-space-8, 2rem);
    bottom: auto;
    left: -1rem;
    right: auto;
}

.hbat-home-hero__metric strong {
    color: var(--hbat-color-primary, #2f6b3f);
    font-size: var(--hbat-font-size-lg, 1.125rem);
}

.hbat-home-hero__metric span {
    color: var(--hbat-color-text-muted, #5d6a55);
    font-size: var(--hbat-font-size-sm, 0.875rem);
}

.hbat-home-intro {
    background: var(--hbat-color-surface, #ffffff);
}

.hbat-home-intro__inner {
    max-width: 58rem;
}

.hbat-home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--hbat-space-4, 1rem);
    margin-top: var(--hbat-space-6, 1.5rem);
}

.hbat-home-stats .hbat-stat-card {
    border-color: rgba(47, 107, 63, 0.14);
}

.hbat-home-solutions,
.hbat-home-why {
    background:
        linear-gradient(180deg, #ffffff 0%, var(--hbat-color-canvas, #f8faf6) 100%);
}

.hbat-home-card,
.hbat-home .hbat-stat-card {
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.hbat-home-card {
    position: relative;
    overflow: hidden;
    min-height: 16rem;
    padding: var(--hbat-space-6, 1.5rem);
    border-color: rgba(47, 107, 63, 0.12);
    border-radius: 0.75rem;
    background: var(--hbat-color-surface, #ffffff);
    box-shadow: 0 1rem 2.5rem rgba(24, 33, 20, 0.06);
}

.hbat-home-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 0.25rem;
    content: "";
    background: linear-gradient(90deg, var(--hbat-color-primary, #2f6b3f), var(--hbat-color-accent, #b9852f));
    opacity: 0.8;
}

.hbat-home-card:hover,
.hbat-home-card:focus-within,
.hbat-home .hbat-stat-card:hover {
    transform: translateY(-0.1875rem);
    border-color: rgba(47, 107, 63, 0.28);
    box-shadow: 0 1.5rem 3.5rem rgba(24, 33, 20, 0.1);
}

.hbat-home-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background:
        linear-gradient(145deg, rgba(47, 107, 63, 0.1), rgba(185, 133, 47, 0.08)),
        var(--hbat-color-surface, #ffffff);
}

.hbat-home-card__svg {
    width: 1.5rem;
    height: 1.5rem;
}

.hbat-home-card--feature {
    display: flex;
    flex-direction: column;
    gap: var(--hbat-space-3, 0.75rem);
}

.hbat-home-card--feature h3,
.hbat-home-card--feature p {
    margin: 0;
}

.hbat-home-preview {
    border-block: 0;
}

.hbat-home-preview:nth-of-type(4) {
    background: #f7faf4;
}

.hbat-home-preview:nth-of-type(5) {
    background: #ffffff;
}

.hbat-home-preview__inner {
    grid-template-columns: minmax(16rem, 0.7fr) minmax(0, 1fr);
    gap: var(--hbat-space-12, 3rem);
}

.hbat-home-preview__heading {
    display: grid;
    gap: var(--hbat-space-3, 0.75rem);
}

.hbat-home-preview__heading .hbat-section-title,
.hbat-home-preview__heading .hbat-lead {
    margin: 0;
}

.hbat-home-preview__media {
    min-width: 0;
}

.hbat-home-preview__image {
    display: grid;
    aspect-ratio: 4 / 3;
    min-height: 18rem;
    place-items: center;
    color: var(--hbat-color-primary, #2f6b3f);
}

.hbat-home-preview__image::before {
    position: absolute;
    inset: var(--hbat-space-6, 1.5rem);
    content: "";
    border: 1px solid rgba(47, 107, 63, 0.16);
    border-radius: var(--hbat-radius-md, 0.5rem);
}

.hbat-home-preview__image--project {
    background:
        linear-gradient(145deg, rgba(24, 33, 20, 0.04), rgba(47, 107, 63, 0.1)),
        var(--hbat-color-surface, #ffffff);
}

.hbat-home-preview__svg {
    position: relative;
    z-index: 1;
    width: 5rem;
    height: 5rem;
}

.hbat-home-cta {
    background:
        linear-gradient(135deg, #173d25 0%, var(--hbat-color-primary, #2f6b3f) 58%, #315d3b 100%);
}

.hbat-home-cta__inner {
    position: relative;
    overflow: hidden;
    padding: var(--hbat-space-8, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
}

.hbat-home-cta__inner::after {
    position: absolute;
    right: var(--hbat-space-8, 2rem);
    bottom: calc(-1 * var(--hbat-space-8, 2rem));
    width: 14rem;
    height: 14rem;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
}

.hbat-home-cta__eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.hbat-home-cta .hbat-button--primary {
    position: relative;
    z-index: 1;
    border-color: #ffffff;
    background: #ffffff;
    color: var(--hbat-color-primary, #2f6b3f);
}

.hbat-home-cta .hbat-button--primary:hover,
.hbat-home-cta .hbat-button--primary:focus-visible {
    border-color: #eef3ea;
    background: #eef3ea;
    color: var(--hbat-color-primary, #2f6b3f);
}

@media (prefers-reduced-motion: reduce) {
    .hbat-button,
    .hbat-header-cta,
    .hbat-home-card,
    .hbat-home .hbat-stat-card {
        transition: none;
    }

    .hbat-button:hover,
    .hbat-header-cta:hover,
    .hbat-home-card:hover,
    .hbat-home-card:focus-within,
    .hbat-home .hbat-stat-card:hover {
        transform: none;
    }
}

@media (max-width: 48rem) {
    .hbat-home-stats {
        grid-template-columns: 1fr;
    }

    .hbat-home-preview__inner {
        gap: var(--hbat-space-6, 1.5rem);
    }

    .hbat-home-preview__media {
        order: -1;
    }

    .hbat-home-hero__media,
    .hbat-home-hero__image {
        min-height: 20rem;
    }

    .hbat-home-hero__metric {
        position: relative;
        inset: auto;
        width: auto;
        margin-top: var(--hbat-space-3, 0.75rem);
    }

    .hbat-home-cta__inner {
        padding: var(--hbat-space-6, 1.5rem);
    }
}
