/* =========================================================
   HEMTABAD CAR LAB
   CARS / SHOWROOM PAGE
   File: style/cars.css
========================================================= */


/* =========================================================
   CARS HERO
========================================================= */

.cars-hero {
    position: relative;
    min-height: 390px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #0f172a 0%,
            #172554 55%,
            #0c4a6e 100%
        );
}


.cars-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(14, 165, 233, 0.22),
            transparent 32%
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(37, 99, 235, 0.12),
            transparent 30%
        );
}


.cars-hero .container {
    position: relative;
    z-index: 2;
}


.cars-hero-content {
    max-width: 700px;
    padding: 75px 0;
}


.cars-badge {
    display: inline-flex;

    align-items: center;
    gap: 8px;

    margin-bottom: 20px;
    padding: 8px 14px;

    border: 1px solid rgba(255, 255, 255, 0.16);

    border-radius: 50px;

    color: #bfdbfe;

    background: rgba(255, 255, 255, 0.07);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;
}


.cars-badge i {
    color: #38bdf8;
}


.cars-hero h1 {
    margin: 0 0 18px;

    color: #ffffff;

    font-size: clamp(45px, 7vw, 68px);

    line-height: 1;

    font-weight: 800;

    letter-spacing: -2.5px;
}


.cars-hero h1 span {
    display: inline-block;

    color: #38bdf8;
}


.cars-hero-content p {
    max-width: 580px;

    margin: 0;

    color: #cbd5e1;

    font-size: 15px;

    line-height: 1.8;
}


/* =========================================================
   FILTER SECTION
========================================================= */

.cars-filter-section {
    position: relative;

    z-index: 5;

    margin-top: -45px;
}


.cars-filter-card {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 16px;

    border: 1px solid var(--border);

    border-radius: 16px;

    background: #ffffff;

    box-shadow: var(--shadow);
}


/* =========================================================
   SEARCH
========================================================= */

.cars-search {
    position: relative;

    flex: 1;

    min-width: 240px;
}


.cars-search i {
    position: absolute;

    top: 50%;
    left: 14px;

    transform: translateY(-50%);

    color: #94a3b8;

    font-size: 14px;

    pointer-events: none;
}


.cars-search input {
    width: 100%;
    height: 45px;

    padding: 0 15px 0 42px;

    border: 1px solid var(--border);

    border-radius: 10px;

    outline: none;

    color: var(--text);

    background: #f8fafc;

    font-family: inherit;

    font-size: 12px;

    transition: 0.2s ease;
}


.cars-search input::placeholder {
    color: #94a3b8;
}


.cars-search input:hover {
    background: #ffffff;
}


.cars-search input:focus {
    border-color: #93c5fd;

    background: #ffffff;

    box-shadow:
        0 0 0 3px
        rgba(13, 110, 253, 0.08);
}


/* =========================================================
   FILTER CONTROLS
========================================================= */

.cars-filter {
    display: flex;

    align-items: center;

    gap: 8px;
}


.cars-filter select {
    height: 45px;

    min-width: 145px;

    padding: 0 12px;

    border: 1px solid var(--border);

    border-radius: 10px;

    outline: none;

    color: var(--text);

    background: #ffffff;

    font-family: inherit;

    font-size: 11px;

    cursor: pointer;

    transition: 0.2s ease;
}


.cars-filter select:hover {
    border-color: #cbd5e1;
}


.cars-filter select:focus {
    border-color: #93c5fd;

    box-shadow:
        0 0 0 3px
        rgba(13, 110, 253, 0.08);
}


/* =========================================================
   CLEAR BUTTON
========================================================= */

.cars-filter #clearCarFilters {
    height: 45px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    white-space: nowrap;

    cursor: pointer;
}


/* =========================================================
   CARS SECTION
========================================================= */

.cars-section {
    padding-top: 60px;
}


.cars-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;
}


.cars-heading .section-title {
    margin-bottom: 0;
}


.cars-result-count {
    color: var(--muted);

    font-size: 12px;

    white-space: nowrap;
}


.cars-result-count strong {
    color: var(--primary);

    font-weight: 800;
}


/* =========================================================
   CARS GRID
========================================================= */

.cars-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   CAR CARD
========================================================= */

.car-card {
    position: relative;

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: 16px;

    background: #ffffff;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.car-card:hover {
    transform: translateY(-6px);

    border-color: #bfdbfe;

    box-shadow:
        0 18px 40px
        rgba(15, 23, 42, 0.10);
}


/* =========================================================
   CAR IMAGE
========================================================= */

.car-image {
    position: relative;

    height: 220px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #e2e8f0,
            #f8fafc
        );
}


.car-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #94a3b8;

    font-size: 70px;

    background:
        radial-gradient(
            circle at center,
            #ffffff 0%,
            #f1f5f9 55%,
            #e2e8f0 100%
        );

    transition:
        transform 0.35s ease;
}


.car-card:hover .car-placeholder {
    transform: scale(1.04);
}


.car-status {
    position: absolute;

    top: 13px;
    left: 13px;

    display: inline-flex;

    align-items: center;

    padding: 6px 10px;

    border-radius: 50px;

    color: #166534;

    background: #dcfce7;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.4px;

    text-transform: uppercase;
}


/* =========================================================
   CAR CONTENT
========================================================= */

.car-content {
    padding: 20px;
}


.car-brand {
    margin-bottom: 5px;

    color: var(--primary);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.7px;

    text-transform: uppercase;
}


.car-content h3 {
    margin: 0 0 15px;

    color: var(--dark);

    font-size: 21px;

    line-height: 1.25;

    font-weight: 800;
}


/* =========================================================
   CAR SPECS
========================================================= */

.car-specs {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    padding-bottom: 17px;

    border-bottom: 1px solid var(--border);
}


.car-specs span {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 6px 8px;

    border-radius: 7px;

    color: var(--muted);

    background: #f8fafc;

    font-size: 10px;

    white-space: nowrap;
}


.car-specs i {
    color: var(--primary);

    font-size: 11px;
}


/* =========================================================
   CAR BOTTOM
========================================================= */

.car-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding-top: 17px;
}


.car-bottom small {
    display: block;

    margin-bottom: 3px;

    color: #94a3b8;

    font-size: 9px;

    line-height: 1.4;
}


.car-bottom strong {
    display: block;

    color: var(--dark);

    font-size: 12px;

    line-height: 1.4;
}


/* =========================================================
   ENQUIRY BUTTON
========================================================= */

.car-enquiry {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    padding: 9px 12px;

    border-radius: 9px;

    color: #ffffff;

    background: var(--primary);

    text-decoration: none;

    font-size: 10px;

    font-weight: 700;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.car-enquiry:hover {
    color: #ffffff;

    background: #0b5ed7;

    transform: translateY(-1px);
}


.car-enquiry i {
    font-size: 11px;
}


/* =========================================================
   NO RESULT
========================================================= */

.cars-no-result {
    display: none;

    margin-top: 20px;

    padding: 60px 20px;

    border: 1px dashed #cbd5e1;

    border-radius: 16px;

    color: var(--muted);

    background: #f8fafc;

    text-align: center;
}


.cars-no-result i {
    display: block;

    margin-bottom: 12px;

    color: #94a3b8;

    font-size: 42px;
}


.cars-no-result h3 {
    margin: 0 0 6px;

    color: var(--dark);

    font-size: 18px;
}


.cars-no-result p {
    margin: 0;

    font-size: 12px;
}


/* =========================================================
   CTA SECTION
========================================================= */

.cars-cta-section {
    padding-top: 30px;
}


.cars-cta {
    display: flex;

    align-items: center;

    gap: 20px;

    padding: 32px;

    border-radius: 20px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #0d6efd,
            #0ea5e9
        );

    box-shadow:
        0 18px 40px
        rgba(13, 110, 253, 0.16);
}


.cars-cta-icon {
    width: 60px;
    height: 60px;

    flex: 0 0 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.14);

    font-size: 25px;
}


.cars-cta-content {
    flex: 1;
}


.cars-cta-content span {
    display: block;

    margin-bottom: 6px;

    color: rgba(255, 255, 255, 0.75);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;
}


.cars-cta-content h2 {
    margin: 0 0 7px;

    color: #ffffff;

    font-size: 24px;

    line-height: 1.25;

    font-weight: 800;
}


.cars-cta-content p {
    max-width: 650px;

    margin: 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 12px;

    line-height: 1.7;
}


.cars-cta-actions {
    display: flex;

    align-items: center;

    gap: 8px;

    flex-shrink: 0;
}


.cars-cta-actions .btn-light {
    color: #0d6efd;

    background: #ffffff;

    border-color: #ffffff;
}


.cars-cta-actions .btn-light:hover {
    color: #0b5ed7;

    background: #f8fafc;
}


.cars-cta-actions .btn-whatsapp {
    color: #ffffff;

    background: #25d366;

    border-color: #25d366;
}


.cars-cta-actions .btn-whatsapp:hover {
    color: #ffffff;

    background: #1da851;

    border-color: #1da851;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .cars-filter-card {
        flex-direction: column;

        align-items: stretch;
    }


    .cars-search {
        width: 100%;

        min-width: 0;
    }


    .cars-filter {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .cars-filter select {
        width: 100%;

        min-width: 0;
    }


    .cars-filter #clearCarFilters {
        width: 100%;
    }


    .cars-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .cars-hero {
        min-height: 340px;
    }


    .cars-hero-content {
        padding: 60px 0 75px;
    }


    .cars-hero h1 {
        font-size: 45px;

        letter-spacing: -1.5px;
    }


    .cars-hero-content p {
        font-size: 13px;
    }


    .cars-filter-section {
        margin-top: -35px;
    }


    .cars-filter {
        grid-template-columns: 1fr;
    }


    .cars-section {
        padding-top: 45px;
    }


    .cars-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }


    .cars-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }


    .cars-cta {
        align-items: flex-start;

        flex-direction: column;

        padding: 25px;
    }


    .cars-cta-actions {
        width: 100%;

        flex-direction: column;
    }


    .cars-cta-actions .btn {
        width: 100%;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 500px) {

    .cars-hero h1 {
        font-size: 40px;
    }


    .cars-filter-card {
        padding: 12px;

        border-radius: 14px;
    }


    .car-image {
        height: 200px;
    }


    .car-content {
        padding: 17px;
    }


    .car-content h3 {
        font-size: 19px;
    }


    .car-bottom {
        align-items: flex-end;
    }


    .cars-cta-content h2 {
        font-size: 21px;
    }

}


/* =========================================================
   EXTRA SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .cars-hero h1 {
        font-size: 36px;
    }


    .cars-badge {
        font-size: 9px;

        padding: 7px 11px;
    }


    .car-specs {
        gap: 4px;
    }


    .car-specs span {
        font-size: 9px;

        padding: 5px 6px;
    }


    .car-bottom {
        gap: 7px;
    }


    .car-bottom strong {
        font-size: 10px;
    }


    .car-enquiry {
        padding: 8px 9px;

        font-size: 9px;
    }

}
/* =========================================================
   CAR IMAGE
========================================================= */

.car-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition:
        transform 0.35s ease;
}

.car-card:hover .car-image img {
    transform: scale(1.04);
}


/* =========================================================
   FEATURED BADGE
========================================================= */

.car-featured {
    position: absolute;

    top: 13px;
    right: 13px;

    display: inline-flex;

    align-items: center;
    gap: 5px;

    padding: 6px 10px;

    border-radius: 50px;

    color: #92400e;

    background: #fef3c7;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.3px;
}

.car-featured i {
    font-size: 9px;
}


/* =========================================================
   CAR VARIANT
========================================================= */

.car-variant {
    margin-top: -9px;
    margin-bottom: 14px;

    color: var(--muted);

    font-size: 10px;

    line-height: 1.5;
}


/* =========================================================
   EXTRA CAR SPECS
========================================================= */

.car-extra-specs {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    padding-top: 12px;
}

.car-extra-specs span {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: var(--muted);

    font-size: 9px;

    white-space: nowrap;
}

.car-extra-specs i {
    color: var(--primary);

    font-size: 10px;
}


/* =========================================================
   OFFER PRICE
========================================================= */

.car-bottom del {
    display: block;

    margin-top: 2px;

    color: #94a3b8;

    font-size: 9px;
}


/* =========================================================
   NO IMAGE
========================================================= */

.car-placeholder {
    cursor: default;
}


/* =========================================================
   MOBILE IMAGE
========================================================= */

@media (max-width: 700px) {

    .car-image img {
        object-fit: cover;
    }

}