/* =====================================================
   RANGE ROVER AUTOBIOGRAPHY
   Royal VIP Cars
===================================================== */

:root {
    --background: #0c0b09;
    --background-soft: #14120f;
    --background-card: #181612;
    --gold: #c8a45d;
    --gold-light: #e1c27d;
    --ivory: #f3eee5;
    --text: #d6d0c5;
    --text-muted: #9d978d;
    --border: rgba(200, 164, 93, 0.25);
    --white-border: rgba(255, 255, 255, 0.12);
    --transition: 0.35s ease;
}

/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--ivory);
    font-family: "Jost", sans-serif;
    overflow-x: hidden;
}

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;
    cursor: pointer;
}

.section-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* =====================================================
   HEADER
===================================================== */

.page-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    min-height: 96px;
    padding: 16px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-logo {
    position: relative;
    z-index: 102;
    display: inline-flex;
    align-items: center;
}

.site-logo img {
    width: 105px;
    height: auto;
    object-fit: contain;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 38px;
}

.main-navigation a {
    position: relative;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color var(--transition);
}

.main-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}

.main-navigation a:hover {
    color: var(--ivory);
}

.main-navigation a:hover::after {
    width: 100%;
}

.menu-toggle {
    position: relative;
    z-index: 102;
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    width: 25px;
    height: 1px;
    background: var(--ivory);
    transition: transform var(--transition), opacity var(--transition);
}

/* =====================================================
   HERO
===================================================== */

.car-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(8, 7, 6, 0.94) 0%,
            rgba(8, 7, 6, 0.72) 42%,
            rgba(8, 7, 6, 0.22) 75%,
            rgba(8, 7, 6, 0.35) 100%
        ),
        linear-gradient(
            0deg,
            rgba(8, 7, 6, 0.88) 0%,
            rgba(8, 7, 6, 0.08) 55%,
            rgba(8, 7, 6, 0.32) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(740px, 90%);
    margin-left: 8%;
    padding-bottom: 13vh;
}

.hero-eyebrow,
.section-eyebrow {
    display: inline-block;
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero-content h1 {
    margin-top: 18px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(62px, 8vw, 118px);
    line-height: 0.82;
    font-weight: 400;
    letter-spacing: -3px;
}

.hero-content h1 strong {
    display: block;
    color: var(--gold-light);
    font-weight: 500;
}

.hero-description {
    max-width: 570px;
    margin-top: 28px;
    color: rgba(243, 238, 229, 0.76);
    font-size: 15px;
    line-height: 1.9;
    font-weight: 300;
}

.hero-actions {
    margin-top: 38px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.primary-button,
.secondary-button {
    min-width: 175px;
    min-height: 52px;
    padding: 15px 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.primary-button {
    background: var(--gold);
    color: #0b0a08;
    border: 1px solid var(--gold);
}

.primary-button:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--ivory);
}

.secondary-button:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.scroll-indicator {
    position: absolute;
    right: 5%;
    bottom: 50px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: rotate(90deg);
    transform-origin: right center;
}

.scroll-indicator span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-line {
    width: 60px;
    height: 1px;
    background: var(--gold);
}

/* =====================================================
   INTRODUCTION
===================================================== */

.vehicle-introduction {
    padding: 130px 0;
    background: var(--background);
}

.vehicle-introduction .section-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 90px;
    align-items: start;
}

.section-heading h2,
.gallery-heading h2,
.vip-description h2,
.booking-content h2 {
    margin-top: 18px;
    font-family: "Cormorant Garamond", serif;
    font-weight: 400;
    line-height: 0.98;
}

.section-heading h2 {
    max-width: 690px;
    font-size: clamp(50px, 6vw, 82px);
}

.section-heading h2 em,
.gallery-heading h2 em,
.booking-content h2 em {
    color: var(--gold-light);
    font-weight: 400;
}

.introduction-content {
    padding-top: 32px;
}

.introduction-content p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 2;
    font-weight: 300;
}

.introduction-content p + p {
    margin-top: 24px;
}

.introduction-content .introduction-lead {
    color: var(--ivory);
    font-family: "Cormorant Garamond", serif;
    font-size: 26px;
    line-height: 1.45;
}

/* =====================================================
   FEATURE CARDS
===================================================== */

.vehicle-features {
    padding: 0 0 130px;
}

.vehicle-features .section-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.feature-card {
    min-height: 330px;
    padding: 48px 40px;
    position: relative;
}

.feature-card:not(:last-child) {
    border-right: 1px solid var(--border);
}

.feature-number {
    color: var(--gold);
    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
}

.feature-card h3 {
    margin-top: 65px;
    font-family: "Cormorant Garamond", serif;
    font-size: 35px;
    font-weight: 500;
}

.feature-card p {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.9;
    font-weight: 300;
}

/* =====================================================
   CINEMATIC IMAGE
===================================================== */

.cinematic-image-section {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.cinematic-image-section > img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
}

.cinematic-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            0deg,
            rgba(8, 7, 6, 0.9) 0%,
            rgba(8, 7, 6, 0.08) 65%
        );
}

.cinematic-content {
    position: relative;
    z-index: 2;
    width: min(680px, 90%);
    margin-left: 8%;
    padding-bottom: 85px;
}

.cinematic-content span {
    color: var(--gold-light);
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.cinematic-content h2 {
    margin-top: 18px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(48px, 6vw, 78px);
    line-height: 0.98;
    font-weight: 400;
}

/* =====================================================
   GALLERY
===================================================== */

.vehicle-gallery {
    padding: 140px 0;
    background: var(--background-soft);
}

.gallery-heading {
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 70px;
    align-items: end;
}

.gallery-heading h2 {
    font-size: clamp(48px, 6vw, 76px);
}

.gallery-heading p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.9;
    font-weight: 300;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 260px;
    gap: 14px;
}

.gallery-item {
    position: relative;
    grid-column: span 4;
    overflow: hidden;
    background: #161411;
}

.gallery-item-large {
    grid-column: span 8;
    grid-row: span 2;
}

.gallery-item-wide {
    grid-column: span 8;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.8s ease,
        filter 0.5s ease;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(5, 4, 3, 0.15);
    transition: background var(--transition);
}

.gallery-hover-text {
    position: absolute;
    left: 24px;
    bottom: 22px;
    z-index: 2;
    color: var(--ivory);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity var(--transition),
        transform var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.045);
    filter: brightness(0.85);
}

.gallery-item:hover::after {
    background: rgba(5, 4, 3, 0.34);
}

.gallery-item:hover .gallery-hover-text {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   VIP INFORMATION
===================================================== */

.vip-information {
    padding: 140px 0;
}

.vip-information-box {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    border: 1px solid var(--border);
}

.vip-specifications,
.vip-description {
    padding: 65px;
}

.vip-specifications {
    background: var(--background-card);
    border-right: 1px solid var(--border);
}

.specification-row {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--white-border);
}

.specification-row:first-of-type {
    margin-top: 28px;
}

.specification-row span {
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.specification-row strong {
    color: var(--ivory);
    font-size: 13px;
    font-weight: 400;
    text-align: right;
}

.vip-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vip-description h2 {
    max-width: 580px;
    font-size: clamp(47px, 5vw, 72px);
}

.vip-description p {
    max-width: 640px;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.95;
    font-weight: 300;
}

.text-link {
    width: fit-content;
    margin-top: 35px;
    padding-bottom: 7px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: var(--gold-light);
    border-bottom: 1px solid var(--gold);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.text-link span {
    font-size: 18px;
    transition: transform var(--transition);
}

.text-link:hover span {
    transform: translateX(6px);
}

/* =====================================================
   BOOKING SECTION
===================================================== */

.booking-section {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.booking-background {
    position: absolute;
    inset: 0;
}

.booking-background img {
    height: 100%;
    object-fit: cover;
}

.booking-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 6, 5, 0.82);
}

.booking-content {
    position: relative;
    z-index: 2;
    width: min(800px, 90%);
}

.booking-content h2 {
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(56px, 7vw, 90px);
}

.booking-content p {
    max-width: 580px;
    margin: 28px auto 35px;
    color: rgba(243, 238, 229, 0.7);
    font-size: 15px;
    line-height: 1.9;
    font-weight: 300;
}

/* =====================================================
   IMAGE MODAL
===================================================== */

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 4, 3, 0.97);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--transition),
        visibility var(--transition);
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-image-container {
    width: min(1120px, 82vw);
    height: min(760px, 78vh);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 28px;
    right: 35px;
    width: 46px;
    height: 46px;
    z-index: 2;
    color: var(--ivory);
    font-size: 38px;
    font-weight: 200;
    line-height: 1;
}

.modal-navigation {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ivory);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 40px;
    transform: translateY(-50%);
    transition:
        border-color var(--transition),
        color var(--transition);
}

.modal-navigation:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.modal-previous {
    left: 35px;
}

.modal-next {
    right: 35px;
}

.modal-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    display: flex;
    gap: 8px;
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 2px;
    transform: translateX(-50%);
}

/* =====================================================
   FOOTER
===================================================== */

.site-footer {
    padding: 80px 0 30px;
    background: #080705;
    border-top: 1px solid var(--border);
}

.footer-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: inline-flex;
}

.footer-logo img {
    width: 115px;
}

.site-footer p {
    max-width: 500px;
    margin: 24px auto 32px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    margin-top: 65px;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--white-border);
}

.footer-bottom span {
    color: #777168;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 980px) {
    .vehicle-introduction .section-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .introduction-content {
        max-width: 700px;
        padding-top: 0;
    }

    .vehicle-features .section-container {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: auto;
    }

    .feature-card:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .feature-card h3 {
        margin-top: 38px;
    }

    .gallery-heading {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .gallery-heading p {
        max-width: 600px;
    }

    .vip-information-box {
        grid-template-columns: 1fr;
    }

    .vip-specifications {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

/* =====================================================
   MOBILE NAVIGATION
===================================================== */

@media (max-width: 768px) {
    .page-header {
        min-height: 82px;
        padding: 12px 20px;
    }

    .site-logo img {
        width: 85px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        inset: 0;
        z-index: 101;
        padding: 120px 30px 50px;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
        gap: 30px;
        background: rgba(10, 9, 7, 0.98);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition:
            opacity var(--transition),
            visibility var(--transition),
            transform var(--transition);
    }

    .main-navigation.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-navigation a {
        font-family: "Cormorant Garamond", serif;
        font-size: 38px;
        font-weight: 400;
        letter-spacing: 0;
        text-transform: none;
    }

    .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);
    }

    .section-container {
        width: min(100% - 30px, 1180px);
    }

    .car-hero {
        min-height: 100svh;
        align-items: flex-end;
    }

    .hero-background img {
        object-position: 58% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                0deg,
                rgba(8, 7, 6, 0.96) 0%,
                rgba(8, 7, 6, 0.58) 55%,
                rgba(8, 7, 6, 0.25) 100%
            );
    }

    .hero-content {
        width: auto;
        margin: 0 20px;
        padding-bottom: 75px;
    }

    .hero-content h1 {
        margin-top: 14px;
        font-size: clamp(52px, 17vw, 76px);
        line-height: 0.86;
        letter-spacing: -2px;
    }

    .hero-description {
        margin-top: 23px;
        font-size: 13px;
        line-height: 1.8;
    }

    .hero-actions {
        margin-top: 28px;
        display: grid;
        grid-template-columns: 1fr;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .scroll-indicator {
        display: none;
    }

    .vehicle-introduction,
    .vehicle-gallery,
    .vip-information {
        padding: 90px 0;
    }

    .section-heading h2,
    .gallery-heading h2 {
        font-size: 49px;
    }

    .introduction-content .introduction-lead {
        font-size: 23px;
    }

    .vehicle-features {
        padding-bottom: 90px;
    }

    .feature-card {
        padding: 38px 25px;
    }

    .feature-card h3 {
        font-size: 31px;
    }

    .cinematic-image-section {
        min-height: 620px;
    }

    .cinematic-image-section > img {
        object-position: center;
    }

    .cinematic-content {
        width: auto;
        margin: 0 20px;
        padding-bottom: 50px;
    }

    .cinematic-content h2 {
        font-size: 47px;
    }

    .gallery-grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: 8px;
    }

    .gallery-grid::-webkit-scrollbar {
        display: none;
    }

    .gallery-item,
    .gallery-item-large,
    .gallery-item-wide {
        min-width: 86%;
        height: 430px;
        grid-column: auto;
        grid-row: auto;
        flex-shrink: 0;
        scroll-snap-align: center;
    }

    .gallery-hover-text {
        opacity: 1;
        transform: none;
    }

    .vip-specifications,
    .vip-description {
        padding: 40px 25px;
    }

    .specification-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .specification-row strong {
        text-align: left;
    }

    .vip-description h2 {
        font-size: 48px;
    }

    .booking-section {
        min-height: 620px;
    }

    .booking-content h2 {
        font-size: 54px;
    }

    .modal-image-container {
        width: 100vw;
        height: 75vh;
        padding: 0 15px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
    }

    .modal-navigation {
        top: auto;
        bottom: 25px;
        width: 46px;
        height: 46px;
        transform: none;
    }

    .modal-previous {
        left: 20px;
    }

    .modal-next {
        right: 20px;
    }

    .modal-counter {
        bottom: 42px;
    }

    .site-footer {
        padding-top: 65px;
    }

    .footer-bottom {
        align-items: center;
        flex-direction: column;
    }
}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 51px;
    }

    .hero-eyebrow,
    .section-eyebrow {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .section-heading h2,
    .gallery-heading h2,
    .vip-description h2 {
        font-size: 42px;
    }

    .cinematic-content h2 {
        font-size: 41px;
    }

    .gallery-item,
    .gallery-item-large,
    .gallery-item-wide {
        min-width: 92%;
        height: 390px;
    }

    .booking-content h2 {
        font-size: 47px;
    }

    .footer-links {
        gap: 18px;
    }
}

/* =====================================================
   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;
    }
}