:root {
    color-scheme: light;
    --black: #090909;
    --ink: #171717;
    --muted: #676767;
    --line: #dedede;
    --paper: #ffffff;
    --wash: #f5f5f5;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--wash);
    color: var(--ink);
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

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

.site-header {
    background: var(--black);
    border-bottom: 1px solid #292929;
}

.header-inner {
    width: min(1240px, calc(100% - 40px));
    min-height: 104px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand img {
    width: min(260px, 54vw);
    max-height: 82px;
    object-fit: contain;
}

.header-nav {
    display: flex;
    gap: 28px;
}

.header-nav a {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-decoration: none;
    text-transform: uppercase;
}

.header-nav a:hover,
.header-nav a:focus-visible {
    color: #cfcfcf;
}

main {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 28px 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.breadcrumb a {
    font-weight: 600;
}

.vehicle-page {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 48px;
    align-items: start;
}

.gallery-stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    min-height: 440px;
    background: #e9e9e9;
}

.gallery-stage > a,
.gallery-stage > a img,
.gallery-stage > img {
    width: 100%;
    height: 100%;
}

.gallery-stage > a {
    position: absolute;
    inset: 0;
    display: block;
}

.gallery-stage > a img,
.gallery-stage > img {
    min-height: 440px;
    object-fit: cover;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.68);
    color: #fff;
    cursor: pointer;
    font-size: 2rem;
    transform: translateY(-50%);
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
    background: #000;
}

.gallery-arrow-prev {
    left: 14px;
}

.gallery-arrow-next {
    right: 14px;
}

.gallery-count {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 7px 11px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.gallery-thumbnail {
    border: 2px solid transparent;
    background: #ddd;
    outline-offset: 2px;
}

.gallery-thumbnail.is-active {
    border-color: #000;
}

.gallery-thumbnail img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.vehicle-summary {
    padding: 34px;
    background: var(--paper);
    border-top: 5px solid var(--black);
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.08);
}

.status,
.eyebrow {
    margin: 0 0 12px;
    color: #4d4d4d;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.status-reserved,
.status-sold {
    color: #6e1010;
}

h1,
h2 {
    margin-top: 0;
    color: #090909;
    line-height: 1.15;
}

h1 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.035em;
}

h2 {
    margin-bottom: 24px;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.variant {
    margin: 0 0 26px;
    color: var(--muted);
    font-size: 0.9rem;
}

.price {
    margin: 0 0 28px;
    color: #000;
    font-size: clamp(1.8rem, 4vw, 2.55rem);
    font-weight: 800;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.spec-grid div {
    padding: 14px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.spec-grid dt {
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.spec-grid dd {
    margin: 3px 0 0;
    font-size: 0.88rem;
    font-weight: 600;
}

.enquiry-panel {
    margin-top: 28px;
}

.enquiry-panel p {
    margin: 0 0 12px;
    font-weight: 700;
}

.button {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 14px 18px;
    border: 2px solid var(--black);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: 160ms ease;
}

.button-dark {
    background: var(--black);
    color: #fff;
}

.button-light {
    background: #fff;
    color: #000;
}

.button:hover,
.button:focus-visible {
    background: #3b3b3b;
    border-color: #3b3b3b;
    color: #fff;
}

.content-section {
    margin-top: 54px;
    padding: clamp(30px, 5vw, 58px);
    background: #fff;
}

.description {
    max-width: 920px;
    margin: 0;
    color: #424242;
    white-space: pre-line;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    list-style: none;
}

.feature-list li {
    padding: 14px 16px 14px 38px;
    position: relative;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 0.86rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 15px;
    font-weight: 800;
}

.back-link-wrap {
    padding: 42px 0 70px;
}

.back-link {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.not-found {
    min-height: 64vh;
    padding: 120px 0;
    text-align: center;
}

.not-found p:not(.eyebrow) {
    max-width: 600px;
    margin: 0 auto 32px;
    color: var(--muted);
}

.not-found .button {
    width: fit-content;
    margin: 0 auto;
}

footer {
    padding: 48px 20px;
    background: var(--black);
    color: #9f9f9f;
    font-size: 0.78rem;
    text-align: center;
}

footer img {
    width: min(290px, 78vw);
    margin: 0 auto 18px;
}

footer p {
    margin: 5px 0;
}

footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 22px;
}

footer a {
    color: #d8d8d8;
}

@media (max-width: 900px) {
    .vehicle-page {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .header-inner {
        width: min(100% - 28px, 1240px);
        min-height: 88px;
    }

    .header-nav {
        gap: 14px;
    }

    .header-nav a {
        font-size: 0.65rem;
    }

    .header-nav a:first-child {
        display: none;
    }

    main {
        width: min(100% - 24px, 1240px);
    }

    .gallery-stage,
    .gallery-stage > a img,
    .gallery-stage > img {
        min-height: 260px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vehicle-summary,
    .content-section {
        padding: 24px;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition-duration: 0.01ms !important;
    }
}
