/* =========================
   BASE
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    background: #d9d5cc;
    color: #161616;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    overflow: hidden;
}

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
    background: none;

    color: inherit;

    cursor: pointer;
}

.app {
    width: 100%;

    height: 100vh;
    height: 100dvh;

    display: grid;

    grid-template-rows:
        78px
        1fr
        48px;
}


/* =========================
   TOPBAR
========================= */

.topbar {
    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    padding: 0 35px;

    border-bottom:
        1px solid rgba(0, 0, 0, 0.15);
}

.brand {
    width: fit-content;

    display: flex;
    flex-direction: column;

    text-align: left;
}

.brand-main {
    font-size: 18px;
    font-weight: 700;

    letter-spacing: 7px;
}

.brand-sub {
    margin-top: 4px;

    font-size: 7px;

    letter-spacing: 3px;

    opacity: 0.45;
}

.main-nav {
    display: flex;

    gap: 34px;
}

.main-nav button {
    position: relative;

    padding: 7px 0;

    font-size: 11px;
}

.main-nav button::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 1px;

    background: #161616;

    transition:
        width 0.3s ease;
}

.main-nav button.active::after,
.main-nav button:hover::after {
    width: 100%;
}

.book-button {
    justify-self: end;

    min-width: 85px;

    padding: 13px 18px;

    background: #161616;
    color: #ffffff;

    font-size: 10px;

    text-transform: uppercase;
    letter-spacing: 1px;
}


/* =========================
   STAGE
========================= */

.stage {
    position: relative;

    overflow: hidden;
}

.page {
    position: absolute;

    inset: 0;

    opacity: 0;
    visibility: hidden;

    transform: scale(0.985);

    transition:
        opacity 0.45s ease,
        transform 0.45s ease,
        visibility 0.45s;
}

.page.active {
    opacity: 1;
    visibility: visible;

    transform: scale(1);

    z-index: 2;
}


/* =========================
   HOME
========================= */

#home {
    display: grid;

    grid-template-columns:
        1.45fr
        0.55fr;

    padding: 22px 26px;
}

.home-image {
    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 60% 40%,
            #73756f,
            #313534 48%,
            #101312 100%
        );
}

.image-label {
    position: absolute;

    left: 24px;
    bottom: 22px;

    z-index: 2;

    color: rgba(255,255,255,0.7);

    font-size: 9px;

    letter-spacing: 2px;
}


/* Temporary car silhouette */

.car-shape {
    position: absolute;

    width: 72%;
    height: 26%;

    right: -3%;
    bottom: 18%;

    border-radius:
        50% 45% 20% 20%
        / 65% 65% 28% 28%;

    background:
        linear-gradient(
            180deg,
            rgba(225,225,220,0.35),
            rgba(18,20,20,0.8)
        );

    transform: skewX(-8deg);
}

.car-shape::before,
.car-shape::after {
    content: "";

    position: absolute;

    bottom: -14%;

    width: 14%;

    aspect-ratio: 1;

    border-radius: 50%;

    background: #090a0a;

    border: 9px solid #272929;
}

.car-shape::before {
    left: 15%;
}

.car-shape::after {
    right: 14%;
}


.home-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 40px 6%;
}

.eyebrow {
    margin-bottom: 28px;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 2px;

    color: #8c3926;
}

.home-copy h1 {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            65px,
            6.5vw,
            118px
        );

    line-height: 0.8;

    letter-spacing: -6px;

    font-weight: 400;
}

.home-copy h1 em {
    font-weight: 400;
}

.home-copy p {
    max-width: 390px;

    margin-top: 34px;

    font-size: 14px;
    line-height: 1.75;

    color: rgba(0,0,0,0.58);
}

.inline-link {
    width: fit-content;

    display: flex;
    align-items: center;

    gap: 13px;

    margin-top: 34px;

    padding-bottom: 5px;

    border-bottom:
        1px solid #161616;

    font-size: 11px;
}

.corner-note {
    position: absolute;

    left: 50px;
    top: 48px;

    display: flex;

    gap: 25px;

    color: rgba(255,255,255,0.55);

    font-size: 8px;

    letter-spacing: 1px;
}


/* =========================
   SERVICES
========================= */

#services {
    display: grid;

    grid-template-columns:
        0.8fr
        1.2fr;

    padding: 26px;
}

.services-left {
    padding:
        50px
        45px
        35px
        30px;

    display: flex;
    flex-direction: column;
}

.page-heading > span,
.gallery-copy > span,
.booking-heading > span {
    display: block;

    margin-bottom: 22px;

    font-size: 9px;

    letter-spacing: 2px;
}

.page-heading h2,
.gallery-copy h2,
.about-copy h2,
.booking-heading h2 {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 400;
}

.page-heading h2 {
    max-width: 570px;

    font-size:
        clamp(
            55px,
            5vw,
            88px
        );

    line-height: 0.9;

    letter-spacing: -4px;
}

.page-heading h2 em {
    display: block;

    font-weight: 400;
}

.service-list {
    margin-top: auto;

    border-top:
        1px solid rgba(0,0,0,0.18);
}

.service-option {
    width: 100%;

    min-height: 86px;

    display: grid;

    grid-template-columns:
        60px
        1fr
        auto;

    align-items: center;

    text-align: left;

    border-bottom:
        1px solid rgba(0,0,0,0.18);

    transition:
        padding 0.25s ease,
        background 0.25s ease;
}

.service-option:hover,
.service-option.active {
    padding-left: 12px;

    background:
        rgba(255,255,255,0.3);
}

.service-number {
    font-family:
        Georgia,
        serif;

    color: #8c3926;
}

.service-title {
    font-size: 19px;
}

.service-price {
    font-size: 11px;

    opacity: 0.6;
}

.service-display {
    display: grid;

    grid-template-rows:
        1fr
        auto;

    background: #151817;
}

.service-visual {
    margin:
        22px
        22px
        0;

    background:
        linear-gradient(
            135deg,
            #6f746e,
            #292e2d
        );

    transition:
        background 0.4s ease;
}

.service-description {
    padding: 24px;

    display: flex;
    justify-content: space-between;
    align-items: end;

    gap: 30px;

    color: white;
}

.service-description > div {
    max-width: 390px;
}

.service-description span {
    font-size: 9px;

    letter-spacing: 2px;
}

.service-description p {
    max-width: 380px;

    margin-top: 9px;

    font-size: 12px;
    line-height: 1.6;

    color: rgba(255,255,255,0.58);
}

.service-book-button {
    padding: 14px 18px;

    display: flex;
    align-items: center;

    gap: 18px;

    background: #f1ede5;
    color: #151515;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.service-book-button:hover {
    transform:
        translateY(-2px);
}


/* =========================
   GALLERY
========================= */

#gallery {
    padding: 26px;
}

.gallery-layout {
    width: 100%;
    height: 100%;

    display: grid;

    grid-template-columns:
        1fr
        90px
        0.55fr;

    gap: 18px;
}

.gallery-main {
    position: relative;

    background:
        linear-gradient(
            135deg,
            #323836,
            #777770
        );

    transition:
        background 0.4s ease;
}

.gallery-main span {
    position: absolute;

    left: 22px;
    bottom: 20px;

    color: white;

    font-size: 11px;
}

.gallery-side {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.gallery-thumb {
    flex: 1;

    border:
        1px solid rgba(0,0,0,0.15);

    font-family:
        Georgia,
        serif;

    font-size: 20px;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    background: #161616;

    color: white;
}

.gallery-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 35px;
}

.gallery-copy h2 {
    font-size:
        clamp(
            60px,
            6vw,
            105px
        );

    line-height: 0.85;

    letter-spacing: -5px;
}

.gallery-copy h2 em {
    display: block;

    font-weight: 400;
}


/* =========================
   ABOUT
========================= */

#about {
    display: grid;

    grid-template-columns:
        0.7fr
        1.3fr;

    padding: 26px;
}

.about-copy {
    padding: 55px 45px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-copy h2 {
    font-size:
        clamp(
            65px,
            6vw,
            110px
        );

    line-height: 0.83;

    letter-spacing: -5px;
}

.about-copy h2 em {
    display: block;

    font-weight: 400;
}

.about-copy p {
    max-width: 430px;

    margin-top: 28px;

    font-size: 14px;
    line-height: 1.7;

    color: rgba(0,0,0,0.58);
}

.about-image {
    position: relative;

    background:
        linear-gradient(
            145deg,
            #9d9487,
            #4e5651 55%,
            #1e2321
        );
}

.about-image span {
    position: absolute;

    right: 28px;
    bottom: 25px;

    color: rgba(255,255,255,0.7);

    font-size: 9px;

    letter-spacing: 2px;
}


/* =========================
   BOOKING
========================= */

#booking {
    padding: 26px;
}

.booking-layout {
    width: 100%;
    height: 100%;

    display: grid;

    grid-template-columns:
        0.9fr
        1.1fr;

    background: #a34a31;

    color: #f4efe6;
}

.booking-heading {
    padding: 60px 55px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.booking-heading h2 {
    max-width: 650px;

    font-size:
        clamp(
            65px,
            7vw,
            125px
        );

    line-height: 0.82;

    letter-spacing: -6px;
}

.booking-form {
    margin: 40px;

    padding: 50px;

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 28px;

    align-content: center;

    background: #eeeae2;

    color: #161616;
}

.booking-form label {
    display: flex;
    flex-direction: column;

    gap: 10px;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.booking-form input,
.booking-form select {
    width: 100%;

    padding: 14px 0;

    border: 0;

    border-bottom:
        1px solid rgba(0,0,0,0.25);

    outline: 0;

    background: transparent;

    color: #161616;
}

.booking-form button {
    grid-column:
        1 / -1;

    margin-top: 10px;

    min-height: 58px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 20px;

    background: #161616;
    color: white;

    text-transform: uppercase;

    font-size: 10px;

    letter-spacing: 1px;
}

.booking-form button:hover {
    opacity: 0.9;
}

.booking-form button:disabled {
    opacity: 0.6;

    cursor: default;
}

.booking-message {
    grid-column:
        1 / -1;

    min-height: 18px;

    font-size: 11px;
}

.booking-message.error {
    color: #a63225;
}

.booking-message.success {
    color: #29643b;
}

.input-error {
    border-bottom-color:
        #a63225 !important;
}


/* =========================
   BOTTOM BAR
========================= */

.bottom-bar {
    padding: 0 35px;

    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    border-top:
        1px solid rgba(0,0,0,0.15);

    font-size: 8px;

    letter-spacing: 1px;
}

.bottom-bar span:last-child {
    justify-self: end;
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 850px) {

    html,
    body {
        width: 100%;
        height: 100%;

        overflow: hidden;
    }


    /* =========================
       APP
    ========================= */

    .app {
        width: 100%;

        height: 100vh;
        height: 100dvh;

        grid-template-rows:
            76px
            1fr;

        overflow: hidden;
    }


    /* Hide desktop footer on mobile */

    .bottom-bar {
        display: none;
    }


    /* =========================
       HEADER
    ========================= */

    .topbar {
        height: 76px;

        padding:
            0
            28px;

        grid-template-columns:
            1fr
            auto;

        border-bottom:
            1px solid rgba(0,0,0,0.13);

        background: #d9d5cc;

        z-index: 100;
    }


    .brand-main {
        font-size: 16px;

        letter-spacing: 6px;
    }


    .brand-sub {
        margin-top: 5px;

        font-size: 6px;

        letter-spacing: 3px;
    }


    .book-button {
        min-width: 94px;

        height: 52px;

        padding: 0 20px;

        font-size: 9px;

        letter-spacing: 2px;
    }


    /* =========================
       MOBILE NAVIGATION
    ========================= */

    .main-nav {
        position: fixed;

        left: 16px;
        right: 16px;

        bottom:
            calc(
                12px +
                env(safe-area-inset-bottom)
            );

        width: auto;

        height: 60px;

        padding:
            0
            18px;

        display: grid;

        grid-template-columns:
            repeat(4, 1fr);

        align-items: center;

        gap: 0;

        background:
            rgba(239,236,228,0.94);

        backdrop-filter:
            blur(18px);

        -webkit-backdrop-filter:
            blur(18px);

        border:
            1px solid rgba(0,0,0,0.08);

        z-index: 1000;
    }


    .main-nav button {
        height: 100%;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 0;

        font-size: 9px;

        text-align: center;
    }


    .main-nav button::after {
        left: 50%;
        bottom: 12px;

        transform:
            translateX(-50%);

        width: 0;

        height: 1px;
    }


    .main-nav button.active::after {
        width: 28px;
    }


    /* =========================
       STAGE
    ========================= */

    .stage {
        position: relative;

        width: 100%;
        height: 100%;

        overflow: hidden;
    }


    .page {
        top: 0;
        left: 0;
        right: 0;

        bottom:
            calc(
                82px +
                env(safe-area-inset-bottom)
            );

        overflow: hidden;
    }


    /* ==================================================
       HOME
    ================================================== */

    #home {
        display: block;

        padding:
            14px
            16px;
    }


    .home-image {
        position: absolute;

        top: 14px;
        left: 16px;
        right: 16px;

        height: 48%;

        inset: auto;

        background-position:
            center;

        z-index: 0;
    }


    .image-label {
        left: 18px;
        bottom: 16px;

        font-size: 7px;
    }


    .home-copy {
        position: absolute;

        left: 16px;
        right: 16px;

        bottom: 0;

        height: 48%;

        padding:
            25px
            22px
            15px;

        justify-content:
            flex-start;

        background: #d9d5cc;

        z-index: 2;
    }


    .eyebrow {
        margin-bottom: 15px;

        font-size: 7px;

        letter-spacing: 2px;
    }


    .home-copy h1 {
        font-size:
            clamp(
                48px,
                14vw,
                70px
            );

        line-height: 0.78;

        letter-spacing: -4px;
    }


    .home-copy p {
        max-width: 100%;

        margin-top: 18px;

        font-size: 11px;
        line-height: 1.55;
    }


    .inline-link {
        margin-top: 18px;

        font-size: 9px;
    }


    .corner-note {
        display: none;
    }


    /* ==================================================
       SERVICES
    ================================================== */

    #services {
        display: block;

        padding:
            32px
            28px
            20px;
    }


    .services-left {
        height: 100%;

        padding: 0;

        display: flex;
        flex-direction: column;
    }


    .page-heading {
        margin-bottom: 30px;
    }


    .page-heading > span {
        margin-bottom: 14px;

        font-size: 7px;

        letter-spacing: 2px;
    }


    .page-heading h2 {
        max-width: 100%;

        font-size:
            clamp(
                46px,
                13vw,
                64px
            );

        line-height: 0.85;

        letter-spacing: -3px;
    }


    .service-list {
        margin-top: auto;
        margin-bottom: auto;
    }


    .service-option {
        min-height: 72px;

        grid-template-columns:
            44px
            1fr
            auto;

        padding:
            0
            4px;
    }


    .service-option:hover,
    .service-option.active {
        padding-left: 8px;
    }


    .service-number {
        font-size: 15px;
    }


    .service-title {
        font-size: 16px;
    }


    .service-price {
        font-size: 10px;
    }


    /* Hide large service image on phone */

    .service-display {
        display: none;
    }


    /* ==================================================
       GALLERY
    ================================================== */

    #gallery {
        padding:
            14px
            16px;
    }


    .gallery-layout {
        width: 100%;
        height: 100%;

        display: grid;

        grid-template-columns: 1fr;

        grid-template-rows:
            minmax(0, 1fr)
            58px
            auto;

        gap: 12px;
    }


    .gallery-main {
        min-height: 0;

        background-position:
            center;

        border: 0;
    }


    .gallery-main span {
        left: 16px;
        bottom: 15px;

        font-size: 9px;
    }


    .gallery-side {
        display: grid;

        grid-template-columns:
            repeat(4, 1fr);

        gap: 8px;
    }


    .gallery-thumb {
        min-width: 0;

        font-size: 18px;
    }


    .gallery-copy {
        padding:
            8px
            2px
            5px;
    }


    .gallery-copy > span {
        margin-bottom: 10px;

        font-size: 7px;
    }


    .gallery-copy h2 {
        font-size:
            clamp(
                44px,
                12vw,
                62px
            );

        line-height: 0.82;

        letter-spacing: -3px;
    }


    /* ==================================================
       ABOUT
    ================================================== */

    #about {
        display: block;

        padding:
            28px
            28px;
    }


    .about-copy {
        width: 100%;
        height: 100%;

        padding: 0;

        display: flex;

        flex-direction: column;

        justify-content:
            center;
    }


    .about-copy .eyebrow {
        margin-bottom: 18px;
    }


    .about-copy h2 {
        font-size:
            clamp(
                52px,
                14vw,
                72px
            );

        line-height: 0.8;

        letter-spacing: -4px;
    }


    .about-copy p {
        max-width: 100%;

        margin-top: 22px;

        font-size: 12px;
        line-height: 1.55;
    }


    .about-image {
        display: none;
    }


    /* ==================================================
       BOOKING
    ================================================== */

    #booking {
        padding:
            14px
            16px;
    }


    .booking-layout {
        display: block;

        height: 100%;

        background:
            #a34a31;
    }


    .booking-heading {
        display: none;
    }


    .booking-form {
        width: 100%;
        height: 100%;

        margin: 0;

        padding:
            24px
            22px;

        display: flex;
        flex-direction: column;

        justify-content:
            center;

        gap: 16px;
    }


    .booking-form label {
        gap: 6px;

        font-size: 8px;
    }


    .booking-form input,
    .booking-form select {
        padding:
            10px
            0;

        font-size: 13px;
    }


    .booking-form button {
        min-height: 48px;

        margin-top: 5px;
    }


    .booking-message {
        min-height: 12px;

        font-size: 9px;
    }

}

.service-visual,
.gallery-main {
    transition:
        opacity 0.18s ease,
        transform 0.3s ease;
}