/* The Studio Yoga + Movement — site styles
   Brand: teal #177D8B, sage #9CAC9F, sand #F3EEE5, white.
   Type: Playfair Display (headings) + Inter (everything else). Two fonts only, for speed. */

:root {
  --teal: #177D8B;
  --teal-dark: #0F5E69;
  --teal-tint: #E3F0F1;
  --sage: #9CAC9F;
  --sage-light: #DCE3DB;
  --sand: #F3EEE5;
  --sand-deep: #E8E0D2;
  --white: #FFFFFF;
  --ink: #22373B;
  --ink-soft: #4C5F62;
  --line: #D9D2C4;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  color: var(--teal);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--sand { background: var(--sand); }
.section--teal { background: var(--teal); color: var(--white); }
.section--teal h2, .section--teal h3 { color: var(--white); }
.section--teal a:not(.btn) { color: var(--white); }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 .9rem;
}
.section--teal .eyebrow { color: var(--sage-light); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 40em; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .lede { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.6em;
  font: 600 1rem/1 var(--sans);
  border-radius: 999px; border: 2px solid var(--teal);
  background: var(--teal); color: var(--white);
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--teal-dark); }
.btn--ghost:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn--light { background: var(--white); color: var(--teal-dark); border-color: var(--white); }
.btn--light:hover { background: var(--sand); border-color: var(--sand); color: var(--teal-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link::after { content: " \2192"; }
.text-link:hover { text-decoration: underline; }

/* Skip link */
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--sand-deep);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name strong { font: 600 1.18rem/1 var(--sans); letter-spacing: .14em; color: #23282B; }
.brand-name span { font: 500 .64rem/1 var(--sans); letter-spacing: .2em; margin-top: 5px; color: #23282B; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 12px; font-size: .95rem; font-weight: 500;
  color: var(--ink); text-decoration: none; border-radius: 8px;
}
.nav a:hover { color: var(--teal); background: var(--teal-tint); }
.nav a[aria-current="page"] { color: var(--teal); }
.nav .btn { margin-left: 10px; min-height: 44px; padding: .6em 1.3em; color: var(--white); }
.nav .btn:hover { background: var(--teal-dark); color: var(--white); }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 14px;
    font: 600 .95rem var(--sans); color: var(--ink);
    background: var(--sand); border: 0; border-radius: 999px; cursor: pointer;
  }
  .menu-toggle .bars { width: 18px; height: 2px; background: currentColor; position: relative; }
  .menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
  .menu-toggle .bars::before { top: -6px; } .menu-toggle .bars::after { top: 6px; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--sand-deep);
    padding: 8px var(--gutter) 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--sand); border-radius: 0; font-size: 1.05rem; }
  .nav .btn { margin: 14px 0 0; border-bottom: 0; border-radius: 999px; }
  .brand img { width: 44px; }
  .brand-name strong { font-size: 1.05rem; }
}

/* Hero */
.hero { background: var(--sand); position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 96px);
}
.hero h1 { margin-bottom: .35em; }
.hero .lede { margin-bottom: 1.8em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: .95rem; color: var(--ink-soft); }
.hero-meta span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); margin-right: 9px; vertical-align: middle; }
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; aspect-ratio: 1 / 1.02; object-fit: cover;
  border-radius: 48% 48% var(--radius) var(--radius) / 38% 38% var(--radius) var(--radius);
}
.hero-photo::before {
  content: ""; position: absolute; inset: auto -40px -40px auto;
  width: 70%; height: 70%; border-radius: 50%;
  background: var(--sage-light); z-index: -1;
}
.hero-photo { z-index: 0; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 460px; }
}

/* Welcome */
.welcome { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.welcome img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.2; color: var(--teal); margin: 0 0 .7em; }
.signature { font-weight: 600; color: var(--ink); margin-top: 1.4em; }
.signature small { display: block; font-weight: 400; color: var(--ink-soft); }
@media (max-width: 820px) { .welcome { grid-template-columns: 1fr; } .welcome img { max-width: 260px; } }

/* Widget frames */
.widget {
  background: var(--white); border-radius: var(--radius);
  padding: clamp(8px, 2vw, 20px);
  box-shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgba(34,55,59,.25);
}
.widget iframe { display: block; width: 100%; border: 0; }
/* Homepage schedule: fixed height, scrolls inside its own frame (no nested scroll box). */
.widget iframe.home-schedule { height: 600px; }
@media (max-width: 720px) { .widget iframe.home-schedule { height: 600px; } }
.widget-note { font-size: .92rem; color: var(--ink-soft); margin-top: 16px; }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--sand-deep);
  border-radius: var(--radius); padding: 26px 24px 24px;
  text-decoration: none; color: var(--ink);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.card:hover { transform: translateY(-3px); border-color: var(--sage); box-shadow: 0 16px 32px -20px rgba(34,55,59,.35); color: var(--ink); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card .when { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--sand); font-size: .9rem; font-weight: 600; color: var(--teal-dark); }
.tag {
  align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-dark); background: var(--teal-tint); padding: 5px 10px; border-radius: 999px; margin-bottom: 14px;
}
.tag--sage { background: var(--sage-light); color: #3F5446; }
.card--feature { background: var(--teal); border-color: var(--teal); color: var(--white); }
.card--feature h3, .card--feature p, .card--feature .when { color: var(--white); }
.card--feature .when { border-top-color: rgba(255,255,255,.25); }
.card--feature .tag { background: rgba(255,255,255,.18); color: var(--white); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font: 500 1.2rem var(--serif);
  background: var(--sage-light); color: var(--teal-dark);
}
.bring { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 28px 0 0; }
.bring li { background: var(--white); border: 1px solid var(--sand-deep); padding: 8px 16px; border-radius: 999px; font-size: .93rem; }

/* Pricing */
.price-card { text-align: left; }
.card .price { font: 500 2.4rem/1 var(--serif); color: var(--teal); margin: 6px 0 4px; }
.card .price small { font: 400 1rem var(--sans); color: var(--ink-soft); }
.card--feature .price, .card--feature .price small { color: var(--white); }
.perks { list-style: none; padding: 0; margin: 14px 0 0; font-size: .95rem; }
.perks li { padding: 6px 0 6px 26px; position: relative; }
.perks li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.price-foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.price-foot p { margin: 0; color: var(--ink-soft); }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.split img { border-radius: var(--radius); width: 100%; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.list-clean { list-style: none; padding: 0; margin: 0 0 28px; }
.list-clean li { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.list-clean li:first-child { padding-top: 0; }
.list-clean strong { display: block; font: 500 1.3rem var(--serif); }
.list-clean span { opacity: .9; font-size: .97rem; }

/* Teachers */
.teacher-names { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0 28px; }
.teacher-names li { background: var(--sand); padding: 8px 16px; border-radius: 999px; font-weight: 500; }

/* Visit */
.visit { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 56px); align-items: stretch; }
.visit-info dl { margin: 0 0 28px; }
.visit-info dt { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 18px; }
.visit-info dd { margin: 4px 0 0; font-size: 1.08rem; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 360px; background: var(--sand-deep); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
@media (max-width: 820px) { .visit { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: #D7E0DF; padding: 64px 0 32px; font-size: .95rem; }
.site-footer a:not(.btn) { color: #FFFFFF; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
.footer-brand img { width: 64px; margin-bottom: 14px; }
.footer-brand p { max-width: 26em; }
.site-footer h2 { font: 600 .78rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sage); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.signup { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.signup input {
  flex: 1 1 180px; min-height: 48px; padding: 0 16px; border-radius: 999px;
  border: 1px solid #4E6468; background: #2C4549; color: #fff; font: inherit;
}
.signup input::placeholder { color: #A9B9B8; }
.footer-bottom { border-top: 1px solid #3A5357; margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: #A9B9B8; font-size: .88rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile sticky book bar */
.mobile-book { display: none; }
@media (max-width: 720px) {
  .mobile-book {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--sand-deep);
  }
  .mobile-book .btn { flex: 1; min-height: 46px; padding: 0 12px; font-size: .95rem; }
  body { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ===== Inner pages ===== */
.page-hero { background: var(--sand); padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 72px); }
.page-hero .lede { margin-bottom: 0; }
.page-hero .btn-row { margin-top: 28px; }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero-grid img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 820px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero-grid img { max-width: 520px; } }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }

.crumbs { font-size: .85rem; color: var(--ink-soft); margin: 0 0 18px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--teal-dark); text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 6px; color: var(--sage); }

.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

.two-col { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.aside-card { background: var(--sand); border-radius: var(--radius); padding: 28px 26px; position: sticky; top: 100px; }
.aside-card h2 { font-size: 1.5rem; }
.aside-card dl { margin: 0 0 22px; }
.aside-card dt { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 14px; }
.aside-card dd { margin: 3px 0 0; font-weight: 500; }
.aside-card .btn { width: 100%; }
@media (max-width: 860px) { .aside-card { position: static; } }

.slot { border-top: 1px solid var(--sand-deep); padding: 28px 0; display: grid; grid-template-columns: 200px 1fr; gap: 8px 32px; }
.slot:last-child { border-bottom: 1px solid var(--sand-deep); }
.slot .when { font-weight: 600; color: var(--teal-dark); }
.slot h3 { margin-bottom: .3em; }
.slot p { margin: 0; color: var(--ink-soft); }
@media (max-width: 640px) { .slot { grid-template-columns: 1fr; } }

.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--sand-deep); }
.faq details:last-child { border-bottom: 1px solid var(--sand-deep); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font: 500 1.25rem/1.3 var(--serif); color: var(--teal);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font: 400 1.6rem var(--sans); color: var(--teal); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 22px; color: var(--ink-soft); max-width: 68ch; }

.teacher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .teacher-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .teacher-grid { grid-template-columns: 1fr; } }
.teacher img, .teacher .ph-portrait { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; }
.ph-portrait { display: grid; place-items: center; background: var(--sage-light); }
.ph-portrait img { width: 38%; aspect-ratio: auto; margin: 0; border-radius: 0; opacity: .8; }
.teacher h3 { margin-bottom: .2em; }
.teacher .role { font-size: .9rem; font-weight: 600; color: var(--teal-dark); margin-bottom: .6em; }
.teacher p { color: var(--ink-soft); }
.placeholder-note { font-style: italic; color: var(--ink-soft); }

.widget--full { padding: clamp(6px, 1.5vw, 16px); }

.callout { background: var(--teal-tint); border-radius: var(--radius); padding: 24px 26px; }
.callout h3 { margin-bottom: .3em; }
.callout p:last-child { margin-bottom: 0; }

.cta-band { background: var(--teal); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 40em; margin: 0 auto 1.6em; opacity: .92; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn--ghost { color: var(--white); border-color: var(--white); }
.cta-band .btn--ghost:hover { background: var(--white); color: var(--teal-dark); }

/* Featured event */
.featured-event { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; background: var(--white); border: 1px solid var(--sand-deep); border-left: 0; border-radius: var(--radius); padding: 26px; margin-bottom: 28px; }
.fe-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--teal); color: var(--white); border-radius: 14px; padding: 12px 0; text-transform: uppercase; font-size: .78rem; font-weight: 600; letter-spacing: .1em; }
.fe-date strong { font: 500 2.4rem/1 var(--serif); letter-spacing: 0; margin: 2px 0; }
.fe-body h3 { font-size: 1.6rem; }
.fe-body p { color: var(--ink-soft); max-width: 62ch; }
.fe-body .fe-meta { font-weight: 600; color: var(--teal-dark); }
@media (max-width: 560px) { .featured-event { grid-template-columns: 1fr; } .fe-date { flex-direction: row; gap: 8px; justify-content: flex-start; padding: 8px 14px; width: fit-content; } .fe-date strong { font-size: 1.4rem; } }
