.tm-cf-page {
    font-family: var(--tm-font-jp);
    background: var(--tm-bg);
    color: var(--tm-fg);
    overflow-x: hidden;
}

.tm-section {
    padding: 120px 0;
}

.tm-container {
    max-width: var(--tm-container);
    margin: 0 auto;
    padding: 0 20px;
}

.tm-hero {
    min-height: 100vh;
    position: relative;
    background-size: cover;
    background-position: center top;
    color: #fff;
    display: flex;
    align-items: flex-end;
}

/* Force first section full-bleed regardless of Astra wrappers */
body.page-template-page-custom-fitting .site-content > .ast-container,
body.page-template-page-custom-fitting .content-area,
body.page-template-page-custom-fitting .site-main {
    max-width: 100% !important;
    width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

.tm-cf-page .tm-hero.tm-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-top: 0;
    padding-bottom: 0;
}

.tm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, var(--tm-overlay) 100%);
}

.tm-hero__inner {
    position: relative;
    z-index: 1;
    padding: 120px 0 80px;
}

.tm-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.tm-eyebrow {
    display: inline-block;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    color: #111;
    margin-bottom: 12px;
    background: rgba(255,255,255,.75);
    padding: 2px 8px;
    border-radius: 2px;
}

.tm-h1 {
    font-size: clamp(32px, 6vw, 64px);
    line-height: 1.2;
    margin: 0 0 16px;
}

.tm-lede {
    font-size: 16px;
    line-height: 1.7;
    color: var(--tm-muted);
}

.tm-hero .tm-lede {
    color: rgba(255,255,255,.9);
}

.tm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: .24s cubic-bezier(.2,.7,.2,1);
    font-family: var(--tm-font-en);
    font-weight: 700;
    letter-spacing: .08em;
}

.tm-btn--primary {
    background: #111;
    color: #fff;
    padding: 14px 28px;
    border-radius: 2px;
    border-color: #111;
}

.tm-btn--ghost {
    background: transparent;
    color: #222;
    border-color: #222;
    padding: 14px 28px;
    border-radius: 2px;
}

.tm-btn--primary:hover,
.tm-btn--primary:focus {
    background: #333;
    border-color: #333;
    color: #fff;
}

.tm-btn--ghost:hover,
.tm-btn--ghost:focus {
    background: #f2f2f2;
    color: #111;
    border-color: #111;
}

.tm-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.tm-card {
    background: #fff;
    box-shadow: var(--tm-shadow-1);
    transition: .24s cubic-bezier(.2,.7,.2,1);
    overflow: hidden;
}

.tm-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tm-shadow-2);
}

.tm-card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.tm-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s cubic-bezier(.2,.7,.2,1);
}

.tm-card:hover .tm-card__media img {
    transform: scale(1.04);
}

.tm-process__track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}

.tm-intro__inner,
.tm-faq__inner {
    max-width: 720px;
}

.tm-intro__inner {
    text-align: center;
}

.tm-card__body {
    padding: 18px;
}

.tm-step__num {
    font-size: 32px;
    font-weight: 700;
}

.tm-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tm-stats__item {
    padding: 20px;
    text-align: center;
}

.tm-stats__value {
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 700;
    color: var(--tm-accent);
    line-height: 1.1;
}

.tm-stats__label {
    margin: 10px 0 6px;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tm-stats__note {
    margin: 0;
    font-size: 13px;
    color: var(--tm-muted);
    line-height: 1.5;
}

.tm-locator__filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tm-chip {
    padding: 8px 14px;
    border: 1px solid var(--tm-line);
    background: #fff;
    cursor: pointer;
}

.tm-chip[aria-pressed="true"] {
    border-color: #111;
    background: #111;
    color: #fff;
}

.tm-chip:hover,
.tm-chip:focus {
    border-color: #333;
    color: #111;
    background: #f3f3f3;
}

.tm-locator__split {
    display: grid;
    grid-template-columns: 6fr 6fr;
    gap: 24px;
}

.tm-locator__map {
    min-height: 520px;
}

#tm-map {
    width: 100%;
    height: 100%;
}

.tm-locator__list {
    max-height: 640px;
    overflow: auto;
    display: grid;
    gap: 12px;
}

.tm-faq__item {
    border-bottom: 1px solid var(--tm-line);
}

.tm-faq__q {
    width: 100%;
    text-align: left;
    padding: 16px 0;
    border: 0;
    background: none;
    font-size: 16px;
    cursor: pointer;
    color: #111;
}

.tm-faq__q:hover,
.tm-faq__q:focus {
    color: #333;
}

.tm-faq__a {
    display: none;
    padding: 0 0 16px;
    color: var(--tm-muted);
    line-height: 1.7;
}

.tm-faq__item.is-open .tm-faq__a {
    display: block;
}

.tm-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: none;
    gap: 8px;
    padding: 10px;
    background: rgba(255,255,255,.96);
    border-top: 1px solid var(--tm-line);
}

.tm-booking-cta__inner {
    background: #0a0a0a;
    color: #fff;
    text-align: center;
    padding: 64px 20px;
}

/* Float-up reveal animation */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
    will-change: opacity, transform;
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.tm-booking-cta__inner .tm-lede {
    color: rgba(255,255,255,.82);
    margin-bottom: 22px;
}

@media (max-width: 1023px) {
    .tm-section { padding: 80px 0; }
    .tm-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .tm-process__track { grid-template-columns: 1fr; }
    .tm-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tm-locator__split { grid-template-columns: 1fr; }
    .tm-locator__map { min-height: 40vh; }
}

@media (max-width: 767px) {
    .tm-section { padding: 64px 0; }
    .tm-hero { min-height: 70vh; }
    .tm-grid-3 { grid-template-columns: 1fr; }
    .tm-sticky-cta { display: flex; }
    .tm-btn { width: 100%; }
    .tm-hero__actions {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}
