/* ==============================
   DRIVOXE - Cars Fleet Page
   Pixel-perfect from Figma
   ============================== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: #1A1A1A;
    background: #FFFFFF;
    line-height: 1.5;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 60px;
}

/* ==============================
   BUTTONS
   ============================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn--primary {
    background: #EF4444;
    color: #FFFFFF;
    border-radius: 50px;
}

.btn--primary:hover {
    background: #DC2626;
}

.btn--white {
    background: #FFFFFF;
    color: #EF4444;
    border-radius: 50px;
}

.btn--white:hover {
    background: #F8F8F8;
}

.btn--sm {
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 8px;
}

.btn--lg {
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
}

.btn--rent {
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 500;
}

/* ==============================
   NAVIGATION
   ============================== */
.navbar {
    background: #1A1A2E;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.navbar__logo {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.navbar__links {
    display: flex;
    gap: 40px;
}

.navbar__links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 400;
    transition: color 0.2s;
}

.navbar__links a:hover,
.navbar__links a.active {
    color: #FFFFFF;
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.navbar__login {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 400;
    transition: color 0.2s;
}

.navbar__login:hover {
    color: #FFFFFF;
}

/* ==============================
   HERO
   ============================== */
.hero {
    text-align: center;
    background: #FFFFFF;
}

.hero__breadcrumb {
    padding-top: 40px;
    font-size: 13px;
    font-weight: 500;
    color: #9CA3AF;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 40px;
    line-height: 1.15;
}

.hero__image {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

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

/* ==============================
   FLEET SECTION
   ============================== */
.fleet {
    padding: 50px 0 60px;
    background: #FFFFFF;
}

.fleet__layout {
    display: flex;
    gap: 40px;
}

.fleet__main {
    flex: 1;
    min-width: 0;
}

/* ==============================
   FILTER BAR
   ============================== */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.filter-bar__results {
    font-size: 15px;
    color: #9CA3AF;
    font-weight: 400;
}

.filter-bar__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.filter-bar__sort {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-bar__sort select {
    appearance: none;
    -webkit-appearance: none;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 10px 40px 10px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #1A1A1A;
    cursor: pointer;
    outline: none;
}

.filter-bar__chevron {
    position: absolute;
    right: 14px;
    pointer-events: none;
}

.filter-bar__search {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-bar__search input {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 10px 40px 10px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #1A1A1A;
    width: 220px;
    outline: none;
}

.filter-bar__search input::placeholder {
    color: #9CA3AF;
}

.filter-bar__search svg {
    position: absolute;
    right: 14px;
    pointer-events: none;
}

/* ==============================
   CAR GRID
   ============================== */
.car-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* ==============================
   CAR CARD
   ============================== */
.car-card {
    background: #F8F8F8;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.car-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.car-card__image {
    padding: 20px 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 185px;
    overflow: hidden;
}

.car-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.car-card__info {
    padding: 20px 24px 24px;
}

.car-card__name {
    font-size: 17px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 16px;
    line-height: 1.3;
}

.car-card__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.car-card__label {
    display: block;
    font-size: 13px;
    color: #9CA3AF;
    font-weight: 400;
    margin-bottom: 2px;
}

.car-card__amount {
    font-size: 22px;
    font-weight: 700;
    color: #1A1A1A;
}

/* Featured Card */
.car-card--featured {
    border: 3px solid #EF4444;
    background: #F8F8F8;
}

.car-card__bottom--featured {
    background: #EF4444;
    margin: 0 -24px -24px;
    padding: 20px 24px 24px;
    border-radius: 0 0 9px 9px;
}

.car-card__bottom--featured .car-card__label {
    color: rgba(255, 255, 255, 0.7);
}

.car-card__bottom--featured .car-card__amount {
    color: #FFFFFF;
}

/* ==============================
   PAGINATION
   ============================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.pagination__num,
.pagination__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    background: #F3F4F6;
    transition: all 0.2s;
}

.pagination__num:hover,
.pagination__btn:hover {
    background: #E5E7EB;
    color: #1A1A1A;
}

.pagination__num--active {
    background: #EF4444;
    color: #FFFFFF;
}

.pagination__num--active:hover {
    background: #DC2626;
    color: #FFFFFF;
}

.pagination__btn--disabled {
    color: #D1D5DB;
    cursor: not-allowed;
}

.pagination__btn--disabled:hover {
    background: #F3F4F6;
    color: #D1D5DB;
}

/* ==============================
   SIDEBAR
   ============================== */
.sidebar {
    width: 320px;
    flex-shrink: 0;
}

.sidebar__section {
    margin-bottom: 40px;
}

.sidebar__title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

/* Popular Cars */
.sidebar__popular {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popular-car {
    display: flex;
    align-items: center;
    gap: 14px;
}

.popular-car__img {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background: #F8F8F8;
    flex-shrink: 0;
}

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

.popular-car__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.popular-car__name {
    font-size: 15px;
    font-weight: 600;
    color: #1A1A1A;
}

.popular-car__price {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
}

/* Categories */
.sidebar__categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar__categories li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #6B7280;
    padding-bottom: 12px;
    border-bottom: 1px solid #F3F4F6;
}

.sidebar__categories li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cat-count {
    font-weight: 600;
    color: #1A1A1A;
}

/* Tags */
.sidebar__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 6px 16px;
    background: #F3F4F6;
    border-radius: 6px;
    font-size: 13px;
    color: #6B7280;
    font-weight: 400;
    transition: all 0.2s;
}

.tag:hover {
    background: #EF4444;
    color: #FFFFFF;
}

/* ==============================
   CTA SECTION
   ============================== */
.cta {
    margin-top: 60px;
    background: url('../images/cta-banner.png') center center / cover no-repeat;
    position: relative;
}

.cta__overlay {
    background: rgba(26, 26, 46, 0.75);
    padding: 80px 0;
}

.cta__content {
    text-align: center;
}

.cta__subtitle {
    font-size: 13px;
    font-weight: 500;
    color: #EF4444;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.cta__title {
    font-size: 40px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
    margin-bottom: 32px;
}

/* ==============================
   FOOTER
   ============================== */
.footer {
    background: #FFFFFF;
    border-top: 1px solid #F3F4F6;
    padding-top: 60px;
}

.footer__layout {
    display: flex;
    gap: 60px;
    padding-bottom: 40px;
    position: relative;
}

.footer__newsletter {
    flex: 0 0 320px;
}

.footer__heading {
    font-size: 28px;
    font-weight: 700;
    color: #1A1A1A;
    font-style: italic;
    margin-bottom: 12px;
}

.footer__desc {
    font-size: 14px;
    color: #9CA3AF;
    margin-bottom: 24px;
}

.footer__form {
    display: flex;
    align-items: center;
    border: 1px solid #E5E7EB;
    border-radius: 50px;
    padding: 4px 4px 4px 20px;
    overflow: hidden;
}

.footer__form input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #1A1A1A;
    background: transparent;
}

.footer__form input::placeholder {
    color: #9CA3AF;
}

.footer__form-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.footer__form-btn:hover {
    background: #F3F4F6;
}

.footer__links {
    display: flex;
    gap: 60px;
    flex: 1;
    padding-left: 40px;
}

.footer__col-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 16px;
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col a {
    font-size: 14px;
    color: #6B7280;
    transition: color 0.2s;
}

.footer__col a:hover {
    color: #EF4444;
}

.footer__car-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 320px;
    opacity: 0.15;
    pointer-events: none;
}

.footer__bottom {
    border-top: 1px solid #F3F4F6;
    padding: 20px 0;
}

.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__bottom p {
    font-size: 13px;
    color: #9CA3AF;
}

.scroll-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #EF4444;
    transition: background 0.2s;
}

.scroll-top:hover {
    background: #DC2626;
}

/* ==============================
   RESPONSIVE (basic)
   ============================== */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    .sidebar {
        width: 280px;
    }
}

@media (max-width: 1024px) {
    .fleet__layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .car-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 32px;
    }
    .car-grid {
        grid-template-columns: 1fr;
    }
    .navbar__links {
        display: none;
    }
    .cta__title {
        font-size: 28px;
    }
    .footer__layout {
        flex-direction: column;
    }
    .footer__links {
        padding-left: 0;
    }
    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}
