/* ==========================================================================
   Quiet Pine Yoga & Pilates - shared styles for every page
   --------------------------------------------------------------------------
   REBRANDING: change the custom properties in :root below.
   - --bark          main text
   - --clay          accent for buttons and links (light text on it)
   - --sage          secondary accent (labels, level dots)
   - --sand / --oat  warm, airy backgrounds
   - --font-display / --font-body  If you change them, also update the
     Google Fonts <link> in the <head> of every page.
   Keep text/background pairs at 4.5:1 contrast or better.
   ========================================================================== */
:root {
  --bark: #2f2a24;
  --bark-2: #5c544a;
  --clay: #9a5b3c;
  --clay-d: #7d4529;
  --clay-50: #f4e4d8;
  --sage: #535f3f;
  --sage-50: #e4e8da;
  --sand: #f6f1e8;
  --oat: #ece3d3;
  --stone: #d8ccb8;
  --white: #fffdf9;
  --line: rgba(47, 42, 36, .14);
  --error: #a3361f;

  --font-display: "Marcellus", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Karla", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.1rem, 5vw, 3rem);
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); color: var(--bark); font-family: var(--font-body); font-size: 1.06rem; line-height: 1.75; overflow-x: hidden; }
svg { display: block; max-width: 100%; }
a { color: var(--clay-d); text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: var(--bark); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0 0 .55em; letter-spacing: .005em; }
h1 { font-size: clamp(2.7rem, 7.5vw, 5.6rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; border-radius: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--bark); color: var(--sand); padding: .7rem 1.1rem; }
.skip-link:focus { top: 1rem; color: var(--sand); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.caption { font-size: .78rem; text-transform: uppercase; letter-spacing: .26em; color: var(--sage); font-weight: 600; margin: 0 0 1.25rem; }
.lead { font-size: 1.18rem; color: var(--bark-2); max-width: 36rem; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.1rem; padding: .8rem 1.7rem; border-radius: 999px; border: 1px solid transparent; font: 600 .92rem/1.1 var(--font-body); text-transform: uppercase; letter-spacing: .14em; text-decoration: none; cursor: pointer; transition: background-color .3s ease, color .3s ease; }
.btn-clay { background: var(--clay); color: var(--white); }
.btn-clay:hover { background: var(--clay-d); color: var(--white); }
.btn-line { border-color: var(--bark); color: var(--bark); background: transparent; }
.btn-line:hover { background: var(--bark); color: var(--sand); }
.text-link { font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .15rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 241, 232, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; min-height: 5rem; }
.logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--bark); margin-right: auto; }
.logo svg { width: 2.4rem; height: 2.4rem; }
.logo-text { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; }
.logo-text small { display: block; font-family: var(--font-body); font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--sage); margin-top: .3rem; font-weight: 600; }
.nav-toggle { display: none; align-items: center; gap: .55rem; background: transparent; color: var(--bark); border: 1px solid var(--bark); border-radius: 999px; padding: .55rem 1.1rem; font: 600 .82rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 1.1rem; height: 1.5px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; } .nav-toggle-bars::after { top: 5px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: var(--bark); text-decoration: none; font-size: .86rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 500; padding: .4rem 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--stone); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--clay); color: var(--clay-d); font-weight: 600; }
.site-nav .nav-cta { background: var(--clay); color: var(--white); border-radius: 999px; padding: .65rem 1.3rem; border: 0; }
.site-nav .nav-cta:hover { background: var(--clay-d); color: var(--white); }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; padding: .5rem 0 1.25rem; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); padding-left: .75rem; box-shadow: inset 2px 0 0 var(--clay); }
  .site-nav .nav-cta { margin-top: 1rem; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero-grid { display: grid; gap: 3rem; align-items: end; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 em { font-style: normal; color: var(--clay); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2.25rem; }
.hero-art { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; }
.pebble { position: relative; background: var(--oat); display: grid; place-items: center; overflow: hidden; }
.pebble svg { width: 30%; color: var(--clay); opacity: .45; }
.pebble-a { aspect-ratio: 3 / 4.4; border-radius: 999px 999px 8px 8px; background: linear-gradient(180deg, #e2d3bd, var(--oat)); }
.pebble-b { aspect-ratio: 1; border-radius: 50%; background: var(--sage-50); margin-bottom: 18%; }
.pebble-b svg { color: var(--sage); }
.img-label { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; background: rgba(255, 253, 249, .9); color: var(--bark); padding: .3rem .7rem; border-radius: 999px; white-space: nowrap; font-weight: 600; }
.next-class { margin-top: 2.75rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: baseline; border-top: 1px solid var(--line); padding-top: 1.25rem; font-size: .98rem; color: var(--bark-2); }
.next-class strong { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; color: var(--bark); }

/* ---------- Offers ---------- */
.band-oat { background: var(--oat); }
.offers-head { display: grid; gap: 1.5rem; margin-bottom: 3rem; }
@media (min-width: 900px) { .offers-head { grid-template-columns: 1fr 1fr; align-items: end; } }
.offers { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.offer { background: var(--white); padding: 2.25rem 2rem 2rem; border-radius: var(--r); display: flex; flex-direction: column; position: relative; }
.offer.feature { background: var(--clay); color: var(--white); }
.offer.feature .offer-sub, .offer.feature li { color: #fffaf5; }
.offer.feature .caption { color: #fffaf5; }
.offer.feature .btn-line { border-color: var(--white); color: var(--white); }
.offer.feature .btn-line:hover { background: var(--white); color: var(--clay-d); }
.offer .price { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; margin: .25rem 0 .35rem; }
.offer .price small { font-family: var(--font-body); font-size: .95rem; margin-left: .3rem; }
.offer-sub { color: var(--bark-2); margin-bottom: 1.25rem; }
.offer ul { list-style: none; padding: 0; margin: 0 0 1.75rem; flex: 1; display: grid; gap: .5rem; }
.offer li { padding-left: 1.3rem; position: relative; color: var(--bark-2); font-size: .98rem; }
.offer li::before { content: ""; position: absolute; left: 0; top: .7em; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; opacity: .6; }
.offer .btn { align-self: flex-start; }
.passes { margin-top: 3rem; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); border-top: 1px solid var(--line); }
.pass { padding: 1.4rem 1rem 1.4rem 0; border-bottom: 1px solid var(--line); }
.pass span { display: block; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); font-weight: 600; }
.pass strong { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; }
.pass em { font-style: normal; color: var(--bark-2); font-size: .92rem; }

/* ---------- Styles list ---------- */
.styles { display: grid; gap: 3rem; }
@media (min-width: 960px) { .styles { grid-template-columns: .9fr 1.1fr; } .styles-intro { position: sticky; top: 8rem; align-self: start; } }
.style-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.style-list li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.style-list .num { font-family: var(--font-display); font-size: 1.15rem; color: var(--clay); }
.style-list h3 { margin-bottom: .3rem; }
.style-list p { margin: 0; color: var(--bark-2); }
.lvl { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--sage); margin-top: .5rem; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: .45rem; height: .45rem; border-radius: 50%; border: 1px solid var(--sage); display: block; }
.dots i.on { background: var(--sage); }

/* ---------- Teachers ---------- */
.teachers { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.teacher .pebble { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r) var(--r); margin-bottom: 1.25rem; }
.teacher:nth-child(2n) .pebble { background: var(--sage-50); }
.teacher:nth-child(2n) .pebble svg { color: var(--sage); }
.teacher h3 { margin-bottom: .1rem; }
.teacher .role { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); font-weight: 600; margin-bottom: .75rem; }
.teacher p { color: var(--bark-2); font-size: .98rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { font-size: .78rem; border: 1px solid var(--stone); border-radius: 999px; padding: .15rem .65rem; color: var(--bark-2); }
.teacher-wide { display: grid; gap: 2rem; padding: 3rem 0; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .teacher-wide { grid-template-columns: 18rem 1fr; gap: 3.5rem; } }
.teacher-wide .pebble { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r) var(--r); }
.teacher-wide:nth-of-type(2n) .pebble { background: var(--sage-50); }
.teacher-wide blockquote { margin: 1.25rem 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; color: var(--clay-d); padding-left: 1.25rem; border-left: 1px solid var(--clay); }
.teacher-wide dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; font-size: .96rem; margin: 1.25rem 0 0; }
.teacher-wide dt { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); font-weight: 600; padding-top: .2rem; }
.teacher-wide dd { margin: 0; color: var(--bark-2); }

/* ---------- Quote band ---------- */
.quote-band { background: var(--sage); color: var(--white); text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 46rem; font-family: var(--font-display); font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.3; }
.quote-band figcaption { margin-top: 1.25rem; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: #e9eddf; }
.review-tag { display: inline-block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: .2rem .7rem; margin-bottom: 1.5rem; }

/* ---------- Page hero ---------- */
.page-hero { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); }

/* ---------- Timetable ---------- */
.tt-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.25rem; margin-bottom: 2rem; }
.days { display: flex; gap: .35rem; overflow-x: auto; padding: .25rem; margin: -.25rem; scrollbar-width: thin; max-width: 100%; }
.day-tab { flex: none; min-width: 4.4rem; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .7rem .8rem; border: 1px solid var(--line); background: var(--white); border-radius: var(--r); cursor: pointer; font: 500 .78rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--bark-2); }
.day-tab b { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; letter-spacing: 0; text-transform: none; color: var(--bark); }
.day-tab[aria-selected="true"] { background: var(--bark); color: var(--sand); border-color: var(--bark); }
.day-tab[aria-selected="true"] b { color: var(--sand); }
.day-tab .today { font-size: .6rem; letter-spacing: .12em; color: var(--clay-d); font-weight: 700; }
.day-tab[aria-selected="true"] .today { color: #f0c9b2; }
.lvl-filter { display: flex; flex-direction: column; gap: .35rem; min-width: 12rem; }
.lvl-filter label { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); font-weight: 600; }
.tt-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--bark); }
.tt-row { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: .5rem 1.5rem; align-items: center; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.tt-time { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1; }
.tt-time small { display: block; font-family: var(--font-body); font-size: .8rem; color: var(--bark-2); }
.tt-class h3 { font-size: 1.3rem; margin: 0 0 .15rem; }
.tt-class p { margin: 0; color: var(--bark-2); font-size: .95rem; }
.tt-class .lvl { margin-top: .35rem; }
.tt-book { font-size: .82rem; }
.tt-empty { padding: 2.5rem 0; color: var(--bark-2); text-align: center; border-bottom: 1px solid var(--line); }
@media (max-width: 620px) {
  .tt-row { grid-template-columns: 1fr auto; }
  .tt-time { grid-column: 1 / -1; display: flex; align-items: baseline; gap: .6rem; }
  .tt-time small { display: inline; }
  .tt-book { align-self: end; }
}
.legend-note { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.5rem; font-size: .9rem; color: var(--bark-2); }

/* ---------- Forms ---------- */
.signup { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .signup { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.form-card { background: var(--white); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--r); }
.row { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.15rem; }
.field label { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bark-2); font-weight: 600; }
.hint { text-transform: none; letter-spacing: 0; font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { font: inherit; color: var(--bark); background: transparent; border: 0; border-bottom: 1px solid var(--bark-2); border-radius: 0; padding: .6rem 0; min-height: 2.9rem; width: 100%; }
select { background: var(--white); border: 1px solid var(--stone); border-radius: var(--r); padding: .6rem .8rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--clay); outline-offset: 2px; border-color: var(--clay); }
textarea { min-height: 5rem; resize: vertical; }
[aria-invalid="true"] { border-color: var(--error) !important; border-bottom-width: 2px !important; }
.err { color: var(--error); font-size: .88rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: 1.25rem; font-size: .96rem; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .3rem; accent-color: var(--clay); flex: none; }
.form-error-summary { color: var(--error); border-left: 2px solid var(--error); padding: .5rem 0 .5rem 1rem; margin-bottom: 1.25rem; }
.success { padding: 1rem 0; }
.success .leaf { width: 3rem; height: 3rem; color: var(--clay); margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bark); color: #d9d0c3; padding: 4rem 0 1.75rem; font-size: .96rem; }
.site-footer a { color: var(--sand); }
.site-footer .logo { color: var(--sand); }
.site-footer .logo-text small { color: #c8cfb8; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.footer-grid h2 { font-family: var(--font-body); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: #c8cfb8; margin-bottom: .9rem; font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-grid address { font-style: normal; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-top: 1px solid rgba(255,255,255,.14); margin-top: 3rem; padding-top: 1.25rem; font-size: .85rem; }
.footer-bottom p { margin: 0; }

.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 1s ease, transform 1s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.day-tab > span[aria-hidden] { font-size: .64rem; letter-spacing: .08em; white-space: nowrap; }
.day-tab, .days { position: relative; }
.teacher .pebble { aspect-ratio: 1 / 1.08; }
