﻿
.service-page {
    min-height: 100vh;
    padding: 2rem 1.25rem 5rem;
    background: var(--color-bg);
}

.service-container {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
}


/* =========================================================
   BOOKING TOPBAR
========================================================= */

.booking-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    padding: .85rem 0 .9rem;
    background: rgba(248, 246, 242, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(23, 22, 20, .04);
    box-shadow: 0 6px 20px rgba(23, 22, 20, .025);
}


/* =========================================================
   BACK BUTTON
========================================================= */

.booking-back {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-text);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    text-decoration: none;
    transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

    .booking-back:hover {
        color: var(--color-text);
    }


/* =========================================================
   BOOKING PROGRESS
========================================================= */

/*
    HTML structure:

    step
    line
    step
    line
    step
    line
    step
    line
    step

    Flexbox is ideal here because the lines can
    naturally stretch between the circles.
*/

.booking-progress {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: flex-start;
}


/* =========================================================
   PROGRESS STEP
========================================================= */

.progress-step {
    flex: 0 0 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 58px;
    text-align: center;
}


/* =========================================================
   STEP CIRCLE
========================================================= */

.step-circle {
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-text-muted);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    font-size: .85rem;
    font-weight: 600;
    transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}


/* =========================================================
   ACTIVE STEP
========================================================= */

.progress-step.active .step-circle {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 8px 22px rgba(23, 22, 20, .15);
}

.progress-step.active .step-label {
    color: var(--color-text);
}


/* =========================================================
   STEP LABEL
========================================================= */

.step-label {
    margin-top: .65rem;
    color: var(--color-text-soft);
    font-size: .68rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}


/* =========================================================
   CONNECTING LINES
========================================================= */

.progress-line {
    flex: 1;
    min-width: 20px;
    height: 1px;
    margin-top: 21px;
    background: var(--color-border);
    z-index: 1;
}

    .progress-line.active {
        background: var(--color-accent);
    }


/* =========================================================
   INTRO
========================================================= */

.service-intro {
    max-width: 720px;
    margin: 2.75rem 0 2rem;
}

    .service-intro h1 {
        margin: 0;
        color: var(--color-primary);
        font-size: clamp(2rem, 3.5vw, 3.2rem);
        font-weight: 800;
        letter-spacing: -.055em;
        line-height: 1;
    }










/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    .service-page {
        padding: 1.5rem 1rem 4rem;
    }


    /* -----------------------------------------
       TOPBAR
    ----------------------------------------- */

    .booking-topbar {
        grid-template-columns: 38px minmax(0, 1fr);
        column-gap: 1.25rem;
    }


    .booking-back {
        width: 38px;
        height: 38px;
    }


    /* -----------------------------------------
       PROGRESS
    ----------------------------------------- */

    .progress-step {
        flex-basis: 48px;
        min-width: 48px;
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: .78rem;
    }

    .progress-line {
        margin-top: 18px;
        min-width: 14px;
    }

    .step-label {
        margin-top: .55rem;
        font-size: .6rem;
    }


    /* -----------------------------------------
       INTRO
    ----------------------------------------- */

    .service-intro {
        margin-top: 2.25rem;
    }

        .service-intro h1 {
            font-size: clamp(2.1rem, 7vw, 3rem);
        }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 560px) {

    .service-page {
        padding: 1.25rem .9rem 3rem;
    }


    .booking-topbar {
        position: sticky;
        top: 0;
        z-index: 100;
        width: 100%;
        padding: .75rem .9rem .9rem;
        box-sizing: border-box;
        background: transparent;
        border-bottom: 0;
        box-shadow: none;
    }

        .booking-topbar::before {
            content: "";
            position: absolute;
            z-index: -1;
            top: 0;
            bottom: 0;
            left: 50%;
            width: 100vw;
            transform: translateX(-50%);
            background: rgba(248, 246, 242, .94);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border-bottom: 1px solid rgba(23, 22, 20, .05);
            box-shadow: 0 6px 20px rgba(23, 22, 20, .025);
        }


    .booking-back {
        width: 36px;
        height: 36px;
        margin-bottom: 1.25rem;
        font-size: .85rem;
    }


    /* -----------------------------------------
       PROGRESS

       Full available width on mobile.
    ----------------------------------------- */

    .booking-progress {
        width: 100%;
        display: flex;
    }


    /* -----------------------------------------
       STEPS
    ----------------------------------------- */

    .progress-step {
        flex: 0 0 34px;
        min-width: 34px;
    }


    .step-circle {
        width: 32px;
        height: 32px;
        font-size: .7rem;
    }


    /* -----------------------------------------
       CONNECTING LINES

       These remain visible on mobile.
    ----------------------------------------- */

    .progress-line {
        flex: 1;
        min-width: 12px;
        margin-top: 16px;
    }


    /* -----------------------------------------
       LABELS
    ----------------------------------------- */

    .step-label {
        margin-top: .5rem;
        font-size: .55rem;
        font-weight: 600;
        white-space: nowrap;
    }


    /* -----------------------------------------
       INTRO
    ----------------------------------------- */

    .service-intro {
        margin: 2rem 0 1.35rem;
    }

        .service-intro h1 {
            font-size: 2rem;
            line-height: 1.05;
        }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .service-page {
        padding-left: .75rem;
        padding-right: .75rem;
    }


    /* -----------------------------------------
       BACK
    ----------------------------------------- */

    .booking-back {
        width: 34px;
        height: 34px;
        margin-bottom: 1.15rem;
    }


    /* -----------------------------------------
       PROGRESS
    ----------------------------------------- */

    .progress-step {
        flex-basis: 31px;
        min-width: 31px;
    }


    .step-circle {
        width: 29px;
        height: 29px;
        font-size: .65rem;
    }


    .progress-line {
        min-width: 8px;
        margin-top: 14px;
    }


    .step-label {
        font-size: .48rem;
    }



}
