:root {
    --primary-color: #c1121f;
    --dark-color: #111;
    --gray: #555;
    --soft: #f5f5f3;
    --white: #fff;
    --shadow: 0 18px 50px rgba(0, 0, 0, .12)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Manrope, sans-serif;
    color: #171717;
    background: #fff;
    line-height: 1.65
}

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

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

button,
input,
select,
textarea {
    font: inherit
}

.container {
    width: min(1180px, 92%);
    margin: auto
}

.section {
    padding: 100px 0
}

.soft {
    background: var(--soft)
}

.dark {
    background: #111;
    color: white
}

.navbar {
    position: fixed;
    z-index: 50;
    top: 0;
    width: 100%;
    color: #fff;
    transition: .35s
}

.navbar.scrolled {
    background: rgba(17, 17, 17, .96);
    box-shadow: 0 10px 35px rgba(0, 0, 0, .2)
}

.nav-inner {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 1.12rem
}

.brand span {
    color: var(--primary-color)
}

.brand img {
    height: 46px;
    max-width: 180px;
    object-fit: contain
}

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

.nav-links a {
    position: relative;
    font-size: .92rem
}

.nav-links a:not(.nav-admin):after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: .3s
}

.nav-links a:hover:after {
    width: 100%
}

.nav-admin {
    border: 1px solid rgba(255, 255, 255, .5);
    padding: 10px 15px;
    border-radius: 3px
}

.menu-btn {
    display: none;
    background: none;
    border: 0;
    color: white;
    font-size: 1.4rem
}

.hero {
    min-height: 100vh;
    background: linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .18)), url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=2000&q=85') center/cover fixed;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative
}

.hero-content {
    padding-top: 80px
}

.hero h1,
.page-hero h1,
.detail-head h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.3rem, 7vw, 6.5rem);
    line-height: 1.02;
    max-width: 830px;
    margin: 12px 0 20px
}

.hero-content>p:not(.eyebrow) {
    font-size: 1.2rem;
    max-width: 650px;
    color: #ddd
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: .78rem;
    font-weight: 800;
    color: var(--primary-color)
}

.eyebrow.light {
    color: #fff
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 32px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s
}

.btn.primary {
    background: var(--primary-color);
    color: #fff
}

.btn.primary:hover {
    transform: translateY(-2px);
    filter: brightness(.9)
}

.btn.ghost {
    border-color: #fff;
    color: #fff
}

.btn.ghost:hover {
    background: #fff;
    color: #111
}

.btn.full {
    width: 100%
}

.whatsapp {
    background: #1f9d55;
    color: white
}

.scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .75rem;
    letter-spacing: 2px;
    text-transform: uppercase
}

.scroll-cue i {
    margin-left: 8px
}

.stats {
    background: #111;
    color: #fff
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center
}

.stats-grid div {
    padding: 42px;
    border-right: 1px solid #333
}

.stats-grid div:last-child {
    border: 0
}

.stats strong {
    display: block;
    font-size: 2.6rem
}

.stats strong:after {
    content: "+";
    color: var(--primary-color)
}

.stats span {
    color: #aaa
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 40px
}

.section-head h2,
.split h2,
.cta h2,
.premium-form h2,
.detail-grid h2,
.contact-grid h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.15;
    margin: 8px 0
}

.section-head>a {
    font-weight: 700
}

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

.car-card {
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
    overflow: hidden;
    transition: .35s
}

.car-card:hover {
    transform: translateY(-9px);
    box-shadow: var(--shadow)
}

.car-image-wrap {
    height: 250px;
    position: relative;
    overflow: hidden;
    background: #e9e9e9
}

.car-image-wrap>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .55s
}

.car-card:hover .car-image-wrap>img {
    transform: scale(1.06)
}

.badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary-color);
    color: white;
    padding: 7px 11px;
    font-size: .72rem;
    font-weight: 800
}

.favorite-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .9);
    cursor: pointer
}

.favorite-btn.active {
    color: var(--primary-color)
}

.compare-check {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    padding: 6px 9px;
    font-size: .72rem
}

.car-body {
    padding: 23px
}

.car-body h3 {
    margin: 4px 0 16px;
    font-size: 1.3rem
}

.spec-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    font-size: .74rem;
    color: #666;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee
}

.spec-row span {
    display: flex;
    gap: 5px;
    align-items: center
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px
}

.card-bottom strong {
    font-size: 1.15rem
}

.card-bottom a {
    font-size: .78rem;
    font-weight: 800;
    color: var(--primary-color)
}

.image-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 4rem;
    color: #aaa
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.feature-list.three {
    grid-template-columns: repeat(3, 1fr)
}

.feature-list>div,
.values>div {
    padding: 28px;
    border: 1px solid #333
}

.feature-list i,
.service-card i {
    font-size: 1.7rem;
    color: var(--primary-color)
}

.cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f2f2ef;
    padding: 55px
}

.page-hero {
    padding: 170px 0 85px;
    background: linear-gradient(90deg, #111, #333);
    color: white
}

.page-hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 10px
}

.inventory-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 35px
}

.filters {
    background: #f5f5f3;
    padding: 25px;
    height: max-content;
    position: sticky;
    top: 105px
}

.filters h3 {
    margin-top: 0
}

.filters input,
.filters select,
.inventory-top select,
.premium-form input,
.premium-form textarea,
.premium-form select,
.finance-card input,
.finance-card select {
    width: 100%;
    padding: 13px;
    border: 1px solid #ddd;
    background: #fff;
    margin-bottom: 12px
}

.filters .two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px
}

.clear-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: .85rem
}

.inventory-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px
}

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

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 35px
}

.pagination a,
.pagination span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #ddd
}

.pagination a.active {
    background: #111;
    color: white
}

.compare-bar {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    padding: 14px 20px;
    width: min(650px, 90%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 60;
    transition: .3s
}

.compare-bar.show {
    bottom: 20px
}

.detail-head {
    padding: 135px 0 35px
}

.detail-head .container>div {
    display: flex;
    justify-content: space-between;
    align-items: end
}

.detail-head h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    margin: 10px 0
}

.detail-head strong {
    font-size: 2rem
}

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

.gallery-main {
    height: 620px;
    background: #eee
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 620px;
    overflow: auto
}

.thumbnails button {
    border: 0;
    padding: 0;
    height: 100px;
    cursor: pointer
}

.thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid #ddd;
    margin: 25px 0 50px
}

.spec-grid div {
    display: flex;
    justify-content: space-between;
    padding: 17px 0;
    border-bottom: 1px solid #ddd
}

.spec-grid div:nth-child(odd) {
    padding-right: 20px
}

.spec-grid div:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid #ddd
}

.spec-grid span {
    color: #777
}

.long-copy {
    font-size: 1.06rem;
    color: #555
}

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

.features span {
    background: #f3f3f1;
    padding: 9px 13px
}

.features i {
    color: var(--primary-color);
    margin-right: 7px
}

.finance-card {
    background: #111;
    color: white;
    padding: 28px;
    margin-bottom: 15px;
    position: sticky;
    top: 100px
}

.finance-card h3 {
    margin-top: 0
}

.finance-card label {
    display: block;
    font-size: .82rem;
    color: #bbb
}

.estimate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0
}

.estimate strong {
    font-size: 1.25rem
}

.forms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px
}

.premium-form {
    background: #fff;
    padding: 35px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .08)
}

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

.premium-form textarea {
    min-height: 130px
}

.premium-form small {
    color: var(--primary-color)
}

.values {
    display: grid;
    gap: 20px
}

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

.service-card {
    padding: 35px;
    border: 1px solid #e2e2e2;
    transition: .3s
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow)
}

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

.contact-items {
    display: grid;
    gap: 22px;
    margin-top: 30px
}

.contact-items div {
    display: flex;
    gap: 18px
}

.contact-items i {
    width: 45px;
    height: 45px;
    background: #111;
    color: white;
    display: grid;
    place-items: center
}

.contact-items b {
    display: block
}

.map iframe {
    width: 100%;
    height: 450px;
    border: 0
}

footer {
    background: #0a0a0a;
    color: #bbb;
    padding: 75px 0 0
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr 1fr;
    gap: 40px
}

.footer-grid h3,
.footer-grid h4 {
    color: white
}

.footer-grid a {
    display: block;
    margin: 8px 0
}

.socials {
    display: flex;
    gap: 10px
}

.socials a {
    width: 38px;
    height: 38px;
    border: 1px solid #333;
    display: grid;
    place-items: center
}

.copyright {
    text-align: center;
    border-top: 1px solid #222;
    margin-top: 55px;
    padding: 22px
}

.flash-wrap {
    position: fixed;
    right: 20px;
    top: 100px;
    z-index: 80
}

.flash {
    background: #111;
    color: white;
    padding: 14px 18px;
    margin-bottom: 8px;
    min-width: 280px
}

.flash.success {
    border-left: 4px solid #1f9d55
}

.flash.danger {
    border-left: 4px solid var(--primary-color)
}

.flash button {
    float: right;
    background: none;
    border: 0;
    color: white
}

.page-loader {
    position: fixed;
    inset: 0;
    background: #111;
    z-index: 999;
    display: grid;
    place-items: center;
    transition: .45s
}

.page-loader span {
    width: 50px;
    height: 50px;
    border: 3px solid #444;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin .8s linear infinite
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: .7s
}

.reveal.visible {
    opacity: 1;
    transform: none
}

.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 70px;
    background: #f5f5f3
}

.maintenance {
    min-height: 100vh;
    background: #111;
    color: white;
    display: grid;
    place-items: center;
    text-align: center
}

.maintenance h1 {
    font-size: 4rem
}

.maintenance a {
    color: var(--primary-color)
}

@media(max-width:900px) {
    .menu-btn {
        display: block
    }

    .nav-links {
        position: absolute;
        top: 82px;
        left: 0;
        width: 100%;
        background: #111;
        display: none;
        flex-direction: column;
        padding: 25px
    }

    .nav-links.open {
        display: flex
    }

    .car-grid,
    .service-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .split,
    .detail-grid,
    .contact-grid {
        grid-template-columns: 1fr
    }

    .inventory-layout {
        grid-template-columns: 1fr
    }

    .filters {
        position: static
    }

    .gallery {
        grid-template-columns: 1fr
    }

    .thumbnails {
        flex-direction: row
    }

    .gallery-main {
        height: 450px
    }

    .detail-sidebar {
        order: -1
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

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

    .cta {
        align-items: flex-start;
        gap: 25px;
        flex-direction: column
    }
}

@media(max-width:620px) {
    .section {
        padding: 70px 0
    }

    .hero {
        background-attachment: scroll
    }

    .hero h1 {
        font-size: 3.2rem
    }

    .hero-actions,
    .forms-grid,
    .car-grid,
    .service-grid,
    .inventory-grid,
    .stats-grid,
    .feature-list,
    .footer-grid {
        grid-template-columns: 1fr;
        display: grid
    }

    .stats-grid div {
        border-right: 0;
        border-bottom: 1px solid #333
    }

    .section-head,
    .detail-head .container>div,
    .inventory-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px
    }

    .inventory-layout {
        display: block
    }

    .gallery-main {
        height: 330px
    }

    .spec-grid {
        grid-template-columns: 1fr
    }

    .spec-grid div:nth-child(even) {
        padding-left: 0;
        border-left: 0
    }

    .cta {
        padding: 30px
    }

    .car-image-wrap {
        height: 220px
    }
}

/* ========================================
   ABOUT PAGE - MEET OUR TEAM
======================================== */

.team-section {
    background: #f7f7f7;
}

.section-head.centered {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-head.centered p:last-child {
    color: #666;
    line-height: 1.8;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.team-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.12);
}

.team-photo {
    display: flex;
    min-height: 240px;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(145deg, rgba(17, 17, 17, 0.95), rgba(68, 68, 68, 0.9));
    color: #ffffff;
    font-size: 5rem;
}

.team-info {
    padding: 1.6rem;
}

.team-info h3 {
    margin-bottom: 0.4rem;
    color: #111111;
    font-size: 1.15rem;
}

.team-role {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.team-info>p:last-of-type {
    color: #666666;
    line-height: 1.7;
}

.team-socials {
    display: flex;
    gap: 0.7rem;
    margin-top: 1.25rem;
}

.team-socials a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dddddd;
    border-radius: 50%;
    color: #111111;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.team-socials a:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
}

.team-cta {
    padding-top: 0;
}

.team-cta .cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem;
    border-radius: 22px;
    background: #111111;
    color: #ffffff;
}

.team-cta .cta-panel h2 {
    margin: 0;
    color: #ffffff;
}

@media (max-width: 1100px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-photo {
        min-height: 210px;
    }

    .team-cta .cta-panel {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Vehicle comparison */
.compare-page {
    background: #f7f7f7;
}

.compare-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.compare-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e2e2;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.vehicle-compare-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
}

.vehicle-compare-table th,
.vehicle-compare-table td {
    padding: 1.15rem;
    border-right: 1px solid #e9e9e9;
    border-bottom: 1px solid #e9e9e9;
    text-align: left;
    vertical-align: top;
}

.vehicle-compare-table tbody th {
    width: 180px;
    background: #f7f7f7;
    color: #111111;
    font-weight: 700;
}

.compare-car-heading {
    position: relative;
    min-width: 220px;
}

.compare-car-heading img,
.compare-image-placeholder {
    width: 100%;
    height: 150px;
    margin-bottom: 1rem;
    border-radius: 12px;
    object-fit: cover;
}

.compare-image-placeholder {
    display: grid;
    place-items: center;
    background: #eeeeee;
    font-size: 2rem;
}

.compare-car-heading h2 {
    margin: 0.25rem 0 0.6rem;
    font-size: 1.25rem;
}

.compare-car-heading strong {
    display: block;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.compare-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.88);
    color: #ffffff;
    cursor: pointer;
}

.compare-features {
    min-width: 220px;
    white-space: pre-line;
}

.compare-empty-state {
    max-width: 680px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.compare-empty-state > i {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 3rem;
}

.compare-bar .btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

@media (max-width: 700px) {
    .compare-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   MOBILE RESPONSIVE ENHANCEMENTS
   ========================================================= */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 900px) {
    .container {
        width: min(100% - 32px, 1180px);
    }

    .section {
        padding: 4rem 0;
    }

    .navbar {
        height: 72px;
    }

    .nav-inner {
        min-height: 72px;
    }

    .brand img {
        max-width: 150px;
        max-height: 48px;
    }

    .menu-btn {
        display: inline-grid;
        place-items: center;
        width: 46px;
        height: 46px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        background: rgba(17, 17, 17, 0.7);
        color: #ffffff;
        font-size: 1.2rem;
        cursor: pointer;
        z-index: 1002;
    }

    .nav-links {
        position: fixed;
        inset: 72px 0 auto 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        padding: 0 20px;
        overflow: hidden;
        background: rgba(10, 10, 10, 0.98);
        box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25);
        opacity: 0;
        transform: translateY(-12px);
        visibility: hidden;
        transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease, padding 0.35s ease;
        z-index: 1000;
    }

    .nav-links.open {
        max-height: calc(100vh - 72px);
        padding: 12px 20px 24px;
        overflow-y: auto;
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }

    .nav-links a {
        width: 100%;
        padding: 16px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1rem;
    }

    .nav-links .nav-admin {
        justify-content: center;
        margin-top: 12px;
        padding: 14px 18px;
        border: 0;
        border-radius: 8px;
        background: var(--primary-color);
        text-align: center;
    }

    body.menu-open {
        overflow: hidden;
    }

    .hero,
    .page-hero {
        min-height: auto;
    }

    .hero {
        padding: 9rem 0 5rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(2.3rem, 9vw, 4rem);
        line-height: 1.05;
    }

    .hero p,
    .page-hero p {
        font-size: 1rem;
    }

    .hero-buttons,
    .cta-actions {
        flex-wrap: wrap;
    }

    .hero-buttons .btn,
    .cta-actions .btn {
        min-height: 50px;
    }

    .stats-grid,
    .features-grid,
    .services-grid,
    .team-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .car-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .inventory-layout,
    .details-layout,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        position: static;
    }

    .details-gallery,
    .details-info {
        min-width: 0;
    }

    .footer-grid {
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .section {
        padding: 3rem 0;
    }

    .section-heading {
        margin-bottom: 1.75rem;
    }

    .section-heading h2,
    .cta h2 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .page-hero {
        padding: 7.5rem 0 3.5rem;
        text-align: center;
    }

    .hero {
        min-height: 100svh;
        padding: 7.5rem 0 3rem;
        align-items: flex-end;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 12vw, 3.45rem);
    }

    .hero-buttons,
    .cta-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .hero-buttons .btn,
    .cta-actions .btn,
    .btn.full {
        width: 100%;
        justify-content: center;
    }

    .stats-grid,
    .features-grid,
    .services-grid,
    .team-grid,
    .footer-grid,
    .car-grid {
        grid-template-columns: 1fr;
    }

    .stat-card,
    .service-card,
    .team-card,
    .car-card {
        min-width: 0;
    }

    .car-card-image,
    .car-image {
        height: 230px;
    }

    .car-card-content,
    .car-content {
        padding: 1.15rem;
    }

    .inventory-layout {
        gap: 1.5rem;
    }

    .filters {
        padding: 1.2rem;
        border-radius: 14px;
    }

    .filters .two,
    .form-grid,
    .two {
        grid-template-columns: 1fr;
    }

    .inventory-top {
        align-items: stretch;
        flex-direction: column;
        gap: 0.8rem;
    }

    .inventory-top form,
    .inventory-top select,
    .sort-form {
        width: 100%;
    }

    input,
    select,
    textarea,
    .btn {
        min-height: 48px;
        font-size: 16px;
    }

    textarea {
        min-height: 130px;
    }

    .main-gallery img,
    #mainCarImage {
        height: 280px;
    }

    .thumbnails {
        display: flex;
        gap: 0.65rem;
        padding-bottom: 0.35rem;
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }

    .thumbnails img {
        flex: 0 0 86px;
        width: 86px;
        height: 64px;
        scroll-snap-align: start;
    }

    .spec-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .details-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .compare-bar {
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        padding: 12px;
        border-radius: 14px;
    }

    .compare-bar.show {
        display: flex;
    }

    .compare-bar span {
        font-size: 0.88rem;
    }

    .compare-bar .btn {
        min-height: 42px;
        padding: 0.65rem 0.9rem;
        white-space: nowrap;
    }

    .compare-toolbar {
        align-items: stretch;
    }

    .compare-toolbar .btn {
        width: 100%;
        justify-content: center;
    }

    .compare-table-wrap {
        margin-right: -12px;
        margin-left: -12px;
        border-radius: 0;
        -webkit-overflow-scrolling: touch;
    }

    .vehicle-compare-table {
        min-width: 700px;
    }

    .vehicle-compare-table th,
    .vehicle-compare-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .compare-car-heading {
        min-width: 190px;
    }

    .compare-car-heading img,
    .compare-image-placeholder {
        height: 120px;
    }

    .flash-wrap {
        right: 12px;
        left: 12px;
        width: auto;
    }

    .flash {
        width: 100%;
    }

    footer {
        text-align: center;
    }

    .socials {
        justify-content: center;
    }

    .copyright {
        padding: 1.25rem 12px;
        font-size: 0.82rem;
    }
}

@media (max-width: 390px) {
    .container {
        width: min(100% - 18px, 1180px);
    }

    .brand img {
        max-width: 125px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

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

    .compare-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .compare-bar .btn {
        width: 100%;
    }
}

/* =========================================================
   LAPTOP RESPONSIVE ENHANCEMENTS
   Optimized for common laptop widths from 1024px to 1440px.
   ========================================================= */
@media (min-width: 901px) and (max-width: 1440px) {
    .container {
        width: min(1120px, calc(100% - 64px));
    }

    .section {
        padding: clamp(64px, 6vw, 88px) 0;
    }

    .nav-inner {
        height: 74px;
    }

    .brand img {
        max-width: 155px;
        height: 42px;
    }

    .nav-links {
        gap: clamp(14px, 1.7vw, 24px);
    }

    .nav-links a {
        font-size: 0.86rem;
        white-space: nowrap;
    }

    .nav-admin {
        padding: 9px 12px;
    }

    .hero {
        min-height: min(860px, 100vh);
        background-attachment: scroll;
    }

    .hero-content {
        max-width: 780px;
        padding-top: 70px;
    }

    .hero h1,
    .page-hero h1,
    .detail-head h1 {
        font-size: clamp(3rem, 5.4vw, 5.2rem);
    }

    .hero-content > p:not(.eyebrow) {
        max-width: 600px;
        font-size: 1.08rem;
    }

    .car-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(18px, 2vw, 26px);
    }

    .car-card-image,
    .car-image {
        height: clamp(210px, 18vw, 270px);
    }

    .inventory-layout {
        grid-template-columns: minmax(235px, 280px) minmax(0, 1fr);
        gap: clamp(24px, 3vw, 42px);
        align-items: start;
    }

    .filters {
        position: sticky;
        top: 94px;
        max-height: calc(100vh - 116px);
        overflow-y: auto;
        scrollbar-width: thin;
    }

    .details-layout,
    .car-details-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
        gap: clamp(28px, 4vw, 54px);
    }

    .main-gallery img,
    #mainCarImage {
        height: clamp(420px, 42vw, 590px);
    }

    .stats-grid,
    .features-grid,
    .services-grid,
    .team-grid {
        gap: clamp(18px, 2vw, 28px);
    }

    .team-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .footer-grid {
        gap: clamp(24px, 4vw, 52px);
    }

    .vehicle-compare-table {
        min-width: 920px;
    }

    .compare-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .container {
        width: calc(100% - 44px);
    }

    .nav-links {
        gap: 13px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .nav-admin {
        padding: 8px 10px;
    }

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

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

    .inventory-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 24px;
    }

    .details-layout,
    .car-details-grid {
        grid-template-columns: minmax(0, 1fr) minmax(310px, 0.78fr);
        gap: 30px;
    }

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

/* =========================================================
   REFINED RESPONSIVE FOOTER
   ========================================================= */
.site-footer {
    background: #0a0a0a;
    color: #b8b8b8;
    padding: 72px 0 0;
}

.site-footer .footer-grid {
    align-items: start;
}

.footer-column h3,
.footer-column h4 {
    margin: 0 0 18px;
    color: #fff;
}

.footer-column h4 {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-logo {
    display: inline-flex;
    margin: 0 0 20px;
}

.footer-logo img {
    display: block;
    width: auto;
    max-width: 170px;
    height: 52px;
    object-fit: contain;
}

.footer-description {
    max-width: 390px;
    margin: 0;
    line-height: 1.75;
}

.footer-links {
    display: grid;
    gap: 11px;
}

.footer-links a {
    width: fit-content;
    margin: 0;
    color: #b8b8b8;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-contact-list {
    display: grid;
    gap: 13px;
}

.footer-contact-list a,
.footer-contact-list p {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0;
    color: #b8b8b8;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.footer-contact-list a:hover {
    color: #fff;
}

.footer-contact-list i {
    width: 18px;
    flex: 0 0 18px;
    margin-top: 4px;
    color: var(--primary-color);
    text-align: center;
}

.site-footer .socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer .socials a {
    width: 42px;
    height: 42px;
    margin: 0;
    border: 1px solid #303030;
    border-radius: 50%;
    color: #fff;
    transition: background 0.25s ease, border-color 0.25s ease,
        transform 0.25s ease;
}

.site-footer .socials a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 55px;
    padding-top: 22px;
    padding-bottom: 22px;
    border-top: 1px solid #222;
    font-size: 0.88rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #fff;
}

@media (max-width: 900px) {
    .site-footer {
        padding-top: 58px;
    }

    .site-footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 32px;
    }
}

@media (max-width: 620px) {
    .site-footer {
        padding-top: 44px;
        text-align: left;
    }

    .site-footer .footer-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-column {
        padding: 24px 0;
        border-bottom: 1px solid #222;
    }

    .footer-brand-column {
        padding-top: 0;
    }

    .footer-social-column {
        padding-bottom: 4px;
        border-bottom: 0;
    }

    .footer-logo {
        margin-bottom: 16px;
    }

    .footer-logo img {
        max-width: 150px;
        height: 46px;
    }

    .footer-description {
        max-width: none;
        font-size: 0.93rem;
        line-height: 1.7;
    }

    .footer-column h4 {
        margin-bottom: 15px;
    }

    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 20px;
    }

    .footer-links a {
        min-height: 40px;
        display: flex;
        align-items: center;
    }

    .footer-contact-list {
        gap: 15px;
    }

    .footer-contact-list a,
    .footer-contact-list p {
        min-height: 42px;
        align-items: center;
    }

    .site-footer .socials {
        justify-content: flex-start;
        gap: 12px;
    }

    .site-footer .socials a {
        width: 46px;
        height: 46px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
        margin-top: 28px;
        padding-top: 20px;
        padding-bottom: 24px;
        text-align: left;
    }
}

@media (max-width: 390px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .site-footer .socials {
        gap: 9px;
    }

    .site-footer .socials a {
        width: 43px;
        height: 43px;
    }
}


/* Logo and company-name visibility */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand .brand-name {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 1.4px;
    line-height: 1.1;
    white-space: nowrap;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
}

.footer-logo h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.25;
}

@media (max-width: 900px) {
    .brand {
        gap: 9px;
        max-width: calc(100% - 58px);
    }

    .brand img {
        height: 40px;
        max-width: 110px;
        flex-shrink: 0;
    }

    .brand .brand-name {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.92rem;
        letter-spacing: 0.8px;
    }
}

@media (max-width: 480px) {
    .brand img {
        height: 36px;
        max-width: 82px;
    }

    .brand .brand-name {
        max-width: 145px;
        font-size: 0.8rem;
        white-space: normal;
    }

    .footer-logo {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .footer-logo h3 {
        font-size: 1rem;
    }
}

/* Responsive brand and social-media refinements */
.brand,
.footer-logo {
    min-width: 0;
}

.brand img,
.footer-logo img {
    display: block;
    width: auto;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand .brand-name,
.footer-logo h3 {
    overflow-wrap: anywhere;
    word-break: normal;
}

.site-footer .socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

@media (min-width: 1201px) {
    .brand img {
        max-width: 150px;
        height: 46px;
    }

    .brand .brand-name {
        max-width: 260px;
        font-size: 1rem;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .nav-inner {
        gap: 18px;
    }

    .brand {
        flex: 1 1 auto;
        max-width: 300px;
    }

    .brand img {
        height: 40px;
        max-width: 105px;
    }

    .brand .brand-name {
        max-width: 175px;
        font-size: 0.88rem;
        letter-spacing: 0.65px;
        white-space: normal;
    }

    .nav-links {
        gap: 18px;
    }
}

@media (max-width: 900px) {
    .nav-inner {
        min-height: 72px;
    }

    .brand {
        flex: 1 1 auto;
        max-width: calc(100% - 64px);
    }

    .brand img {
        width: auto;
        height: 38px;
        max-width: 96px;
    }

    .brand .brand-name {
        display: -webkit-box;
        max-width: none;
        overflow: hidden;
        font-size: 0.86rem;
        line-height: 1.18;
        letter-spacing: 0.55px;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .menu-btn {
        flex: 0 0 46px;
        width: 46px;
        height: 46px;
    }

    .footer-logo {
        max-width: 100%;
    }

    .footer-logo img {
        max-width: 130px;
        height: 44px;
    }
}

@media (max-width: 620px) {
    .nav-inner {
        min-height: 66px;
    }

    .brand {
        gap: 8px;
        max-width: calc(100% - 54px);
    }

    .brand img {
        height: 34px;
        max-width: 76px;
    }

    .brand .brand-name {
        font-size: 0.77rem;
        letter-spacing: 0.35px;
    }

    .menu-btn {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .footer-logo {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        text-align: left;
    }

    .footer-logo img {
        max-width: 96px;
        height: 40px;
    }

    .footer-logo h3 {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 0.98rem;
    }

    .footer-social-column .socials {
        display: grid;
        grid-template-columns: repeat(6, 46px);
        gap: 10px;
        justify-content: start;
    }
}

@media (max-width: 390px) {
    .brand img {
        height: 31px;
        max-width: 64px;
    }

    .brand .brand-name {
        font-size: 0.71rem;
        line-height: 1.12;
    }

    .footer-logo {
        align-items: flex-start;
    }

    .footer-logo img {
        max-width: 82px;
        height: 36px;
    }

    .footer-social-column .socials {
        grid-template-columns: repeat(3, 44px);
    }
}

@media (max-width: 330px) {
    .brand .brand-name {
        display: none;
    }

    .brand img {
        max-width: 92px;
    }
}

/* =====================================================
   PROFESSIONAL FULL-VEHICLE IMAGE PRESENTATION
   Keeps portrait vehicle uploads fully visible, including
   the wheels, lower bumper and ground beneath the car.
===================================================== */
.car-image-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 340px;
    padding: 10px;
    overflow: hidden;
    background:
        linear-gradient(180deg, #f7f7f7 0%, #ececea 70%, #dfdfdc 100%);
    border-bottom: 1px solid #e5e5e5;
}

.car-image-wrap > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
    transform: none !important;
    transition: filter .3s ease, opacity .3s ease;
}

.car-card:hover .car-image-wrap > img {
    transform: none !important;
    filter: contrast(1.02) saturate(1.02);
}

/* Inventory receives a taller showroom frame because it has more width. */
.inventory-grid .car-image-wrap {
    height: 430px;
    padding: 12px;
}

/* Keep card proportions balanced and prevent details from being squeezed. */
.car-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.car-card .car-body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.car-card .card-bottom {
    margin-top: auto;
}

@media (min-width: 1400px) {
    .car-image-wrap {
        height: 370px;
    }

    .inventory-grid .car-image-wrap {
        height: 460px;
    }
}

@media (max-width: 1100px) {
    .car-image-wrap,
    .inventory-grid .car-image-wrap {
        height: 390px;
    }
}

@media (max-width: 820px) {
    .car-image-wrap,
    .inventory-grid .car-image-wrap {
        height: 410px;
    }
}

@media (max-width: 620px) {
    .car-image-wrap,
    .inventory-grid .car-image-wrap {
        height: min(118vw, 500px);
        min-height: 360px;
        padding: 8px;
    }
}

@media (max-width: 390px) {
    .car-image-wrap,
    .inventory-grid .car-image-wrap {
        height: 390px;
        min-height: 0;
    }
}

/* =========================================================
   RESPONSIVE VEHICLE OVERVIEW / DETAILS PAGE
   ========================================================= */
.detail-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
    color: #5f6368;
    font-weight: 600;
    text-decoration: none;
}

.detail-back-link:hover {
    color: var(--primary-color);
}

.detail-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.detail-title-group {
    min-width: 0;
}

.detail-price {
    flex: 0 0 auto;
    color: var(--primary-color);
    line-height: 1.15;
    text-align: right;
}

.vehicle-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 1rem;
    align-items: stretch;
}

.vehicle-gallery-main {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-width: 0;
    height: clamp(430px, 52vw, 680px);
    padding: clamp(1rem, 2.5vw, 2.25rem);
    overflow: hidden;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    background: linear-gradient(180deg, #fafafa 0%, #ededed 100%);
}

.vehicle-gallery-main img,
.vehicle-gallery-main #mainCarImage {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    transform: none !important;
}

.vehicle-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    max-height: clamp(430px, 52vw, 680px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.vehicle-thumbnail {
    flex: 0 0 88px;
    width: 100%;
    min-width: 0;
    height: 88px;
    padding: 0.45rem;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #f2f2f2;
    cursor: pointer;
}

.vehicle-thumbnail.active,
.vehicle-thumbnail:hover {
    border-color: var(--primary-color);
}

.vehicle-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

.vehicle-overview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.vehicle-overview-content,
.vehicle-overview-sidebar {
    min-width: 0;
}

.overview-heading {
    margin-bottom: 1.5rem;
}

.overview-heading h2 {
    margin: 0;
}

.overview-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 0 0 3rem;
}

.overview-spec-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    min-width: 0;
    padding: 1rem;
    border: 1px solid #e6e6e6;
    border-radius: 13px;
    background: #fff;
}

.overview-spec-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 10px;
    background: rgba(193, 18, 31, 0.09);
    color: var(--primary-color);
}

.overview-spec-card > div {
    min-width: 0;
}

.overview-spec-label {
    display: block;
    margin-bottom: 0.18rem;
    color: #777;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.overview-spec-card strong {
    display: block;
    overflow-wrap: anywhere;
    color: #161616;
    font-size: 0.98rem;
}

.overview-copy-block + .overview-copy-block {
    margin-top: 2.75rem;
}

.overview-copy-block h2 {
    margin-bottom: 1rem;
}

.overview-features span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
}

.vehicle-overview-sidebar {
    position: sticky;
    top: 100px;
}

.responsive-finance-card {
    position: static;
    top: auto;
    margin: 0 0 1rem;
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
}

.responsive-finance-card .eyebrow {
    color: #d1d1d1;
}

.finance-field + .finance-field {
    margin-top: 1rem;
}

.responsive-finance-card input,
.responsive-finance-card select {
    width: 100%;
    min-width: 0;
    margin-top: 0.45rem;
}

.vehicle-whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.vehicle-forms-grid {
    align-items: stretch;
}

.vehicle-forms-grid .premium-form {
    min-width: 0;
    height: 100%;
    border-radius: 16px;
}

.vehicle-forms-grid input,
.vehicle-forms-grid select,
.vehicle-forms-grid textarea {
    width: 100%;
    min-width: 0;
}

@media (max-width: 1100px) {
    .vehicle-overview-layout {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
        gap: 2rem;
    }

    .vehicle-gallery {
        grid-template-columns: minmax(0, 1fr) 104px;
    }
}

@media (max-width: 900px) {
    .detail-head-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .detail-price {
        text-align: left;
    }

    .vehicle-gallery {
        grid-template-columns: 1fr;
    }

    .vehicle-gallery-main {
        height: clamp(360px, 68vw, 560px);
    }

    .vehicle-thumbnails {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.35rem;
        scroll-snap-type: x proximity;
    }

    .vehicle-thumbnail {
        flex: 0 0 105px;
        width: 105px;
        height: 78px;
        scroll-snap-align: start;
    }

    .vehicle-overview-layout {
        grid-template-columns: 1fr;
    }

    .vehicle-overview-sidebar {
        position: static;
    }

    .responsive-finance-card {
        max-width: none;
    }

    .vehicle-forms-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .detail-head {
        padding-top: 110px;
    }

    .detail-head h1 {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
        overflow-wrap: anywhere;
    }

    .detail-price {
        font-size: clamp(1.35rem, 7vw, 1.85rem);
    }

    .vehicle-gallery-main {
        height: clamp(300px, 88vw, 440px);
        padding: 0.75rem;
        border-radius: 13px;
    }

    .vehicle-thumbnail {
        flex-basis: 88px;
        width: 88px;
        height: 68px;
    }

    .overview-spec-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        margin-bottom: 2.25rem;
    }

    .overview-spec-card {
        padding: 0.85rem;
    }

    .overview-features {
        display: grid;
        grid-template-columns: 1fr;
    }

    .overview-features span {
        width: 100%;
        border-radius: 10px;
    }

    .responsive-finance-card,
    .vehicle-forms-grid .premium-form {
        padding: 1.25rem;
        border-radius: 13px;
    }

    .estimate {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.4rem;
    }

    .vehicle-contact-section .container {
        width: min(100% - 20px, 1180px);
    }
}

@media (max-width: 390px) {
    .vehicle-gallery-main {
        height: 290px;
    }

    .overview-spec-card {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .overview-spec-icon {
        width: 36px;
        height: 36px;
    }
}

/* =========================================================
   COMPACT VEHICLE OVERVIEW + RESPONSIVE SPECIFICATION GRID
   ========================================================= */
.vehicle-gallery-main {
    height: clamp(320px, 40vw, 500px);
    padding: clamp(0.75rem, 1.8vw, 1.5rem);
}

.vehicle-thumbnails {
    max-height: clamp(320px, 40vw, 500px);
}

.vehicle-overview-section {
    padding-top: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.overview-spec-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 2.25rem;
}

.overview-spec-card {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.8rem;
    border-radius: 11px;
}

.overview-spec-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 0.88rem;
}

.overview-spec-label {
    font-size: 0.7rem;
}

.overview-spec-card strong {
    font-size: 0.9rem;
    line-height: 1.25;
}

@media (max-width: 1100px) {
    .vehicle-gallery-main {
        height: clamp(300px, 46vw, 440px);
    }

    .vehicle-thumbnails {
        max-height: clamp(300px, 46vw, 440px);
    }
}

@media (max-width: 900px) {
    .vehicle-gallery-main {
        height: clamp(280px, 58vw, 400px);
    }

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

@media (max-width: 620px) {
    .detail-head h1 {
        font-size: clamp(1.9rem, 9vw, 2.8rem);
    }

    .vehicle-gallery-main {
        height: clamp(240px, 68vw, 330px);
        padding: 0.55rem;
    }

    .overview-spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
        margin-bottom: 1.8rem;
    }

    .overview-spec-card {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 0.5rem;
        padding: 0.65rem;
        border-radius: 9px;
    }

    .overview-spec-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 0.78rem;
    }

    .overview-spec-label {
        font-size: 0.62rem;
        letter-spacing: 0.04em;
    }

    .overview-spec-card strong {
        font-size: 0.8rem;
    }
}

@media (max-width: 390px) {
    .vehicle-gallery-main {
        height: 235px;
    }

    .overview-spec-grid {
        gap: 0.45rem;
    }

    .overview-spec-card {
        grid-template-columns: 1fr;
        align-content: start;
    }

    .overview-spec-icon {
        margin-bottom: 0.1rem;
    }
}

/* ==========================================================
   SOADWA MOTORS V2 — CONSOLIDATED RESPONSIVE POLISH
   ========================================================== */
html, body { max-width: 100%; overflow-x: clip; }
.container { width: min(1240px, calc(100% - 40px)); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: auto; height: 46px; max-width: 88px; flex: 0 0 auto; }
.brand-name { min-width: 0; color: #fff; line-height: 1.15; letter-spacing: .06em; }

.car-grid { align-items: stretch; }
.car-card { display: flex; min-width: 0; flex-direction: column; border-radius: 18px; border: 1px solid #ececea; }
.car-card:hover { transform: translateY(-5px); }
.car-image-wrap {
    height: auto;
    min-height: 260px;
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: end center;
    padding: 18px 18px 12px;
    background: linear-gradient(180deg, #f8f8f7 0%, #ececea 100%);
}
.car-image-wrap > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 14px 12px rgba(0, 0, 0, .13));
    transform: none !important;
}
.car-body { display: flex; flex: 1; flex-direction: column; }
.car-body h3 { overflow-wrap: anywhere; }
.spec-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spec-row span { min-width: 0; overflow-wrap: anywhere; }
.card-bottom { margin-top: auto; gap: 16px; }
.card-bottom strong { white-space: nowrap; }

.inventory-layout { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); }
.inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inventory-grid .car-image-wrap { min-height: 300px; aspect-ratio: 4 / 3; }

.detail-head-row { gap: 24px; }
.detail-title-group { min-width: 0; }
.detail-price { white-space: nowrap; }
.vehicle-gallery { width: min(1120px, calc(100% - 40px)); }
.vehicle-gallery-main {
    height: clamp(360px, 48vw, 590px);
    display: grid;
    place-items: end center;
    padding: 24px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8f8f7 0%, #e9e9e6 100%);
}
.vehicle-gallery-main img,
.vehicle-gallery-main #mainCarImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 18px 16px rgba(0, 0, 0, .15));
}
.vehicle-thumbnails { scrollbar-width: thin; }
.vehicle-thumbnail img { object-fit: contain; object-position: center; background: #f1f1ef; }
.vehicle-overview-layout { grid-template-columns: minmax(0, 1fr) minmax(290px, 350px); gap: clamp(28px, 4vw, 58px); }
.overview-spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.overview-spec-card { min-width: 0; }
.overview-spec-card strong { display: block; overflow-wrap: anywhere; }
.responsive-finance-card { position: sticky; top: 100px; }
.vehicle-forms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.socials { flex-wrap: wrap; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { width: auto; height: 48px; max-width: 90px; object-fit: contain; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; border-top: 1px solid #222; margin-top: 48px; }

@media (min-width: 1400px) {
    .car-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .inventory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
    .vehicle-overview-layout { grid-template-columns: minmax(0, 1fr) 310px; }
    .overview-spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .inventory-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 900px) {
    .container, .vehicle-gallery { width: min(100% - 32px, 760px); }
    .nav-inner { height: 74px; }
    .nav-links { top: 74px; max-height: calc(100vh - 74px); overflow-y: auto; }
    .brand img { height: 40px; max-width: 74px; }
    .brand-name { max-width: min(56vw, 340px); font-size: .96rem; }
    .inventory-layout, .vehicle-overview-layout { grid-template-columns: 1fr; }
    .filters, .responsive-finance-card { position: static; }
    .inventory-grid, .car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .inventory-grid .car-image-wrap, .car-image-wrap { min-height: 245px; }
    .overview-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vehicle-forms-grid { grid-template-columns: 1fr; }
    .vehicle-gallery-main { height: clamp(330px, 64vw, 500px); }
    .detail-head-row { align-items: flex-start; flex-direction: column; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .container, .vehicle-gallery { width: min(100% - 24px, 560px); }
    .section { padding: 64px 0; }
    .brand { gap: 8px; letter-spacing: .03em; }
    .brand img { height: 35px; max-width: 58px; }
    .brand-name { max-width: 58vw; font-size: .78rem; }
    .hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .car-grid, .inventory-grid { grid-template-columns: 1fr; }
    .car-image-wrap, .inventory-grid .car-image-wrap { min-height: 260px; aspect-ratio: 4 / 3; padding: 12px; }
    .spec-row { gap: 6px; font-size: .69rem; }
    .card-bottom { align-items: flex-start; flex-direction: column; }
    .card-bottom a { width: 100%; padding-top: 4px; }
    .vehicle-gallery-main { height: clamp(280px, 82vw, 420px); padding: 12px; border-radius: 14px; }
    .overview-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .overview-spec-card { padding: 14px 10px; }
    .overview-spec-icon { width: 34px; height: 34px; }
    .premium-form { padding: 24px 18px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 350px) {
    .overview-spec-grid { grid-template-columns: 1fr; }
    .brand-name { max-width: 52vw; }
}


/* ==========================================================
   V2.1 VEHICLE PHOTO PRESENTATION
   Portrait phone photos use a softly blurred background layer
   while the complete original vehicle remains visible above it.
   ========================================================== */
.car-image-wrap,
.vehicle-gallery-main {
    isolation: isolate;
    position: relative;
    overflow: hidden;
    background: #e9e9e7;
}

.car-image-wrap::before,
.vehicle-gallery-main::before {
    content: "";
    position: absolute;
    inset: -18px;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, .34), rgba(245, 245, 243, .48)),
        var(--vehicle-image);
    background-position: center;
    background-size: cover;
    filter: blur(18px) saturate(.72);
    transform: scale(1.08);
    opacity: .72;
}

.car-image-wrap::after,
.vehicle-gallery-main::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, .20) 0%,
        rgba(255, 255, 255, .06) 55%,
        rgba(20, 20, 20, .12) 100%
    );
    pointer-events: none;
}

.car-image-wrap {
    height: 360px;
    min-height: 0;
    aspect-ratio: auto;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inventory-grid .car-image-wrap {
    height: 400px;
    min-height: 0;
    aspect-ratio: auto;
}

.car-image-wrap > img {
    position: relative;
    z-index: 1;
    width: auto;
    height: auto;
    max-width: 96%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .20);
    filter: none;
    transform: none !important;
}

.car-card:hover .car-image-wrap > img {
    transform: none !important;
    filter: none;
}

.vehicle-gallery-main {
    height: clamp(430px, 58vw, 680px);
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-gallery-main img,
.vehicle-gallery-main #mainCarImage {
    position: relative;
    z-index: 1;
    width: auto;
    height: auto;
    max-width: 96%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 22px 42px rgba(0, 0, 0, .22);
    filter: none;
}

.badge,
.favorite-btn,
.compare-check {
    z-index: 3;
}

@media (min-width: 1400px) {
    .car-image-wrap { height: 380px; }
    .inventory-grid .car-image-wrap { height: 430px; }
}

@media (max-width: 1100px) {
    .car-image-wrap,
    .inventory-grid .car-image-wrap { height: 380px; }
    .vehicle-gallery-main { height: clamp(420px, 60vw, 600px); }
}

@media (max-width: 900px) {
    .car-image-wrap,
    .inventory-grid .car-image-wrap { height: 360px; }
    .vehicle-gallery-main { height: clamp(390px, 76vw, 560px); }
}

@media (max-width: 620px) {
    .car-image-wrap,
    .inventory-grid .car-image-wrap {
        height: clamp(350px, 112vw, 500px);
        padding: 9px;
    }
    .car-image-wrap > img { max-width: 98%; border-radius: 8px; }
    .vehicle-gallery-main {
        height: clamp(390px, 122vw, 570px);
        padding: 10px;
    }
    .vehicle-gallery-main img,
    .vehicle-gallery-main #mainCarImage {
        max-width: 98%;
        border-radius: 9px;
    }
}

@media (max-width: 360px) {
    .car-image-wrap,
    .inventory-grid .car-image-wrap { height: 370px; }
    .vehicle-gallery-main { height: 410px; }
}

/* ==========================================================
   VEHICLE IMAGE PRESENTATION — PORTRAIT PHOTO OPTIMIZATION
   Keeps the vehicle large and visible while removing excess sky.
   ========================================================== */
.car-image-wrap {
    min-height: 320px;
    aspect-ratio: 4 / 3;
    padding: 0;
    overflow: hidden;
    background: #ececea;
}

.car-image-wrap > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 72%;
    filter: none;
    transform: scale(1.01) !important;
    transition: transform 0.35s ease;
}

.car-card:hover .car-image-wrap > img {
    transform: scale(1.035) !important;
}

/* Inventory photos receive slightly more vertical room. */
.inventory-grid .car-image-wrap {
    min-height: 360px;
    aspect-ratio: 5 / 4;
}

/* Details gallery keeps the complete original photograph visible. */
.vehicle-gallery {
    width: min(980px, calc(100% - 40px));
}

.vehicle-gallery-main {
    height: clamp(430px, 58vw, 650px);
    padding: 10px;
    place-items: center;
    background: #ececea;
}

.vehicle-gallery-main img,
.vehicle-gallery-main #mainCarImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: none;
}

.vehicle-thumbnail img {
    object-fit: cover;
    object-position: center 70%;
}

@media (max-width: 1100px) {
    .car-image-wrap {
        min-height: 300px;
    }

    .inventory-grid .car-image-wrap {
        min-height: 330px;
    }
}

@media (max-width: 900px) {
    .car-image-wrap,
    .inventory-grid .car-image-wrap {
        min-height: 320px;
        aspect-ratio: 4 / 3;
    }

    .vehicle-gallery-main {
        height: clamp(400px, 74vw, 590px);
    }
}

@media (max-width: 620px) {
    .car-image-wrap,
    .inventory-grid .car-image-wrap {
        min-height: 300px;
        aspect-ratio: 4 / 3;
    }

    .car-image-wrap > img {
        object-position: center 70%;
    }

    .vehicle-gallery {
        width: min(100% - 24px, 560px);
    }

    .vehicle-gallery-main {
        height: clamp(360px, 112vw, 520px);
        padding: 8px;
    }
}

@media (max-width: 390px) {
    .car-image-wrap,
    .inventory-grid .car-image-wrap {
        min-height: 275px;
    }

    .vehicle-gallery-main {
        height: 390px;
    }
}
