/* =========================================
   ROYAL VIP CARS — ALL CARS
   ========================================= */


/* =========================================
   ROOT VARIABLES
   ========================================= */

:root {
    --bg-dark: #0c0b09;
    --bg-soft: #13110e;
    --bg-card: #171512;
    --bg-card-light: #1d1a16;

    --gold: #c8a45d;
    --gold-light: #dec58d;
    --gold-dark: #9c7939;

    --ivory: #f2ecdf;
    --text-light: #d7d0c3;
    --text-muted: #9d968a;

    --border: rgba(200, 164, 93, 0.24);
    --border-light: rgba(255, 255, 255, 0.1);

    --shadow:
        0 20px 60px rgba(0, 0, 0, 0.35);

    --container-width: 1380px;

    --font-display: "Cormorant Garamond", serif;
    --font-body: "Jost", sans-serif;
}


/* =========================================
   RESET
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top,
            rgba(200, 164, 93, 0.04),
            transparent 35%
        ),
        var(--bg-dark);

    color: var(--ivory);

    font-family: var(--font-body);

    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;

    width: 100%;
}

a {
    color: inherit;

    text-decoration: none;
}

button {
    color: inherit;

    font: inherit;
}

ul {
    list-style: none;
}


/* =========================================
   GENERAL ELEMENTS
   ========================================= */

.section-eyebrow {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--gold);

    font-size: 12px;
    font-weight: 500;

    letter-spacing: 4px;

    text-transform: uppercase;
}

.collection-container,
.filter-container,
.intro-container,
.footer-container {
    width: min(
        calc(100% - 48px),
        var(--container-width)
    );

    margin-inline: auto;
}


/* =========================================
   NAVBAR
   ========================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;

    width: 100%;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    background: rgba(12, 11, 9, 0.82);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.navbar {
    width: min(
        calc(100% - 48px),
        var(--container-width)
    );

    min-height: 88px;

    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo,
.footer-logo {
    display: inline-flex;
    flex-direction: column;

    line-height: 1;
}

.logo-main {
    color: var(--ivory);

    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;

    letter-spacing: 3px;
}

.logo-small {
    margin-top: 6px;

    color: var(--gold);

    font-size: 9px;
    font-weight: 500;

    letter-spacing: 8px;
}

.navbar-menu {
    display: flex;
    align-items: center;

    gap: 34px;
}

.navbar-menu a {
    position: relative;

    padding-block: 10px;

    color: var(--text-light);

    font-size: 12px;
    font-weight: 400;

    letter-spacing: 1.8px;

    text-transform: uppercase;

    transition:
        color 0.3s ease;
}

.navbar-menu a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 2px;

    width: 0;
    height: 1px;

    background: var(--gold);

    transition:
        width 0.3s ease;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--ivory);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}


/* =========================================
   MOBILE MENU BUTTON
   ========================================= */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    border: none;

    background: transparent;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 24px;
    height: 1px;

    margin: 6px auto;

    background: var(--ivory);

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =========================================
   HERO SECTION
   ========================================= */

.allcars-hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        140px
        24px
        80px;

    background:
        url("images/allcars-hero.jpg")
        center
        center / cover
        no-repeat;

    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(8, 7, 6, 0.42),
            rgba(8, 7, 6, 0.64) 50%,
            rgba(12, 11, 9, 0.96)
        );
}

.hero-content {
    position: relative;

    z-index: 2;

    max-width: 900px;
}

.hero-content h1 {
    margin-bottom: 24px;

    color: var(--ivory);

    font-family: var(--font-display);
    font-size: clamp(58px, 8vw, 112px);
    font-weight: 400;

    line-height: 0.95;
    letter-spacing: -2px;
}

.hero-content p {
    max-width: 680px;

    margin:
        0
        auto
        38px;

    color: var(--text-light);

    font-size: 17px;
    font-weight: 300;

    line-height: 1.9;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 220px;
    min-height: 54px;

    padding:
        14px
        28px;

    border: 1px solid var(--gold);

    background: var(--gold);

    color: #0c0b09;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 2.5px;

    text-transform: uppercase;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.hero-button:hover {
    background: transparent;

    color: var(--gold);

    transform: translateY(-2px);
}


/* =========================================
   INTRO SECTION
   ========================================= */

.collection-intro {
    padding:
        120px
        0
        70px;

    background: var(--bg-dark);
}

.intro-container {
    max-width: 860px;

    text-align: center;
}

.intro-container h2 {
    margin-bottom: 24px;

    font-family: var(--font-display);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 400;

    line-height: 1;
}

.intro-container p {
    max-width: 650px;

    margin-inline: auto;

    color: var(--text-muted);

    font-size: 16px;
    font-weight: 300;

    line-height: 1.9;
}


/* =========================================
   FILTER SECTION
   ========================================= */

.filter-section {
    padding-bottom: 80px;

    background: var(--bg-dark);
}

.filter-container {
    padding:
        34px
        38px;

    border:
        1px solid
        var(--border);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.025),
            rgba(255, 255, 255, 0.008)
        );
}

.filter-group + .filter-group {
    margin-top: 32px;
}

.filter-title {
    margin-bottom: 16px;

    color: var(--gold);

    font-size: 11px;
    font-weight: 500;

    letter-spacing: 2.8px;

    text-transform: uppercase;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}

.filter-button,
.brand-button {
    min-height: 42px;

    padding:
        10px
        18px;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    background: transparent;

    color: var(--text-muted);

    font-size: 11px;
    font-weight: 400;

    letter-spacing: 1.2px;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

.filter-button:hover,
.brand-button:hover,
.filter-button.active,
.brand-button.active {
    border-color: var(--gold);

    background:
        rgba(200, 164, 93, 0.1);

    color: var(--gold-light);
}


/* =========================================
   COLLECTION SECTION
   ========================================= */

.car-collection {
    padding:
        40px
        0
        130px;

    background:
        linear-gradient(
            to bottom,
            var(--bg-dark),
            #100e0c
        );
}

.collection-heading {
    margin-bottom: 45px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;
}

.collection-heading h2 {
    font-family: var(--font-display);
    font-size: clamp(42px, 5vw, 66px);
    font-weight: 400;

    line-height: 1;
}

.car-result {
    padding-bottom: 8px;

    color: var(--text-muted);

    font-size: 13px;

    letter-spacing: 1px;
}

.car-result span {
    color: var(--gold);
}


/* =========================================
   CARS GRID
   ========================================= */

.cars-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 26px;
}


/* =========================================
   CAR CARD
   ========================================= */

.car-card {
    overflow: hidden;

    border:
        1px solid
        var(--border-light);

    background:
        linear-gradient(
            160deg,
            var(--bg-card-light),
            var(--bg-card)
        );

    box-shadow: var(--shadow);

    transition:
        border-color 0.35s ease,
        transform 0.35s ease;
}

.car-card:hover {
    border-color:
        rgba(200, 164, 93, 0.5);

    transform:
        translateY(-4px);
}

.car-image-wrapper {
    position: relative;

    display: block;

    overflow: hidden;

    aspect-ratio: 16 / 10;

    background: #0a0908;
}

.car-image-wrapper img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.7s ease;
}

.car-card:hover .car-image-wrapper img {
    transform: scale(1.045);
}

.car-image-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(12, 11, 9, 0.82),
            transparent 60%
        );

    pointer-events: none;
}

.car-category {
    position: absolute;
    left: 20px;
    bottom: 18px;

    z-index: 2;

    padding:
        8px
        12px;

    border:
        1px solid
        rgba(200, 164, 93, 0.42);

    background:
        rgba(12, 11, 9, 0.72);

    color: var(--gold-light);

    font-size: 9px;
    font-weight: 500;

    letter-spacing: 1.8px;

    text-transform: uppercase;

    backdrop-filter: blur(8px);
}


/* =========================================
   CAR CONTENT
   ========================================= */

.car-card-content {
    padding:
        28px
        26px
        26px;
}

.car-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}

.car-brand {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--gold);

    font-size: 10px;
    font-weight: 500;

    letter-spacing: 2.4px;

    text-transform: uppercase;
}

.car-title-row h3 {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 500;

    line-height: 1;
}

.car-number {
    color:
        rgba(200, 164, 93, 0.35);

    font-family: var(--font-display);
    font-size: 30px;
}

.car-description {
    min-height: 78px;

    margin-top: 22px;

    color: var(--text-muted);

    font-size: 14px;
    font-weight: 300;

    line-height: 1.8;
}


/* =========================================
   CAR SPECS
   ========================================= */

.car-specs {
    margin-top: 22px;
    padding-top: 20px;

    display: flex;
    flex-wrap: wrap;

    gap:
        10px
        18px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);
}

.car-specs span {
    position: relative;

    padding-left: 14px;

    color: var(--text-light);

    font-size: 11px;

    letter-spacing: 0.5px;
}

.car-specs span::before {
    content: "";

    position: absolute;
    left: 0;
    top: 50%;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: var(--gold);

    transform: translateY(-50%);
}


/* =========================================
   CAR ACTIONS
   ========================================= */

.car-actions {
    margin-top: 26px;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}

.view-car-button,
.book-car-button {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        12px
        14px;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 1.5px;

    text-align: center;

    text-transform: uppercase;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.view-car-button {
    border:
        1px solid
        rgba(255, 255, 255, 0.16);

    color: var(--text-light);
}

.view-car-button:hover {
    border-color: var(--gold);

    color: var(--gold-light);
}

.book-car-button {
    border:
        1px solid
        var(--gold);

    background: var(--gold);

    color: var(--bg-dark);
}

.book-car-button:hover {
    background: transparent;

    color: var(--gold-light);
}


/* =========================================
   FILTER HIDDEN STATE
   ========================================= */

.car-card.hide {
    display: none;
}


/* =========================================
   NO RESULTS
   ========================================= */

.no-results {
    display: none;

    padding:
        90px
        24px;

    border:
        1px solid
        var(--border);

    text-align: center;
}

.no-results.active {
    display: block;
}

.no-results h3 {
    margin-bottom: 12px;

    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 400;
}

.no-results p {
    color: var(--text-muted);

    font-size: 14px;
}


/* =========================================
   BOOKING CTA
   ========================================= */

.booking-cta {
    position: relative;

    min-height: 620px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        100px
        24px;

    background:
        url("images/booking-background.jpg")
        center
        center / cover
        no-repeat;

    text-align: center;
}

.booking-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(12, 11, 9, 0.78),
            rgba(12, 11, 9, 0.94)
        );
}

.booking-content {
    position: relative;

    z-index: 2;

    max-width: 820px;
}

.booking-content h2 {
    margin-bottom: 24px;

    font-family: var(--font-display);
    font-size: clamp(46px, 6vw, 78px);
    font-weight: 400;

    line-height: 1;
}

.booking-content p {
    max-width: 650px;

    margin:
        0
        auto
        34px;

    color: var(--text-light);

    font-size: 16px;
    font-weight: 300;

    line-height: 1.9;
}

.booking-buttons {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;
}

.primary-booking-button,
.secondary-booking-button {
    min-width: 220px;
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding:
        14px
        24px;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.primary-booking-button {
    border: 1px solid var(--gold);

    background: var(--gold);

    color: var(--bg-dark);
}

.primary-booking-button:hover {
    background: transparent;

    color: var(--gold-light);
}

.secondary-booking-button {
    border:
        1px solid
        rgba(255, 255, 255, 0.25);

    color: var(--ivory);
}

.secondary-booking-button:hover {
    border-color: var(--gold);

    color: var(--gold-light);
}


/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);

    background: #090806;
}

.footer-container {
    padding:
        80px
        0
        60px;

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 80px;
}

.footer-brand p {
    max-width: 380px;

    margin-top: 24px;

    color: var(--text-muted);

    font-size: 14px;
    font-weight: 300;

    line-height: 1.8;
}

.footer-links {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 60px;
}

.footer-column {
    display: flex;
    flex-direction: column;

    gap: 14px;
}

.footer-column h3 {
    margin-bottom: 8px;

    color: var(--gold);

    font-size: 11px;
    font-weight: 500;

    letter-spacing: 2.5px;

    text-transform: uppercase;
}

.footer-column a,
.footer-column span {
    color: var(--text-muted);

    font-size: 13px;

    transition:
        color 0.3s ease;
}

.footer-column a:hover {
    color: var(--ivory);
}

.footer-bottom {
    padding:
        22px
        24px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.07);

    text-align: center;
}

.footer-bottom p {
    color:
        rgba(255, 255, 255, 0.38);

    font-size: 11px;

    letter-spacing: 0.8px;
}


/* =========================================
   TABLET VERSION
   ========================================= */

@media (max-width: 1100px) {

    .cars-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .navbar-menu {
        gap: 22px;
    }

    .navbar-menu a {
        font-size: 11px;
    }

    .footer-container {
        gap: 50px;
    }
}


/* =========================================
   MOBILE NAVIGATION
   ========================================= */

@media (max-width: 850px) {

    .navbar {
        min-height: 76px;
    }

    .menu-toggle {
        position: relative;

        z-index: 1002;

        display: block;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;

        width: min(86%, 420px);
        height: 100vh;

        padding:
            120px
            40px
            50px;

        display: flex;
        flex-direction: column;
        align-items: flex-start;

        gap: 22px;

        border-left:
            1px solid
            var(--border);

        background:
            rgba(12, 11, 9, 0.98);

        backdrop-filter: blur(20px);

        transition:
            right 0.4s ease;
    }

    .navbar-menu.active {
        right: 0;
    }

    .navbar-menu a {
        width: 100%;

        padding:
            14px
            0;

        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.08);

        font-family: var(--font-display);
        font-size: 26px;

        letter-spacing: 1px;

        text-transform: none;
    }

    .navbar-menu a::after {
        display: none;
    }

    .allcars-hero {
        min-height: 88vh;

        padding-top: 120px;

        background-position: 58% center;
    }

    .hero-content h1 {
        font-size: clamp(54px, 13vw, 78px);
    }

    .collection-intro {
        padding-top: 90px;
    }

    .filter-container {
        padding:
            28px
            24px;
    }

    .collection-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   SMALL MOBILE VERSION
   ========================================= */

@media (max-width: 650px) {

    .collection-container,
    .filter-container,
    .intro-container,
    .footer-container,
    .navbar {
        width: min(
            calc(100% - 30px),
            var(--container-width)
        );
    }

    .logo-main {
        font-size: 18px;
    }

    .logo-small {
        font-size: 8px;

        letter-spacing: 6px;
    }

    .allcars-hero {
        min-height: 820px;

        padding:
            120px
            18px
            70px;
    }

    .hero-content p {
        font-size: 14px;

        line-height: 1.75;
    }

    .hero-button {
        width: 100%;

        max-width: 320px;
    }

    .collection-intro {
        padding:
            80px
            0
            55px;
    }

    .intro-container h2 {
        font-size: 44px;
    }

    .intro-container p {
        font-size: 14px;
    }

    .filter-section {
        padding-bottom: 60px;
    }

    .filter-container {
        width:
            calc(100% - 30px);

        padding:
            25px
            18px;
    }

    .filter-buttons {
        flex-wrap: nowrap;

        overflow-x: auto;

        padding-bottom: 8px;

        scrollbar-width: none;
    }

    .filter-buttons::-webkit-scrollbar {
        display: none;
    }

    .filter-button,
    .brand-button {
        flex: 0 0 auto;
    }

    .car-collection {
        padding:
            30px
            0
            90px;
    }

    .collection-heading {
        margin-bottom: 30px;
    }

    .collection-heading h2 {
        font-size: 46px;
    }

    .cars-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .car-card:hover {
        transform: none;
    }

    .car-card-content {
        padding:
            24px
            20px
            22px;
    }

    .car-title-row h3 {
        font-size: 32px;
    }

    .car-description {
        min-height: auto;

        font-size: 13px;
    }

    .car-actions {
        grid-template-columns: 1fr;
    }

    .view-car-button,
    .book-car-button {
        min-height: 52px;
    }

    .booking-cta {
        min-height: 640px;

        padding:
            90px
            18px;
    }

    .booking-content h2 {
        font-size: 48px;
    }

    .booking-content p {
        font-size: 14px;
    }

    .booking-buttons {
        flex-direction: column;
    }

    .primary-booking-button,
    .secondary-booking-button {
        width: 100%;

        max-width: 320px;
    }

    .footer-container {
        padding:
            60px
            0
            45px;
    }

    .footer-links {
        grid-template-columns: 1fr;

        gap: 36px;
    }
}


/* =========================================
   EXTRA SMALL MOBILE
   ========================================= */

@media (max-width: 390px) {

    .hero-content h1 {
        font-size: 50px;
    }

    .section-eyebrow {
        font-size: 10px;

        letter-spacing: 3px;
    }

    .intro-container h2,
    .collection-heading h2 {
        font-size: 40px;
    }

    .car-title-row h3 {
        font-size: 29px;
    }

    .car-number {
        font-size: 25px;
    }
}