/* Avrb1749 UI, 2026-11-26. Loaded after the existing mobile layout fix. */
.avrb-recent-card {
    position: relative;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.avrb-recent-card > .ratio { border-radius: 12px 12px 0 0; }
.avrb-recent-card .card-body { position: static; }
.avrb-recent-card__title { font-size: 1.0625rem; line-height: 1.45; }
.avrb-recent-card__link { color: #20252b; text-decoration: none; }
.avrb-recent-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 14px; }
.avrb-recent-card__hint { color: #754408; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; margin: 0 0 14px; }
.avrb-recent-card__order { position: relative; z-index: 2; min-height: 46px; color: #171b20 !important; }
.avrb-recent-card__link:focus-visible { outline: none; }
.avrb-recent-card__link:focus-visible::after { outline: 3px solid #945b0a; outline-offset: 4px; }
@media (hover: hover) {
    .avrb-recent-card:hover { border-color: #b77916; box-shadow: 0 10px 24px #20252b18 !important; transform: translateY(-3px); }
    .avrb-recent-card:hover .avrb-recent-card__title { text-decoration: underline; text-underline-offset: 3px; }
}
.avrb-product-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.avrb-product-link {
    display: flex; align-items: center; justify-content: flex-start; gap: 10px;
    min-height: 48px; padding: 12px 14px; border: 1px solid #c9ac80; border-radius: 10px;
    background: #fffaf2; color: #754408; font-size: .9375rem; font-weight: 600;
    line-height: 1.4; text-decoration: underline; text-underline-offset: 3px;
    transition: background-color .15s ease, border-color .15s ease;
}
.avrb-product-link svg { flex: 0 0 22px; }
.avrb-product-link:hover { background: #f7e9d3; color: #573005; border-color: #945b0a; }
.avrb-product-link:focus-visible, .avrb-footer-logo:focus-visible { outline: 3px solid #b77916; outline-offset: 3px; }
.avrb-footer-brand { width: 100%; gap: 16px; }
.avrb-footer-brand > .block { width: 100%; min-width: 0; margin: 0 !important; }
.avrb-footer-logo { display: block; width: fit-content; max-width: 100%; margin-inline: auto; border-radius: 6px; }
.avrb-footer-logo img { display: block; width: 150px; max-width: 100%; height: auto; }
.avrb-footer-brand .block > p.w-75 { width: 100% !important; max-width: 32rem; margin: 0 auto; line-height: 1.6; text-align: center; }
@media (max-width: 480px) { .avrb-product-links { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .avrb-recent-card, .avrb-product-link { transition: none; } .avrb-recent-card:hover { transform: none; } }

/* Selected hero: original engine photo on the right, readable text on the left. */
.site-hero.avrb-hero-v2 {
    position: relative; isolation: isolate; min-height: 590px; padding: 0;
    display: flex; align-items: center; overflow: hidden; background: #111619;
}
.site-hero.avrb-hero-v2::after { content: none; }
/* The legacy warranty is injected separately; the new hero already has its own. */
.site-hero.avrb-hero-v2 .site-hero-content > .site-hero-warranty { display: none !important; }
.avrb-hero-v2__photo {
    --photo-fade-x: linear-gradient(90deg, transparent 0%, #000 20%, #000 90%, transparent 100%);
    --photo-fade-y: linear-gradient(180deg, transparent 0%, #000 12%, #000 82%, transparent 100%);
    position: absolute; inset: 0 0 0 43%; z-index: 0; overflow: hidden;
    display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.avrb-hero-v2__photo img {
    display: block; flex: 0 1 auto; width: auto; height: auto; max-width: 100%; max-height: 100%;
    object-fit: contain;
    /* Mask the actual image bounds, including when it is letterboxed. */
    -webkit-mask-image: var(--photo-fade-x), var(--photo-fade-y);
    -webkit-mask-composite: source-in;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-image: var(--photo-fade-x), var(--photo-fade-y);
    mask-composite: intersect;
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
}
.avrb-hero-v2__photo::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, #111619 0%, #111619eb 8%, #11161966 27%, #11161900 58%), linear-gradient(0deg, #11161970, transparent 30%);
}
.avrb-hero-v2 > .container-lg { position: relative; z-index: 1; width: 100%; padding-inline: 24px; }
.avrb-hero-v2 .site-hero-content { width: 55%; max-width: 660px; padding: 70px 0 84px; }
.avrb-hero-v2 .site-hero-kicker { display: flex; gap: .4em; margin: 0 0 22px; color: #fff; font-size: 1.125rem; line-height: 1.4; font-weight: 800; }
.avrb-hero-v2 .site-hero-kicker span { color: #eeb970; }
.avrb-hero-v2 .site-hero-title { max-width: 620px; margin: 0 0 20px; color: #fff; font-size: clamp(2.65rem, 4.1vw, 4.5rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; }
.avrb-hero-v2 .site-hero-text { max-width: 570px; margin: 0 0 28px; color: #fff; font-size: clamp(1.0625rem, 1.4vw, 1.375rem); line-height: 1.6; }
.avrb-hero-v2__warranty { display: flex; align-items: center; gap: 16px; margin: 0 0 32px; }
.avrb-hero-v2__warranty > svg { flex: 0 0 42px; color: #eeb970; }
.avrb-hero-v2__warranty p { margin: 0; padding-left: 16px; border-left: 1px solid #eeb970; }
.avrb-hero-v2__warranty strong { display: block; color: #eeb970; font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.3; }
.avrb-hero-v2__warranty span { display: block; margin-top: 5px; color: #f2f2f2; font-size: .9375rem; line-height: 1.5; }
.avrb-hero-v2 .site-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; max-width: 610px; }
.avrb-hero-v2 .site-hero-button { min-height: 50px; padding: 13px 24px; border: 1px solid #db901c; border-radius: 9px; background: #e6a02e; color: #111619; font-size: 1.0625rem; line-height: 1.4; }
.avrb-hero-v2 .site-hero-button:hover { background: #f3b84d; border-color: #f3b84d; color: #111619; }
.avrb-hero-v2 .site-hero-vin-link { color: #fff; font-size: 1rem; line-height: 1.5; text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 5px; }
.avrb-hero-v2 .site-hero-vin-link:hover { color: #eeb970; }
.avrb-hero-v2 .site-hero-pick-button { min-height: 50px; padding: 12px 22px; border: 1px solid #fff; border-radius: 9px; background: transparent; color: #fff; font-size: 1.0625rem; line-height: 1.4; font-weight: 600; }
.avrb-hero-v2 .site-hero-pick-button:hover { background: #ffffff18; border-color: #eeb970; color: #fff; }
.avrb-hero-v2 .site-hero-pick-button:focus-visible { outline: 3px solid #eeb970; outline-offset: 4px; }
.avrb-lead-modal { z-index: 11000; overscroll-behavior: contain; }
.avrb-lead-modal .modal-dialog { width: calc(100% - 32px); max-width: 560px; margin: 16px auto; min-height: calc(100% - 32px); }
.avrb-lead-modal .modal-content { width: 100%; max-width: 100%; max-height: calc(100dvh - 32px); align-items: stretch; justify-content: flex-start; overflow-y: auto; }
.avrb-lead-modal .modal-header, .avrb-lead-modal .modal-body { width: 100%; }
.avrb-lead-modal .modal-title { padding-right: 12px; }
.avrb-lead-modal button[type="submit"] { min-height: 50px; color: #111619; background: #e6a02e; border-color: #db901c; }
.avrb-selection-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; color: #343b43; font-size: .9375rem; line-height: 1.5; text-align: center; }
.avrb-selection-divider::before, .avrb-selection-divider::after { content: ""; height: 1px; flex: 1; background: #ccd0d5; }
.avrb-selection-contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.avrb-selection-contact { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 8px; border: 1px solid #969da7; border-radius: 8px; color: #20252b; font-size: 1rem; font-weight: 600; line-height: 1.4; text-decoration: none; }
.avrb-selection-contact svg { flex: 0 0 20px; }
.avrb-selection-contact:hover { background: #f4f5f6; color: #20252b; border-color: #20252b; }
.avrb-selection-contact:focus-visible { outline: 3px solid #945b0a; outline-offset: 3px; }
@media (max-width: 575.98px) {
    .avrb-selection-contacts { grid-template-columns: 1fr; }
    .avrb-lead-modal .modal-content { max-height: calc(100dvh - 16px); }
    .avrb-hero-v2 .site-hero-actions { display: grid; grid-template-columns: 1fr; gap: 12px; }
    .avrb-hero-v2 .site-hero-button, .avrb-hero-v2 .site-hero-pick-button { width: 100%; }
}
.avrb-hero-v2 .site-hero-button:focus-visible, .avrb-hero-v2 .site-hero-vin-link:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
@media (max-width: 991.98px) {
    .site-hero.avrb-hero-v2 { min-height: 540px; }
    .avrb-hero-v2 .site-hero-content { width: 59%; padding: 54px 0 70px; }
    .avrb-hero-v2 .site-hero-title { font-size: clamp(2.35rem, 4.8vw, 3.25rem); }
    .avrb-hero-v2__photo { left: 42%; }
}
@media (max-width: 767.98px) {
    .site-hero.avrb-hero-v2 { display: block; min-height: 0; padding-bottom: 0; }
    .avrb-hero-v2 > .container-lg { padding-inline: 20px; }
    .avrb-hero-v2 .site-hero-content { width: 100%; max-width: none; padding: 34px 0 24px; }
    .avrb-hero-v2 .site-hero-kicker { margin-bottom: 18px; font-size: 1rem; }
    .avrb-hero-v2 .site-hero-title { max-width: 610px; margin-bottom: 18px; font-size: clamp(2.1rem, 8vw, 3rem); line-height: 1.1; }
    .avrb-hero-v2 .site-hero-text { margin-bottom: 22px; font-size: 1.0625rem; }
    .avrb-hero-v2__warranty { gap: 12px; margin-bottom: 26px; }
    .avrb-hero-v2__warranty p { padding-left: 12px; }
    .avrb-hero-v2__warranty strong { font-size: 1.375rem; }
    .avrb-hero-v2 .site-hero-actions { gap: 18px; }
    .avrb-hero-v2 .site-hero-button { padding-inline: 22px; }
    .avrb-hero-v2__photo {
        --photo-fade-x: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
        --photo-fade-y: linear-gradient(180deg, transparent 0%, #000 15%, #000 82%, transparent 100%);
        position: relative; inset: auto; width: 100%; height: clamp(260px, 73.4vw, 490px);
    }
    .avrb-hero-v2__photo::after { background: linear-gradient(180deg, #111619 0%, #11161900 25%, #11161900 78%, #111619 100%); }
}
