/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0d5c4b;
    --primary-dark: #073d32;
    --accent: #d9a441;
    --dark: #101817;
    --text: #27312f;
    --muted: #75817e;
    --light: #f5f7f6;
    --white: #ffffff;
    --border: #e3e8e6;
    --success: #16835d;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: "Manrope", sans-serif;
    justify-content: center;
    align-items: center;
}

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

button,
select,
input {
    font: inherit;
}


/* =========================================
   CONTAINER
========================================= */

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


/* =========================================
   HEADER
========================================= */

.header {
    height: 82px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    height: 60px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding-right: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Manrope", sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: var(--dark);
}

.logo > span:last-child > span {
    color: var(--primary);
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 800;
}
.logo-icon img{
    height: 50px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: auto;
}

.nav a {
    font-size: 14px;
    font-weight: 600;
    color: #53605d;
    transition: .25s;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
    background-color: #073d32;
    padding: 10px 20px;
    border-radius: 10px;
    color: var(--white);
    font-weight: bolder;
}

.nav-btn {
    background: var(--primary);
    color: white;
    padding: 13px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: .25s;
}

.nav-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.menu-btn {
    display: none;
    border: 0;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
}


/* =========================================
   EYEBROW
========================================= */

.eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 12px;
}


/* =========================================
   PAGE HERO
========================================= */

.page-hero {
    min-height: 500px;
    background:
        linear-gradient(
            90deg,
            rgba(5, 42, 35, .97),
            rgba(8, 65, 53, .86)
        ),
        url("assets/images/img4.jpg") center/cover;
    color: white;
    display: flex;
    align-items: center;
}

.page-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.page-hero h1 {
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 22px;
}

.page-hero h1 span {
    color: #d8eadf;
}

.page-hero p {
    max-width: 540px;
    color: #d0ded9;
    font-size: 17px;
}

.hero-stat {
    width: 170px;
    height: 170px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-stat strong {
    font-family: "Manrope";
    font-size: 38px;
}

.hero-stat span {
    font-size: 12px;
    color: #d0ded9;
}


/* =========================================
   VEHICLES SECTION
========================================= */

.vehicles-section {
    padding: 90px 0;
    background: #fff;
}

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

.section-heading h2 {
    font-size: 42px;
    letter-spacing: -2px;
}

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


/* =========================================
   FILTERS
========================================= */

.filter-box {
    background: var(--light);
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 12px;
    margin-bottom: 25px;
}

.search-wrapper {
    position: relative;
}

.search-wrapper span {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 23px;
    color: var(--muted);
}

.search-wrapper input,
.filter-box select {
    width: 100%;
    height: 50px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 0 15px;
    outline: none;
    color: var(--text);
}

.search-wrapper input {
    padding-left: 45px;
}

.search-wrapper input:focus,
.filter-box select:focus {
    border-color: var(--primary);
}
#priceFilter{
    display: none;
}

.clear-btn {
    border: 1px solid var(--border);
    background: white;
    border-radius: 7px;
    padding: 0 18px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
}

.clear-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}


/* =========================================
   RESULTS
========================================= */

.results-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0;
    color: var(--muted);
    font-size: 14px;
}

.sort-select {
    border: 0;
    background: transparent;
    font-weight: 600;
    color: var(--text);
    outline: none;
}


/* =========================================
   VEHICLE GRID
========================================= */

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

.vehicle-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: .3s ease;
}

.vehicle-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 50px rgba(0,0,0,.09);
}

.vehicle-image {
    height: 235px;
    background: #e9eeec;
    position: relative;
    overflow: hidden;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.05);
}

.vehicle-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    padding: 6px 11px;
    background: var(--primary);
    color: white;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
}

.favorite-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.95);
    cursor: pointer;
    font-size: 22px;
    color: #555;
}

.favorite-btn:hover {
    color: #d94d4d;
}


/* =========================================
   VEHICLE INFO
========================================= */

.vehicle-info {
    padding: 22px;
}

.vehicle-title {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 10px;
}

.vehicle-title small {
    color: var(--muted);
    font-size: 12px;
}

.vehicle-title h3 {
    font-size: 21px;
    margin-top: 3px;
}

.condition {
    color: var(--success);
    background: #e9f7f1;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
}

.specs {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    margin: 17px 0;
}

.specs span {
    display: none;
    font-size: 11px;
    color: var(--muted);
}

.price-row {
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.price-row small {
    display: block;
    color: var(--muted);
    font-size: 10px;
}

.price-row strong {
    display: block;
    color: var(--primary);
    font-size: 19px;
}

.price-row strong span {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
}

.details-btn {
    border: 0;
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}

.details-btn:hover {
    color: var(--primary-dark);
}


/* =========================================
   NO RESULTS
========================================= */

.no-results {
    display: none;
    text-align: center;
    padding: 80px 20px;
}

.no-results div {
    font-size: 45px;
    margin-bottom: 15px;
}

.no-results h3 {
    font-size: 25px;
    margin-bottom: 8px;
}

.no-results p {
    color: var(--muted);
}


/* =========================================
   CTA
========================================= */

.cta-section {
    background: var(--primary);
    color: white;
    padding: 80px 0;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.cta-content h2 {
    font-size: 45px;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 15px;
}

.cta-content p {
    color: #c8ded7;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn {
    padding: 15px 22px;
    border-radius: 7px;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
    transition: .25s;
}

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

.btn-white:hover {
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,.4);
    color: white;
}

.btn-outline:hover {
    background: rgba(255,255,255,.1);
}


/* =========================================
   FOOTER
========================================= */

.footer {
    background: #09251f;
    color: white;
    padding-top: 65px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 55px;
}

.logo-light {
    color: white;
}

.footer-brand p {
    max-width: 310px;
    color: #91a9a2;
    margin-top: 18px;
    font-size: 14px;
}

.footer h4 {
    margin-bottom: 18px;
    font-size: 14px;
}

.footer-grid > div:not(.footer-brand) a {
    display: block;
    color: #91a9a2;
    font-size: 13px;
    margin-bottom: 10px;
}

.footer-grid > div:not(.footer-brand) a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    color: #718b83;
    font-size: 12px;
}


/* =========================================
   MODAL
========================================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    z-index: 2;
    background: white;
    width: min(900px, 100%);
    max-height: 90vh;
    overflow: auto;
    border-radius: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    animation: modalIn .3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,.1);
    font-size: 25px;
    cursor: pointer;
    z-index: 5;
}

.modal-image {
    min-height: 480px;
}

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

.modal-details {
    padding: 50px 40px;
}

.modal-details h2 {
    font-size: 38px;
    margin-bottom: 15px;
}

.modal-details > p {
    color: var(--muted);
    margin-bottom: 30px;
}

.modal-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.modal-specs div {
    background: var(--light);
    padding: 14px;
    border-radius: 7px;
}

.modal-specs span,
.modal-specs strong {
    display: block;
}

.modal-specs span {
    color: var(--muted);
    font-size: 11px;
}

.modal-specs strong {
    font-size: 14px;
    margin-top: 3px;
}

.modal-price {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-bottom: 25px;
}

.modal-price span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.modal-price strong {
    display: block;
    color: var(--primary);
    font-size: 28px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    width: 100%;
    text-align: center;
}

.btn-primary:hover {
    background: var(--primary-dark);
}


/* =========================================
   FLOATING CONTACT
========================================= */

.floating-contact {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 500;
    background: #25d366;
    color: white;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 30px rgba(0,0,0,.2);
}

.floating-contact span {
    font-size: 25px;
}

.floating-contact small {
    display: none;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1050px) {

    .nav {
        gap: 15px;
    }

    .nav a {
        font-size: 12px;
    }

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

    .filter-box {
        grid-template-columns: 1fr 1fr;
    }

    .clear-btn {
        height: 50px;
    }
}


@media (max-width: 800px) {

    .header {
        height: 70px;
    }

    .nav,
    .nav-btn {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .nav.mobile-open {
        display: flex;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 15px 30px rgba(0,0,0,.08);
    }

    .page-hero {
        min-height: 450px;
    }

    .page-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-stat {
        width: 120px;
        height: 120px;
    }

    .hero-stat strong {
        font-size: 28px;
    }

    .section-heading {
        display: block;
    }

    .section-heading h2 {
        font-size: 35px;
        margin-bottom: 15px;
    }

    .cta-content {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .modal-content {
        grid-template-columns: 1fr;
    }

    .modal-image {
        min-height: 250px;
        max-height: 300px;
    }
}


@media (max-width: 600px) {

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

    .page-hero h1 {
        font-size: 43px;
    }

    .filter-box {
        grid-template-columns: 1fr;
    }

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

    .results-row {
        align-items: flex-start;
    }

    .cta-content h2 {
        font-size: 35px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        text-align: center;
        width: 100%;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .modal-details {
        padding: 35px 25px;
    }

    .modal-details h2 {
        font-size: 30px;
    }

}


