/* Tinas Rum — sitewide finishing layer. Kept in the booking plugin so small
   visual improvements can be deployed without replacing the whole theme. */

:root {
    --trb-polish-shadow: 0 24px 70px rgba(32, 46, 39, .11);
}

.tr-hero-copy {
    width: min(700px, 63%);
}

.tr-hero-image {
    object-position: 62% 50%;
    filter: saturate(.88) contrast(.96);
}

.tr-hero h1 {
    max-width: 680px;
    font-size: clamp(4.3rem, 6.2vw, 6.2rem);
    line-height: .94;
}

.tr-hero .tr-lead {
    max-width: 610px;
    font-size: clamp(1.18rem, 1.7vw, 1.55rem);
}

.tr-card,
.tr-session,
.booking-wrap {
    box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}

.tr-card {
    background:
        radial-gradient(circle at 100% 0, rgba(217,201,180,.16), transparent 38%),
        var(--tr-white);
}

.tr-card:nth-child(2n) {
    background:
        radial-gradient(circle at 100% 0, rgba(135,153,140,.15), transparent 42%),
        var(--tr-white);
}

.tr-card h3 {
    margin-bottom: .48em;
}

.tr-card-arrow {
    box-shadow: 0 7px 20px rgba(36,48,43,.06);
}

.page-hero {
    padding-top: clamp(72px, 8.5vw, 118px);
    padding-bottom: clamp(58px, 6vw, 78px);
}

.page-hero-media {
    height: min(470px, 52vw);
    box-shadow: var(--trb-polish-shadow);
}

/* Booking: the selector itself already explains the two session lengths,
   so the repeated cards above it only create unnecessary scrolling. */
.trb-booking-page .content-section > .tr-shell > .tr-session-grid {
    display: none;
}

.trb-booking-page .booking-wrap {
    min-height: 0;
    margin-top: 0;
    padding: clamp(28px, 4vw, 50px);
    border-radius: 34px;
}

.trb-booking-page .booking-wrap > h2,
.trb-booking-page .booking-wrap > p {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.trb-booking-page .booking-wrap > p {
    color: var(--tr-ink-soft);
}

.trb-assurances {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 0 0 25px;
    color: var(--trb-muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .035em;
}

.trb-assurances span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.trb-assurances span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--trb-clay);
    box-shadow: 0 0 0 4px rgba(181,111,87,.1);
}

.trb-service {
    position: relative;
    overflow: hidden;
}

.trb-service::after {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: rgba(181,111,87,.055);
    pointer-events: none;
}

.trb-booking-page .booking-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    max-width: 780px;
    margin: 30px auto 0;
    border: 1px solid rgba(36,48,43,.08);
}

.trb-booking-page .booking-note::before {
    content: "✓";
    display: grid;
    flex: 0 0 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    background: var(--tr-forest);
    color: #fff;
    font-size: .68rem;
}

/* Once Tina is signed in, the calendar is the purpose of the page. */
.trb-administration-page .page-hero,
.trb-administration-page .page-content > .tr-section.tr-section--cream {
    display: none;
}

.trb-administration-page .page-content {
    padding: clamp(46px, 7vw, 92px) 0 35px;
    background:
        radial-gradient(circle at 92% 5%, rgba(217,201,180,.28), transparent 26%),
        var(--tr-paper);
}

.trb-administration-page .trb-dashboard {
    width: var(--tr-shell);
}

.trb-administration-page .trb-day input[type="time"] {
    min-width: 0;
    padding: 8px 4px;
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
}

.trb-administration-page .trb-day input[type="time"]::-webkit-calendar-picker-indicator {
    width: 14px;
    margin: 0;
    padding: 0;
}

.trb-mobile-booking-bar {
    display: none;
}

/* A genuinely personal first impression, built from Tina's own portrait. */
.trb-personal-intro {
    position: relative;
    padding: clamp(72px, 9vw, 125px) 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 12%, rgba(181,111,87,.11), transparent 27%),
        #f3ede3;
}

.trb-personal-intro::after {
    content: "T";
    position: absolute;
    right: -2vw;
    bottom: -11vw;
    color: rgba(66,90,77,.045);
    font-family: var(--tr-serif);
    font-size: clamp(18rem, 34vw, 34rem);
    line-height: .8;
    pointer-events: none;
}

.trb-personal-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(300px,.78fr) minmax(0,1.05fr);
    align-items: center;
    gap: clamp(50px,8vw,105px);
}

.trb-personal-intro figure {
    position: relative;
    margin: 0;
}

.trb-personal-intro figure::before {
    content: "";
    position: absolute;
    inset: 22px -22px -22px 22px;
    border: 1px solid rgba(66,90,77,.5);
    border-radius: 240px 240px 26px 26px;
}

.trb-personal-intro img {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: 50% 36%;
    border-radius: 240px 240px 26px 26px;
    box-shadow: 0 25px 70px rgba(35,51,45,.16);
}

.trb-personal-intro h2 {
    max-width: 700px;
}

.trb-personal-intro p:not(.tr-lead) {
    max-width: 650px;
    color: var(--tr-ink-soft);
}

.trb-signature {
    margin: 20px 0 28px;
    color: var(--tr-clay);
    font-family: "Snell Roundhand", "Segoe Script", cursive;
    font-size: 2.25rem;
    transform: rotate(-4deg);
    transform-origin: left center;
}

@media (max-width: 720px) {
    body:not(.trb-booking-page):not(.trb-administration-page) {
        padding-bottom: 0;
    }

    body:not(.trb-booking-page):not(.trb-administration-page) .site-footer {
        padding-bottom: 122px;
    }

    .tr-hero {
        min-height: min(700px, calc(100svh - 74px));
    }

    .tr-hero-image {
        object-position: 69% 50%;
    }

    .tr-hero-copy {
        width: 100%;
        padding: 88px 0 72px;
    }

    .tr-hero h1 {
        max-width: 350px;
        font-size: clamp(3.45rem, 15vw, 4.25rem);
    }

    .tr-hero .tr-lead {
        font-size: 1.13rem;
        line-height: 1.45;
    }

    .tr-hero .tr-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        margin-top: 27px;
    }

    .tr-hero .tr-btn {
        min-height: 52px;
        padding-inline: 14px;
        font-size: .76rem;
    }

    .tr-section {
        padding-block: 66px;
    }

    .tr-section-head {
        margin-bottom: 30px;
    }

    .tr-section-head h2 {
        font-size: clamp(2.35rem, 11vw, 3.15rem);
    }

    .tr-card-grid {
        gap: 12px;
    }

    .tr-card {
        min-height: 228px;
        padding: 27px;
        border-radius: 21px;
    }

    .tr-card p {
        max-width: 290px;
        margin-bottom: 18px;
    }

    .tr-session {
        padding: 32px 27px;
    }

    .page-hero {
        padding: 52px 0 44px;
    }

    .page-hero-grid {
        gap: 30px;
    }

    .page-hero h1 {
        font-size: clamp(3.35rem, 16vw, 4.5rem);
    }

    .page-hero-media {
        height: 330px;
    }

    .content-section {
        padding-block: 58px;
    }

    .trb-booking-page .booking-wrap {
        margin-right: -3px;
        margin-left: -3px;
        padding: 24px 14px;
        border: 0;
        border-radius: 24px;
        box-shadow: none;
    }

    .trb-booking-page .booking-wrap > h2 {
        font-size: 2.35rem;
    }

    .trb-assurances {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-items: start;
        gap: 10px 18px;
        margin: 0 8px 24px;
        font-size: .67rem;
    }

    .trb-assurances span:last-child {
        grid-column: 1 / -1;
    }

    .trb-booking-page .trb-progress {
        position: sticky;
        z-index: 5;
        top: 84px;
        width: max-content;
        max-width: 100%;
        margin-bottom: 30px;
        background: rgba(255,255,255,.94);
    }

    .trb-booking-page .booking-note {
        padding: 15px;
        font-size: .8rem;
    }

    .tr-reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .trb-mobile-booking-bar {
        position: fixed;
        z-index: 900;
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        left: 12px;
        display: flex;
        min-height: 68px;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 11px 12px 11px 20px;
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 20px;
        background: rgba(31,42,37,.96);
        color: #fff;
        text-decoration: none;
        box-shadow: 0 18px 50px rgba(20,29,25,.28);
        backdrop-filter: blur(15px);
    }

    .trb-mobile-booking-bar span {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }

    .trb-mobile-booking-bar small {
        margin-bottom: 4px;
        color: rgba(255,255,255,.62);
        font-size: .61rem;
        font-weight: 750;
        letter-spacing: .1em;
        text-transform: uppercase;
    }

    .trb-mobile-booking-bar strong {
        font-family: var(--tr-serif);
        font-size: 1.08rem;
        font-weight: 500;
    }

    .trb-mobile-booking-bar b {
        display: grid;
        flex: 0 0 44px;
        height: 44px;
        place-items: center;
        border-radius: 50%;
        background: var(--tr-clay);
        font-size: 1.2rem;
    }

    .trb-administration-page .page-content {
        padding-top: 38px;
    }

    .trb-personal-intro {
        padding: 68px 0 74px;
    }

    .trb-personal-inner {
        grid-template-columns: 1fr;
        gap: 54px;
    }

    .trb-personal-intro figure {
        width: calc(100% - 22px);
    }

    .trb-personal-intro img {
        max-height: 570px;
    }

    .trb-personal-intro h2 {
        font-size: clamp(2.65rem, 12vw, 3.55rem);
    }
}

@media (max-width: 370px) {
    .tr-hero .tr-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .trb-mobile-booking-bar {
        backdrop-filter: none;
    }
}
