/* Shared proportions from the original BEAUTRIX site. */
:root {
    --sale: #b71c1c;
    --panel: linear-gradient(105deg, #efefef 0%, #f7f7f7 100%);
    --content-width: 976px;
    --heading-rule: 100px;
    --section-gap: 80px;
    --button-width: 320px;
}
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.page-panel {
    width: calc(100% - 96px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 96px 48px 80px;
    background: var(--panel);
}
.panel-inner { width: 100%; max-width: var(--content-width); margin: 0 auto; }
.section-heading { margin-bottom: 56px; }
.eyebrow { font-size: 14px; letter-spacing: 2.5px; margin-bottom: 26px; }
.eyebrow:after { width: var(--heading-rule); margin-top: 24px; }
.section-heading h1, .section-heading h2 { font-size: 36px; line-height: 1.5; letter-spacing: .06em; }
.page-panel > .panel-inner > .section-heading h1,
.page-panel > .panel-inner > .section-heading h2 { font-size: 40px; }
.page-panel > .panel-inner > .section-heading { margin-bottom: 48px; }
.breadcrumb { max-width: 1184px; padding-top: 28px; padding-bottom: 28px; }
.button { min-height: 52px; font-size: 14px; letter-spacing: .04em; }
.section-more, .reservation-actions .button { width: var(--button-width); max-width: 100%; }
.reservation { background: var(--panel); padding: 80px 24px; }
.reservation .section-heading { margin-bottom: 20px; }
.reservation .section-heading h2 { font-size: 26px; }
.prose h2 { border-color: #c9c9c9; font-size: 24px; font-weight: 500; }

/* Landscape portraits keep the same crop and two-column rhythm as the reference. */
.card-grid.bt_trainer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 928px;
    margin: 0 auto;
    gap: 48px;
}
.card-grid.bt_trainer .card-media { aspect-ratio: 11 / 7; }
.card-grid.bt_trainer .card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.card-grid.bt_trainer .card-body { background: #fff; padding: 22px 24px; }
.card-grid.bt_trainer .trainer-card-role { margin: 0 0 4px; font-size: 14px; color: var(--ink); }
.card-grid.bt_trainer h3 { display: inline; font-size: 24px; font-weight: 400; line-height: 1.5; margin: 0; }
.trainer-roman { font-family: var(--english); font-size: 14px; letter-spacing: .03em; }
.card-grid.bt_trainer .trainer-roman { display: inline-block; margin-left: 16px; }
.card-grid.bt_trainer .trainer-card-studio { margin: 3px 0 0; color: var(--ink); font-size: 13px; }
.card-grid.bt_trainer a:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.card-grid.bt_trainer a:hover img { transform: none; }

/* A separate wide portrait is used for profiles, with a normal photo fallback. */
.trainer-profile { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: #fff; }
.trainer-profile-photo img { width: 100%; height: auto; }
.trainer-profile-summary { padding: 32px; }
.trainer-profile-summary h1 { font-size: 44px; line-height: 1.35; font-weight: 400; margin: 0 0 4px; }
.trainer-profile-role { margin-bottom: 4px; font-size: 16px; }
.trainer-profile-summary .trainer-roman { font-size: 20px; margin-bottom: 18px; }
.trainer-profile-studio { font-size: 15px; margin-bottom: 12px; }
.trainer-profile-intro { font-size: 15px; line-height: 1.6; margin: 0; }
.trainer-profile--banner { position: relative; display: block; background: #e1e4e3; }
.trainer-profile--banner .trainer-profile-photo img { width: 100%; aspect-ratio: 976 / 454; object-fit: cover; }
.trainer-profile--banner .trainer-profile-summary {
    position: absolute;
    inset: 0 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 40px 32px 0;
}
.trainer-profile-content { max-width: 880px; margin: 56px auto 0; }
.trainer-profile-content:empty { display: none; }
.trainer-page .section-more { margin-top: 56px; }
.article.bt_studio { padding-top: 80px; }
.article.bt_studio .article-cover { max-width: 800px; max-height: 520px; }
.contact-page { max-width: var(--content-width); }
.contact-email-panel {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(28px, 4.5vw, 56px) clamp(20px, 4vw, 48px);
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.contact-email-eyebrow { color: var(--accent); font: 12px/1.5 var(--english); letter-spacing: .2em; margin-bottom: 18px; }
.contact-email-panel h2 { font: 400 clamp(20px, 3vw, 26px)/1.6 var(--serif); margin-bottom: 20px; }
.contact-email-intro { font-size: 14px; line-height: 1.9; color: #535956; margin-bottom: 20px; }
.contact-email-address { display: block; width: fit-content; max-width: 100%; margin: 0 auto 28px; padding-block: 6px; font: 400 clamp(15px, 3.8vw, 26px)/1.7 var(--english); color: var(--accent); overflow-wrap: anywhere; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.contact-email-button { width: 320px; max-width: 100%; }
.contact-email-help { margin: 18px 0 0; color: #777; font-size: 12px; line-height: 1.8; }
.contact-other-options { margin-top: 40px; }
.contact-other-options > p { font-size: 13px; color: #626965; }

@media (max-width: 1000px) {
    .page-panel { width: calc(100% - 64px); padding: 72px 32px 64px; }
    .card-grid.bt_trainer { gap: 32px; }
    .card-grid.bt_trainer .card-body { padding: 20px; }
    .card-grid.bt_trainer .trainer-roman { display: block; margin: 4px 0 8px; }
    .trainer-profile-summary h1 { font-size: 36px; }
    .trainer-profile--banner .trainer-profile-summary { padding-right: 24px; }
    .trainer-profile-intro { font-size: 13px; }
}
@media (max-width: 700px) {
    :root { --heading-rule: 72px; --section-gap: 52px; }
    .page-panel { width: calc(100% - 32px); padding: 48px 20px 52px; }
    .page-panel > .panel-inner > .section-heading { margin-bottom: 36px; }
    .section-heading h1, .section-heading h2,
    .page-panel > .panel-inner > .section-heading h1,
    .page-panel > .panel-inner > .section-heading h2 { font-size: 28px; }
    .eyebrow { font-size: 12px; margin-bottom: 20px; }
    .eyebrow:after { margin-top: 18px; }
    .section-heading { margin-bottom: 36px; }
    .card-grid.bt_trainer { grid-template-columns: 1fr; gap: 28px; max-width: 440px; }
    .card-grid.bt_trainer .card-body { padding: 18px 20px; }
    .card-grid.bt_trainer h3 { font-size: 22px; }
    .card-grid.bt_trainer .trainer-roman { display: inline-block; margin: 0 0 0 12px; font-size: 11px; }
    .card-grid.bt_trainer .trainer-card-role { font-size: 12px; }
    .card-grid.bt_trainer .trainer-card-studio { font-size: 12px; margin-top: 6px; }
    .trainer-profile { grid-template-columns: 1fr; }
    .trainer-profile--banner .trainer-profile-photo { overflow: hidden; }
    .trainer-profile--banner .trainer-profile-photo img {
        width: 200%; max-width: none; aspect-ratio: 976 / 454; object-fit: cover;
    }
    .trainer-profile-summary,
    .trainer-profile--banner .trainer-profile-summary {
        position: static; display: block; padding: 24px; background: #fff;
    }
    .trainer-profile-summary h1 { font-size: 32px; }
    .trainer-profile-summary .trainer-roman { font-size: 16px; margin-bottom: 18px; }
    .trainer-profile-role, .trainer-profile-studio, .trainer-profile-intro { font-size: 13px; }
    .trainer-profile-content { margin-top: 36px; }
    .trainer-profile-content h2 { font-size: 20px; }
    .trainer-page .section-more { margin-top: 36px; }
    .article.bt_studio { padding-top: 48px; }
    .article.bt_studio .section-heading h1 { text-align: center; }
    .prose h2 { font-size: 21px; }
    .reservation { padding: 52px 20px; }
    .reservation .section-heading h2 { font-size: 22px; }
    .breadcrumb { padding-top: 22px; padding-bottom: 22px; }
}
@media (min-width: 701px) and (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
    /* Keep the logged-in toolbar and the fixed header aligned while scrolling. */
    #wpadminbar { position: fixed; }
}

/* A quiet reservation tab, paired with the site's serif headings and slate palette. */
.side-reservation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 54px;
    padding: 26px 12px;
    writing-mode: horizontal-tb;
    background: #455b63;
    color: #fcfaf6;
    border: 1px solid rgba(255, 255, 255, .3);
    border-right: 0;
    box-shadow: 0 4px 20px rgba(32, 47, 52, .1);
}
.side-reservation:hover { background: #344b54; }
.side-reservation-copy { display: flex; flex-direction: column; gap: 5px; }
.side-reservation-eyebrow { display: none; }
.side-reservation-label {
    writing-mode: vertical-rl;
    font: 400 13px/1.5 var(--serif);
    letter-spacing: .14em;
    white-space: nowrap;
}
.side-reservation-arrow { display: grid; place-items: center; width: 28px; }
.side-reservation-arrow svg { display: block; }
.side-reservation:focus-visible { outline: 2px solid #b5a68e; outline-offset: 3px; }
@media (max-width: 700px) {
    .side-reservation {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 40px;
        align-items: center;
        gap: 12px;
        top: auto;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(68px + env(safe-area-inset-bottom, 0px));
        padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px));
        border: 1px solid rgba(255, 255, 255, .35);
        border-radius: 0;
        box-shadow: 0 5px 24px rgba(32, 47, 52, .18);
        text-align: left;
    }
    .side-reservation-copy { justify-self: center; align-items: flex-start; }
    .side-reservation-eyebrow {
        display: block;
        color: #e4e2dc;
        font: 400 9px/1.2 var(--english);
        letter-spacing: .2em;
    }
    .side-reservation-label {
        writing-mode: horizontal-tb;
        font-size: clamp(14px, 3.6vw, 16px);
        line-height: 1.5;
        letter-spacing: .055em;
    }
    .side-reservation-arrow {
        width: 40px;
        height: 32px;
        padding-left: 12px;
        border-left: 1px solid rgba(255, 255, 255, .32);
    }
    .site-footer { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
}
