/* ╔══════════════════════════════════════════════════════════════════════════════╗
   ║   VEHICLE-BRANDS.CSS — MASTER STYLESHEET                                     ║
   ║   Target: Toyota, Honda, Tesla, Jeep, Ram, Nissan, Subaru, etc.              ║
   ║   Version: 5.1 (Centered Typography Fixes)                                   ║
   ╚══════════════════════════════════════════════════════════════════════════════╝ */
/* ═══════════════════════════════════════════════════════════════════════════════
   1. GLOBAL PAGE WRAPPERS
   ═══════════════════════════════════════════════════════════════════════════════ */
.page-vehicles,
.page-brand,
.page-authority,
.page-featured {
    background-color: #F8FAFC;
    color: var(--color-neutral-700);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   2. BREADCRUMBS (Compact & Functional)
   ═══════════════════════════════════════════════════════════════════════════════ */
.breadcrumb {
    display: flex;
    justify-content: center;
    padding: var(--space-4) 0;
    background: transparent;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    list-style: none !important;
    margin: 0;
    padding: var(--space-2) 16px;
    background: white;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0,0,0,0.06);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.breadcrumb li {
    list-style: none !important;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: var(--space-2);
    opacity: 0.4;
}

.breadcrumb a {
    color: var(--color-brand-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--color-brand-red);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   3. HERO SECTION (High Density & Centered)
   ═══════════════════════════════════════════════════════════════════════════════ */
.section-hero {
    text-align: center;
    padding: clamp(30px, 4vw, 50px) 0;
    background: linear-gradient(160deg, #1a2a4e 0%, var(--color-brand-blue) 100%);
    color: white;
    margin-bottom: var(--space-8);
    box-shadow: 0 10px 25px -5px rgba(24, 48, 117, 0.25);
    position: relative;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.section-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.section-hero h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: white;
    margin: 0 auto var(--space-4);
    max-width: 900px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hero-lead {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 70ch;
    margin: 0 auto var(--space-6);
}

.hero-proof,
.operational-proof {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: var(--space-3) 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: var(--space-6);
    border: 1px solid rgba(255,255,255,0.15);
}

.hero-cta,
.hero-cta-soft {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   4. SHARED SECTION STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */
.section {
    padding: var(--space-10) 0;
    background-color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FORCE CENTER ALL SECTION HEADINGS ON VEHICLE PAGES
   Using ID selectors for maximum specificity
   ═══════════════════════════════════════════════════════════════════════════════ */
#adas h2,
#models h2,
#cost-factors h2,
#service-areas h2,
#related h2,
#cta h2,
#autopilot h2,
#acoustic h2,
#tesla-service h2,
#eyesight h2,
#sensing h2,
.section-adas h2,
.section-models h2,
.section-cost h2,
.section-areas h2,
.section-related h2,
.section-cta h2 {
    text-align: center !important;
    font-size: 1.8rem;
    color: var(--color-brand-blue-dark);
    margin-bottom: var(--space-6);
}

#adas > .container > h3,
#models > .container > h3,
#cost-factors > .container > h3,
#service-areas > .container > h3,
.section-adas > .container > h3,
.section-models > .container > h3,
.section-cost > .container > h3 {
    text-align: center !important;
    color: var(--color-brand-blue);
    margin-bottom: var(--space-4);
}

/* Center ALL section paragraphs on vehicle pages */
#adas > .container > p,
#models > .container > p,
#cost-factors > .container > p,
#service-areas > .container > p,
#related > .container > p,
.section-adas > .container > p,
.section-models > .container > p,
.section-cost > .container > p,
.section-areas > .container > p,
.section-related > .container > p {
    text-align: center !important;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   5. ADAS SECTION (Specifically Centered)
   FIXED: H3 and P tags in this section are now forced to center.
   ═══════════════════════════════════════════════════════════════════════════════ */
.section-adas {
    border-top: 1px solid var(--border);
}

/* Center all direct headings and paragraphs in the ADAS section */
.section-adas h3,
.section-adas p {
    text-align: center;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}

.section-adas h3 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
    color: var(--color-brand-blue);
    font-size: 1.35rem;
}

.adas-detail-box {
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    max-width: 800px;
    margin: var(--space-6) auto;
    text-align: left;

    /* Keep the box content (tables) left aligned for readability */
}

/* Only the H3 inside the grey box stays left aligned */
.adas-detail-box h3 {
    text-align: left !important;
    margin-top: 0;
    font-size: 1.1rem;
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--color-neutral-200);
}

.adas-table {
    width: 100%;
    border-collapse: collapse;
}

.adas-table th,
.adas-table td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-neutral-200);
    text-align: left;
}

.adas-table th {
    width: 35%;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.adas-table td {
    color: var(--color-brand-blue-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

/* The Link at the bottom */
.section-adas a {
    font-weight: 700;
    color: var(--color-brand-red);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   6. MODELS GRID (Permanent Borders)
   ═══════════════════════════════════════════════════════════════════════════════ */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
}

.model-item {
    background: white;
    border: 1px solid var(--color-neutral-300);

    /* PERMANENT BORDER */
    border-radius: var(--radius-md);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.model-item:hover {
    /* No hover effect - keep cards stable */
}

.model-item h3 {
    font-size: 1.25rem;
    color: var(--color-brand-blue-dark);
    margin-bottom: var(--space-2);
    text-align: center !important;
}

/* Force all model card content centered */
.model-grid .model-item h3 {
    text-align: center !important;
}

.model-item p {
    color: var(--color-neutral-600);
    margin-bottom: var(--space-6);
    flex-grow: 1;
}

.model-specs {
    list-style: none;
    padding: 0;
    margin: auto 0 0 0;
    padding-top: var(--space-4);
}

.model-specs li {
    font-size: 0.9rem;
    color: var(--color-neutral-600);
    border-top: 1px solid var(--color-neutral-100);
    padding: var(--space-2) 0;
    position: relative;
    padding-left: var(--space-6);
}

.model-specs li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   7. COST & RELATED (Centered Text)
   FIXED: Paragraphs in Cost and Related sections are now centered.
   ═══════════════════════════════════════════════════════════════════════════════ */
.section-cost p,
.section-related p {
    text-align: center;
    max-width: 65ch;
    margin: 0 auto var(--space-6);
    color: var(--color-neutral-600);
}

.cost-factors-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto var(--space-10);
}

.cost-factors-list li {
    background: white;
    padding: var(--space-5);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-neutral-300);

    /* Boxed look */
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.cost-factors-list strong {
    color: var(--color-brand-blue-dark);
    display: block;
    margin-bottom: var(--space-1);
}

.insurance-highlight {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    text-align: center !important;
    max-width: 800px;
    margin: var(--space-8) auto 0;
}

.insurance-highlight * {
    text-align: center !important;
}

.insurance-highlight h3 {
    color: white;
    margin-bottom: var(--space-1);
    font-size: 1.5rem;
    text-align: center !important;
}

.insurance-highlight p {
    text-align: center !important;
}

.insurance-highlight a {
    color: white;
    text-decoration: underline;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   8. FOOTER ELEMENTS (Buttons & Lists)
   ═══════════════════════════════════════════════════════════════════════════════ */
/* Service Areas List - Grid layout for clean cards */
.areas-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto var(--space-6);
}

.areas-list li {
    background: white;
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    text-align: center;
}

.areas-list a {
    display: block;
    color: var(--color-brand-blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
    margin-bottom: var(--space-1);
}

.areas-list a:hover {
    color: var(--color-brand-red);
}

/* Hide the em-dash descriptions - they clutter the layout */
.areas-list li {
    font-size: 0.9rem;
    color: var(--color-neutral-600);
}

/* Related List - Simpler inline buttons */
.related-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 0 auto;
}

.related-list li {
    background: white;
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-5);
    text-align: center;
}

.related-list a {
    display: block;
    color: var(--color-brand-blue);
    font-weight: 700;
    text-decoration: none;
    margin-bottom: var(--space-1);
}

.related-list a:hover {
    color: var(--color-brand-red);
}

.section-cta {
    text-align: center;
    background: white;
    border-top: 1px solid var(--border);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.cta-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-4);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) 24px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    min-width: 200px;
}

.btn-primary {
    background: var(--color-brand-red);
    color: white;
}

.btn-secondary {
    background: white;
    border: 2px solid var(--color-brand-blue);
    color: var(--color-brand-blue);
}

.btn-phone {
    background: rgba(255,255,255,0.1);
    border: 1px solid white;
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   9. PAGE SPECIFIC MODULES (Jeep, Tesla, etc.)
   ═══════════════════════════════════════════════════════════════════════════════ */
.section-vertical,
.section-fleet,
.section-autopilot,
.section-acoustic,
.section-tesla-service,
.section-eyesight {
    background-color: white;
    padding: var(--space-10) 0;
}

.vertical-challenges,
.fleet-benefits,
.premium-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.challenge-item,
.fleet-benefits li,
.feature-item {
    background: white;
    padding: var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.challenge-item h3,
.feature-item h3 {
    font-size: 1.1rem;
    color: var(--color-brand-blue);
    margin-bottom: var(--space-3);
}

/* Honda/Tesla Acoustic Styling */
.acoustic-callout,
.eyesight-callout {
    background: var(--color-neutral-50);
    border-left: 4px solid var(--color-brand-blue);
    padding: var(--space-4);
    margin: var(--space-6) auto;
    max-width: 700px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    text-align: left;
}

.eyesight-callout {
    background: #FFF5F5;
    border-left-color: var(--color-danger);
}

.acoustic-models {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    list-style: none;
    padding: 0;
    margin-top: var(--space-4);
}

.acoustic-models li {
    background: white;
    padding: var(--space-2) 12px;
    border: 1px solid var(--color-neutral-300);
    border-radius: 4px;
    font-weight: 600;
    color: var(--color-brand-blue-dark);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   10. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .section-hero h1 {
        font-size: 1.75rem;
    }

    .model-grid,
    .vertical-challenges,
    .fleet-benefits,
    .premium-features,
    .cost-factors-list {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 350px;
        margin-inline: auto;
    }

    .btn {
        width: 100%;
    }

    .adas-table th,
    .adas-table td {
        display: block;
        width: 100%;
    }

    .adas-table th {
        padding-bottom: 0;
        color: var(--color-brand-red);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FINAL OVERRIDE — CENTER ALL VEHICLE PAGE SECTION HEADINGS
   Using both CSS rules AND utility class for maximum reliability
   ═══════════════════════════════════════════════════════════════════════════════ */
section.section h2,
.section-fleet h2,
.section-eyesight h2,
#fleet h2,
#eyesight h2 {
    text-align: center !important;
}

section.section > .container > h3,
.section-fleet > .container > h3,
.section-eyesight > .container > h3,
#fleet > .container > h3,
#eyesight > .container > h3,
#eyesight h3 {
    text-align: center !important;
}

/* Center fleet and eyesight section paragraphs */
.section-fleet > .container > p,
.section-eyesight > .container > p,
#fleet > .container > p,
#eyesight > .container > p {
    text-align: center !important;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}

/* Utility class for centering headings - add to section if CSS cascade fails */
.text-center-headings h2,
.text-center-headings h3 {
    text-align: center !important;
}

/* Exception: keep detail box h3 left-aligned */
.adas-detail-box h3 {
    text-align: left !important;
}

/* Exception: keep model card h3 centered (already set, reinforcing) */
.model-item h3 {
    text-align: center !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CENTER ALL SECTION CONTENT (Paragraphs) ON VEHICLE PAGES
   ═══════════════════════════════════════════════════════════════════════════════ */
section.section > .container > p {
    text-align: center !important;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}

/* Also center the acoustic section content */
.section-acoustic p,
#acoustic p {
    text-align: center !important;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}

/* Exception: acoustic-callout stays left-aligned for readability */
.acoustic-callout,
.acoustic-callout p {
    text-align: left !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   COMPREHENSIVE CENTERING FOR ALL VEHICLE PAGE SECTIONS
   Covers: fleet, eyesight, vertical, tesla-service, acoustic, genesis, etc.
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Center ALL h2 headings in ANY section on vehicle pages */
.page-vehicles section h2,
.page-brand section h2 {
    text-align: center !important;
}

/* Center SECTION-LEVEL h3 headings (direct children of container) */
.page-vehicles section > .container > h3,
.page-brand section > .container > h3 {
    text-align: center !important;
}

/* Center all direct paragraphs in sections */
.page-vehicles section > .container > p,
.page-brand section > .container > p {
    text-align: center !important;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}

/* Center insurance-highlight content everywhere */
.insurance-highlight,
.insurance-highlight h3,
.insurance-highlight p {
    text-align: center !important;
}

/* Center tesla-service section content */
.section-tesla-service > .container > h3,
.section-tesla-service > .container > p,
#tesla-service > .container > h3,
#tesla-service > .container > p {
    text-align: center !important;
}

/* Center list items in tesla-service, fleet benefits, etc. */
.section-tesla-service ul,
.section-fleet ul,
#tesla-service ul,
#fleet ul,
.comparison-list,
.fleet-benefits {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* CARD HEADINGS: Keep left-aligned for better readability */
.challenge-item h3,
.feature-item h3,
.cost-factors-list strong {
    text-align: left !important;
}

/* Exceptions: Keep detail boxes and callouts left-aligned */
.adas-detail-box h3,
.eyesight-callout,
.eyesight-callout p,
.eyesight-callout ul {
    text-align: left !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LUXURY PAGE SPECIFIC STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Premium Features Grid */
.premium-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-6);
}

.feature-item {
    background: white;
    padding: var(--space-6);
    border: 1px solid var(--color-neutral-300);
    border-radius: var(--radius-md);
    border-top: 3px solid var(--color-brand-gold, #D4A019);
}

.feature-item h3 {
    font-size: 1.15rem;
    color: var(--color-brand-blue-dark);
    margin-bottom: var(--space-3);
    text-align: left !important;
}

.feature-item p {
    color: var(--color-neutral-600);
    font-size: 0.95rem;
    text-align: left !important;
}

/* ADAS Brand Grid */
.adas-brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
    margin: var(--space-6) 0;
}

.adas-brand-item {
    background: var(--color-neutral-50);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-brand-blue);
}

.adas-brand-item h3 {
    font-size: 1.1rem;
    color: var(--color-brand-blue);
    margin-bottom: var(--space-2);
    text-align: left !important;
}

.adas-brand-item p {
    color: var(--color-neutral-600);
    font-size: 0.9rem;
    text-align: left !important;
}

/* Brand List Grid */
.brand-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-6);
}

.brand-item {
    background: white;
    padding: var(--space-5);
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--radius-md);
}

.brand-item h3 {
    font-size: 1.2rem;
    color: var(--color-brand-blue-dark);
    margin-bottom: var(--space-2);
    text-align: left !important;
}

.brand-item p {
    color: var(--color-neutral-600);
    font-size: 0.9rem;
    text-align: left !important;
}

/* OEM Recommendations List */
.oem-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: var(--space-6) auto;
}

.oem-recommendations li {
    background: white;
    padding: var(--space-4) var(--space-5);
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-brand-gold, #D4A019);
}

.oem-recommendations strong {
    color: var(--color-brand-blue-dark);
}