/* LMA Landing Pages - Common Public Styles */

body {
    background-color: var(--brand-body-bg, #ffffff);
    color: var(--brand-text-color, #333333);
    font-family: var(--brand-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

a {
    color: var(--brand-primary, #1a1a1a);
}

a:hover {
    color: var(--brand-secondary, #666666);
}

.site-header {
    background-color: var(--brand-header-bg, var(--brand-primary, #1a1a1a));
    color: #ffffff;
    position: relative;
    z-index: 10;
}

.site-header a {
    color: inherit;
    text-decoration: none;
}

.site-header .brand-logo img {
    max-height: 60px;
    width: auto;
}

.site-header .brand-logo--dual,
.site-footer .brand-logo--dual {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.site-header .brand-logo--dual img,
.site-footer .brand-logo--dual img {
    max-height: 28px;
}

.site-header .site-name {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-header .tagline {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    opacity: 0.8;
    margin-top: 0.4rem;
}

.site-footer {
    background-color: var(--brand-footer-bg, #f8f9fa);
    color: var(--brand-footer-text, #6b7280);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 2rem 0;
}

.site-footer a {
    color: inherit;
}

.site-footer-badge {
    max-height: 42px;
    width: auto;
}

.footer-disclaimer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.btn-primary {
    background-color: var(--brand-primary, #1a1a1a);
    border-color: var(--brand-primary, #1a1a1a);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--brand-secondary, #666666);
    border-color: var(--brand-secondary, #666666);
}

.btn-outline-primary {
    color: var(--brand-primary, #1a1a1a);
    border-color: var(--brand-primary, #1a1a1a);
}

.btn-outline-primary:hover {
    background-color: var(--brand-primary, #1a1a1a);
    border-color: var(--brand-primary, #1a1a1a);
    color: #ffffff;
}

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section video,
.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-overlay--brand {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.28));
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-kicker::before {
    content: "";
    width: 2.5rem;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.hero-copy {
    max-width: 42rem;
}

.hero-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.preset-hero {
    min-height: 560px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--brand-primary, #1a1a1a), var(--brand-secondary, #666666));
}

.locator-panel {
    background: rgba(255, 255, 255, 0.96);
    color: #1f2937;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.locator-panel--floating {
    backdrop-filter: blur(12px);
}

.locator-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-primary, #1a1a1a);
    margin-bottom: 0.75rem;
}

.locator-copy {
    color: #4b5563;
}

.locator-form-stack {
    display: grid;
    gap: 0.75rem;
}

.zip-strip,
.dealer-locator-section {
    background-color: var(--brand-locator-bg, #f8f9fa);
    padding: 1.75rem 0;
}

.zip-strip .form-control,
.dealer-locator-section .form-control,
.locator-panel .form-control {
    border: 2px solid rgba(31, 41, 55, 0.14);
    font-size: 1rem;
    padding: 0.85rem 1rem;
}

.zip-strip .form-control:focus,
.dealer-locator-section .form-control:focus,
.locator-panel .form-control:focus {
    border-color: var(--brand-primary, #1a1a1a);
    box-shadow: 0 0 0 0.2rem rgba(17, 24, 39, 0.08);
}

.section-heading {
    max-width: 42rem;
    margin: 0 auto 2rem;
}

.section-heading h2 {
    font-weight: 700;
}

.featured-pic img {
    display: block;
    width: 100%;
    height: auto;
}

.city-strip {
    padding: 0.75rem 0 1.5rem;
}

.city-chip,
.market-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.market-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.market-chip {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.dealer-grid-section {
    padding: 4rem 0;
}

.dealer-grid-section--light {
    background: #ffffff;
}

.dealer-card {
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 1rem;
    background: #ffffff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.dealer-card:hover {
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
}

.dealer-card .card-title {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.dealer-card .card-footer {
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    padding: 0.9rem 1.25rem;
}

.dealer-card a[href^="tel"] {
    color: var(--brand-primary, #1a1a1a);
    font-weight: 600;
    text-decoration: none;
}

.dealer-card a[href^="tel"]:hover {
    text-decoration: underline;
}

.promo-band {
    background: linear-gradient(135deg, var(--brand-primary, #1a1a1a), var(--brand-secondary, #666666));
    color: #ffffff;
    padding: 3rem 0;
}

.promo-band--light {
    background: #f5f5f5;
    color: #1f2937;
}

.promo-card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.25rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
}

.showcase-band {
    background: #f3f4f6;
}

.showcase-copy {
    position: sticky;
    top: 2rem;
}

.location-wrapper {
    max-height: 800px;
    overflow-y: auto;
}

.location-wrapper--panel {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 1rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.location-results {
    display: block;
}

.location-panel {
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 1rem;
    background: #ffffff;
    padding: 1.1rem 1.15rem;
}

.location-panel + .location-panel {
    margin-top: 0.85rem;
}

.location-name {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.location-address,
.location-phone,
.location-distance,
.location-url {
    font-size: 0.95rem;
}

.location-address,
.location-distance {
    color: #6b7280;
}

.location-phone,
.location-url {
    margin-top: 0.55rem;
}

.location-url a,
.location-phone a {
    text-decoration: none;
}

.cta-section {
    background-color: var(--brand-primary, #1a1a1a);
    color: #ffffff;
    padding: 3rem 0;
}

.cta-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.cta-buttons .btn,
.btn-formcustom {
    min-height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vehicle-select-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: inherit;
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.vehicle-select-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    color: inherit;
}

.vehicle-select-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.veh-btn {
    color: var(--brand-text-color, #333333);
    text-decoration: none;
    background-color: transparent;
    border: 1px solid var(--brand-primary, #1a1a1a);
    border-radius: 0;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.veh-btn:hover,
.veh-btn.active {
    color: #ffffff;
    background-color: var(--brand-primary, #1a1a1a);
    border-color: var(--brand-primary, #1a1a1a);
}

.compare-table {
    font-size: 0.9375rem;
}

.compare-table thead th {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.compare-table .table-category td {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8125rem;
}

.compare-table .our-column {
    background: linear-gradient(to bottom, #fcfcfc, var(--brand-primary, #1a1a1a));
    font-weight: 600;
}

.features-section {
    padding: 2.5rem 0;
}

.int-img {
    height: 250px;
    width: auto;
    max-width: 100%;
    border: 1px solid transparent;
    object-fit: cover;
}

.wht-border {
    border: 1px solid #fcfcfc;
}

[data-template="generic_landing"] .preset-hero .hero-copy {
    font-size: 1.125rem;
}

[data-template="sacramento_locator"] .site-header {
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

[data-template="sacramento_locator"] .sacramento-intro {
    background: #ffffff;
}

[data-template="sacramento_locator"] .city-chip {
    background: #f3f4f6;
    color: #111827;
    border: 1px solid rgba(17, 24, 39, 0.08);
}

[data-template="sacramento_locator"] .dealer-grid-section .dealer-card {
    text-align: center;
}

[data-template="socal_showcase"] .socal-hero {
    min-height: 640px;
    display: flex;
    align-items: center;
    background: #111827;
}

[data-template="socal_showcase"] .locator-panel {
    background: rgba(12, 12, 12, 0.74);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

[data-template="socal_showcase"] .locator-copy,
[data-template="socal_showcase"] .showcase-copy,
[data-template="socal_showcase"] .showcase-copy p {
    color: #d1d5db;
}

[data-template="socal_showcase"] .location-wrapper--panel,
[data-template="socal_showcase"] .showcase-band {
    background: #0f172a;
    color: #ffffff;
}

[data-template="socal_showcase"] .location-panel {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

[data-template="socal_showcase"] .location-address,
[data-template="socal_showcase"] .location-distance {
    color: #cbd5e1;
}

[data-template="socal_showcase"] .promo-card {
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 991.98px) {
    .preset-hero,
    [data-template="socal_showcase"] .socal-hero {
        min-height: auto;
    }

    .showcase-copy {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .hero-action-row,
    .cta-buttons {
        grid-template-columns: 1fr;
        display: grid;
    }

    .hero-action-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .locator-panel,
    .location-wrapper--panel,
    .promo-card {
        padding: 1.25rem;
    }

    .hero-kicker {
        letter-spacing: 0.14em;
    }

    .int-img {
        height: 180px;
    }

    .location-wrapper {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 575.98px) {
    .site-header .site-name {
        display: none;
    }

    .footer-disclaimer-links {
        justify-content: center;
    }

    .hero-section .display-2,
    .hero-section .display-3,
    .hero-section .display-5 {
        font-size: clamp(1.9rem, 9vw, 2.5rem);
    }
}

/* ──────────── Composer: Hero Slider ──────────── */
.hero-slider .carousel-item {
    overflow: hidden;
}

.hero-slider .hero-slider-media {
    width: 100%;
    background-size: cover;
    background-position: center;
}

.hero-slider--standard .hero-slider-media { aspect-ratio: 16 / 6; min-height: 320px; }
.hero-slider--tall .hero-slider-media     { aspect-ratio: 16 / 9; min-height: 420px; }
.hero-slider--full .hero-slider-media     { height: 100vh; min-height: 480px; }

.hero-slider .hero-slider-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.hero-slider .carousel-caption {
    background: rgba(0, 0, 0, 0.45);
    border-radius: 0.5rem;
    padding: 0.75rem 1.25rem;
    bottom: 1.5rem;
}

/* ──────────── Composer: Offers Grid ──────────── */
.offers-grid-section .offer-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.6rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.offers-grid-section .offer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
}

.offers-grid-section .offer-card-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f4f6;
}

.offers-grid-section .offer-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.offers-grid-section .offer-card-disclosure {
    line-height: 1.4;
}

/* ──────────── Composer: Vehicle Lineup ──────────── */
.vehicle-lineup-section .vehicle-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.6rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vehicle-lineup-section .vehicle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
}

.vehicle-lineup-section .vehicle-card-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}

.vehicle-lineup-section .vehicle-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vehicle-lineup-section .vehicle-card-features li {
    padding: 0.15rem 0;
}

/* ──────────── Composer: Feature Callout Grid ──────────── */
.feature-callout-section .feature-callout-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-callout-section .feature-callout-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
}

.feature-callout-section .feature-callout-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}

.feature-callout-section .feature-callout-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-callout-section .feature-callout-link {
    display: inline-flex;
    align-items: center;
    color: var(--brand-primary, #1a1a1a);
    text-decoration: none;
    font-weight: 600;
}

.feature-callout-section .feature-callout-link:hover {
    text-decoration: underline;
}
