/* =========================================================
   AutoBul — Home Page Styles (Premium Automotive)
   Depends on site.css for variables and base styles.
   ========================================================= */

/* ---------- HERO SECTION ENHANCEMENTS ---------- */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    padding: 0;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    background: rgba(244,162,97,0.18);
    border: 1px solid rgba(244,162,97,0.35);
    border-radius: 999px;
    color: var(--cta);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
}

.hero-section h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 3px 12px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, #ffffff 40%, var(--cta, #F4A261) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section p.lead {
    color: rgba(255,255,255,0.88);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 540px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.28);
}

/* Wave divider at bottom of hero */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 3;
    line-height: 0;
    pointer-events: none;
}

.hero-wave svg {
    width: 100%;
    height: 60px;
    display: block;
}

@media (max-width: 991.98px) {
    .hero-section { min-height: 70vh; }
    .hero-section .container { padding-top: 4rem; padding-bottom: 4rem; }
}

@media (max-width: 575.98px) {
    .hero-section { min-height: 60vh; }
    .hero-section h1 { font-size: 2rem; }
}

/* ---------- FILTER SECTION ---------- */
.filter-section {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.filter-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 6px 24px rgba(27,42,74,0.1);
    padding: 1.75rem;
    transition: box-shadow .25s ease;
}

.filter-card:hover {
    box-shadow: 0 10px 32px rgba(27,42,74,0.14);
}

.filter-card label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #6B7280);
    margin-bottom: 0.4rem;
}

.filter-card .form-control,
.filter-card .form-select {
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    height: 42px;
    font-size: 0.88rem;
    background: #F8F9FA;
    color: var(--text-primary, #1A1A2A);
    transition: border-color .18s, box-shadow .18s;
}

.filter-card .form-control:focus,
.filter-card .form-select:focus {
    border-color: var(--accent, #E63946);
    box-shadow: 0 0 0 3px rgba(230,57,70,0.13);
    background: #fff;
    outline: none;
}

/* ---------- CAR CARDS SECTION ---------- */
.cars-section {
    padding-top: 3rem;
    padding-bottom: 4rem;
    background: var(--bg, #F8F9FA);
}

.section-title {
    font-weight: 800;
    color: var(--text-primary, #1A1A2A);
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 44px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent, #E63946), var(--cta, #F4A261));
}

/* Car spec chips inside cards */
.car-spec-chip {
    display: inline-flex;
    align-items: center;
    background: #F1F3F7;
    color: var(--text-muted, #6B7280);
    font-size: 0.73rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.06);
}

.car-price-block {
    margin-top: 0.5rem;
}

/* Override featured swiper nav buttons for new palette */
.featured-swiper .swiper-button-prev,
.featured-swiper .swiper-button-next {
    color: var(--primary, #1B2A4A);
    background: rgba(255,255,255,0.94);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(27,42,74,0.14);
    transition: background .2s, box-shadow .2s;
}

.featured-swiper .swiper-button-prev:hover,
.featured-swiper .swiper-button-next:hover {
    background: #fff;
    box-shadow: 0 4px 18px rgba(27,42,74,0.2);
}

.featured-swiper .swiper-button-prev::after,
.featured-swiper .swiper-button-next::after {
    font-size: 14px;
    font-weight: 900;
}

.featured-swiper .swiper-pagination-bullet {
    background: #CBD5E1;
    opacity: 1;
    width: 8px;
    height: 8px;
}

.featured-swiper .swiper-pagination-bullet-active {
    background: var(--accent, #E63946);
    width: 24px;
    border-radius: 4px;
}

/* ---------- SITE VISITS / STATS BAND ---------- */
.stats-section {
    background: linear-gradient(135deg, var(--primary, #1B2A4A) 0%, #0f1d35 100%);
    border-top: 3px solid var(--accent, #E63946);
    color: #eef2ff;
    padding: 3rem 0;
}

.stat-number {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--cta, #F4A261);
    text-shadow: 0 2px 12px rgba(244,162,97,0.35);
    line-height: 1;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 767.98px) {
    .cars-section { padding-top: 2rem; padding-bottom: 2.5rem; }
}

@media (max-width: 575.98px) {
    .filter-card {
        padding: 1.25rem;
    }
    .filter-card .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 576px) {
    .w-sm-auto { width: auto !important; }
}
