/* RVfluid homepage: a direct route to the preliminary pump selector. */
.home-template .hero {
    padding: clamp(64px, 7vw, 112px) 0 64px;
}

/* Quiet tonal glass and fine rules keep the compact statistics band legible. */
.home-template .stats {
    --rv-stats-background-rgb: 30, 68, 61;
    position: relative;
    isolation: isolate;
    padding: 44px 0 40px;
    background-color: rgb(var(--rv-stats-background-rgb));
    background-image: linear-gradient(to bottom, #1e443d, #1b3e37);
    box-shadow: inset 0 -1px 0 rgba(14, 36, 31, .3);
}
.home-template .stats::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: linear-gradient(120deg, rgba(103, 149, 132, .45), rgba(18, 46, 42, .65)), var(--rv-stats-image, none);
    background-size: cover;
    background-position: center;
    filter: blur(24px) saturate(.85);
    opacity: .10;
    clip-path: inset(0);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 65%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 65%, transparent);
    pointer-events: none;
}
.home-template .stats > .container { position: relative; z-index: 1; }
.home-template .stats-container { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; max-width: 1060px; margin: 0 auto; }
.home-template .stats .stat-item { position: relative; padding: 12px; border-radius: 0; }
.home-template .stats .stat-item + .stat-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 46px;
    transform: translateY(-50%);
    background: rgba(209, 229, 217, .18);
    pointer-events: none;
}
.home-template .stats .stat-number { margin-bottom: 10px; color: #f5f3eb; font-size: clamp(32px, 3vw, 44px); font-weight: 600; line-height: 1.2; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.home-template .stats .stat-number .suffix { margin-left: 3px; font-size: .58em; font-weight: 400; letter-spacing: 0; }
.home-template .stats .stat-label { color: #bdd1c7; font-size: 13px; font-weight: 400; line-height: 1.5; letter-spacing: .025em; }
.home-template .stats .stat-item:hover { background-color: transparent; transform: none; }
.home-template .hero + .stats::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 56px;
    background: linear-gradient(to bottom, rgba(var(--rv-stats-background-rgb), 0), rgba(var(--rv-stats-background-rgb), .12) 25%, rgba(var(--rv-stats-background-rgb), .5) 55%, rgba(var(--rv-stats-background-rgb), .88) 82%, rgb(var(--rv-stats-background-rgb)));
    pointer-events: none;
}
@media (max-width: 768px) {
    .home-template .stats { padding: 28px 0; }
    .home-template .stats-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
    .home-template .stats .stat-item { padding: 20px 8px; }
    .home-template .stats .stat-item:nth-child(3)::before { display: none; }
    .home-template .stats .stat-item:nth-child(-n+2) { border-bottom: 1px solid rgba(209, 229, 217, .12); }
    .home-template .stats .stat-number { font-size: clamp(26px, 7.5vw, 32px); }
    .home-template .stats .stat-label { font-size: 12px; letter-spacing: 0; }
}

@media (max-width: 576px) {
    .home-template .hero + .stats::before { height: 40px; }
}

.rv-home-selector {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    max-width: 1060px;
    margin: 32px auto 0;
    padding: 28px 32px;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 12px;
    background: #234942;
    color: #fff;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .12);
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.rv-home-selector:hover {
    background-color: #2b5750;
    border-color: rgba(255, 255, 255, .75);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.rv-home-selector:focus-visible {
    outline: 3px solid #e0f3eb;
    outline-offset: 4px;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .hero .rv-home-selector {
        background: linear-gradient(120deg, rgba(49, 88, 81, .64), rgba(18, 46, 42, .48));
        -webkit-backdrop-filter: blur(18px) saturate(125%);
        backdrop-filter: blur(18px) saturate(125%);
    }
    .hero .rv-home-selector:hover {
        background: linear-gradient(120deg, rgba(61, 106, 97, .72), rgba(28, 66, 59, .56));
    }
}

.rv-home-selector__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #cce7df;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.rv-home-selector h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.25;
    text-align: left;
}

.rv-home-selector h2::after { display: none; }

.hero .rv-home-selector p,
.rv-home-selector p {
    max-width: 660px;
    margin: 0;
    color: #eef5f2;
    font-size: 16px;
    line-height: 1.55;
}

.rv-home-selector__arrow {
    display: block;
    padding: 0 8px;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    transition: transform .2s ease;
}

.rv-home-selector:hover .rv-home-selector__arrow,
.rv-home-selector:focus-visible .rv-home-selector__arrow {
    transform: translateX(4px);
}

.home-template .hero .hero-btns { flex-wrap: wrap; gap: 12px 20px; margin-top: 24px; }
.home-template .hero .hero-btns .btn {
    border: 1px solid rgba(255, 255, 255, .75);
    background: rgba(23, 58, 53, .65);
    color: #fff;
}
.home-template .hero .hero-btns .btn:hover {
    background: #173a35;
    border-color: #fff;
}
.home-template .hero .hero-btns .btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.rv-selector-home-fallback { padding: 40px 20px; }
.rv-selector-home-fallback .rv-home-selector { margin-top: 0; }

@media (max-width: 900px) {
    .rv-home-selector { gap: 20px; padding: 24px; }
    .home-template .hero-custom-bg { background-size: cover !important; }
}

@media (max-width: 1100px) {
    .home-template .contact-sidebar { display: none; }
}

@media (max-width: 576px) {
    .home-template .hero { padding: 48px 0; }
    .home-template .hero > .container { display: flex; flex-direction: column; }
    .home-template .hero > .container > h1 { order: 0; }
    .home-template .hero .rv-home-selector { order: 1; margin-top: 8px; }
    .home-template .hero > .container > p { order: 2; margin: 24px auto 0; font-size: 16px; line-height: 1.6; }
    .home-template .hero .hero-btns { order: 3; }
    .rv-home-selector { margin-top: 24px; padding: 22px 20px; }
    .rv-home-selector { grid-template-columns: minmax(0, 1fr) 24px; gap: 12px; }
    .rv-home-selector__arrow { padding: 0; font-size: 30px; }
    .rv-selector-home-fallback { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .rv-home-selector, .rv-home-selector__arrow { transition: none; }
    .rv-home-selector:hover .rv-home-selector__arrow,
    .rv-home-selector:focus-visible .rv-home-selector__arrow { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
    .home-template .stats::after { display: none; }
    .hero .rv-home-selector,
    .hero .rv-home-selector:hover {
        background: #234942;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}
