/* ==========================================================================
   custom.css — shared base styles (loaded first, other files build on this)
   ========================================================================== */

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f2ede8;
}
::-webkit-scrollbar-thumb {
    background: #d3c4b8;
}

/* Text selection color */
::selection {
    background-color: #ecbe95; /* primary-fixed-dim */
    color: #2d1600;
}

/* Tonal card hover, used across Home / Services / Pricing */
.tonal-card {
    background-color: #f2ede8; /* surface-container */
    transition: background-color 0.3s ease;
}
.tonal-card:hover {
    background-color: #ece7e2; /* surface-container-high */
}

/* Form focus state */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #43270a !important; /* primary */
}

/* Arched top mask, used on the Home hero image */
.arch-mask {
    border-top-left-radius: 1000px;
    border-top-right-radius: 1000px;
}

/* Paper grain texture — fixed full-page overlay */
.grain-texture {
    background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
    opacity: 0.05;
    pointer-events: none;
}

/* Frosted glass card, used on the Services page (Pilates image caption) */
.glass-card {
    background: rgba(254, 248, 243, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 0.5px solid #d3c4b8;
}

/* Pricing page — active tab pill */
.active-pill {
    background-color: #5c3d1e; /* primary-container */
    color: #ffffff;
    border-color: transparent;
}

/* Inline field-validation errors — Login, Register, Forgot/Reset Password */
.field-error {
    color: #ba1a1a; /* error */
    font-size: 12px;
    line-height: 16px;
    margin-top: 2px;
}
.auth-field-invalid {
    border: 1px solid #ba1a1a !important;
    box-shadow: 0 0 0 2px rgba(186, 26, 26, 0.12) !important;
}

/* Pricing page — FAQ accordion */
.faq-item {
    cursor: pointer;
}
.faq-item .faq-transition {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.faq-item.faq-active .faq-transition {
    max-height: 500px;
}
.faq-item .faq-icon {
    transition: transform 0.3s ease;
}
.faq-item.faq-active .faq-icon {
    transform: rotate(180deg);
}
.faq-trigger {
    width: 100%;
    text-align: left;
}
.faq-transition[hidden] {
    display: block;
}

/* Services-page anchor navigation. */
.services-section-nav {
    display: flex;
    justify-content: center;
    max-width: 100%;
    padding-inline: 20px;
    background: #fef8f3;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.services-section-nav::-webkit-scrollbar {
    display: none;
}
.services-page,
.services-page .service-section,
.services-section-navigation,
.services-section-nav,
.services-chip-track {
    background-color: #fef8f3;
}
a.service-nav-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 44px;
    width: auto;
    max-width: none;
    padding: 0.625rem 1.25rem;
    background: rgba(254, 248, 243, 0.96);
    color: #43270a !important;
    border-color: #82756b;
    line-height: 1.25;
    white-space: nowrap;
    overflow: visible;
    opacity: 1 !important;
    visibility: visible !important;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
a.service-nav-chip:hover,
a.service-nav-chip:focus-visible {
    background: #f0ddc8;
    color: #43270a !important;
    border-color: #5c3d1e;
}
a.service-nav-chip:focus-visible {
    outline: 2px solid #43270a;
    outline-offset: 2px;
}
a.service-nav-chip[aria-current="true"] {
    background: #43270a !important;
    color: #ffffff !important;
    border-color: #43270a !important;
}
a.service-nav-chip[aria-current="true"]:hover,
a.service-nav-chip[aria-current="true"]:focus-visible {
    background: #2d1600 !important;
    color: #ffffff !important;
}
a.service-nav-chip.sticky-nav-active {
    color: #43270a !important;
    padding-bottom: 0.5rem;
    border-bottom-width: 1px;
}
a.service-nav-chip.sticky-nav-active[aria-current="true"] {
    color: #ffffff !important;
}
@media (max-width: 639px) {
    .services-section-nav {
        justify-content: flex-start;
        padding-left: 20px;
        scroll-padding-left: 20px;
    }
    .services-chip-track::after {
        content: "";
        width: 12px;
        flex: 0 0 12px;
    }
}
.service-section {
    scroll-margin-top: 9.5rem;
}
