/* =====================================================
   PORSCHE 911 TARGA GTS
   Royal VIP Cars
   Mobile-first premium design
===================================================== */

/* -------------------------
   GLOBAL RESET
------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at top,
            rgba(255, 255, 255, 0.04),
            transparent 35%
        ),
        #0c0b09;

    color: #f2ede3;

    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* -------------------------
   COLOR VARIABLES
------------------------- */

:root {
    --background: #0c0b09;
    --background-soft: #13120f;
    --card-background: #171612;

    --gold: #c8a45d;
    --gold-light: #e4c887;
    --gold-dark: #8d713c;

    --ivory: #f2ede3;
    --text-soft: #b8b2a7;
    --border: rgba(200, 164, 93, 0.25);

    --container: 1180px;

    --radius-small: 10px;
    --radius-medium: 18px;
    --radius-large: 28px;
}

/* =====================================================
   HEADER
===================================================== */

.page-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;

    width: 100%;
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 5%;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0)
    );
}

.logo {
    position: relative;

    color: var(--gold-light);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    white-space: nowrap;
}

.logo::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;

    width: 38px;
    height: 1px;

    background: var(--gold);
}

.page-header nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.page-header nav a {
    position: relative;

    padding: 8px 0;

    color: rgba(255, 255, 255, 0.8);

    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.page-header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;

    width: 0;
    height: 1px;

    background: var(--gold);

    transition: width 0.3s ease;
}

.page-header nav a:hover {
    color: var(--gold-light);
}

.page-header nav a:hover::after {
    width: 100%;
}

/* =====================================================
   HERO SECTION
===================================================== */

.car-hero {
    position: relative;

    min-height: 100svh;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    padding: 120px 6% 72px;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    isolation: isolate;
}

.car-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.25) 0%,
            rgba(0, 0, 0, 0.18) 35%,
            rgba(0, 0, 0, 0.8) 80%,
            #0c0b09 100%
        ),
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.35),
            transparent 65%
        );
}

.car-hero-content {
    width: 100%;
    max-width: var(--container);

    text-align: left;
}

.car-hero-content span {
    display: inline-block;

    margin-bottom: 14px;

    color: var(--gold-light);

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
}

.car-hero-content h1 {
    max-width: 850px;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 9vw, 92px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -2px;
}

.car-hero-content p {
    max-width: 560px;

    margin-top: 24px;

    color: rgba(255, 255, 255, 0.75);

    font-size: 15px;
    line-height: 1.8;
}

/* =====================================================
   MAIN DETAILS WRAPPER
===================================================== */

.car-details {
    width: min(100% - 32px, var(--container));

    margin: 0 auto;
    padding: 54px 0 90px;
}

/* =====================================================
   CAR INTRO
===================================================== */

.car-intro {
    max-width: 820px;

    margin: 0 auto 65px;

    text-align: center;
}

.car-intro::before {
    content: "PORSCHE EXPERIENCE";

    display: block;

    margin-bottom: 14px;

    color: var(--gold);

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 4px;
}

.car-intro h2 {
    color: var(--ivory);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(31px, 7vw, 54px);
    font-weight: 400;
    line-height: 1.15;
}

.car-intro p {
    margin-top: 23px;

    color: var(--text-soft);

    font-size: 15px;
    line-height: 1.9;
}

/* =====================================================
   PREMIUM BOX
===================================================== */

.premium-spec-box {
    position: relative;

    margin: 0 0 65px;
    padding: 32px 20px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.01)
        ),
        var(--background-soft);

    border: 1px solid var(--border);
    border-radius: var(--radius-large);
}

.premium-spec-box::before {
    content: "";

    position: absolute;
    top: 0;
    left: 10%;

    width: 80%;
    height: 1px;

    background: linear-gradient(
        to right,
        transparent,
        var(--gold),
        transparent
    );
}

.premium-spec-box > h2 {
    margin-bottom: 28px;

    color: var(--ivory);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 400;
    text-align: center;
}

/* =====================================================
   VEHICLE HIGHLIGHTS
===================================================== */

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.highlight-card {
    position: relative;

    min-height: 150px;

    padding: 24px 20px;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-medium);
}

.highlight-card::before {
    content: "";

    display: block;

    width: 28px;
    height: 1px;

    margin-bottom: 18px;

    background: var(--gold);
}

.highlight-card h3 {
    margin-bottom: 10px;

    color: var(--ivory);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 400;
}

.highlight-card p {
    color: var(--text-soft);

    font-size: 13px;
    line-height: 1.75;
}

/* =====================================================
   GALLERY
===================================================== */

.gallery-section {
    margin-bottom: 65px;
}

.gallery-section > h2 {
    margin-bottom: 28px;

    color: var(--ivory);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(31px, 7vw, 48px);
    font-weight: 400;
    text-align: center;
}

.gallery-section > h2::after {
    content: "";

    display: block;

    width: 45px;
    height: 1px;

    margin: 14px auto 0;

    background: var(--gold);
}

.car-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.car-gallery img {
    width: 100%;
    height: 270px;

    object-fit: cover;
    object-position: center;

    border-radius: var(--radius-medium);
    border: 1px solid rgba(255, 255, 255, 0.08);

    cursor: pointer;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease,
        border-color 0.35s ease;
}

.car-gallery img:hover {
    transform: scale(1.015);
    opacity: 0.9;
    border-color: rgba(200, 164, 93, 0.5);
}

/* First gallery image */

.car-gallery img:first-child {
    height: 350px;
}

/* =====================================================
   SPECIFICATIONS
===================================================== */

.spec-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.spec-grid > div {
    display: flex;
    flex-direction: column;
    gap: 7px;

    padding: 20px 4px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-grid > div:last-child {
    border-bottom: none;
}

.spec-grid span {
    color: var(--gold);

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.spec-grid strong {
    color: var(--ivory);

    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

/* =====================================================
   BOOKING SECTION
===================================================== */

.booking-box {
    position: relative;

    padding: 46px 22px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(200, 164, 93, 0.13),
            rgba(255, 255, 255, 0.025)
        ),
        var(--background-soft);

    border: 1px solid rgba(200, 164, 93, 0.35);
    border-radius: var(--radius-large);

    text-align: center;
}

.booking-box::before {
    content: "";

    position: absolute;
    top: -90px;
    right: -90px;

    width: 210px;
    height: 210px;

    background: rgba(200, 164, 93, 0.08);

    border-radius: 50%;
    filter: blur(10px);
}

.booking-box h2 {
    position: relative;

    color: var(--ivory);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 8vw, 52px);
    font-weight: 400;
}

.booking-box p {
    position: relative;

    max-width: 480px;

    margin: 15px auto 27px;

    color: var(--text-soft);

    font-size: 14px;
    line-height: 1.8;
}

.whatsapp-btn {
    position: relative;

    width: 100%;
    min-height: 55px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 15px 24px;

    background: var(--gold);

    color: #0c0b09;

    border: 1px solid var(--gold);
    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.whatsapp-btn:hover {
    background: transparent;
    color: var(--gold-light);
    transform: translateY(-2px);
}

/* =====================================================
   TABLET
===================================================== */

@media (min-width: 600px) {

    .car-details {
        width: min(100% - 60px, var(--container));
    }

    .page-header {
        padding-inline: 6%;
    }

    .logo {
        font-size: 17px;
    }

    .page-header nav {
        gap: 28px;
    }

    .page-header nav a {
        font-size: 13px;
    }

    .car-hero {
        padding-inline: 7%;
    }

    .premium-spec-box {
        padding: 42px 35px;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .car-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .car-gallery img,
    .car-gallery img:first-child {
        height: 340px;
    }

    .car-gallery img:first-child {
        grid-column: span 2;
        height: 470px;
    }

    .spec-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 35px;
    }

    .spec-grid > div:nth-last-child(-n + 2) {
        border-bottom: none;
    }

    .booking-box {
        padding: 65px 40px;
    }

    .whatsapp-btn {
        width: auto;
        min-width: 260px;
    }
}

/* =====================================================
   DESKTOP
===================================================== */

@media (min-width: 992px) {

    .page-header {
        position: fixed;

        padding: 20px 5%;

        background: rgba(12, 11, 9, 0.72);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);

        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .car-hero {
        align-items: center;

        padding-top: 140px;
        padding-bottom: 100px;
    }

    .car-hero-content {
        padding-top: 150px;
    }

    .car-hero-content p {
        font-size: 17px;
    }

    .car-details {
        padding-top: 95px;
        padding-bottom: 120px;
    }

    .car-intro {
        margin-bottom: 95px;
    }

    .premium-spec-box,
    .gallery-section {
        margin-bottom: 95px;
    }

    .premium-spec-box {
        padding: 55px;
    }

    .highlights-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .highlight-card {
        min-height: 205px;

        padding: 30px 24px;
    }

    .car-gallery {
        grid-template-columns: repeat(12, 1fr);
        gap: 18px;
    }

    .car-gallery img {
        grid-column: span 4;

        height: 330px;
    }

    .car-gallery img:first-child {
        grid-column: span 8;
        grid-row: span 2;

        height: 678px;
    }

    .car-gallery img:nth-child(2) {
        grid-column: span 4;

        height: 330px;
    }

    .car-gallery img:nth-child(3) {
        grid-column: span 4;

        height: 330px;
    }

    .car-gallery img:nth-child(n + 4) {
        grid-column: span 6;

        height: 400px;
    }

    .spec-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .spec-grid > div {
        padding: 12px 25px;

        border-right: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: none;
    }

    .spec-grid > div:first-child {
        padding-left: 0;
    }

    .spec-grid > div:last-child {
        padding-right: 0;
        border-right: none;
    }

    .booking-box {
        padding: 85px 40px;
    }
}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

    .page-header {
        min-height: 70px;

        padding: 16px 18px;
    }

    .logo {
        max-width: 120px;

        font-size: 12px;
        line-height: 1.3;
        white-space: normal;
    }

    .page-header nav {
        gap: 11px;
    }

    .page-header nav a {
        font-size: 10px;
    }

    .car-hero {
        min-height: 92svh;

        padding: 105px 20px 52px;

        background-position: 58% center;
    }

    .car-hero-content h1 {
        font-size: clamp(39px, 13vw, 56px);
        letter-spacing: -1px;
    }

    .car-hero-content p {
        margin-top: 18px;

        font-size: 13px;
    }

    .car-details {
        width: min(100% - 28px, var(--container));

        padding-top: 45px;
    }

    .premium-spec-box {
        padding: 29px 17px;

        border-radius: 22px;
    }

    .highlight-card {
        min-height: auto;
    }

    .car-gallery img,
    .car-gallery img:first-child {
        height: 250px;
    }

    .booking-box {
        padding: 42px 18px;
    }
}

/* =====================================================
   REDUCED MOTION ACCESSIBILITY
===================================================== */

@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;
    }
}