:root {
    --ink: #151817;
    --muted: #68716f;
    --line: #dfe5e2;
    --soft: #f5f7f6;
    --accent: #17865f;
    --accent-dark: #0f5d43;
    --blue: #2456d6;
    --sun: #e9b949;
}

body {
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

a {
    color: var(--accent-dark);
}

.btn {
    border-radius: 8px;
    font-weight: 650;
}

.btn-success {
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-hover-bg: var(--accent-dark);
    --bs-btn-hover-border-color: var(--accent-dark);
}

.navbar-brand {
    letter-spacing: 0;
}

.hero-section {
    position: relative;
    min-height: min(690px, calc(100svh - 64px));
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: url("https://images.unsplash.com/photo-1549924231-f129b911e442?auto=format&fit=crop&w=1800&q=80");
    background-position: center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(9, 14, 13, .84) 0%, rgba(9, 14, 13, .62) 42%, rgba(9, 14, 13, .16) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .28));
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-block: clamp(4rem, 9vw, 8rem);
}

.hero-copy {
    max-width: 660px;
    color: #fff;
}

.hero-copy h1 {
    font-size: clamp(3rem, 8vw, 6.75rem);
    line-height: .92;
    letter-spacing: 0;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.hero-copy p {
    max-width: 560px;
    color: rgba(255, 255, 255, .84);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    margin-bottom: 2rem;
}

.eyebrow,
.section-kicker {
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-copy .eyebrow {
    color: #7ee0b6;
    margin-bottom: 1rem;
}

.section-muted {
    background: var(--soft);
}

.page-hero {
    padding: clamp(3.5rem, 8vw, 6rem) 0 2rem;
    background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.benefit-grid > div {
    background: #fff;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.benefit-grid h3 {
    font-size: 1rem;
    font-weight: 750;
    margin: .75rem 0 .35rem;
}

.benefit-grid p {
    margin: 0;
    color: var(--muted);
}

.benefit-dot {
    width: .8rem;
    height: .8rem;
    border-radius: 50%;
    display: inline-block;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(23, 134, 95, .12);
}

.vehicle-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
}

.vehicle-card .card-img-top {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.empty-state,
.detail-panel,
.contact-form,
.admin-panel,
.metric-card,
.login-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.empty-state {
    padding: 2rem;
}

.vehicle-detail-hero {
    padding: clamp(3rem, 7vw, 5rem) 0 2rem;
    background: var(--soft);
}

.vehicle-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
}

.vehicle-gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

.vehicle-gallery .gallery-main {
    grid-column: span 4;
    aspect-ratio: 16 / 10;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.feature-list span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .5rem .8rem;
    background: #fff;
    font-weight: 650;
}

.detail-panel,
.contact-form {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.detail-list {
    display: grid;
    gap: .75rem;
    margin: 1rem 0 0;
}

.detail-list div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--line);
}

.detail-list dt {
    color: var(--muted);
    font-weight: 650;
}

.detail-list dd {
    margin: 0;
    text-align: right;
}

.site-footer {
    background: #f0f3f1;
}

.admin-body,
.login-body {
    background: #f4f6f5;
}

.admin-main {
    min-height: calc(100svh - 56px);
}

.admin-panel {
    padding: 1.25rem;
}

.metric-card {
    padding: 1.15rem;
}

.metric-label {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.metric-value {
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    line-height: 1.1;
    font-weight: 800;
    margin-top: .35rem;
}

.admin-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--soft);
}

.photo-admin-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.photo-admin-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.login-shell {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.login-panel {
    width: min(100%, 440px);
    padding: clamp(1.5rem, 4vw, 2.25rem);
}

.status-select {
    min-width: 130px;
}

.inquiry-message {
    max-width: 420px;
    white-space: normal;
}

.table {
    --bs-table-bg: transparent;
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: calc(100svh - 56px);
        background-position: 62% center;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(9, 14, 13, .84), rgba(9, 14, 13, .58));
    }

    .benefit-grid {
        grid-template-columns: 1fr;
    }

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

    .vehicle-gallery .gallery-main {
        grid-column: span 2;
    }

    .detail-list div {
        display: block;
    }

    .detail-list dd {
        text-align: left;
        margin-top: .2rem;
    }
}
