/**
 * Hampstead Preowned Auto Child Theme — child.css
 * Dealer 110872 | Primary: #303192 | Secondary: #0B1D62 | Light: #F0F0F0
 */

/* ─── CSS Variables ──────────────────────────────────────────────────────── */
.hpa-theme {
    --primary:        #303192;
    --primary-dark:   #0B1D62;
    --primary-light:  #5557c4;
    --primary-xlight: #e8e8f8;
    --light:          #F0F0F0;
    --white:          #ffffff;
    --gray-50:        #f9fafb;
    --gray-100:       #f3f4f6;
    --gray-200:       #e5e7eb;
    --gray-300:       #d1d5db;
    --gray-400:       #9ca3af;
    --gray-500:       #6b7280;
    --gray-600:       #4b5563;
    --gray-700:       #374151;
    --charcoal:       #1a1a2e;
    --text:           #1e1e1e;
    --font-heading:   'Plus Jakarta Sans', sans-serif;
    --font-body:      'DM Sans', sans-serif;

    --header-background-color: #ffffff !important;
    --footer-background-color: #0B1D62 !important;

    font-family: var(--font-body) !important;
}

.hpa-theme h1,
.hpa-theme h2,
.hpa-theme h3,
.hpa-theme h4,
.hpa-theme h5,
.hpa-theme h6 {
    font-family: var(--font-heading) !important;
    font-weight: 700;
}

/* ─── Scroll-To-Top Button ───────────────────────────────────────────────── */
#hpa-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, background 0.2s;
    box-shadow: 0 4px 12px rgba(48, 49, 146, 0.35);
}
#hpa-to-top.hpa-visible { opacity: 1; pointer-events: auto; }
#hpa-to-top:hover { background: var(--primary-dark); }

/* ─── Shared Buttons ─────────────────────────────────────────────────────── */
.hpa-theme .hpa-btn-primary,
.hpa-theme .hpa-btn-outline,
.hpa-theme .hpa-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    border: 2px solid var(--primary);
}
.hpa-theme .hpa-btn-primary {
    background: var(--primary);
    color: #fff;
}
.hpa-theme .hpa-btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}
.hpa-theme .hpa-btn-outline {
    background: transparent;
    color: var(--primary);
}
.hpa-theme .hpa-btn-outline:hover {
    background: var(--primary);
    color: #fff;
}
.hpa-theme .hpa-btn-ghost {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
}
.hpa-theme .hpa-btn-ghost:hover {
    background: rgba(255,255,255,0.25);
    border-color: #fff;
    color: #fff;
}

/* ─── Header: Parent .website-top-bar restyle (gray) ─────────────────────── */
.hpa-theme .hpa-header .website-top-bar {
    background: var(--light) !important;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    color: var(--text) !important;
}
.hpa-theme .hpa-header .website-top-bar .top-bar-items-holder {
    max-width: 1420px;
    margin: 0 auto;
    padding: 8px 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    box-sizing: border-box;
}
.hpa-theme .hpa-header .website-top-bar-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hpa-theme .hpa-header .website-top-bar-list-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text);
    margin: 0;
    padding: 0;
    border: none !important;
}
.hpa-theme .hpa-header .website-top-bar-list-item a {
    color: var(--text);
    text-decoration: none;
}
.hpa-theme .hpa-header .website-top-bar-list-item a:hover {
    color: var(--primary);
}
.hpa-theme .hpa-header .website-top-bar-list-item i {
    color: var(--primary);
}

/* Phone (Sales & Service [phone]) */
.hpa-theme .hpa-top-phone-item {
    font-family: var(--font-body);
}
.hpa-theme .hpa-top-phone-label {
    color: var(--text);
    font-weight: 400;
}
.hpa-theme .hpa-top-phone-link {
    color: var(--text) !important;
    font-weight: 600;
    margin-left: 2px;
}
.hpa-theme .hpa-top-phone-link:hover { color: var(--primary) !important; }

/* Quick-action utility links (SEARCH / SERVICE / CONTACT / SAVED) */
.hpa-theme .hpa-top-action {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: var(--text) !important;
    text-decoration: none;
    padding: 6px 2px;
    transition: color 0.2s;
    cursor: pointer;
}
.hpa-theme .hpa-top-action i {
    color: var(--primary) !important;
    font-size: 14px;
}
.hpa-theme .hpa-top-action:hover,
.hpa-theme .hpa-top-action.is-active {
    color: var(--primary) !important;
}
.hpa-theme .hpa-top-action:hover i,
.hpa-theme .hpa-top-action.is-active i {
    color: var(--primary-dark) !important;
}

/* Hide parent's social_media block in the top bar (not in our design) */
.hpa-theme .hpa-header .website-top-bar .website-social-media,
.hpa-theme .hpa-header .website-top-bar .social-media {
    display: none !important;
}

/* ─── Header: Nav Row (white) ────────────────────────────────────────────── */
.hpa-theme .hpa-header .website-header-container {
    background: #fff !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.hpa-theme .hpa-header .website-navbar {
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
    width: 100%;
}

.hpa-theme .hpa-header .website-nav-logo img,
.hpa-theme .hpa-header .website-logo img {
    max-height: 85px;
    width: auto;
}

/* Nav links (white bg → dark text, primary on hover/active) */
.hpa-theme .hpa-header .website-items > li > a,
.hpa-theme .hpa-header .website-nav-items ul > li > a,
.hpa-theme .hpa-header .nav-menu > li > a {
    color: var(--text) !important;
    font-family: var(--font-heading) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    transition: color 0.2s;
}
.hpa-theme .hpa-header .website-items > li > a:hover,
.hpa-theme .hpa-header .website-nav-items ul > li > a:hover,
.hpa-theme .hpa-header .nav-menu > li > a:hover,
.hpa-theme .hpa-header .website-items > li.current-menu-item > a {
    color: var(--primary) !important;
}

/* Dropdown */
.hpa-theme .hpa-header .sub-menu,
.hpa-theme .hpa-header .website-sub-menu {
    background: #fff !important;
    top: 100% !important;
    border-top: 3px solid var(--primary) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
}
.hpa-theme .hpa-header .sub-menu li a,
.hpa-theme .hpa-header .website-sub-menu li a {
    color: var(--text) !important;
    background: transparent !important;
}
.hpa-theme .hpa-header .sub-menu li a:hover,
.hpa-theme .hpa-header .website-sub-menu li a:hover {
    color: var(--primary) !important;
    background: transparent !important;
}

/* Mobile hamburger color */
.hpa-theme .drawer-open span,
.hpa-theme .drawer-open span::before,
.hpa-theme .drawer-open span::after {
    background: var(--primary-dark) !important;
}

/* ─── Animated Inventory Search Bar (under the nav) ──────────────────────── */
.hpa-theme .hpa-search-bar {
    background: var(--light);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.3s ease;
    pointer-events: none;
}
.hpa-theme .hpa-search-bar.is-open {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.hpa-search-bar-inner {
    max-width: 1420px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
}
.hpa-search-bar-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.12);
    border-right: none;
    border-radius: 4px 0 0 4px;
    color: var(--primary);
    font-size: 14px;
}
.hpa-search-bar-input {
    flex: 1;
    height: 38px;
    padding: 0 14px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.12);
    border-left: none;
    outline: none;
}
.hpa-search-bar-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(48,49,146,0.12);
}
.hpa-search-bar-icon + .hpa-search-bar-input:focus { border-left: 1px solid var(--primary); }
.hpa-search-bar-submit {
    height: 38px;
    padding: 0 24px;
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s;
}
.hpa-search-bar-submit:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.hpa-search-bar-cancel {
    background: none;
    border: none;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    padding: 0 8px;
    margin-left: 4px;
}
.hpa-search-bar-cancel:hover { color: var(--primary); }

/* Pre-approved / get_pre_approved override */
.hpa-theme .website-cta-button,
.hpa-theme .get_pre_approved_button,
.hpa-theme #get_pre_approved {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
}
.hpa-theme .website-cta-button:hover,
.hpa-theme .get_pre_approved_button:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

/* ─── Hero / Slider ──────────────────────────────────────────────────────── */
.hpa-theme .hero-slider,
.hpa-theme .hero-slider-new,
.hpa-theme .swiper.hero-slider {
    height: 60vh !important;
    min-height: 480px;
}
.hpa-theme .hpa-slide-wrap {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 480px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hpa-theme .hpa-slide-wrap picture {
    position: absolute;
    inset: 0;
}
.hpa-theme .hpa-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(11, 29, 98, 0.75) 0%,
        rgba(48, 49, 146, 0.55) 50%,
        rgba(0, 0, 0, 0.30) 100%
    );
    z-index: 1;
}
.hpa-theme .hpa-slide-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    width: 100%;
    height: 55vh;
    padding: 15px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 15px;
}
.hpa-theme .hpa-slide-title {
    font-family: var(--font-heading) !important;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0;
    text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.hpa-theme .hpa-slide-tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 400;
    color: rgba(255,255,255,0.88);
    margin: 0;
    line-height: 1.6;
}
.hpa-theme .hpa-slide-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}
.hpa-theme .hpa-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    letter-spacing: 0.3px;
}
.hpa-theme .hpa-slide-btn--primary {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
}
.hpa-theme .hpa-slide-btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}
.hpa-theme .hpa-slide-btn--ghost {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.65);
    backdrop-filter: blur(4px);
}
.hpa-theme .hpa-slide-btn--ghost:hover {
    background: rgba(255,255,255,0.22);
    border-color: #fff;
    color: #fff;
}

@media (max-width: 640px) {
    .hpa-theme .hpa-slide-content { padding: 52px 24px; }
    .hpa-theme .hpa-slide-btn { padding: 12px 20px; font-size: 14px; }
}

/* ─── Search by Body Type Restyle ────────────────────────────────────────── */
.hpa-theme .body_search,
.hpa-theme .search-by-body-type-section {
    background: var(--light) !important;
}
.hpa-theme .home_section_headline {
    font-family: var(--font-heading) !important;
    color: var(--primary-dark) !important;
    font-weight: 800 !important;
}
.hpa-theme .home_section_sub_title {
    color: var(--gray-600) !important;
    font-family: var(--font-body) !important;
}

/* Body type swiper cards */
.hpa-theme .search-by-body-type-slide,
.hpa-theme .body-type-slide {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}
.hpa-theme .search-by-body-type-slide:hover,
.hpa-theme .body-type-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(48, 49, 146, 0.18);
    border-color: var(--primary);
}
.hpa-theme .body-type-label,
.hpa-theme .search-by-body-type-slide span {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    color: var(--primary-dark) !important;
}

/* Swiper nav arrows */
.hpa-theme .swiper-button-next,
.hpa-theme .swiper-button-prev {
    color: var(--primary) !important;
}
.hpa-theme .swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

/* ─── Hero Advanced Search Form ──────────────────────────────────────────── */
.hpa-theme .hpa-search-form {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Submit button width override (parent theme forces a fixed width on #search-button) */
.hpa-theme .search_block_advanced .search-slide-section #search-button,
.hpa-theme .hpa-search-form #search-button,
.search_block_advanced .search-slide-section #search-button {
    width: auto !important;
}

/* Top row: 4 dropdown fields (Type, Make, Model, Price) */
.hpa-theme .hpa-search-row--main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    padding: 16px;
    border: 2px solid var(--primary);
}

/* Field (label + select + caret) */
.hpa-theme .hpa-search-field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 16px;
    background: #fff;
    border-right: 1px solid rgba(0,0,0,0.08);
    cursor: pointer;
    transition: background 0.2s;
}
.hpa-theme .hpa-search-row--main .hpa-search-field:last-child {
    border-right: none;
}
.hpa-theme .hpa-search-field:hover {
    background: rgba(48,49,146,0.03);
}
.hpa-theme .hpa-search-label {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    text-transform: none;
}
.hpa-theme .hpa-search-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    border: none;
    background: transparent;
    padding: 4px 28px 4px 0;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    outline: none;
    cursor: pointer;
}
.hpa-theme .hpa-search-select::-ms-expand { display: none; }
.hpa-theme .hpa-search-caret {
    position: absolute;
    right: 16px;
    bottom: 18px;
    font-size: 12px;
    color: var(--gray-500);
    pointer-events: none;
    transition: transform 0.2s;
}
.hpa-theme .hpa-search-field:hover .hpa-search-caret {
    color: var(--primary);
}

/* Bottom row: Actions only (right-aligned) */
.hpa-theme .hpa-search-row--actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 4px;
}

/* Actions: Reset + Search (right-aligned) */
.hpa-theme .hpa-search-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}
.hpa-theme .hpa-search-btn {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 12px 28px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-transform: none;
}
.hpa-theme .hpa-search-btn--reset {
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 8px;
}
.hpa-theme .hpa-search-btn--reset:hover {
    color: rgba(255,255,255,0.75);
}
.hpa-theme .hpa-search-btn--submit {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}
.hpa-theme .hpa-search-btn--submit:hover {
    background: #fff;
    color: var(--primary-dark);
}

@media (max-width: 960px) {
    .hpa-theme .hpa-search-row--main {
        grid-template-columns: repeat(2, 1fr);
    }
    .hpa-theme .hpa-search-field:nth-child(2) { border-right: none; }
    .hpa-theme .hpa-search-field:nth-child(1),
    .hpa-theme .hpa-search-field:nth-child(2) {
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }
}
@media (max-width: 600px) {
    .hpa-theme .hpa-search-row--main {
        grid-template-columns: 1fr;
        padding: 8px;
    }
    .hpa-theme .hpa-search-field {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        padding: 12px 14px;
    }
    .hpa-theme .hpa-search-row--main .hpa-search-field:last-child {
        border-bottom: none;
    }
    .hpa-theme .hpa-search-select { font-size: 16px; }
    .hpa-theme .hpa-search-row--actions { flex-wrap: wrap; gap: 12px; }
}

/* ─── HPA Welcome Block ──────────────────────────────────────────────────── */
.hpa-welcome-section {
    position: relative;
    background: #f8f8f8;
    overflow: hidden;
}
.hpa-welcome-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.06;
    z-index: 0;
}
.hpa-welcome-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 40px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 56px;
    align-items: start;
}
.hpa-welcome-head {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}
.hpa-welcome-about .hpa-welcome-head { font-size: 13px; letter-spacing: 2px; }
.hpa-welcome-text {
    color: var(--gray-600);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 24px;
}
.hpa-welcome-text p { margin: 0 0 12px; }
.hpa-welcome-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.hpa-welcome-cta:hover { background: var(--primary-dark); color: #fff; }

.hpa-welcome-hours-col {}
.hpa-welcome-hours-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.hpa-welcome-hours-list dd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid rgba(48, 49, 146, 0.12);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--primary);
    margin: 0;
}
.hpa-welcome-hours-list dd:last-child { border-bottom: none; }
.hpa-wh-day { font-weight: 600; color: var(--primary); }
.hpa-wh-time { font-weight: 500; color: var(--primary); }
.hpa-wh-closed { color: rgba(48, 49, 146, 0.45) !important; font-style: italic; }
.hpa-wh-empty { color: rgba(48, 49, 146, 0.5); font-size: 13px; margin: 0; }

@media (max-width: 960px) {
    .hpa-welcome-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 56px 32px;
    }
}
@media (max-width: 600px) {
    .hpa-welcome-inner {
        grid-template-columns: 1fr;
        padding: 48px 24px;
    }
}

/* ─── HPA Why Choose Us Block ────────────────────────────────────────────── */
.hpa-why-section {
    background: var(--light);
    padding: 80px 40px;
}
.hpa-why-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.hpa-why-eyebrow {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}
.hpa-why-heading {
    font-family: var(--font-heading) !important;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 48px;
    line-height: 1.2;
}
.hpa-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.hpa-why-card {
    background: #fff;
    border-radius: 10px;
    padding: 36px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid var(--primary);
}
.hpa-why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(48, 49, 146, 0.14);
}
.hpa-why-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-xlight);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 22px;
    color: var(--primary);
}
.hpa-why-card-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 10px;
}
.hpa-why-card-desc {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 900px) {
    .hpa-why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
    .hpa-why-section { padding: 56px 24px; }
    .hpa-why-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ─── HPA Promo Banner Block ─────────────────────────────────────────────── */
.hpa-promo-section {
    position: relative;
    background: var(--primary-dark);
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
}
.hpa-promo-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hpa-promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(11, 29, 98, 0.88) 0%,
        rgba(48, 49, 146, 0.72) 50%,
        rgba(48, 49, 146, 0.40) 100%
    );
    z-index: 1;
}
.hpa-promo-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 48px;
    width: 100%;
    box-sizing: border-box;
}
.hpa-promo-eyebrow {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 14px;
    display: block;
}
.hpa-promo-headline {
    font-family: var(--font-heading) !important;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.15;
}
.hpa-promo-sub {
    font-family: var(--font-body);
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin: 0 0 32px;
    line-height: 1.6;
    max-width: 540px;
}
.hpa-promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
    border: 2px solid var(--primary);
}
.hpa-promo-cta:hover { background: #fff; color: var(--primary); }

@media (max-width: 640px) {
    .hpa-promo-content { padding: 48px 24px; }
}

/* ─── HPA About Text Block ───────────────────────────────────────────────── */
.hpa-about-section {
    background-image: url('https://cdn-websites.autodealersdigital.com/images/110872/editor/NPwOI2KPJw.webp');
	background-size: cover;
	background-repeat:no-repeat;
    padding: 80px 40px;
}
.hpa-about-inner {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}
.hpa-about-eyebrow {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,.8);
    display: block;
    margin-bottom: 14px;
}
.hpa-about-heading {
    font-family: var(--font-heading) !important;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: white;
    margin: 0 0 28px;
    line-height: 1.25;
}
.hpa-about-content {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 36px;
}
.hpa-about-content p { margin: 0 0 14px; color: white;}
.hpa-about-content p:last-child { margin-bottom: 0; }
.hpa-about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
.hpa-about-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
    border: 2px solid var(--primary);
}
.hpa-about-btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}
.hpa-about-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 4px;
    background: transparent;
    color: white;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: 2px solid var(--primary);
	background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(4px);
}
.hpa-about-btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 580px) {
    .hpa-about-section { padding: 56px 24px; }
    .hpa-about-actions { flex-direction: column; align-items: center; }
}

/* ─── Search by Body Type — restyle parent buttons ───────────────────────── */
.hpa-theme .search-by-body-type-container a {
    background: transparent !important;
}

/* ─── HPA Intro + Reviews Block ──────────────────────────────────────────── */
.hpa-intro-section {
    background: #fff;
    padding: 40px 24px;
}
.hpa-intro-inner {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}
.hpa-intro-head {
    margin-bottom: 56px;
}
.hpa-intro-title {
    font-family: var(--font-heading) !important;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 800;
    color: var(--text);
    margin: 0 0 24px;
    line-height: 1.2;
}
.hpa-intro-text {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.8;
    max-width: 880px;
    margin: 0 auto;
}
.hpa-intro-text p { margin: 0 0 14px; }
.hpa-intro-text p:last-child { margin-bottom: 0; }

/* Reviews card — fully clickable, two-column layout + full-width CTA */
.hpa-intro-reviews-card {
    display: block;
    text-decoration: none;
    color: inherit;
    max-width: 1080px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    transition: transform 0.2s ease;
}
.hpa-intro-reviews-card:hover {
    transform: translateY(-2px);
}
.hpa-intro-reviews-card:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
}

/* Two-column grid: text left | Google card right */
.hpa-intro-reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 48px 24px;
}

/* Left column */
.hpa-intro-reviews-left {
    position: relative;
    text-align: left;
    padding-left: 110px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hpa-intro-quote {
    position: absolute;
    top: -12px;
    left: 0;
    font-family: var(--font-heading);
    font-size: 220px;
    font-weight: 900;
    color: var(--primary-xlight);
    line-height: 0.8;
    user-select: none;
    pointer-events: none;
}
.hpa-intro-reviews-heading {
    font-family: var(--font-heading) !important;
    font-size: clamp(1.6rem, 2.8vw, 2.25rem);
    font-weight: 800;
    color: var(--text);
    margin: 0 0 12px;
    line-height: 1.2;
}
.hpa-intro-reviews-subtitle {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-500);
    margin: 0;
}

/* Right column — Google platform card */
.hpa-intro-reviews-right {
    display: flex;
    justify-content: center;
}
.hpa-intro-platform {
    background: #fff;
    border-radius: 10px;
    padding: 32px 28px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    text-align: center;
    width: 100%;
    max-width: 320px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.hpa-intro-reviews-card:hover .hpa-intro-platform {
    box-shadow: 0 12px 32px rgba(48,49,146,0.18);
}
.hpa-intro-platform-logo {
    margin-bottom: 14px;
    display: flex;
    justify-content: center;
}
.hpa-intro-platform-logo svg {
    height: 36px;
    width: auto;
}
.hpa-intro-platform-stars {
    color: #FFC107;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.hpa-intro-platform-stars .fa-regular { color: rgba(0,0,0,0.18); }
.hpa-intro-platform-rating {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

/* Full-width CTA button */
.hpa-intro-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 22px;
    transition: background 0.2s;
}
.hpa-intro-cta i { font-size: 14px; }
.hpa-intro-reviews-card:hover .hpa-intro-cta {
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .hpa-intro-section { padding: 56px 20px; }
    .hpa-intro-head { margin-bottom: 36px; }
    .hpa-intro-reviews-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 16px;
    }
    .hpa-intro-reviews-left {
        padding-left: 0;
        padding-top: 80px;
        text-align: center;
        align-items: center;
        min-height: 0;
    }
    .hpa-intro-quote {
        left: 50%;
        transform: translateX(-50%);
        font-size: 140px;
        top: -8px;
    }
    .hpa-intro-cta { padding: 18px; font-size: 14px; }
}

/* ─── HPA Quick Links Block ──────────────────────────────────────────────── */
.hpa-quick-links {
    background: #fff;
    padding: 28px 24px;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.hpa-quick-links-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: center;
}
.hpa-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    justify-content: center;
    transition: transform 0.2s, color 0.2s;
}
.hpa-quick-link:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}
.hpa-quick-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary);
    flex-shrink: 0;
    line-height: 1;
}
.hpa-quick-link:hover .hpa-quick-link-icon {
    color: var(--primary-dark);
}
.hpa-quick-link-label {
    line-height: 1.2;
    text-align: left;
}

@media (max-width: 960px) {
    .hpa-quick-links-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .hpa-quick-link { font-size: 15px; }
    .hpa-quick-link-icon { font-size: 22px; }
}
@media (max-width: 480px) {
    .hpa-quick-links-inner { grid-template-columns: 1fr; }
    .hpa-quick-link { justify-content: flex-start; padding: 10px 12px; }
}

/* ─── Footer Override (minimal one-line dealer footer) ───────────────────── */
.hpa-theme .hpa-footer,
.hpa-theme footer.hpa-footer {
    background: var(--light) !important;
    color: var(--gray-600) !important;
    border-top: none !important;
}
.hpa-theme .hpa-footer-bar {
    width: 100%;
    background: var(--light);
}
.hpa-theme .hpa-footer-inner {
    max-width: 1420px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--gray-600);
    box-sizing: border-box;
}
.hpa-theme .hpa-footer-brand img {
    height: 22px;
    width: auto;
    display: block;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.hpa-theme .hpa-footer-brand:hover img { opacity: 1; }
.hpa-theme .hpa-footer-line {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-600);
    line-height: 1.6;
}
.hpa-theme .hpa-footer-line a {
    color: var(--gray-700) !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.hpa-theme .hpa-footer-line a:hover { color: var(--primary) !important; }
.hpa-theme .hpa-footer-sep {
    color: var(--gray-400);
    user-select: none;
}
.hpa-theme .hpa-footer-dealer,
.hpa-theme .hpa-footer-address,
.hpa-theme .hpa-footer-phone {
    color: var(--gray-600);
}
.hpa-theme .hpa-footer-phone a {
    text-decoration: none;
    color: var(--gray-700) !important;
    font-weight: 500;
}
.hpa-theme .hpa-footer-phone a:hover { color: var(--primary) !important; }

@media (max-width: 768px) {
    .hpa-theme .hpa-footer-inner {
        padding: 14px 20px;
        gap: 12px;
        font-size: 12px;
        text-align: center;
    }
    .hpa-theme .hpa-footer-line { justify-content: center; }
}

/* ─── Global: v12-button override ────────────────────────────────────────── */
.hpa-theme .v12-button,
.hpa-theme .v12-button-1 {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
}
.hpa-theme .v12-button:hover,
.hpa-theme .v12-button-1:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

/* ─── Success Popup ──────────────────────────────────────────────────────── */
#hpa-success-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hpa-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
}
.hpa-popup-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 48px 40px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
    animation: hpa-popup-in 0.25s ease;
}
@keyframes hpa-popup-in {
    from { opacity: 0; transform: scale(0.92) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.hpa-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--gray-400);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.hpa-popup-close:hover { background: var(--gray-100); color: var(--gray-700); }
.hpa-popup-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}
.hpa-popup-card h3 {
    font-family: var(--font-heading) !important;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 10px;
}
.hpa-popup-card p {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--gray-600);
    margin: 0 0 24px;
    line-height: 1.6;
}
.hpa-popup-card .hpa-btn-primary {
    border: 2px solid var(--primary);
    border-radius: 4px;
}

/* ─── Header responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hpa-theme .hpa-header .website-top-bar .top-bar-items-holder {
        padding: 8px 20px;
        gap: 14px;
    }
    .hpa-theme .hpa-header .website-top-bar-list {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .hpa-search-bar-inner { padding: 14px 20px; }
}
@media (max-width: 768px) {
    .hpa-theme .hpa-header .website-top-bar-list {
        gap: 12px;
        font-size: 12px;
    }
    .hpa-theme .hpa-top-action span { display: none; }
    .hpa-theme .hpa-top-action i { font-size: 16px; }
    .hpa-theme .hpa-top-phone-label { display: none; }
    .hpa-theme .hpa-search-bar.is-open { max-height: 160px; }
    .hpa-search-bar-inner {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 16px;
    }
    .hpa-search-bar-input { flex: 1 1 100%; border-left: 1px solid rgba(0,0,0,0.12); border-radius: 0 4px 4px 0; }
    .hpa-search-bar-submit { flex: 1; }
    .hpa-search-bar-cancel { flex: 0 0 auto; }
}
@media (max-width: 480px) {
    .hpa-theme .hpa-header .website-top-bar-list { gap: 10px; }
}

/* ==========================================================================
   5. HOMEPAGE — FEATURED VEHICLES
   ========================================================================== */

.hpa-theme .home-block-inventory,
.hpa-theme .home-global-section.home-block-inventory {
    background-color: var(--navy) !important;
    padding: 20px 0 !important;
}

.hpa-theme .home-block-inventory .home_section_headline,
.hpa-theme .home-block-inventory .home_section_sub_title {
    /*color: #FFFFFF !important;*/
    text-align: center;
}

.hpa-theme .home-block-inventory .home_section_headline {
    font-size: 32px !important;
    font-weight: 700 !important;
    margin-bottom: 8px;
}

.hpa-theme .home-block-inventory .inventory-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}
.hpa-theme .inventory-container {
	gap: 1rem;
}

@media (max-width: 1024px) {
    .hpa-theme .home-block-inventory .inventory-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hpa-theme .home-block-inventory .inventory-cards {
        grid-template-columns: 1fr;
    }
}

.hpa-theme .home-block-inventory .inventory-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hpa-theme .home-block-inventory .inventory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

/*  Listing Inventory  */
.hpa-theme .listing-inventory-container h2 {
	color: #090B0D;
	font-size: clamp(1.125rem, 0.9789rem + 0.6494vw, 1.75rem);
}
.hpa-theme .inventory-section .listing-inventory-container {
	flex-direction: column;
	gap: .5rem;
}
.hpa-theme .inventory-section .inventory-listing-holder.layout-1-listing-holder {
	gap: 1rem;
}
.hpa-theme .inventory-section .inventory-listing-holder .count-sort-holder {
	margin-bottom: 0;
	justify-content: space-between;
}
.hpa-theme .inventory-section .count-holder {
	font-size: 18px;
	color: #000;
	font-weight: 600;
}
.hpa-theme .search-form-holder {
	min-width: 390px;
}
.hpa-theme .listing-vehicles-card .inventory-action-holder {
    flex-direction: column;
}
.hpa-theme .listing-vehicles-card .icon-info-item div {
    display: flex;
    gap: 3px;
}

.hpa-theme .listing-vehicles-card .icon-info-item span {
    color: #505D6F;
    font-size: 14px;
}
.hpa-theme .listing-vehicles-card .icon-info-item p {
	text-align: right;
	color: #323945;
	font-size: 16px;
}
.hpa-theme .listing-vehicles-card .icon-info-item {
	margin-bottom: .5rem;
}
.hpa-theme .listing-vehicles-card .inventory-info-holder {
	gap: 0;
}
.hpa-theme .inventory-section .disclaimer {
    color: #000;
    margin-bottom: 1rem;
}
.hpa-theme .listing-vehicles-card .title-price-holder .title-holder .title {
	margin-bottom: .25rem;
}
.hpa-theme .listing-vehicles-card {
	border-radius: 12px;
}
.hpa-theme .listing-vehicles-card  .images-swiper-holder .swiper {
    border-radius: 12px 12px 0 0;
}
.listing-actions-holder .listing-button:first-of-type {
  background-color: var(--primary-color);
	color: white;
}
.hpa-theme .listing-actions-holder .listing-button:first-of-type:hover {
  	opacity: .95;
}
.hpa-theme .listing-actions-holder .listing-button {
	border-radius: 8px;
}
.hpa-theme .inventory-section .listing-inventory-container {
  
    padding: 0 1rem;
    box-sizing: border-box;
}
.hpa-theme .icon-info-item svg, .panel-title svg {
    width: 20px;
    height: 20px;
}
.hpa-theme .inventory-price .display-price {
	font-size: clamp(1.125rem, 1.0958rem + 0.1299vw, 1.25rem);
	font-weight: 600;
	color: #323945;
}
.hpa-theme .featured-image.swiper-button-next:after, .hpa-theme .featured-image.swiper-button-prev:after {
    font-size: 14px;
    color: #000;
    background-color: rgba(255, 255, 255, .5);
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}
