/* =========================================================================
   Repose Pilates — Shared base styles
   Design tokens, reset, typography, shared header/footer, buttons, components
   ========================================================================= */

:root {
    /* Brand & surface */
    --primary: #853973;
    --on-primary: #ffffff;
    --primary-container: #a1518d;
    --on-primary-container: #ffecf5;
    --primary-fixed: #ffd7ef;
    --primary-fixed-dim: #ffade6;
    --on-primary-fixed: #3a0031;
    --on-primary-fixed-variant: #732a64;

    --secondary: #7d562d;
    --on-secondary: #ffffff;
    --secondary-container: #ffca98;
    --on-secondary-container: #7a532a;
    --secondary-fixed: #ffdcbd;
    --secondary-fixed-dim: #f0bd8b;
    --on-secondary-fixed: #2c1600;
    --on-secondary-fixed-variant: #623f18;

    --tertiary: #884033;
    --on-tertiary: #ffffff;
    --tertiary-container: #a65749;
    --on-tertiary-container: #ffedea;
    --tertiary-fixed: #ffdad4;
    --tertiary-fixed-dim: #ffb4a6;
    --on-tertiary-fixed: #3c0702;
    --on-tertiary-fixed-variant: #763226;

    --background: #fff8f5;
    --on-background: #201b17;

    --surface: #fff8f5;
    --surface-bright: #fff8f5;
    --surface-dim: #e3d8d1;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #fdf2ea;
    --surface-container: #f7ece5;
    --surface-container-high: #f1e6df;
    --surface-container-highest: #ebe0da;
    --surface-variant: #ebe0da;
    --surface-tint: #8f427d;

    --on-surface: #201b17;
    --on-surface-variant: #51434b;

    --inverse-surface: #352f2b;
    --inverse-on-surface: #faefe8;
    --inverse-primary: #ffade6;

    --outline: #83737c;
    --outline-variant: #d5c1cb;

    --error: #ba1a1a;
    --on-error: #ffffff;
    --error-container: #ffdad6;
    --on-error-container: #93000a;

    --espresso-text: #2D2926;
    --warm-grey: #C8CED3;
    --deep-plum: #713262;
    --soft-cream: #FAF6F3;

    /* Type */
    --font-serif: "EB Garamond", Georgia, serif;
    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Spacing */
    --unit: 8px;
    --stack-sm: 12px;
    --stack-md: 24px;
    --stack-lg: 48px;
    --gutter: 24px;
    --margin-mobile: 20px;
    --margin-desktop: 64px;
    --container-max: 1200px;

    /* Radius */
    --radius-sm: 0.25rem;
    --radius: 0.25rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-pill: 9999px;
}

/* -----------------------------------------------------------------
   Reset
   ----------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: var(--background);
    color: var(--espresso-text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body::selection,
*::selection {
    background-color: var(--primary-fixed-dim);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    font-size: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    color: inherit;
}

input,
textarea {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol, figure, blockquote {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

/* -----------------------------------------------------------------
   Material Symbols
   ----------------------------------------------------------------- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
    user-select: none;
}

.material-symbols-outlined.filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* -----------------------------------------------------------------
   Typography helpers (mirrors source design tokens)
   ----------------------------------------------------------------- */
.t-display-lg {
    font-family: var(--font-serif);
    font-size: 48px;
    line-height: 56px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0;
}

.t-headline-lg {
    font-family: var(--font-serif);
    font-size: 32px;
    line-height: 40px;
    font-weight: 500;
    margin: 0;
}

.t-headline-md {
    font-family: var(--font-serif);
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    margin: 0;
}

.t-body-lg {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
}

.t-body-md {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.t-label-md {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.t-caption {
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
}

.t-italic { font-style: italic; }
.t-uppercase { text-transform: uppercase; letter-spacing: 0.1em; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-tertiary { color: var(--tertiary); }
.text-espresso { color: var(--espresso-text); }
.text-on-variant { color: var(--on-surface-variant); }
.text-muted { color: rgba(45, 41, 38, 0.7); }
.text-muted-soft { color: rgba(45, 41, 38, 0.6); }
.text-white { color: #fff; }

/* -----------------------------------------------------------------
   Layout helpers
   ----------------------------------------------------------------- */
.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--margin-mobile);
}

@media (min-width: 768px) {
    .container {
        padding-inline: var(--margin-desktop);
    }
}

.section {
    padding-block: var(--stack-lg);
}

.section-lg {
    padding-block: 96px;
}

.text-center { text-align: center; }

.divider-bar {
    height: 4px;
    width: 64px;
    background-color: var(--primary);
    border-radius: var(--radius-pill);
    margin-inline: auto;
}

/* -----------------------------------------------------------------
   Site header (shared sticky/glass nav)
   ----------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(255, 248, 245, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 4px 12px rgba(45, 41, 38, 0.06);
    background-color: rgba(255, 248, 245, 0.95);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gutter);
    height: 80px;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--margin-mobile);
}

@media (min-width: 768px) {
    .site-nav {
        padding-inline: var(--margin-desktop);
    }
}

.site-brand {
    font-family: var(--font-serif);
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.site-brand img {
    /* Wordmark logo — scales down on narrow screens so it never crowds the menu button */
    height: 34px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (min-width: 768px) {
    .site-brand img {
        height: 44px;
    }
}

.site-nav-links {
    display: none;
    align-items: center;
    gap: 32px;
}

@media (min-width: 768px) {
    .site-nav-links {
        display: flex;
        /* Seven items plus the logo and Book Now button get tight on
           smaller laptops, so close the gaps up until there's room */
        gap: 20px;
    }
}

@media (min-width: 1100px) {
    .site-nav-links {
        gap: 32px;
    }
}

.site-nav-links a {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    color: var(--on-surface-variant);
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 4px;
}

.site-nav-links a:hover {
    color: var(--primary);
}

.site-nav-links a.is-active {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 2px solid var(--primary);
}

.site-nav-actions {
    display: flex;
    align-items: center;
    gap: var(--stack-sm);
}

.nav-icon-btn {
    color: var(--on-surface-variant);
    font-size: 24px;
    background: transparent;
    border: 0;
    padding: 8px;
    border-radius: var(--radius-pill);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-icon-btn:hover {
    color: var(--primary);
    background-color: rgba(133, 57, 115, 0.06);
}

.nav-contact {
    display: none;
    color: var(--primary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: opacity 0.2s ease;
}

.nav-contact:hover {
    opacity: 0.8;
}

@media (min-width: 640px) {
    .nav-contact {
        display: inline-block;
    }
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: transparent;
    border: 0;
    padding: 8px;
    border-radius: var(--radius-pill);
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

/* Mobile menu drawer */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 99;
    background-color: var(--surface);
    border-top: 1px solid var(--outline-variant);
    padding: var(--stack-md) var(--margin-mobile);
    box-shadow: 0 12px 24px rgba(45, 41, 38, 0.08);
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--on-surface-variant);
    border-bottom: 1px solid var(--outline-variant);
}

.mobile-menu a.is-active {
    color: var(--primary);
    font-weight: 600;
}

.mobile-menu a:last-child {
    border-bottom: 0;
}

/* -----------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.3s ease, background-color 0.2s ease;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--on-primary);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary-lg {
    padding: 16px 40px;
    font-size: 16px;
    box-shadow: 0 10px 24px rgba(133, 57, 115, 0.2);
}

.btn-primary-lg:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(133, 57, 115, 0.25);
}

.btn-outline {
    background-color: transparent;
    color: var(--espresso-text);
    border: 1px solid var(--warm-grey);
}

.btn-outline:hover {
    background-color: var(--surface-variant);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
    background-color: rgba(133, 57, 115, 0.06);
}

.btn-white {
    background-color: #ffffff;
    color: var(--primary);
}

.btn-white:hover {
    background-color: var(--surface-container-lowest);
}

.btn-on-surface-outline {
    background-color: transparent;
    color: var(--on-primary);
    border: 2px solid var(--on-primary);
}

.btn-on-surface-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-block {
    width: 100%;
}

/* Subtle hover-glow effect used by hero CTAs */
.btn-glow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-glow:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(133, 57, 115, 0.3);
}

/* -----------------------------------------------------------------
   Chips / Badges
   ----------------------------------------------------------------- */
.chip {
    display: inline-block;
    padding: 4px 16px;
    border-radius: var(--radius-pill);
    background-color: rgba(125, 86, 45, 0.2);
    color: var(--secondary);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.chip-primary {
    background-color: rgba(133, 57, 115, 0.12);
    color: var(--primary);
}

.chip-on-glass {
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--secondary);
}

.chip-popular {
    background-color: rgba(136, 64, 51, 0.15);
    color: var(--tertiary);
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    padding: 4px 12px;
}

/* -----------------------------------------------------------------
   Footer — one shared component used identically on every page.
   Edit here and all six pages follow.
   ----------------------------------------------------------------- */
.site-footer {
    background-color: var(--surface-container);
    padding-block: var(--stack-lg);
    margin-top: 0;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--stack-md);
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--margin-mobile);
    align-items: start;
}

@media (min-width: 768px) {
    .site-footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--gutter);
        padding-inline: var(--margin-desktop);
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: var(--stack-md);
}

/* -------- Brand column -------- */
.footer-brand {
    display: inline-block;
}

.footer-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-text {
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--on-surface-variant);
    max-width: 320px;
    line-height: 24px;
}

/* -------- Social icon buttons -------- */
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    /* Roomy enough that the two icons never read as one control on mobile */
    gap: 20px;
}

.footer-socials a {
    /* 48px keeps each icon a comfortable tap target with clear space between */
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border: 1px solid var(--warm-grey);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--espresso-text);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-socials svg {
    width: 20px;
    height: 20px;
    display: block;
}

.footer-socials a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* -------- Link / text columns -------- */
.footer-heading {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
}

.footer-address {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    color: var(--on-surface-variant);
    font-style: normal;
}

.footer-address a {
    display: block;
    margin-top: 8px;
    color: var(--on-surface-variant);
    transition: color 0.2s ease;
}

.footer-address a:hover {
    color: var(--primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    color: var(--on-surface-variant);
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary);
}

/* -------- Bottom bar -------- */
.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--stack-sm);
    max-width: var(--container-max);
    margin-inline: auto;
    margin-top: var(--stack-lg);
    padding: var(--stack-md) var(--margin-mobile) 0;
    border-top: 1px solid rgba(200, 206, 211, 0.4);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-inline: var(--margin-desktop);
        text-align: left;
    }
}

.footer-copyright {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--on-surface-variant);
    opacity: 0.8;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--stack-md);
}

.footer-legal a {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--on-surface-variant);
    opacity: 0.8;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-legal a:hover {
    color: var(--primary);
    opacity: 1;
}

/* -----------------------------------------------------------------
   FAQ accordion (used on Memberships and New Clients)
   ----------------------------------------------------------------- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--stack-sm);
}

.faq-item {
    background-color: var(--surface);
    border: 1px solid rgba(213, 193, 203, 0.3);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    background-color: var(--surface-container-low);
}

.faq-item summary > .faq-question {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--on-surface);
    letter-spacing: 0.05em;
}

.faq-item summary .material-symbols-outlined {
    transition: transform 0.3s ease;
}

.faq-item[open] summary .material-symbols-outlined {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 24px;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    color: var(--on-surface-variant);
    border-top: 1px solid rgba(213, 193, 203, 0.15);
    padding-top: 16px;
}

/* Membership-style underlined FAQ rows */
.faq-row {
    border-bottom: 1px solid rgba(200, 206, 211, 0.3);
    padding-block: 24px;
}

.faq-row summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    list-style: none;
    padding: 0;
}

.faq-row summary::-webkit-details-marker {
    display: none;
}

.faq-row summary > span:first-child {
    font-family: var(--font-serif);
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    color: var(--espresso-text);
}

.faq-row summary .material-symbols-outlined {
    transition: transform 0.3s ease;
    color: var(--on-surface-variant);
}

.faq-row[open] summary .material-symbols-outlined {
    transform: rotate(180deg);
}

.faq-row .faq-answer {
    border: 0;
    padding: 16px 0 0;
}

/* -----------------------------------------------------------------
   Scroll reveal helper
   ----------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* -----------------------------------------------------------------
   Shared "main offset" for fixed nav
   ----------------------------------------------------------------- */
.page-main {
    padding-top: 80px;
}

/* -----------------------------------------------------------------
   Soft shadow utility (used for cards that need elevated feel)
   ----------------------------------------------------------------- */
.soft-shadow {
    box-shadow: 0 20px 40px -10px rgba(45, 41, 38, 0.08);
}

/* -----------------------------------------------------------------
   Section heading (shared by home and About)
   ----------------------------------------------------------------- */
.section-heading {
    text-align: center;
    margin-bottom: 64px;
}

.section-heading h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    line-height: 40px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-heading-bar {
    height: 4px;
    width: 80px;
    background-color: rgba(166, 87, 73, 0.3);
    border-radius: var(--radius-pill);
    margin: 0 auto;
}

