/* ==========================================================================
   Auto Theme Overrides & Component Styles
   ========================================================================== */

body {
    background: var(--color-auto-bg);
    color: var(--color-auto-text);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary-auto {
    background: var(--color-auto-primary);
    color: #fff;
    border: 1px solid var(--color-auto-primary);
    transition: var(--btn-transition);
    box-shadow: 0 0 24px var(--color-auto-primary-glow);
}

.btn-primary-auto:hover {
    background: var(--color-auto-primary-hover);
    border-color: var(--color-auto-primary-hover);
    box-shadow: 0 6px 30px var(--color-auto-primary-glow);
    transform: translateY(-2px);
}

.btn-secondary-auto {
    background: var(--color-auto-surface);
    color: var(--color-auto-text);
    border: 1px solid transparent;
    transition: var(--btn-transition);
}

.btn-secondary-auto:hover {
    background: var(--color-auto-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to bottom, rgba(11, 15, 25, 0.4), var(--color-auto-bg)),
        url('../assets/auto_hero.webp');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.hero.loaded .hero-bg {
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 24px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--color-auto-text);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--color-auto-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Counter Band
   ========================================================================== */
.counter-band {
    display: flex;
    justify-content: center;
    background: var(--color-auto-surface);
    border-top: 1px solid var(--color-auto-surface-border);
    border-bottom: 1px solid var(--color-auto-surface-border);
    flex-wrap: wrap;
}

.counter-item {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 40px 24px;
    border-right: 1px solid var(--color-auto-surface-border);
}

.counter-item:last-child {
    border-right: none;
}

.counter-item .count {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-auto-text);
    display: block;
    line-height: 1;
}

.counter-item .label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-auto-text-muted);
    margin-top: 0.5rem;
    display: block;
}

/* ==========================================================================
   Services Teaser
   ========================================================================== */
.services-teaser {
    padding: var(--section-padding-desktop);
    background: var(--color-auto-bg);
}

.section-head {
    text-align: center;
    margin-bottom: 4rem;
}

.section-head .eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-auto-accent);
    margin-bottom: 1rem;
    display: block;
}

.section-head h2 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
}

.section-head p {
    color: var(--color-auto-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.service-card {
    background: var(--color-auto-surface);
    border: 1px solid var(--color-auto-surface-border);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-card);
    transition: all 0.4s ease;
    text-align: center;
    /* Equal heights for all cards in a grid row */
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Ensure anchor wrappers don't break height */
.services-grid>a {
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-auto-primary);
    box-shadow: 0 16px 50px rgba(59, 125, 216, 0.15);
}

.service-card .icon {
    font-size: 2.2rem;
    color: var(--color-auto-primary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-auto-text-muted);
    font-size: 0.95rem;
}

.all-services-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ==========================================================================
   Why Us Grid
   ========================================================================== */
.why-section {
    padding: var(--section-padding-desktop);
    background: var(--color-auto-surface);
    border-top: 1px solid var(--color-auto-surface-border);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.why-item {
    text-align: center;
}

.why-item i {
    font-size: 2rem;
    color: var(--color-auto-primary);
    margin-bottom: 1.2rem;
    display: block;
}

.why-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.why-item p {
    color: var(--color-auto-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==========================================================================
   Testimonials (Basic Container, Slider JS will populate this)
   ========================================================================== */
.testimonials-section {
    padding: var(--section-padding-desktop);
    background: var(--color-auto-bg);
}

/* ==========================================================================
   CTA BAND — V4: Midnight Steel Gradient with Ice Blue accent
   ========================================================================== */
.cta-band {
    padding: var(--section-padding-desktop);
    background: linear-gradient(135deg, #111827 0%, #0e1117 50%, #0c1020 100%);
    border-top: 1px solid rgba(75, 172, 247, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(59, 125, 216, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-band h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    position: relative;
}

.cta-band p {
    color: rgba(240, 244, 248, 0.65);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    position: relative;
}

.cta-band .btn {
    background: var(--color-auto-primary);
    color: #fff;
    border: 1px solid rgba(75, 172, 247, 0.3);
    font-weight: 700;
    position: relative;
    box-shadow: 0 0 30px rgba(59, 125, 216, 0.3);
}

.cta-band .btn:hover {
    background: var(--color-auto-primary-hover);
    box-shadow: 0 0 40px rgba(59, 125, 216, 0.5);
    transform: translateY(-2px);
}

/* ==========================================================================
   Auto – Responsive (mirrors global.css V6 breakpoints)
   ========================================================================== */

/* ── Small Laptop / Tablet Landscape ─── */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: clamp(2.2rem, 4vw, 3.4rem);
    }

    .page-hero {
        padding: 120px 5% 80px;
    }

    .services-teaser,
    .why-section,
    .testimonials-section,
    .cta-band {
        padding: 70px 5%;
    }
}

/* ── Tablet Portrait ──────────────────── */
@media (max-width: 768px) {

    /* Hero */
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    /* Page hero (sub-pages) */
    .page-hero {
        padding: 110px 5% 60px;
        min-height: 320px;
    }

    .page-hero h1 {
        font-size: clamp(1.8rem, 6vw, 2.6rem);
    }

    /* Sections */
    .services-teaser,
    .why-section,
    .testimonials-section,
    .cta-band {
        padding: var(--section-padding-mobile);
    }

    /* Counter */
    .counter-item {
        min-width: 50%;
        padding: 25px 15px;
    }
}

/* ── Mobile Phone ─────────────────────── */
@media (max-width: 480px) {

    /* Hero */
    .hero-content h1 {
        font-size: clamp(1.8rem, 9vw, 2.4rem);
    }

    .hero-content p {
        font-size: 0.95rem;
        max-width: 100%;
    }

    /* Page hero */
    .page-hero {
        padding: 96px 4% 48px;
        min-height: 280px;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.8rem;
    }

    /* CTA band */
    .cta-band h2 {
        font-size: 1.5rem;
    }

    .cta-band p {
        font-size: 0.9rem;
    }
}

/* ── Small Phones ─────────────────────── */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }

    .page-hero {
        padding: 88px 4% 40px;
    }
}