/* =====================================================
   ROLLS-ROYCE GHOST — ROYAL VIP CARS
   Premium cinematic responsive design
===================================================== */

:root {
    --black: #080808;
    --soft-black: #101010;
    --card-black: #151515;
    --gold: #c8a45d;
    --light-gold: #e0c58a;
    --ivory: #f3eee4;
    --soft-white: #d9d4ca;
    --muted: #9b978f;
    --border: rgba(200, 164, 93, 0.25);
    --header-height: 88px;
}


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--ivory);
    font-family: "Jost", sans-serif;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

img {
    width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: none;
    background: none;
    color: inherit;
    font: inherit;
}

ul {
    list-style: none;
}

::selection {
    background: var(--gold);
    color: var(--black);
}


/* =====================================================
   REUSABLE ELEMENTS
===================================================== */

.section-label {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.primary-button,
.secondary-button {
    min-height: 54px;
    padding: 16px 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.3s ease;
}

.primary-button {
    background: var(--gold);
    color: var(--black);
    border: 1px solid var(--gold);
}

.primary-button:hover {
    background: var(--light-gold);
    border-color: var(--light-gold);
}

.secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: var(--ivory);
    backdrop-filter: blur(8px);
}

.secondary-button:hover {
    color: var(--black);
    background: var(--ivory);
    border-color: var(--ivory);
}


/* =====================================================
   HEADER
===================================================== */

.page-header {
    width: 100%;
    height: var(--header-height);
    padding: 0 5%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.88),
        rgba(0, 0, 0, 0.1)
    );
    transition: 0.35s ease;
}

.page-header.scrolled {
    height: 74px;
    background: rgba(8, 8, 8, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.header-logo {
    width: 88px;
    position: relative;
    z-index: 1002;
}

.header-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.desktop-navigation {
    display: flex;
    align-items: center;
    gap: 38px;
}

.desktop-navigation a {
    position: relative;
    color: var(--ivory);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.desktop-navigation a::after {
    content: "";
    width: 0;
    height: 1px;
    position: absolute;
    left: 0;
    bottom: -8px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.desktop-navigation a:hover::after {
    width: 100%;
}

.menu-button {
    width: 34px;
    height: 26px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1002;
    cursor: pointer;
}

.menu-button span {
    width: 100%;
    height: 1px;
    background: var(--ivory);
    transition: 0.35s ease;
}

.menu-button.active span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
}

.mobile-navigation {
    display: none;
}


/* =====================================================
   HERO
===================================================== */

.ghost-hero {
    min-height: 100svh;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-background {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.98) 0%,
            rgba(0, 0, 0, 0.38) 52%,
            rgba(0, 0, 0, 0.48) 100%
        ),
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.7),
            transparent 65%
        );
}

.hero-content {
    width: min(720px, 90%);
    margin-left: 7%;
    padding: 0 0 10vh;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    margin-bottom: 22px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(58px, 8vw, 112px);
    font-weight: 400;
    line-height: 0.82;
    letter-spacing: -3px;
}

.hero-content h1 strong {
    display: block;
    color: var(--gold);
    font-weight: 500;
}

.hero-content p {
    max-width: 610px;
    color: var(--soft-white);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.scroll-indicator {
    position: absolute;
    right: 5%;
    bottom: 60px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: rotate(90deg);
    transform-origin: right bottom;
}

.scroll-indicator span {
    color: var(--soft-white);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-indicator i {
    width: 52px;
    height: 1px;
    display: block;
    background: var(--gold);
}


/* =====================================================
   INTRODUCTION
===================================================== */

.ghost-introduction {
    max-width: 1400px;
    margin: 0 auto;
    padding: 130px 7%;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 90px;
}

.introduction-heading h2 {
    max-width: 500px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(45px, 5vw, 78px);
    font-weight: 400;
    line-height: 0.95;
}

.introduction-content {
    padding-top: 28px;
}

.introduction-content p {
    max-width: 650px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.9;
}

.introduction-content .large-description {
    margin-bottom: 30px;
    color: var(--ivory);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(26px, 2.8vw, 39px);
    line-height: 1.3;
}


/* =====================================================
   FEATURE SHOWCASE
===================================================== */

.feature-showcase {
    min-height: 760px;
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    background: var(--soft-black);
}

.feature-image {
    min-height: 760px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content {
    padding: 90px 12%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-number {
    margin-bottom: 80px;
    color: rgba(200, 164, 93, 0.25);
    font-family: "Cormorant Garamond", serif;
    font-size: 92px;
    line-height: 1;
}

.feature-content h2 {
    margin-bottom: 25px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(48px, 5vw, 76px);
    font-weight: 400;
    line-height: 0.96;
}

.feature-content p {
    color: var(--muted);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.85;
}

.feature-list {
    margin-top: 38px;
    display: grid;
    gap: 18px;
}

.feature-list li {
    padding-bottom: 17px;
    position: relative;
    color: var(--soft-white);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.feature-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 13px;
    display: inline-block;
    background: var(--gold);
    transform: rotate(45deg);
}


/* =====================================================
   DETAILS
===================================================== */

.ghost-details {
    max-width: 1400px;
    margin: 0 auto;
    padding: 110px 7%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.detail-card {
    min-height: 280px;
    padding: 15px 55px;
    border-right: 1px solid var(--border);
}

.detail-card:first-child {
    padding-left: 0;
}

.detail-card:last-child {
    padding-right: 0;
    border-right: none;
}

.detail-card > span {
    margin-bottom: 48px;
    display: block;
    color: var(--gold);
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
}

.detail-card h3 {
    margin-bottom: 18px;
    font-family: "Cormorant Garamond", serif;
    font-size: 35px;
    font-weight: 500;
}

.detail-card p {
    color: var(--muted);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
}


/* =====================================================
   GALLERY
===================================================== */

.ghost-gallery {
    padding: 130px 4%;
    background: #0d0d0d;
}

.gallery-heading {
    max-width: 1300px;
    margin: 0 auto 65px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
}

.gallery-heading h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(47px, 5.5vw, 80px);
    font-weight: 400;
    line-height: 1;
}

.gallery-heading p {
    max-width: 440px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
}

.gallery-grid {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 290px;
    gap: 12px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item-wide {
    grid-column: span 2;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.42),
        transparent 50%
    );
    opacity: 0;
    transition: 0.35s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-item:hover img {
    transform: scale(1.045);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-icon {
    width: 45px;
    height: 45px;
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: grid;
    place-items: center;
    color: var(--black);
    background: var(--ivory);
    font-size: 22px;
    opacity: 0;
    transform: translateY(12px);
    transition: 0.35s ease;
}

.gallery-item:hover .gallery-icon {
    opacity: 1;
    transform: translateY(0);
}


/* =====================================================
   SPECIFICATIONS
===================================================== */

.ghost-specifications {
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px 7%;
}

.specifications-heading {
    margin-bottom: 75px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.specifications-heading h2 {
    max-width: 700px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(50px, 6vw, 86px);
    font-weight: 400;
    line-height: 0.95;
}

.specifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.specification-item {
    min-height: 160px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.specification-item span {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.specification-item strong {
    color: var(--ivory);
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    font-weight: 500;
}


/* =====================================================
   BOOKING SECTION
===================================================== */

.booking-section {
    min-height: 680px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.booking-background {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: center;
}

.booking-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0.75)
        );
}

.booking-content {
    width: min(760px, 88%);
    position: relative;
    z-index: 2;
    text-align: center;
}

.booking-content h2 {
    margin-bottom: 25px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(52px, 7vw, 93px);
    font-weight: 400;
    line-height: 0.95;
}

.booking-content p {
    max-width: 620px;
    margin: 0 auto 34px;
    color: var(--soft-white);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
}


/* =====================================================
   IMAGE MODAL
===================================================== */

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.96);
    opacity: 0;
    visibility: hidden;
    transition: 0.35s ease;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-image-wrapper {
    width: min(1100px, 84%);
    max-height: 82vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-wrapper img {
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
}

.modal-close {
    width: 52px;
    height: 52px;
    position: absolute;
    top: 28px;
    right: 35px;
    z-index: 2;
    color: var(--ivory);
    font-size: 36px;
    font-weight: 200;
    cursor: pointer;
    transition: 0.25s ease;
}

.modal-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

.modal-navigation {
    width: 60px;
    height: 60px;
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    color: var(--ivory);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 24px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: 0.25s ease;
}

.modal-navigation:hover {
    color: var(--black);
    background: var(--gold);
    border-color: var(--gold);
}

.modal-previous {
    left: 35px;
}

.modal-next {
    right: 35px;
}

.modal-counter {
    padding: 7px 14px;
    position: absolute;
    left: 50%;
    bottom: -45px;
    color: var(--soft-white);
    background: rgba(0, 0, 0, 0.55);
    font-size: 11px;
    letter-spacing: 2px;
    transform: translateX(-50%);
}


/* =====================================================
   FOOTER
===================================================== */

.page-footer {
    padding: 90px 7% 30px;
    background: #050505;
    border-top: 1px solid var(--border);
}

.footer-brand {
    max-width: 500px;
}

.footer-brand img {
    width: 100px;
    margin-bottom: 25px;
}

.footer-brand p {
    color: var(--muted);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
}

.footer-links {
    margin: 55px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
}

.footer-links a {
    color: var(--soft-white);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    color: #6f6c66;
    font-size: 11px;
    letter-spacing: 1px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1024px) {

    .ghost-introduction {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .feature-showcase {
        grid-template-columns: 1fr;
    }

    .feature-image {
        min-height: 600px;
    }

    .feature-content {
        padding: 90px 8%;
    }

    .section-number {
        margin-bottom: 45px;
    }

    .ghost-details {
        grid-template-columns: 1fr;
    }

    .detail-card,
    .detail-card:first-child,
    .detail-card:last-child {
        min-height: auto;
        padding: 45px 0;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .detail-card:last-child {
        border-bottom: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .specifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =====================================================
   MOBILE NAVIGATION
===================================================== */

@media (max-width: 768px) {

    :root {
        --header-height: 76px;
    }

    .page-header {
        padding: 0 20px;
    }

    .header-logo {
        width: 72px;
    }

    .desktop-navigation {
        display: none;
    }

    .menu-button {
        display: flex;
    }

    .mobile-navigation {
        width: 100%;
        height: 100svh;
        padding: 120px 30px 50px;
        position: fixed;
        inset: 0;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        background: rgba(8, 8, 8, 0.99);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: 0.35s ease;
    }

    .mobile-navigation.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-navigation a {
        font-family: "Cormorant Garamond", serif;
        font-size: 38px;
        font-weight: 400;
        letter-spacing: 1px;
    }


    /* HERO */

    .ghost-hero {
        min-height: 100svh;
        align-items: flex-end;
    }

    .hero-background {
        object-position: 62% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                to top,
                rgba(0, 0, 0, 0.98) 0%,
                rgba(0, 0, 0, 0.5) 60%,
                rgba(0, 0, 0, 0.48) 100%
            );
    }

    .hero-content {
        width: auto;
        margin: 0;
        padding: 0 20px 70px;
    }

    .hero-content h1 {
        margin-bottom: 18px;
        font-size: clamp(55px, 18vw, 78px);
        line-height: 0.83;
        letter-spacing: -2px;
    }

    .hero-content p {
        max-width: 95%;
        font-size: 14px;
        line-height: 1.7;
    }

    .hero-actions {
        width: 100%;
        margin-top: 28px;
        flex-direction: column;
    }

    .hero-actions a {
        width: 100%;
    }

    .scroll-indicator {
        display: none;
    }


    /* INTRODUCTION */

    .ghost-introduction {
        padding: 90px 20px;
        gap: 30px;
    }

    .introduction-heading h2 {
        font-size: 51px;
    }

    .introduction-content {
        padding-top: 0;
    }

    .introduction-content .large-description {
        font-size: 27px;
    }

    .introduction-content p {
        font-size: 14px;
        line-height: 1.8;
    }


    /* FEATURE */

    .feature-image {
        min-height: 470px;
    }

    .feature-image img {
        object-position: center;
    }

    .feature-content {
        padding: 70px 20px;
    }

    .section-number {
        margin-bottom: 28px;
        font-size: 68px;
    }

    .feature-content h2 {
        font-size: 54px;
    }


    /* DETAILS */

    .ghost-details {
        padding: 70px 20px;
    }

    .detail-card {
        padding: 38px 0;
    }

    .detail-card > span {
        margin-bottom: 25px;
    }

    .detail-card h3 {
        font-size: 33px;
    }


    /* GALLERY */

    .ghost-gallery {
        padding: 90px 12px;
    }

    .gallery-heading {
        margin-bottom: 45px;
        padding: 0 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .gallery-heading h2 {
        font-size: 52px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 190px;
        gap: 7px;
    }

    .gallery-item-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-item-wide {
        grid-column: span 2;
    }

    .gallery-icon {
        width: 37px;
        height: 37px;
        right: 10px;
        bottom: 10px;
        opacity: 1;
        transform: none;
        font-size: 19px;
    }


    /* SPECIFICATIONS */

    .ghost-specifications {
        padding: 90px 20px;
    }

    .specifications-heading {
        margin-bottom: 45px;
    }

    .specifications-heading h2 {
        font-size: 53px;
    }

    .specifications-grid {
        grid-template-columns: 1fr;
    }

    .specification-item {
        min-height: 130px;
        padding: 26px;
    }

    .specification-item strong {
        font-size: 25px;
    }


    /* BOOKING */

    .booking-section {
        min-height: 620px;
    }

    .booking-background {
        object-position: 60% center;
    }

    .booking-content h2 {
        font-size: 56px;
    }

    .booking-content p {
        font-size: 14px;
    }

    .booking-content .primary-button {
        width: 100%;
    }


    /* MODAL */

    .modal-image-wrapper {
        width: 100%;
        padding: 0 12px;
    }

    .modal-image-wrapper img {
        max-height: 72vh;
    }

    .modal-close {
        top: 15px;
        right: 14px;
    }

    .modal-navigation {
        width: 44px;
        height: 50px;
        top: auto;
        bottom: 20px;
        background: rgba(0, 0, 0, 0.55);
    }

    .modal-previous {
        left: 20px;
    }

    .modal-next {
        right: 20px;
    }

    .modal-counter {
        bottom: -38px;
    }


    /* FOOTER */

    .page-footer {
        padding: 75px 20px 25px;
    }

    .footer-links {
        gap: 25px;
    }
}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

    .section-label {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .hero-content h1 {
        font-size: 58px;
    }

    .primary-button,
    .secondary-button {
        min-height: 52px;
        padding: 15px 20px;
        font-size: 11px;
    }

    .feature-image {
        min-height: 390px;
    }

    .gallery-grid {
        grid-auto-rows: 160px;
    }

    .gallery-heading h2,
    .specifications-heading h2,
    .booking-content h2 {
        font-size: 47px;
    }
}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}