:root {
    --bg: #fff8f2;
    --surface: #ffffff;
    --surface-muted: #fff2e4;
    --ink: #101828;
    --muted: #475467;
    --line: #f0d6bd;
    --brand: #d52818;
    --brand-strong: #9e1e13;
    --accent: #fe951f;
    --success-bg: #dcfae6;
    --success-fg: #166534;
    --warning-bg: #fff3c4;
    --warning-fg: #8a6116;
    --danger-bg: #fee4e2;
    --danger-fg: #b42318;
    --shadow: 0 20px 46px rgba(16, 24, 40, 0.08);
    --radius: 26px;
    --container-gutter: clamp(18px, 2.8vw, 40px);
    --container-width: 1440px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top right, rgba(254, 149, 31, 0.18), transparent 24%),
        radial-gradient(circle at left top, rgba(213, 40, 24, 0.08), transparent 28%),
        linear-gradient(180deg, #fffdfa 0%, var(--bg) 100%);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(var(--container-width), calc(100% - (var(--container-gutter) * 2)));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(39, 12, 8, 0.97);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateZ(0);
}

.topbar,
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.topbar {
    min-height: 42px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.78);
    flex-wrap: wrap;
}

.navbar {
    padding: 18px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 210px;
    height: auto;
    max-width: 44vw;
}

.brand-lockup {
    display: grid;
    gap: 3px;
}

.brand-lockup strong {
    font-size: 1rem;
}

.brand-lockup small {
    display: block;
    color: rgba(255, 255, 255, 0.66);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-links > a {
    padding: 10px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
}

.nav-links > a:hover,
.nav-links > a.is-active {
    background: rgba(254, 149, 31, 0.18);
    color: #fff;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.button-primary {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
}

.button-secondary {
    background: rgba(254, 149, 31, 0.08);
    border-color: rgba(213, 40, 24, 0.14);
    color: var(--brand-strong);
}

.button-small {
    min-height: 40px;
    padding: 10px 16px;
}

.hero {
    padding: 92px 0 84px;
}

.hero-home {
    background:
        linear-gradient(120deg, rgba(82, 17, 10, 0.98), rgba(213, 40, 24, 0.92)),
        radial-gradient(circle at 85% 15%, rgba(254, 149, 31, 0.28), transparent 18%);
    color: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 28px;
    align-items: stretch;
}

.hero-copy-block {
    padding-right: 12px;
}

.badge,
.eyebrow {
    display: inline-flex;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero-home .badge {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.eyebrow {
    background: rgba(254, 149, 31, 0.12);
    color: var(--brand-strong);
}

.hero h1,
.page-hero h1,
.section-heading h2,
.split-panel h2,
.detail-header h1 {
    margin: 16px 0;
    line-height: 1.04;
    font-size: clamp(2.2rem, 4.2vw, 4.5rem);
}

.hero-copy,
.page-hero p {
    font-size: 1.08rem;
    max-width: 64ch;
    color: inherit;
}

.hero-home .hero-copy {
    color: rgba(255, 255, 255, 0.82);
}

.hero-actions,
.section-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.metric-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.metric {
    min-width: 150px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.metric strong {
    display: block;
    font-size: 1.7rem;
    margin-bottom: 4px;
}

.metric span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.hero-showcase {
    display: grid;
    gap: 18px;
}

.showcase-card,
.vehicle-card,
.info-card,
.content-card,
.contact-form,
.detail-card,
.prose-block {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(16, 24, 40, 0.07);
}

.showcase-card {
    overflow: hidden;
}

.showcase-card img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.showcase-card-body {
    padding: 20px;
    color: var(--ink);
}

.section,
.page-hero {
    padding: 76px 0;
}

.surface,
.surface-tight {
    background: rgba(255, 255, 255, 0.72);
    border-top: 1px solid rgba(213, 40, 24, 0.06);
    border-bottom: 1px solid rgba(213, 40, 24, 0.06);
}

.surface-tight {
    padding: 56px 0;
}

.page-hero-content {
    max-width: 860px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading p {
    max-width: 48ch;
    color: var(--muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.info-card,
.content-card,
.contact-form,
.detail-card,
.prose-block {
    padding: 24px;
}

.info-card h3,
.content-card h2,
.content-card h3,
.vehicle-card h3,
.detail-card h3,
.prose-block h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.info-card p,
.content-card p,
.vehicle-card p,
.contact-form p,
.detail-card p,
.prose-block p,
.inventory-meta,
.empty-state p,
.site-footer p,
.site-footer a {
    color: var(--muted);
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.vehicle-card {
    overflow: hidden;
}

.vehicle-card img {
    width: 100%;
    height: 248px;
    object-fit: cover;
}

.vehicle-card-body {
    padding: 22px;
}

.card-topline,
.inventory-meta,
.detail-header,
.detail-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.card-topline {
    margin-bottom: 12px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.status-available {
    background: var(--success-bg);
    color: var(--success-fg);
}

.status-soon {
    background: #fff4ce;
    color: #92400e;
}

.status-reserved {
    background: var(--warning-bg);
    color: var(--warning-fg);
}

.status-sold {
    background: var(--danger-bg);
    color: var(--danger-fg);
}

.status-neutral {
    background: #ecf1f6;
    color: #44515d;
}

.price {
    color: var(--brand-strong);
    font-weight: 800;
}

.spec-list,
.check-list,
.detail-specs {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.spec-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.spec-list li {
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff2e6;
    color: var(--brand-strong);
    font-size: 0.88rem;
}

.check-list {
    display: grid;
    gap: 12px;
}

.check-list li {
    position: relative;
    padding-left: 22px;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--brand);
}

.text-link,
.inline-back-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--brand);
    font-weight: 700;
}

.inline-back-link {
    margin-top: 8px;
}

.split-panel,
.contact-grid,
.detail-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.accent-card {
    background: linear-gradient(135deg, var(--brand), #7f170f);
    color: #fff;
}

.accent-card p,
.accent-card .eyebrow,
.accent-card .check-list li {
    color: rgba(255, 255, 255, 0.84);
}

.accent-card .eyebrow {
    background: rgba(255, 255, 255, 0.1);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.inventory-filter {
    margin-bottom: 20px;
}

.filter-grid input,
.filter-grid select,
.contact-form input,
.contact-form textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
    font: inherit;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form label {
    display: block;
    margin-bottom: 14px;
    font-weight: 700;
}

.inventory-meta {
    margin: 18px 0 24px;
    flex-wrap: wrap;
}

.empty-state {
    padding: 28px;
    text-align: center;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px dashed var(--line);
}

.contact-stack {
    display: grid;
    gap: 14px;
}

.contact-stack div {
    display: grid;
    gap: 4px;
}

.location-list {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.location-card,
.footer-location-block {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(254, 149, 31, 0.08);
    border: 1px solid rgba(213, 40, 24, 0.1);
}

.location-card strong,
.footer-location-block strong {
    color: var(--brand-strong);
}

.detail-header {
    align-items: end;
}

.detail-price {
    flex-direction: column;
    align-items: end;
}

.detail-price strong {
    font-size: 2rem;
}

.detail-hero-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.thumb-grid img {
    border-radius: 18px;
    height: 110px;
    object-fit: cover;
}

.detail-sidebar {
    display: grid;
    gap: 18px;
}

.detail-card-spaced {
    margin-top: 18px;
}

.detail-data-grid {
    display: grid;
    gap: 0;
}

.detail-data-row {
    display: grid;
    grid-template-columns: minmax(180px, 0.9fr) 1.2fr;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.detail-data-row:last-child {
    border-bottom: 0;
}

.detail-data-row span {
    color: var(--muted);
    font-weight: 600;
}

.detail-data-row strong {
    font-weight: 700;
}

.detail-specs li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.detail-specs li:last-child {
    border-bottom: 0;
}

.compact-form label {
    font-size: 0.92rem;
}

.flash {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 18px;
    font-weight: 700;
}

.flash-success {
    background: var(--success-bg);
    color: var(--success-fg);
}

.flash-error {
    background: var(--danger-bg);
    color: var(--danger-fg);
}

.site-footer {
    background: #2e0f0b;
    color: #fff;
    padding: 48px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.site-footer h3,
.site-footer h4 {
    margin-top: 0;
}

.footer-logo {
    display: inline-block;
    width: 210px;
    height: auto;
    max-width: 100%;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 10px;
    padding: 8px 14px;
}

.footer-location-block {
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.footer-location-block strong {
    color: #fff;
}

.footer-location-block span {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 980px) {
    .hero-grid,
    .feature-grid,
    .vehicle-grid,
    .split-panel,
    .contact-grid,
    .detail-layout,
    .footer-grid,
    .filter-grid,
    .thumb-grid {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .topbar,
    .navbar,
    .detail-header,
    .detail-price {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding-top: 72px;
    }

    .detail-data-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .brand-logo {
        width: 150px;
        max-width: 54vw;
    }

    .brand-lockup {
        display: none;
    }
}
