/* =========================================================
   ROYAL VIP CARS
   FLEET PAGE
   fleet.css
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {
    --bg: #0c0b09;
    --bg-soft: #14120f;
    --bg-card: #11100e;

    --gold: #c8a45d;
    --gold-soft: #d7bb82;

    --text: #f4efe5;
    --text-soft: #b8b1a6;
    --text-muted: #7f786f;

    --border: rgba(255, 255, 255, 0.08);

    --header-height: 82px;

    --container: 1240px;

    --transition: 0.35s ease;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    background: var(--bg);
    color: var(--text);

    font-family: Arial, Helvetica, sans-serif;

    overflow-x: hidden;
}


img {
    display: block;
    width: 100%;
}


a {
    color: inherit;
    text-decoration: none;
}


button {
    font: inherit;
}


/* =========================================================
   HEADER
========================================================= */

.page-header {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.62),
            rgba(0, 0, 0, 0)
        );
}


.header-container {
    width: min(92%, var(--container));

    min-height: var(--header-height);

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   LOGO
========================================================= */

.site-logo {
    width: 135px;

    display: flex;
    align-items: center;

    flex-shrink: 0;
}


.site-logo img {
    width: 100%;
    height: auto;

    object-fit: contain;
}


/* =========================================================
   NAVIGATION
========================================================= */

.main-nav {
    display: flex;

    align-items: center;

    gap: 34px;
}


.main-nav a {
    position: relative;

    padding: 30px 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 12px;
    font-weight: 500;

    letter-spacing: 1.7px;

    text-transform: uppercase;

    transition: color var(--transition);
}


.main-nav a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 21px;

    width: 0;
    height: 1px;

    background: var(--gold);

    transform: translateX(-50%);

    transition: width var(--transition);
}


.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
}


.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: none;

    background: transparent;

    cursor: pointer;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 6px;

    z-index: 1002;
}


.menu-toggle span {
    width: 23px;
    height: 1px;

    background: #ffffff;

    transition: var(--transition);
}


/* =========================================================
   HERO
========================================================= */

.fleet-hero {
    position: relative;

    width: 100%;

    min-height: 100svh;

    display: flex;
    align-items: flex-end;

    padding:
        calc(var(--header-height) + 70px)
        0
        90px;

    overflow: hidden;

    background:
        url("images/image\ copy.png")
        center / cover
        no-repeat;
}


/*
If fleet-background.jpg does not exist,
replace the image path above with your own hero image.
*/


.fleet-hero::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.78) 0%,
            rgba(0, 0, 0, 0.45) 48%,
            rgba(0, 0, 0, 0.18) 100%
        );

    z-index: 1;
}


.fleet-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            var(--bg) 0%,
            rgba(12, 11, 9, 0.12) 45%,
            rgba(0, 0, 0, 0.18) 100%
        );

    z-index: 2;
}


.fleet-content {
    position: relative;

    z-index: 3;

    width: min(92%, var(--container));

    margin: 0 auto;
}


.fleet-eyebrow {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--gold);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 4px;

    text-transform: uppercase;
}


.fleet-content h1 {
    max-width: 800px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(52px, 8vw, 110px);

    font-weight: 400;

    line-height: 0.92;

    letter-spacing: -3px;
}


.fleet-content p {
    max-width: 590px;

    margin-top: 28px;

    color: rgba(255, 255, 255, 0.7);

    font-size: 16px;

    line-height: 1.8;
}


/* =========================================================
   HERO BUTTON
========================================================= */

.hero-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-top: 34px;

    min-width: 170px;

    padding: 15px 25px;

    border: 1px solid rgba(200, 164, 93, 0.7);

    color: #ffffff;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
}


.hero-btn:hover {
    background: var(--gold);

    color: #11100e;

    border-color: var(--gold);
}


/* =========================================================
   SCROLL INDICATOR
========================================================= */

.scroll-indicator {
    position: absolute;

    right: 4%;
    bottom: 70px;

    z-index: 4;

    display: flex;
    align-items: center;

    gap: 14px;

    transform: rotate(90deg);

    transform-origin: right bottom;
}


.scroll-indicator span {
    color: rgba(255, 255, 255, 0.45);

    font-size: 9px;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.scroll-line {
    width: 60px;
    height: 1px;

    background: rgba(255, 255, 255, 0.35);
}


/* =========================================================
   FLEET SECTION
========================================================= */

.fleet-section {
    position: relative;

    padding: 120px 0 130px;

    background: var(--bg);
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    width: min(92%, var(--container));

    margin: 0 auto 70px;

    text-align: center;
}


.section-heading span {
    display: block;

    margin-bottom: 14px;

    color: var(--gold);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 4px;
}


.section-heading h2 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(38px, 5vw, 66px);

    font-weight: 400;

    line-height: 1;
}


.section-heading p {
    max-width: 560px;

    margin: 22px auto 0;

    color: var(--text-soft);

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   FLEET GRID
========================================================= */

.fleet-grid {
    width: min(92%, var(--container));

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 34px;
}


/* =========================================================
   CAR CARD
========================================================= */

.car-card {
    position: relative;

    overflow: hidden;

    background: var(--bg-card);

    border: 1px solid var(--border);

    transition:
        border-color var(--transition),
        background var(--transition);
}


.car-card:hover {
    border-color: rgba(200, 164, 93, 0.3);
}


/* =========================================================
   CAR IMAGE
========================================================= */

.car-image {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #090909;
}


.car-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
        filter 0.6s ease;
}


.car-card:hover .car-image img {
    transform: scale(1.035);
}


.car-image-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.02) 50%
        );

    pointer-events: none;
}


/* =========================================================
   BRAND LABEL
========================================================= */

.car-brand {
    position: absolute;

    top: 20px;
    left: 20px;

    z-index: 3;

    padding: 8px 11px;

    border: 1px solid rgba(255, 255, 255, 0.17);

    background: rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(8px);

    color: rgba(255, 255, 255, 0.9);

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;
}


/* =========================================================
   CAR INFO
========================================================= */

.car-info {
    padding: 28px 28px 30px;
}


.car-info h3 {
    color: var(--text);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 30px;

    font-weight: 400;

    line-height: 1.15;
}


.car-info p {
    max-width: 500px;

    margin-top: 14px;

    color: var(--text-muted);

    font-size: 13px;

    line-height: 1.75;
}


/* =========================================================
   FLEET BUTTON
========================================================= */

.fleet-btn {
    display: inline-flex;

    align-items: center;

    gap: 14px;

    margin-top: 24px;

    color: var(--gold-soft);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;

    transition: color var(--transition);
}


.fleet-btn span {
    font-size: 17px;

    line-height: 1;

    transition: transform var(--transition);
}


.fleet-btn:hover {
    color: #ffffff;
}


.fleet-btn:hover span {
    transform: translateX(6px);
}


/* =========================================================
   CTA
========================================================= */

.fleet-cta {
    position: relative;

    padding: 120px 20px;

    text-align: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            rgba(200, 164, 93, 0.08),
            transparent 55%
        ),
        var(--bg-soft);

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);
}


.fleet-cta-content {
    position: relative;

    z-index: 2;

    max-width: 700px;

    margin: 0 auto;
}


.fleet-cta-content > span {
    display: block;

    margin-bottom: 16px;

    color: var(--gold);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 4px;
}


.fleet-cta h2 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(40px, 6vw, 70px);

    font-weight: 400;

    line-height: 1;
}


.fleet-cta p {
    max-width: 520px;

    margin: 24px auto 0;

    color: var(--text-soft);

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   CTA BUTTON
========================================================= */

.cta-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-top: 32px;

    padding: 15px 28px;

    border: 1px solid var(--gold);

    color: var(--gold-soft);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;

    transition:
        background var(--transition),
        color var(--transition);
}


.cta-btn:hover {
    background: var(--gold);

    color: #11100e;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding: 70px 20px 38px;

    background: #080806;
}


.footer-container {
    max-width: 800px;

    margin: 0 auto;

    text-align: center;
}


.footer-logo {
    display: block;

    width: 135px;

    margin: 0 auto 26px;
}


.footer-logo img {
    width: 100%;
}


.footer-container > p {
    color: var(--text-muted);

    font-size: 10px;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.footer-container .copyright {
    margin-top: 26px;

    color: rgba(255, 255, 255, 0.3);

    font-size: 9px;

    letter-spacing: 1px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    :root {
        --header-height: 72px;
    }


    .site-logo {
        width: 115px;
    }


    .main-nav {
        gap: 20px;
    }


    .main-nav a {
        font-size: 10px;
    }


    .fleet-grid {
        gap: 22px;
    }


    .car-info {
        padding: 24px;
    }


    .car-info h3 {
        font-size: 26px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    body {
        background: var(--bg);
    }


    /* HEADER */

    .page-header {
        position: absolute;
    }


    .header-container {
        width: 90%;
    }


    .site-logo {
        width: 105px;

        position: relative;

        z-index: 1003;
    }


    /* NAV */

    .main-nav {
        position: fixed;

        top: 0;
        right: -100%;

        width: min(82%, 340px);
        height: 100svh;

        padding:
            120px
            35px
            50px;

        background: rgba(10, 9, 8, 0.98);

        backdrop-filter: blur(20px);

        border-left: 1px solid rgba(255, 255, 255, 0.08);

        display: flex;
        flex-direction: column;

        align-items: flex-start;

        gap: 0;

        transition: right 0.45s ease;

        z-index: 1001;
    }


    .main-nav.active {
        right: 0;
    }


    .main-nav a {
        width: 100%;

        padding: 21px 0;

        border-bottom: 1px solid rgba(255, 255, 255, 0.07);

        font-family: Georgia, "Times New Roman", serif;

        font-size: 24px;
        font-weight: 400;

        letter-spacing: 0;

        text-transform: none;
    }


    .main-nav a::after {
        display: none;
    }


    /* MENU BUTTON */

    .menu-toggle {
        display: flex;
    }


    .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 */

    .fleet-hero {
        min-height: 92svh;

        padding:
            calc(var(--header-height) + 90px)
            0
            70px;

        align-items: flex-end;

        background-position: center;
    }


    .fleet-hero::before {
        background:
            linear-gradient(
                to top,
                rgba(0, 0, 0, 0.88) 0%,
                rgba(0, 0, 0, 0.38) 55%,
                rgba(0, 0, 0, 0.35) 100%
            );
    }


    .fleet-content {
        width: 90%;
    }


    .fleet-eyebrow {
        margin-bottom: 14px;

        font-size: 9px;

        letter-spacing: 3px;
    }


    .fleet-content h1 {
        max-width: 330px;

        font-size: clamp(48px, 15vw, 68px);

        line-height: 0.94;

        letter-spacing: -2px;
    }


    .fleet-content p {
        max-width: 330px;

        margin-top: 20px;

        font-size: 13px;

        line-height: 1.7;
    }


    .hero-btn {
        margin-top: 28px;

        min-width: 155px;

        padding: 14px 20px;

        font-size: 9px;
    }


    .scroll-indicator {
        display: none;
    }


    /* SECTION */

    .fleet-section {
        padding: 85px 0 90px;
    }


    .section-heading {
        width: 90%;

        margin-bottom: 45px;

        text-align: left;
    }


    .section-heading span {
        font-size: 9px;

        letter-spacing: 3px;
    }


    .section-heading h2 {
        font-size: clamp(38px, 12vw, 53px);

        line-height: 1;
    }


    .section-heading p {
        max-width: 100%;

        margin: 18px 0 0;

        font-size: 12px;
    }


    /* GRID */

    .fleet-grid {
        width: 90%;

        grid-template-columns: 1fr;

        gap: 28px;
    }


    /* CARD */

    .car-card {
        border-color: rgba(255, 255, 255, 0.07);
    }


    .car-card:hover .car-image img {
        transform: none;
    }


    .car-image {
        aspect-ratio: 4 / 3;
    }


    .car-brand {
        top: 14px;
        left: 14px;

        padding: 7px 9px;

        font-size: 8px;
    }


    .car-info {
        padding: 22px 19px 24px;
    }


    .car-info h3 {
        font-size: 27px;
    }


    .car-info p {
        margin-top: 11px;

        font-size: 12px;

        line-height: 1.65;
    }


    .fleet-btn {
        margin-top: 20px;

        font-size: 9px;
    }


    /* CTA */

    .fleet-cta {
        padding: 85px 20px;
    }


    .fleet-cta-content {
        max-width: 360px;
    }


    .fleet-cta-content > span {
        font-size: 9px;

        letter-spacing: 3px;
    }


    .fleet-cta h2 {
        font-size: clamp(40px, 13vw, 56px);
    }


    .fleet-cta p {
        margin-top: 18px;

        font-size: 12px;
    }


    .cta-btn {
        margin-top: 27px;

        padding: 14px 24px;

        font-size: 9px;
    }


    /* FOOTER */

    .site-footer {
        padding-top: 60px;
    }


    .footer-logo {
        width: 110px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

    .fleet-content h1 {
        font-size: 47px;
    }


    .car-info h3 {
        font-size: 24px;
    }


    .fleet-grid {
        width: 92%;
    }


    .section-heading {
        width: 92%;
    }


    .fleet-content {
        width: 92%;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}