/* =========================================
   ROYAL VIP CARS
   MERCEDES-BENZ E-CLASS
   MOBILE-FIRST DESIGN
========================================= */


/* =========================================
   ROOT VARIABLES
========================================= */

:root {
    --black: #0c0b09;
    --black-soft: #12110f;
    --charcoal: #1a1815;
    --charcoal-light: #24211d;

    --ivory: #f3eee5;
    --ivory-soft: #d8d0c4;
    --muted: #9f978c;

    --gold: #c8a45d;
    --gold-light: #ddc28b;
    --gold-dark: #8d713d;

    --border: rgba(200, 164, 93, 0.24);
    --white-border: rgba(255, 255, 255, 0.12);

    --display-font: "Cormorant Garamond", serif;
    --body-font: "Jost", sans-serif;

    --navbar-height: 72px;
    --section-space: 90px;
}


/* =========================================
   GLOBAL RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--ivory);
    font-family: var(--body-font);
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: none;
    background: none;
    color: inherit;
    font: inherit;
}

main {
    overflow: hidden;
}

.section-container {
    width: min(100% - 40px, 1200px);
    margin-inline: auto;
}


/* =========================================
   REUSABLE TYPOGRAPHY
========================================= */

.section-label,
.eyebrow {
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    line-height: 1.5;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: var(--display-font);
    font-weight: 400;
}

h2 {
    color: var(--ivory);
    font-size: clamp(2.55rem, 11vw, 5.5rem);
    line-height: 0.94;
    letter-spacing: -0.035em;
}

h2 span {
    display: block;
    color: var(--gold-light);
    font-style: italic;
}


/* =========================================
   NAVBAR
========================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;
    height: var(--navbar-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 20px;

    background: linear-gradient(
        to bottom,
        rgba(8, 7, 6, 0.95),
        rgba(8, 7, 6, 0.45),
        transparent
    );
}

.brand-logo {
    position: relative;
    z-index: 1002;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-main {
    color: var(--gold);
    font-family: var(--display-font);
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1;
}

.brand-small {
    margin-top: 5px;

    color: var(--ivory-soft);
    font-size: 0.43rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.menu-button {
    position: relative;
    z-index: 1002;

    width: 45px;
    height: 45px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;

    cursor: pointer;
}

.menu-button span {
    display: block;

    width: 24px;
    height: 1px;

    background: var(--ivory);

    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}

.menu-button.active span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.menu-button.active span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1001;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;

    padding: 90px 24px 40px;

    background:
        radial-gradient(
            circle at top,
            rgba(200, 164, 93, 0.12),
            transparent 38%
        ),
        var(--black);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease,
        transform 0.35s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu a {
    position: relative;

    color: var(--ivory);
    font-family: var(--display-font);
    font-size: 2.35rem;
    letter-spacing: 0.02em;
}

.mobile-menu a::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: -8px;

    width: 0;
    height: 1px;

    background: var(--gold);

    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.mobile-menu a:hover::after {
    width: 100%;
}


/* =========================================
   HERO SECTION
========================================= */

.hero-section {
    position: relative;

    min-height: 100svh;

    display: flex;
    align-items: flex-end;

    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;

    height: 100%;
    object-fit: cover;
    object-position: 58% center;

    transform: scale(1.01);
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.18) 0%,
            rgba(0, 0, 0, 0.12) 30%,
            rgba(8, 7, 6, 0.62) 62%,
            rgba(8, 7, 6, 0.96) 100%
        ),
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.25),
            transparent 70%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 720px;

    padding:
        calc(var(--navbar-height) + 40px)
        20px
        105px;
}

.hero-content h1 {
    margin-top: 14px;

    color: var(--ivory);
    font-size: clamp(3.6rem, 17vw, 8.5rem);
    line-height: 0.77;
    letter-spacing: -0.045em;
}

.hero-content h1 span {
    display: block;

    margin-top: 12px;

    color: var(--gold-light);
    font-size: 0.68em;
    font-style: italic;
}

.hero-description {
    max-width: 450px;

    margin-top: 28px;

    color: var(--ivory-soft);
    font-size: 0.91rem;
    font-weight: 300;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;

    margin-top: 34px;
}


/* =========================================
   BUTTONS
========================================= */

.button {
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 15px 25px;

    font-size: 0.69rem;
    font-weight: 500;
    letter-spacing: 0.19em;
    text-align: center;
    text-transform: uppercase;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.button-primary {
    border: 1px solid var(--gold);
    background: var(--gold);
    color: #0c0b09;
}

.button-primary:hover {
    border-color: var(--gold-light);
    background: var(--gold-light);
}

.button-secondary {
    border: 1px solid rgba(243, 238, 229, 0.42);
    background: rgba(12, 11, 9, 0.24);
    color: var(--ivory);
    backdrop-filter: blur(8px);
}

.button-secondary:hover {
    border-color: var(--ivory);
    background: var(--ivory);
    color: var(--black);
}

.scroll-indicator {
    position: absolute;
    right: 18px;
    bottom: 30px;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-indicator span {
    color: var(--ivory-soft);
    font-size: 0.54rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 38px;

    background: linear-gradient(
        to bottom,
        var(--gold),
        transparent
    );
}


/* =========================================
   INTRO SECTION
========================================= */

.intro-section {
    padding: var(--section-space) 0;

    background:
        radial-gradient(
            circle at top right,
            rgba(200, 164, 93, 0.07),
            transparent 35%
        ),
        var(--black);
}

.intro-section h2 {
    margin-top: 18px;
}

.intro-text {
    max-width: 650px;

    margin-top: 32px;

    color: var(--ivory-soft);
    font-size: 0.94rem;
    line-height: 1.9;
}


/* =========================================
   DETAILS SECTION
========================================= */

.details-section {
    padding: 0 20px 90px;
    background: var(--black);
}

.details-grid {
    border-top: 1px solid var(--border);
}

.detail-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 17px;

    padding: 26px 0;

    border-bottom: 1px solid var(--border);
}

.detail-number {
    padding-top: 5px;

    color: var(--gold);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
}

.detail-label {
    margin-bottom: 6px;

    color: var(--muted);
    font-size: 0.57rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.detail-item h3 {
    color: var(--ivory);
    font-size: 1.55rem;
    line-height: 1.15;
}


/* =========================================
   FEATURE IMAGE
========================================= */

.feature-section {
    padding: 0 12px;
    background: var(--black);
}

.feature-image-wrapper {
    position: relative;

    min-height: 600px;

    display: flex;
    align-items: flex-end;

    overflow: hidden;
}

.feature-image-wrapper img {
    position: absolute;
    inset: 0;

    height: 100%;
    object-fit: cover;
    object-position: center;
}

.feature-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.1),
            rgba(0, 0, 0, 0.18) 40%,
            rgba(8, 7, 6, 0.9) 100%
        );
}

.feature-content {
    position: relative;
    z-index: 2;

    width: 100%;
    padding: 42px 22px;
}

.feature-content h2 {
    max-width: 760px;
    margin-top: 15px;
}


/* =========================================
   EXPERIENCE SECTION
========================================= */

.experience-section {
    padding: var(--section-space) 0;
    background: var(--black-soft);
}

.experience-heading h2 {
    margin-top: 17px;
}

.experience-list {
    margin-top: 58px;
    border-top: 1px solid var(--border);
}

.experience-card {
    padding: 29px 0;
    border-bottom: 1px solid var(--border);
}

.experience-card > span {
    display: block;
    margin-bottom: 28px;

    color: var(--gold);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
}

.experience-card h3 {
    color: var(--ivory);
    font-size: 2rem;
    line-height: 1;
}

.experience-card p {
    margin-top: 17px;

    color: var(--muted);
    font-size: 0.87rem;
    line-height: 1.8;
}


/* =========================================
   GALLERY SECTION
========================================= */

.gallery-section {
    padding: var(--section-space) 0;
    background: var(--black);
}

.gallery-heading {
    display: flex;
    flex-direction: column;
    gap: 25px;

    margin-bottom: 40px;
}

.gallery-heading h2 {
    margin-top: 16px;
}

.gallery-instruction {
    color: var(--muted);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.gallery-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 14px;

    overflow-x: auto;

    padding: 0 20px 22px;

    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;

    scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    position: relative;

    height: 470px;

    overflow: hidden;

    scroll-snap-align: center;
    cursor: pointer;
}

.gallery-item::after {
    content: "View";

    position: absolute;
    right: 18px;
    bottom: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 58px;
    height: 30px;

    border: 1px solid rgba(255, 255, 255, 0.28);

    background: rgba(12, 11, 9, 0.38);
    color: var(--ivory);

    font-size: 0.52rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;

    backdrop-filter: blur(8px);
}

.gallery-item img {
    height: 100%;
    object-fit: cover;

    transition: transform 0.7s ease;
}

.gallery-item:hover img {
    transform: scale(1.025);
}


/* =========================================
   SERVICE SECTION
========================================= */

.service-section {
    padding: var(--section-space) 0;
    background: var(--charcoal);
}

.service-grid {
    margin-top: 40px;
    border-top: 1px solid var(--border);
}

.service-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 15px;

    padding: 24px 0;

    border-bottom: 1px solid var(--border);
}

.service-item span {
    color: var(--gold);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
}

.service-item p {
    color: var(--ivory-soft);
    font-family: var(--display-font);
    font-size: 1.34rem;
    line-height: 1.25;
}


/* =========================================
   BOOKING SECTION
========================================= */

.booking-section {
    position: relative;

    min-height: 680px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 100px 20px;

    overflow: hidden;
}

.booking-background {
    position: absolute;
    inset: 0;

    height: 100%;
    object-fit: cover;
    object-position: 62% center;
}

.booking-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(8, 7, 6, 0.66),
            rgba(8, 7, 6, 0.84)
        ),
        radial-gradient(
            circle at center,
            transparent,
            rgba(0, 0, 0, 0.45)
        );
}

.booking-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 780px;

    text-align: center;
}

.booking-content h2 {
    margin-top: 18px;
}

.booking-content p:not(.section-label) {
    max-width: 510px;

    margin: 26px auto 0;

    color: var(--ivory-soft);
    font-size: 0.9rem;
    line-height: 1.8;
}

.booking-button {
    width: 100%;
    max-width: 340px;

    margin-top: 34px;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    padding: 55px 20px 35px;

    background: #080705;

    text-align: center;

    border-top: 1px solid var(--border);
}

.footer-brand {
    display: inline-flex;
    flex-direction: column;
    gap: 7px;

    color: var(--ivory-soft);
    font-size: 0.52rem;
    font-weight: 500;
    letter-spacing: 0.23em;
    text-transform: uppercase;
}

.footer-brand span {
    color: var(--gold);
    font-family: var(--display-font);
    font-size: 2.1rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1;
}

.footer > p {
    margin-top: 24px;

    color: var(--muted);
    font-size: 0.71rem;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 24px;

    margin-top: 31px;
}

.footer-links a {
    color: var(--ivory-soft);
    font-size: 0.61rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer .copyright {
    margin-top: 42px;

    color: #6f6961;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
}


/* =========================================
   GALLERY MODAL
========================================= */

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 70px 15px 35px;

    background: rgba(5, 5, 4, 0.97);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-image-wrapper {
    width: 100%;
    max-width: 1100px;
}

.modal-image-wrapper img {
    max-height: 78vh;
    object-fit: contain;
}

.modal-image-wrapper p {
    margin-top: 16px;

    color: var(--muted);
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-align: center;
    text-transform: uppercase;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;

    width: 45px;
    height: 45px;

    color: var(--ivory);
    font-family: Arial, sans-serif;
    font-size: 2rem;
    font-weight: 200;

    cursor: pointer;
}

.modal-arrow {
    position: absolute;
    top: 50%;

    width: 42px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.16);

    background: rgba(10, 9, 8, 0.5);
    color: var(--ivory);

    font-size: 1.1rem;

    transform: translateY(-50%);
    backdrop-filter: blur(8px);

    cursor: pointer;
}

.modal-prev {
    left: 7px;
}

.modal-next {
    right: 7px;
}


/* =========================================
   TABLET
========================================= */

@media (min-width: 700px) {

    :root {
        --navbar-height: 82px;
        --section-space: 120px;
    }

    .navbar {
        padding-inline: 38px;
    }

    .hero-content {
        padding-left: 38px;
        padding-right: 38px;
        padding-bottom: 120px;
    }

    .hero-actions {
        flex-direction: row;
    }

    .hero-actions .button {
        min-width: 205px;
    }

    .details-section {
        padding-inline: 38px;
        padding-bottom: 120px;
    }

    .details-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-item {
        padding: 32px 24px;
    }

    .detail-item:nth-child(odd) {
        border-right: 1px solid var(--border);
    }

    .feature-section {
        padding-inline: 24px;
    }

    .feature-image-wrapper {
        min-height: 760px;
    }

    .feature-content {
        padding: 60px 42px;
    }

    .experience-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .experience-card {
        padding: 32px 25px;
        border-right: 1px solid var(--border);
    }

    .experience-card:last-child {
        border-right: none;
    }

    .gallery-track {
        grid-auto-columns: 55%;
        padding-inline: 38px;
    }

    .gallery-item {
        height: 600px;
    }

    .service-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .service-item:nth-child(odd) {
        padding-right: 25px;
        border-right: 1px solid var(--border);
    }

    .service-item:nth-child(even) {
        padding-left: 25px;
    }

    .booking-button {
        width: auto;
        min-width: 300px;
    }

    .modal-prev {
        left: 20px;
    }

    .modal-next {
        right: 20px;
    }
}


/* =========================================
   DESKTOP
========================================= */

@media (min-width: 1050px) {

    .navbar {
        height: 92px;
        padding-inline: 55px;

        background: linear-gradient(
            to bottom,
            rgba(8, 7, 6, 0.82),
            transparent
        );
    }

    .menu-button {
        display: none;
    }

    .mobile-menu {
        position: static;

        width: auto;

        flex-direction: row;
        gap: 32px;

        padding: 0;

        background: none;

        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .mobile-menu a {
        color: var(--ivory-soft);
        font-family: var(--body-font);
        font-size: 0.62rem;
        font-weight: 500;
        letter-spacing: 0.18em;
        text-transform: uppercase;
    }

    .hero-content {
        padding-left: max(55px, calc((100vw - 1200px) / 2));
        padding-bottom: 125px;
    }

    .hero-description {
        font-size: 0.98rem;
    }

    .scroll-indicator {
        right: 45px;
    }

    .details-section {
        width: min(100% - 110px, 1200px);
        margin-inline: auto;
        padding-inline: 0;
    }

    .details-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .detail-item {
        display: block;
        min-height: 180px;
        padding: 32px 28px;

        border-right: 1px solid var(--border);
    }

    .detail-item:last-child {
        border-right: none;
    }

    .detail-number {
        display: block;
        margin-bottom: 44px;
    }

    .feature-section {
        padding-inline: 40px;
    }

    .feature-image-wrapper {
        max-width: 1500px;
        min-height: 850px;
        margin-inline: auto;
    }

    .feature-content {
        padding: 80px;
    }

    .experience-card {
        min-height: 320px;
        padding: 42px 35px;
    }

    .experience-card > span {
        margin-bottom: 75px;
    }

    .gallery-heading {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .gallery-track {
        grid-auto-columns: 39%;
        gap: 20px;

        padding-left: max(55px, calc((100vw - 1200px) / 2));
        padding-right: 55px;
    }

    .gallery-item {
        height: 680px;
    }

    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-item,
    .service-item:nth-child(odd),
    .service-item:nth-child(even) {
        min-height: 145px;
        padding: 30px 25px;

        border-right: 1px solid var(--border);
    }

    .service-item:nth-child(3n) {
        border-right: none;
    }

    .booking-section {
        min-height: 800px;
    }
}


/* =========================================
   SMALL MOBILE DEVICES
========================================= */

@media (max-width: 380px) {

    .hero-content h1 {
        font-size: 3.25rem;
    }

    .hero-description {
        font-size: 0.82rem;
    }

    .button {
        padding-inline: 18px;
        font-size: 0.62rem;
    }

    h2 {
        font-size: 2.35rem;
    }

    .gallery-item {
        height: 420px;
    }
}


/* =========================================
   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;
    }
}