:root {
    --background: #f5f1ea;
    --surface: #ffffff;
    --text: #221f1b;
    --muted: #6d665d;
    --burgundy: #6f1d2c;
    --burgundy-dark: #4f1320;
    --gold: #b8914b;
    --border: #ded6cb;
    --shadow: 0 18px 45px rgba(34, 31, 27, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    display: block;
    width: auto;
    height: 52px;
}

.site-logo:hover {
    opacity: 0.9;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-nav a {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--burgundy);
}

/* Shared text */

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 32px;
}

.section-heading h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 8vw, 3.2rem);
    line-height: 1.08;
}

.section-heading>p:last-child {
    color: var(--muted);
}

/* Buttons */

.primary-button,
.secondary-button,
.outline-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 54px;
    padding: 13px 22px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        opacity 0.2s ease;
}

.primary-button {
    background: var(--gold);
    color: #201a12;
}

.primary-button:hover {
    transform: translateY(-2px);
    background: #caa45c;
}

.secondary-button {
    background: var(--burgundy);
    color: #ffffff;
}

.secondary-button:hover {
    transform: translateY(-2px);
    background: var(--burgundy-dark);
}

.outline-button {
    border: 2px solid var(--burgundy);
    color: var(--burgundy);
    background: transparent;
}

.outline-button:hover {
    transform: translateY(-2px);
}

/* Homepage hero */

.hero {
    min-height: 560px;
    display: grid;
    align-items: center;
    background:
        linear-gradient(rgba(25, 19, 20, 0.72),
            rgba(25, 19, 20, 0.72)),
        linear-gradient(135deg, #6f1d2c, #1f1b1c);
    color: #ffffff;
}

.hero-content {
    max-width: 820px;
    padding-top: 72px;
    padding-bottom: 72px;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.6rem, 11vw, 5rem);
    line-height: 1.02;
}

.hero-text {
    max-width: 680px;
    margin: 24px 0 32px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.08rem;
}

/* Homepage vehicle cards */

.vehicles-section {
    padding: 64px 0;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.vehicle-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.vehicle-image {
    min-height: 230px;
}

.placeholder-image {
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg,
            rgba(111, 29, 44, 0.9),
            rgba(28, 25, 26, 0.96));
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.vehicle-card-content {
    padding: 24px;
}

.vehicle-year {
    margin: 0 0 4px;
    color: var(--gold);
    font-size: 0.88rem;
    font-weight: 700;
}

.vehicle-card h3 {
    margin: 0 0 20px;
    font-size: 1.55rem;
    line-height: 1.15;
}

.vehicle-details {
    margin: 0 0 22px;
}

.vehicle-details div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}

.vehicle-details dt {
    color: var(--muted);
}

.vehicle-details dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.vehicle-price {
    margin: 0 0 20px;
    color: var(--burgundy);
    font-size: 1.3rem;
    font-weight: 700;
}

.vehicle-card .secondary-button {
    width: 100%;
}

/* Vehicle detail page */

.vehicle-page {
    background: var(--background);
}

.vehicle-hero {
    background: #ffffff;
}

.vehicle-hero-image {
    min-height: 52vh;
    width: 100%;
}

.vehicle-intro {
    padding-top: 30px;
    padding-bottom: 40px;
}

.vehicle-intro h1 {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.06;
}

.vehicle-subtitle {
    margin: 14px 0 26px;
    color: var(--muted);
    font-size: 1.05rem;
}

.vehicle-summary {
    display: grid;
    gap: 4px;
}

.vehicle-summary div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.vehicle-summary span {
    color: var(--muted);
}

.vehicle-summary strong {
    text-align: right;
}

.vehicle-page-price {
    margin: 28px 0 20px;
    color: var(--burgundy);
    font-size: 1.75rem;
    font-weight: 700;
}

.vehicle-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.vehicle-actions a {
    width: 100%;
}

.vehicle-section {
    padding: 54px 0;
}

.vehicle-section-light {
    background: #ffffff;
}

.spec-list {
    margin: 0;
}

.spec-list div {
    display: grid;
    gap: 5px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.spec-list dt {
    color: var(--muted);
    font-size: 0.9rem;
}

.spec-list dd {
    margin: 0;
    font-weight: 700;
}

.photo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.gallery-placeholder,
.video-placeholder {
    display: grid;
    place-items: center;
    min-height: 220px;
    border-radius: 12px;
    background:
        linear-gradient(135deg,
            rgba(111, 29, 44, 0.9),
            rgba(28, 25, 26, 0.95));
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vehicle-contact {
    padding: 60px 0;
    background: #211d1e;
    color: #ffffff;
}

.vehicle-contact h2 {
    margin: 0 0 26px;
    font-size: 2rem;
    line-height: 1.12;
}

.light-outline {
    border-color: #ffffff;
    color: #ffffff;
}

/* Footer */

.site-footer {
    padding: 28px 0;
    background: #211d1e;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
}

.site-footer p {
    margin: 0;
}

/* Tablet and desktop enhancements */

@media (min-width: 700px) {
    .container {
        width: min(1120px, calc(100% - 48px));
    }

    .site-logo {
        height: 60px;
    }

    .site-nav {
        gap: 24px;
    }

    .hero {
        min-height: 620px;
    }

    .hero-text {
        font-size: 1.2rem;
    }

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

    .vehicle-image {
        min-height: 310px;
    }

    .vehicle-intro h1 {
        font-size: 3rem;
    }

    .vehicle-actions {
        grid-template-columns: repeat(3, 1fr);
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .spec-list div {
        grid-template-columns: 220px 1fr;
        align-items: start;
    }
}

/* Small phone adjustments */

@media (max-width: 540px) {
    .header-inner {
        min-height: auto;
        padding: 10px 0;
        flex-direction: column;
        align-items: stretch;
    }

    .brand {
        justify-content: center;
    }

    .site-logo {
        height: 48px;
    }

    .site-nav {
        width: 100%;
        justify-content: space-around;
        gap: 8px;
        padding-bottom: 4px;
    }

    .site-nav a {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        padding: 0 6px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-content {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .vehicle-hero-image {
        min-height: 42vh;
    }

    .vehicle-section {
        padding: 46px 0;
    }

    .mobile-contact-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 50;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        background: #ffffff;
        border-top: 1px solid var(--border);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.14);
    }

    .mobile-contact-bar a {
        display: flex;
        min-height: 58px;
        align-items: center;
        justify-content: center;
        color: var(--burgundy);
        font-weight: 800;
        text-decoration: none;
        border-right: 1px solid var(--border);
    }

    .mobile-contact-bar a:last-child {
        border-right: 0;
    }

    .vehicle-page {
        padding-bottom: 58px;
    }

    .mobile-contact-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        background: #ffffff;
        border-top: 1px solid var(--border);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.14);
    }

    .mobile-contact-bar a {
        display: flex;
        min-height: 60px;
        align-items: center;
        justify-content: center;
        color: var(--burgundy);
        font-weight: 800;
        text-decoration: none;
        border-right: 1px solid var(--border);
    }

    .mobile-contact-bar a:last-child {
        border-right: 0;
    }

    .vehicle-page {
        padding-bottom: 60px;
    }

    .vehicle-page {
        padding-bottom: 0;
    }
}

/* Fixed contact bar on vehicle pages */

.mobile-contact-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    background: #ffffff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.14);
}

.mobile-contact-bar a {
    display: flex;
    min-height: 60px;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    font-weight: 800;
    text-decoration: none;
    border-right: 1px solid var(--border);
}

.mobile-contact-bar a:last-child {
    border-right: 0;
}

.vehicle-page {
    padding-bottom: 60px;
}

/* Contact page */

.contact-page {
    background: var(--background);
    padding-bottom: 60px;
}

.contact-hero {
    padding: 56px 0 36px;
    background:
        linear-gradient(rgba(24, 18, 19, 0.78),
            rgba(24, 18, 19, 0.78)),
        linear-gradient(135deg, var(--burgundy), #1f1b1c);
    color: #ffffff;
}

.contact-hero h1 {
    margin: 0;
    font-size: clamp(2.25rem, 10vw, 4rem);
    line-height: 1.04;
}

.contact-hero p:last-child {
    max-width: 620px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
}

.contact-options {
    padding: 32px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.contact-card {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.contact-card:active {
    transform: scale(0.99);
}

.contact-label {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-card strong {
    color: var(--burgundy);
    font-size: 1.3rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.contact-card span:last-child {
    color: var(--muted);
}

.contact-note {
    padding: 18px 0 58px;
}

.contact-note h2 {
    margin: 0 0 14px;
    font-size: 1.8rem;
    line-height: 1.15;
}

.contact-note p {
    max-width: 680px;
    color: var(--muted);
}

@media (min-width: 700px) {
    .contact-hero {
        padding: 80px 0 56px;
    }

    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-page {
        padding-bottom: 60px;
    }
}

/* Homepage finishing styles */

.vehicle-card-image-link {
    display: block;
    text-decoration: none;
}

.vehicle-card h3 a {
    text-decoration: none;
}

.vehicle-card h3 a:hover {
    color: var(--burgundy);
}

.home-contact-section {
    padding: 60px 0 90px;
    background: #ffffff;
}

.home-contact-section h2 {
    max-width: 700px;
    margin: 0 0 16px;
    font-size: clamp(2rem, 9vw, 3.4rem);
    line-height: 1.08;
}

.home-contact-section p:not(.eyebrow) {
    max-width: 650px;
    margin: 0 0 26px;
    color: var(--muted);
}

.home-contact-section .secondary-button {
    width: 100%;
}

@media (min-width: 700px) {
    .home-contact-section .secondary-button {
        width: auto;
    }
}

/* Branded vehicle placeholders */

.branded-placeholder {
    position: relative;
    display: flex;
    min-height: 260px;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 22px;
    background:
        radial-gradient(circle at top,
            rgba(184, 145, 75, 0.22),
            transparent 42%),
        linear-gradient(145deg,
            #741c2d 0%,
            #32191f 52%,
            #171516 100%);
    color: #ffffff;
    text-align: center;
}

.branded-placeholder::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg,
            transparent 0%,
            rgba(255, 255, 255, 0.08) 42%,
            transparent 58%);
    content: "";
    pointer-events: none;
}

.branded-placeholder-logo {
    position: relative;
    z-index: 1;
    width: min(220px, 72%);
    margin-bottom: 20px;
    object-fit: contain;
}

.branded-placeholder-title {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.15;
}

.branded-placeholder-detail {
    position: relative;
    z-index: 1;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

.branded-placeholder-message {
    position: relative;
    z-index: 1;
    margin: 18px 0 0;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.vehicle-card .branded-placeholder {
    min-height: 270px;
}

.vehicle-hero .branded-placeholder {
    min-height: 48vh;
    border-radius: 0;
}

.gallery-branded-placeholder {
    min-height: 230px;
    border-radius: 12px;
}

@media (min-width: 700px) {
    .vehicle-card .branded-placeholder {
        min-height: 320px;
    }

    .vehicle-hero .branded-placeholder {
        min-height: 560px;
    }
}