/* ============================================================
   JUST DO PILATES — SITE THEME
   Used by index, about, services and contact.
   (polestar.html keeps its own look via style.css)

   Fonts:  Fraunces (display) · Manrope (body) · DM Mono (labels)
   Load in each page <head>:
   https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..600&family=Manrope:wght@400..700&display=swap
   ============================================================ */

:root {
    --paper: #F6F0E7;
    --paper-2: #ECE2D3;
    --clay: #8B5E57;
    --clay-deep: #6E4741;
    --clay-light: #E2B8AC;
    --espresso: #2B211E;
    --muted: #6B5D57;
    --sage: #7D8A68;
    --sage-soft: #DDE3D1;
    --line: rgba(139, 94, 87, 0.28);
    --line-light: rgba(246, 240, 231, 0.22);

    --display: 'Fraunces', Georgia, serif;
    --body: 'Manrope', system-ui, -apple-system, sans-serif;
    --mono: 'DM Mono', ui-monospace, monospace;

    --pad: clamp(18px, 4vw, 56px);
    --max: 1240px;
    --r: 26px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--espresso);
    font: 400 16px/1.6 var(--body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--clay-light); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.sec { padding-block: clamp(72px, 9vw, 140px); }
.sec--tight { padding-block: clamp(56px, 6vw, 96px); }

.band-2 { background: var(--paper-2); }
.dark { background: var(--espresso); color: var(--paper); }
.dark .muted, .dark .lede { color: rgba(246, 240, 231, .75); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ============================================================
   TYPE
   ============================================================ */
.display {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(46px, 6.8vw, 106px);
    line-height: .98;
    letter-spacing: -.035em;
    font-optical-sizing: auto;
}

.h2 {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(36px, 4.6vw, 68px);
    line-height: 1.02;
    letter-spacing: -.03em;
}

.h3 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(26px, 2.4vw, 34px);
    line-height: 1.1;
    letter-spacing: -.02em;
}

.display em, .h2 em, .h3 em { font-style: italic; color: var(--clay); }
.dark .display em, .dark .h2 em, .dark .h3 em { color: var(--clay-light); }

.label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 500 12px/1.2 var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--clay);
}
.label::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.label--plain::before { display: none; }
.dark .label { color: var(--clay-light); }

.lede { font: 400 18px/1.65 var(--body); color: var(--muted); max-width: 540px; }
.muted { color: var(--muted); }

.note {
    font: 400 11px/1.4 var(--mono);
    letter-spacing: .04em;
    color: var(--muted);
}

.link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 600 15px/1 var(--body);
    padding-bottom: 4px;
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
    transition: background-size .35s var(--ease), gap .25s var(--ease);
}
.link:hover { gap: 14px; background-size: 30% 1px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 7px 7px 7px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: 600 15px/1 var(--body);
    white-space: nowrap;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease);
}
.btn-ic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 17px;
    line-height: 1;
    transition: transform .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover .btn-ic { transform: rotate(-45deg); }

.btn--clay { background: var(--clay); color: var(--paper); }
.btn--clay .btn-ic { background: var(--paper); color: var(--clay); }
.btn--clay:hover { background: var(--clay-deep); }

.btn--ink { background: var(--espresso); color: var(--paper); }
.btn--ink .btn-ic { background: var(--paper); color: var(--espresso); }

.btn--ghost { border-color: var(--espresso); color: var(--espresso); }
.btn--ghost .btn-ic { background: var(--espresso); color: var(--paper); }
.btn--ghost:hover { background: var(--espresso); color: var(--paper); }
.btn--ghost:hover .btn-ic { background: var(--paper); color: var(--espresso); }

.btn--paper { background: var(--paper); color: var(--espresso); }
.btn--paper .btn-ic { background: var(--espresso); color: var(--paper); }

.btn--line-light { border-color: rgba(246, 240, 231, .5); color: var(--paper); }
.btn--line-light .btn-ic { background: var(--paper); color: var(--espresso); }
.btn--line-light:hover { background: rgba(246, 240, 231, .1); }

.btn--sm { padding: 5px 5px 5px 18px; font-size: 14px; gap: 12px; }
.btn--sm .btn-ic { width: 34px; height: 34px; font-size: 15px; }

.btn--plain { padding: 15px 24px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 500 11px/1 var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid currentColor;
}
.chip--fill { background: var(--sage-soft); border-color: var(--sage-soft); color: #45503A; }

/* ============================================================
   SHAPES
   ============================================================ */
.arch {
    position: relative;
    overflow: hidden;
    border-radius: 999px 999px var(--r) var(--r);
    background: var(--paper-2);
}
.arch img, .roundimg img, .circle img { width: 100%; height: 100%; object-fit: cover; }

.roundimg { position: relative; overflow: hidden; border-radius: var(--r); background: var(--paper-2); }
.circle { position: relative; overflow: hidden; border-radius: 50%; background: var(--paper-2); }

.spin-badge {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--paper);
    color: var(--clay);
    box-shadow: 0 10px 30px rgba(43, 33, 30, .12);
}
.spin-badge svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.spin-badge text { font: 500 12.5px var(--mono); letter-spacing: .12em; fill: currentColor; text-transform: uppercase; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   CAPSULE HEADER
   ============================================================ */
.cap {
    position: fixed;
    top: 14px;
    left: 50%;
    z-index: 70;
    transform: translateX(-50%);
    width: min(calc(var(--max) - 2 * var(--pad) + 32px), calc(100% - 24px));
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 7px 7px 7px 20px;
    background: rgba(246, 240, 231, .84);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: transform .4s var(--ease), box-shadow .3s ease;
}
.cap.is-scrolled { box-shadow: 0 12px 34px rgba(43, 33, 30, .09); }
.cap.is-hidden { transform: translate(-50%, -150%); }

.cap-logo img { height: 40px; width: auto; mix-blend-mode: multiply; }

.cap-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.cap-nav a {
    padding: 11px 15px;
    border-radius: 999px;
    font: 500 14px/1 var(--body);
    transition: background .2s ease, color .2s ease;
}
.cap-nav a:hover { background: var(--paper-2); }
.cap-nav a[aria-current="page"] { background: var(--espresso); color: var(--paper); }
.cap-nav .cap-special { font: 500 12px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--clay); }
.cap-nav .cap-special::before { content: '✦ '; }
.cap-nav .cap-sau { font: 500 12px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: #B03A32; }
.cap-nav .cap-sau::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: 1px;
}

.cap-burger {
    display: none;
    margin-left: auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: var(--espresso);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.cap-burger span { display: block; width: 18px; height: 1.5px; background: var(--paper); transition: transform .3s var(--ease); }
.cap-burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.cap-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.sheet {
    position: fixed;
    top: 84px;
    left: 12px;
    right: 12px;
    z-index: 69;
    background: var(--espresso);
    color: var(--paper);
    border-radius: 30px;
    padding: 12px 24px 24px;
    box-shadow: 0 30px 60px rgba(43, 33, 30, .3);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    animation: sheetIn .35s var(--ease);
}
.sheet[hidden] { display: none; }
.sheet a.sheet-link {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-light);
    font: 300 36px/1 var(--display);
    letter-spacing: -.02em;
}
.sheet a.sheet-link small { font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--clay-light); }
.sheet a.sheet-link[aria-current="page"] { font-style: italic; color: var(--clay-light); }
.sheet .actions { margin-top: 22px; }
.sheet .btn { flex: 1; justify-content: space-between; }

@keyframes sheetIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero { padding-top: clamp(130px, 15vw, 190px); padding-bottom: clamp(48px, 6vw, 88px); }
.page-hero .label { margin-bottom: 22px; }

/* ============================================================
   CARDS & LISTS
   ============================================================ */
.card {
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: clamp(24px, 2.6vw, 34px);
    background: var(--paper);
}

.ticks { display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; line-height: 1.55; }
.ticks li::before {
    content: '✓';
    flex: none;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font: 600 12px/1 var(--body);
    background: var(--sage-soft);
    color: #45503A;
}
.dark .ticks li::before { background: rgba(221, 227, 209, .16); color: var(--sage-soft); }

.dashes { display: flex; flex-direction: column; gap: 8px; }
.dashes li { display: flex; gap: 12px; font-size: 15px; }
.dashes li::before { content: '—'; color: var(--clay); font-family: var(--mono); }

/* Accordion */
.acc { border-top: 1px solid var(--line); counter-reset: acc; }
.acc details { border-bottom: 1px solid var(--line); counter-increment: acc; }
.acc summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: 44px 1fr 28px;
    gap: 12px;
    align-items: center;
    padding: 24px 0;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::before { content: '(' counter(acc, decimal-leading-zero) ')'; font: 500 12px/1 var(--mono); color: var(--clay); }
.acc-q { font: 400 clamp(20px, 1.9vw, 25px)/1.25 var(--display); letter-spacing: -.01em; }
.acc-ic { position: relative; width: 28px; height: 28px; }
.acc-ic::before, .acc-ic::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 1.5px;
    background: var(--clay);
    transform: translate(-50%, -50%);
    transition: transform .3s var(--ease);
}
.acc-ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc details[open] .acc-ic::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc details > p { padding: 0 40px 26px 56px; color: var(--muted); max-width: 680px; }
.acc details > p a { color: var(--clay); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Section heading row */
.sec-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px 56px;
    margin-bottom: clamp(36px, 5vw, 64px);
}
.sec-head > div { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }

/* Big CTA panel */
.cta-panel {
    position: relative;
    overflow: hidden;
    border-radius: 40px;
    background: var(--clay);
    color: var(--paper);
    padding: clamp(40px, 6vw, 88px);
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 32px;
    align-items: end;
}
.cta-panel .h2 em { color: var(--espresso); }
.cta-panel p { color: rgba(246, 240, 231, .85); max-width: 460px; margin-top: 18px; }
.cta-panel .actions { justify-content: flex-end; }
.cta-panel::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -120px;
    width: 340px;
    height: 420px;
    border: 1px solid rgba(246, 240, 231, .25);
    border-radius: 999px 999px 0 0;
    pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: var(--espresso); color: var(--paper); padding-top: clamp(64px, 8vw, 120px); }
.foot-big {
    font: 300 clamp(64px, 13vw, 210px)/.85 var(--display);
    letter-spacing: -.05em;
    margin-bottom: clamp(40px, 6vw, 80px);
}
.foot-big em { font-style: italic; color: var(--clay-light); }
.foot-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line-light);
}
.foot-col { display: flex; flex-direction: column; gap: 14px; font-size: 14.5px; color: rgba(246, 240, 231, .78); }
.foot-col h4 { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--clay-light); margin-bottom: 4px; }
.foot-col a:hover { color: var(--paper); }
.foot-logo { height: 70px; width: auto; align-self: flex-start; filter: invert(1); mix-blend-mode: screen; }
.foot-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 24px 32px;
    font: 400 11px/1 var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(246, 240, 231, .6);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    align-self: flex-start;
    font: 500 11px/1 var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 9px 13px;
    border-radius: 999px;
    border: 1px solid currentColor;
}
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--clay-light); }
.status.is-open::before { background: #9FB485; box-shadow: 0 0 0 4px rgba(159, 180, 133, .25); animation: pulse 2s ease-in-out infinite; }
.status:empty { display: none; }

@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(159, 180, 133, 0); } }

/* ============================================================
   FLOATING BOOK BUTTON
   ============================================================ */
.fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 8px 8px;
    border-radius: 999px;
    background: var(--clay);
    color: var(--paper);
    font: 600 14px/1 var(--body);
    box-shadow: 0 14px 34px rgba(43, 33, 30, .28);
    transition: transform .25s var(--ease), background .2s ease;
}
.fab:hover { transform: translateY(-3px); background: var(--clay-deep); }
.fab-ic { width: 38px; height: 38px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.fab-ic svg { width: 20px; height: 20px; fill: var(--clay); }

/* ============================================================
   REVEAL (only when JS runs)
   ============================================================ */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-img img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
.js .rv-img.in img { transform: scale(1); }

/* ============================================================
   RESPONSIVE (shared)
   ============================================================ */
@media (max-width: 980px) {
    .cap-nav, .cap-cta { display: none; }
    .cap-burger { display: flex; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .cta-panel { grid-template-columns: 1fr; }
    .cta-panel .actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
    .cap { padding-left: 16px; }
    .cap-logo img { height: 34px; }
    .sheet { top: 78px; }
    .foot-grid { grid-template-columns: 1fr; }
    .acc summary { grid-template-columns: 36px 1fr 24px; }
    .acc details > p { padding: 0 0 22px 48px; }
    .fab { right: 12px; bottom: 12px; padding-right: 16px; }
    .cta-panel { border-radius: 30px; }
    .cta-panel::after { display: none; }
    .btn { padding-left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .spin-badge svg, .status.is-open::before { animation: none; }
    .js .rv, .js .rv-img img { opacity: 1; transform: none; transition: none; }
    .btn, .btn-ic, .fab, .cap { transition: none; }
}
