/* ============================================================
   FLOWSTATE YOGA — LAYOUT WIREFRAME
   Fonts: Cormorant Garamond (display) / Inter (body)
   Palette: shared light wireframe greys, accent via --pop
   ============================================================ */

:root {
  --bg: #ededed;
  --surface: #e2e2e2;
  --surface-2: #dcdcdc;
  --line: #c6c6c6;
  --dash: #a8a8a8;
  --text: #333333;
  --muted: #777777;
  --faint: #9a9a9a;
  --accent: var(--pop);
  --accent-ink: var(--pop-ink);
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 8px;
  --header-h: 62px;
  --speed: .35s;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: .005em;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

[hidden] { display: none !important; }

.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 18px; font-weight: 600; font-size: 14px;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--surface-2); }

/* ---------- Shared bits ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::after {
  content: "";
  flex: 0 0 44px;
  height: 1px;
  background: var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--speed) ease, color var(--speed) ease, border-color var(--speed) ease;
  white-space: nowrap;
}
.btn--sm { padding: 9px 20px; font-size: 13px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(.92); }
.btn--ghost { border-color: var(--faint); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 5px 10px;
  border-radius: 2px;
  margin: 0;
}

/* Placeholder imagery — flat grey, dashed border, mono label */
.ph {
  background: var(--surface-2);
  border: 1px dashed var(--dash);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--speed) ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
}
.logo__mark {
  width: 32px;
  height: 32px;
  border: 1px solid var(--faint);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--muted);
}
.logo__text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.logo__text span {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color var(--speed) ease, border-color var(--speed) ease;
}
.nav__link:hover { color: var(--text); border-bottom-color: var(--text); }

.header__actions { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--speed) ease, opacity var(--speed) ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 10px 24px 26px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--speed) ease, opacity var(--speed) ease, visibility var(--speed);
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu__link {
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 22px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__book { width: 100%; margin-top: 18px; }
.mobile-menu__meta { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.mobile-menu__meta a { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */

.hero { padding: 76px 0 0; overflow: hidden; }

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: center;
}

.hero__title {
  font-size: clamp(44px, 5.4vw, 68px);
  font-weight: 500;
  margin-bottom: 24px;
}
.hero__lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__media { position: relative; }
.hero__media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  pointer-events: none;
}
.hero__photo {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--radius);
}

.hero__facts {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero__fact {
  padding: 26px 28px 30px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.hero__fact:first-child { border-left: none; padding-left: 0; }
.hero__fact strong {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}
.hero__fact span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Sections ---------- */

.section { padding: 110px 0; }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }

.section__head { max-width: 620px; margin-bottom: 56px; }
.section__title {
  font-size: clamp(32px, 3.6vw, 46px);
  margin-bottom: 18px;
}
.section__lede { color: var(--muted); font-size: 16px; }

/* ---------- Class styles grid ---------- */

.styles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.style-card {
  background: var(--bg);
  padding: 34px 30px 30px;
  position: relative;
  transition: background var(--speed) ease;
}
.style-card:hover { background: var(--surface); }
.style-card__index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--faint);
  margin-bottom: 26px;
}
.style-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.style-card__name { font-size: 25px; font-weight: 600; margin-bottom: 10px; }
.style-card__desc { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.style-card__meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ---------- Timetable ---------- */

.schedule {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.schedule__tabs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--line);
}
.day-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 16px 8px 14px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  transition: background var(--speed) ease, color var(--speed) ease;
}
.day-tab:first-child { border-left: none; }
.day-tab__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
}
.day-tab__count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color var(--speed) ease;
}
.day-tab:hover { background: var(--surface-2); }
.day-tab[aria-selected="true"] { background: var(--accent); }
.day-tab[aria-selected="true"] .day-tab__name { color: var(--accent-ink); }
.day-tab[aria-selected="true"] .day-tab__count { color: var(--accent-ink); opacity: .75; }

.schedule__panels { background: var(--bg); }

.day-panel { padding: 8px 0; }
.day-panel.is-switching { animation: panel-in var(--speed) ease; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.class-row {
  display: grid;
  grid-template-columns: 110px 1fr 90px 110px 92px;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
}
.class-row:last-child { border-bottom: none; }
.class-row__time {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text);
}
.class-row__main h3 { font-size: 21px; font-weight: 600; }
.class-row__main p { font-size: 13px; color: var(--muted); margin-top: 1px; }
.class-row__dur { font-size: 13px; color: var(--muted); }
.class-row__level {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  text-align: center;
  justify-self: start;
}
.class-row__book {
  justify-self: end;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--faint);
  border-radius: 999px;
  padding: 7px 18px;
  transition: background var(--speed) ease, color var(--speed) ease, border-color var(--speed) ease;
}
.class-row__book:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}

/* ---------- Pricing ---------- */

.pricing { display: flex; flex-direction: column; gap: 24px; }

.offer-card {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 48px;
  align-items: center;
}
.offer-card__title { font-size: 34px; font-weight: 600; margin: 18px 0 12px; }
.offer-card__desc { color: var(--muted); max-width: 46ch; margin-bottom: 22px; }
.offer-card__list { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.offer-card__list li {
  font-size: 13px;
  font-weight: 500;
  padding-left: 18px;
  position: relative;
}
.offer-card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  border: 1px solid var(--faint);
  border-radius: 50%;
}
.offer-card__side {
  text-align: center;
  border-left: 1px solid var(--line);
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.offer-card__price {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 500;
  line-height: 1;
}
.offer-card__per {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tier-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--speed) ease;
}
.tier-card:hover { border-color: var(--faint); }
.tier-card--featured { background: var(--surface-2); }
.tier-card .badge { align-self: flex-start; margin-bottom: 18px; }
.tier-card__name { font-size: 24px; font-weight: 600; margin-bottom: 14px; }
.tier-card__price {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 12px;
}
.tier-card__price span {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
}
.tier-card__desc { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.tier-card__list { margin-bottom: 28px; }
.tier-card__list li {
  font-size: 14px;
  padding: 9px 0 9px 22px;
  border-top: 1px solid var(--line);
  position: relative;
}
.tier-card__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 15px;
  width: 7px; height: 7px;
  border: 1px solid var(--faint);
  border-radius: 50%;
}
.tier-card__cta { margin-top: auto; width: 100%; }

/* ---------- Teachers ---------- */

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.teacher-card__photo {
  aspect-ratio: 4 / 4.7;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.teacher-card__name { font-size: 25px; font-weight: 600; margin-bottom: 4px; }
.teacher-card__role { font-size: 14px; color: var(--muted); }

/* ---------- Booking ---------- */

.book__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.steps { margin-top: 40px; }
.steps li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.steps__num {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--faint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
}
.steps strong { font-weight: 600; font-size: 15px; }
.steps p { font-size: 14px; color: var(--muted); margin-top: 2px; }

.book__contact {
  margin-top: 34px;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.book__contact a { text-decoration: none; font-weight: 500; }
.book__contact a:hover { text-decoration: underline; }

.book__formwrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 42px 44px;
}

.trial-form { display: flex; flex-direction: column; gap: 20px; }

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 16px;
  transition: border-color var(--speed) ease;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23777777' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: calc(100% - 18px) 50%;
  background-repeat: no-repeat;
}
.field input::placeholder { color: var(--faint); }
.field input:focus,
.field select:focus { outline: none; border-color: var(--accent); }
.field input.is-invalid,
.field select.is-invalid { border-color: var(--text); }
.field__error {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  margin-top: 7px;
  padding-left: 14px;
  position: relative;
}
.field__error::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 6px; height: 6px;
  background: var(--text);
  border-radius: 50%;
}

.trial-form__submit { width: 100%; margin-top: 6px; padding: 15px 26px; }
.trial-form__note { font-size: 12.5px; color: var(--muted); text-align: center; }

.trial-success { text-align: center; padding: 30px 10px; }
.trial-success__tick {
  width: 52px;
  height: 52px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.trial-success__title { font-size: 32px; font-weight: 600; margin-bottom: 12px; }
.trial-success__text { color: var(--muted); font-size: 15px; max-width: 40ch; margin: 0 auto 28px; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); background: var(--surface); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr .8fr 1fr;
  gap: 48px;
  padding: 70px 0 60px;
}
.footer__blurb { font-size: 14px; color: var(--muted); margin-top: 20px; max-width: 32ch; }
.footer__col h3 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { text-decoration: underline; }
.footer__map { aspect-ratio: 16 / 9.5; border-radius: 4px; }

.footer__bar { border-top: 1px solid var(--line); }
.footer__bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero__inner { gap: 48px; }
  .book__inner { gap: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__photo { aspect-ratio: 16 / 10; }
  .hero__media::before { inset: 12px -12px -12px 12px; }
  .styles-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-card { grid-template-columns: 1fr; gap: 30px; padding: 36px; }
  .offer-card__side { border-left: none; border-top: 1px solid var(--line); padding: 30px 0 0; }
  .tiers { grid-template-columns: 1fr; }
  .teachers-grid { grid-template-columns: 1fr; max-width: 420px; }
  .book__inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav, .header__book { display: none; }
  .menu-toggle { display: flex; }

  .section { padding: 76px 0; }
  .hero { padding-top: 52px; }
  .hero__facts { grid-template-columns: 1fr 1fr; margin-top: 52px; }
  .hero__fact { padding: 20px 0 22px 20px; }
  .hero__fact:nth-child(odd) { border-left: none; padding-left: 0; }

  .schedule__tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .schedule__tabs::-webkit-scrollbar { display: none; }
  .day-tab { flex: 0 0 88px; }

  .class-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "time book"
      "main book"
      "meta book";
    gap: 6px 16px;
    padding: 16px 20px;
  }
  .class-row__time { grid-area: time; }
  .class-row__main { grid-area: main; }
  .class-row__dur { grid-area: meta; }
  .class-row__level { display: none; }
  .class-row__book { grid-area: book; align-self: center; }

  .book__formwrap { padding: 30px 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; padding: 54px 0 44px; }
  .footer__bar-inner { flex-direction: column; gap: 6px; }
}

@media (max-width: 520px) {
  .styles-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* COLOUR OPTION — accent is re-themed by the corner widget; default is wireframe grey */
:root { --pop: #9a9a9a; --pop-ink: #ffffff; }
