/* ════════════════════════════════════════════════════════════════════
   Yoga for All — "morning courtyard"
   Warm cream ground, pine-teal + marigold pulled from the lotus logo,
   Cormorant Garamond display over Karla body. Light, airy, unhurried.
   ════════════════════════════════════════════════════════════════════ */
:root {
    --bg: #faf8f3;
    --surface: #ffffff;
    --surface-warm: #f4efe6;
    --ink: #233029;
    --muted: #67766d;
    --faint: #93a099;
    --line: rgba(35, 48, 41, 0.13);
    --pine: #2e6e5c;
    --pine-dark: #235244;
    --pine-soft: rgba(46, 110, 92, 0.09);
    --marigold: #d96f2f;
    --marigold-dark: #b85a22;
    --marigold-soft: rgba(217, 111, 47, 0.12);
    --danger: #b3423a;
    --danger-soft: rgba(179, 66, 58, 0.1);
    --cream-text: #f7f2e8;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 1px 2px rgba(35, 48, 41, 0.05), 0 10px 30px rgba(35, 48, 41, 0.07);
    --font: "Karla", "Segoe UI", system-ui, sans-serif;
    --display: "Cormorant Garamond", Georgia, serif;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; font-family: var(--font); font-size: 16px; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--pine); text-decoration: none; }
a:hover { color: var(--pine-dark); }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; border-radius: 3px; }
::selection { background: rgba(46, 110, 92, 0.22); }

h1, h2, h3, .serif { font-family: var(--display); font-weight: 600; letter-spacing: 0.005em; }

/* ── top navigation ─────────────────────────────────────────────── */
.topnav { display: flex; align-items: center; gap: 26px; padding: 14px 28px; background: rgba(250, 248, 243, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand img { border-radius: 8px; }
.brand span { font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1; }
.brand em { font-style: italic; font-weight: 500; color: var(--pine); }
.navlinks { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.navlinks a { color: var(--ink); opacity: 0.82; padding: 4px 0; border-bottom: 2px solid transparent; }
.navlinks a:hover { opacity: 1; border-bottom-color: var(--marigold); }
.navright { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.quiet { color: var(--faint); font-size: 13.5px; }
.quiet:hover { color: var(--muted); }

/* ── buttons & chips ────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--pine); color: #fff; border: 1px solid var(--pine); border-radius: 999px; padding: 11px 24px; font-family: var(--font); font-size: 15px; font-weight: 700; letter-spacing: 0.01em; cursor: pointer; transition: background 0.15s, transform 0.1s; }
.btn:hover { background: var(--pine-dark); color: #fff; transform: translateY(-1px); }
.btn-marigold { background: var(--marigold); border-color: var(--marigold); }
.btn-marigold:hover { background: var(--marigold-dark); }
.btn-ghost { background: transparent; color: var(--pine); }
.btn-ghost:hover { background: var(--pine-soft); color: var(--pine-dark); }
.btn-light { background: var(--cream-text); border-color: var(--cream-text); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-small { padding: 7px 16px; font-size: 13.5px; }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-disabled, .btn:disabled { opacity: 0.45; pointer-events: none; }

.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.03em; white-space: nowrap; }
.chip-open { background: var(--pine-soft); color: var(--pine-dark); }
.chip-few { background: var(--marigold-soft); color: var(--marigold-dark); }
.chip-full { background: var(--danger-soft); color: var(--danger); }
.chip-muted { background: var(--surface-warm); color: var(--muted); }

/* ── flashes ────────────────────────────────────────────────────── */
.flashes { max-width: 1080px; margin: 14px auto 0; padding: 0 22px; display: flex; flex-direction: column; gap: 8px; }
.flash { border-radius: var(--radius); padding: 12px 16px; font-size: 14.5px; font-weight: 500; }
.flash-ok { background: var(--pine-soft); color: var(--pine-dark); border: 1px solid rgba(46, 110, 92, 0.25); }
.flash-error { background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(179, 66, 58, 0.25); }

/* ── layout helpers ─────────────────────────────────────────────── */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--marigold-dark); margin-bottom: 10px; }
.section h2 { font-size: 38px; line-height: 1.1; margin-bottom: 18px; }
.lede { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 62ch; }
.lede strong { color: var(--ink); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* ── hero ───────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; background-size: cover; background-position: center 30%; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18, 30, 24, 0.72) 0%, rgba(18, 30, 24, 0.45) 46%, rgba(18, 30, 24, 0.12) 100%); }
.hero-inner { position: relative; max-width: 1080px; margin: 0 auto; padding: 84px 22px; color: var(--cream-text); }
.hero-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: #e8c9a8; margin-bottom: 18px; }
.hero h1 { font-size: clamp(44px, 7vw, 74px); font-weight: 600; line-height: 1.02; margin-bottom: 18px; }
.hero h1 em { font-style: italic; font-weight: 500; }
.hero-tag { font-family: var(--display); font-style: italic; font-size: clamp(19px, 2.6vw, 24px); line-height: 1.45; max-width: 48ch; color: rgba(247, 242, 232, 0.92); margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── home: next classes strip ───────────────────────────────────── */
.next-strip { margin-top: -58px; position: relative; z-index: 5; }
.next-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 18px 22px; }
.next-card + .next-card { border-top: 1px solid var(--line); }
.next-when { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--pine-dark); min-width: 240px; }
.next-name { font-weight: 700; }
.next-sub { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.next-all { display: block; text-align: center; padding: 13px; font-weight: 700; font-size: 14.5px; border-top: 1px solid var(--line); background: var(--surface-warm); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ── class type cards ───────────────────────────────────────────── */
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; margin-top: 34px; }
.type-card { overflow: hidden; display: flex; flex-direction: column; transition: transform 0.18s, box-shadow 0.18s; }
.type-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(35,48,41,0.06), 0 18px 44px rgba(35,48,41,0.12); }
.type-img { height: 190px; background-size: cover; background-position: center; }
.type-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.type-body h3 { font-size: 25px; line-height: 1.15; }
.type-body h3 a { color: var(--ink); }
.type-desc { color: var(--muted); font-size: 15px; line-height: 1.6; }
.type-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.type-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; }

/* ── teacher section ────────────────────────────────────────────── */
.teacher-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; align-items: center; }
.teacher-photo { border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.teacher-split p { color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.cred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 14px; margin: 30px 0; }
.cred { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.cred b { display: block; font-size: 15px; margin-bottom: 3px; }
.cred span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.banner-img { border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-top: 34px; }

/* ── schedule page ──────────────────────────────────────────────── */
.page-head { padding: 46px 0 8px; }
.page-head h1 { font-size: clamp(36px, 5vw, 50px); margin-bottom: 10px; }
.tzbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px 9px 20px; margin: 22px 0 8px; box-shadow: var(--shadow); width: fit-content; }
.tzbar-label { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.tzbar-label b { color: var(--ink); }
select.tz-select { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--pine-dark); background: var(--pine-soft); border: none; border-radius: 999px; padding: 8px 14px; cursor: pointer; max-width: 280px; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 4px; }
.filter-chips a { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 16px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.filter-chips a.on { background: var(--ink); border-color: var(--ink); color: var(--cream-text); }
.filter-chips a:hover { border-color: var(--pine); color: var(--pine-dark); }
.filter-chips a.on:hover { color: var(--cream-text); }

.sched-day { font-size: 13px; font-weight: 700; font-family: var(--font); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 34px 0 12px; display: flex; align-items: center; gap: 14px; }
.sched-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sched-list { display: flex; flex-direction: column; gap: 10px; }
.sched-row { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 20px; box-shadow: var(--shadow); color: var(--ink); transition: transform 0.15s, border-color 0.15s; }
.sched-row:hover { transform: translateX(3px); border-color: rgba(46, 110, 92, 0.4); color: var(--ink); }
.sched-time { text-align: left; }
.sched-clock { font-family: var(--display); font-size: 23px; font-weight: 700; color: var(--pine-dark); line-height: 1.05; }
.sched-abbr { font-size: 11.5px; color: var(--faint); font-weight: 700; letter-spacing: 0.06em; margin-top: 2px; }
.sched-name { font-weight: 700; font-size: 16.5px; }
.sched-meta { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.sched-right { display: flex; align-items: center; gap: 12px; }
.empty { color: var(--muted); font-size: 16px; padding: 36px 0; }

/* ── class detail & forms ───────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; margin: 26px 0 60px; }
.detail-main { overflow: hidden; }
.detail-hero { height: 230px; background-size: cover; background-position: center; }
.detail-body { padding: 26px 28px 30px; }
.detail-body h1 { font-size: 34px; margin-bottom: 6px; }
.detail-teacher { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.detail-when { display: flex; flex-direction: column; gap: 4px; background: var(--pine-soft); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; }
.detail-when .big { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--pine-dark); }
.detail-when .sub { font-size: 13px; color: var(--muted); }
.detail-desc p { color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
.meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }

.form-card { padding: 24px 26px 28px; position: sticky; top: 84px; }
.form-card h3 { font-size: 23px; margin-bottom: 4px; }
.form-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; font-family: var(--font); font-size: 15px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 13px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--pine); outline-offset: 0; border-color: transparent; }
.field textarea { resize: vertical; min-height: 90px; }
.field .hint { font-size: 12.5px; color: var(--faint); margin-top: 5px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.pay-note { font-size: 13.5px; color: var(--muted); background: var(--marigold-soft); border-radius: var(--radius); padding: 12px 15px; line-height: 1.55; margin-top: 14px; }

/* ── reservation page ───────────────────────────────────────────── */
.confirm-wrap { max-width: 640px; margin: 40px auto 70px; padding: 0 22px; }
.confirm-card { padding: 30px 32px 34px; }
.confirm-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--pine-soft); color: var(--pine-dark); border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: 13.5px; margin-bottom: 16px; }
.confirm-card h1 { font-size: 32px; margin-bottom: 6px; }
.confirm-details { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.confirm-details .row { display: flex; gap: 12px; font-size: 15px; }
.confirm-details .row b { min-width: 92px; color: var(--muted); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 2px; }
.link-callout { background: var(--pine-soft); border-radius: var(--radius); padding: 14px 17px; font-size: 14.5px; word-break: break-all; margin: 14px 0; }
.confirm-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.cancelled-note { background: var(--danger-soft); color: var(--danger); border-radius: var(--radius); padding: 13px 16px; font-weight: 600; font-size: 14.5px; margin: 14px 0; }

/* ── footer ─────────────────────────────────────────────────────── */
.footer { background: #1d2a24; color: rgba(247, 242, 232, 0.85); margin-top: 30px; }
.footer a { color: rgba(247, 242, 232, 0.85); }
.footer a:hover { color: #fff; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 52px 22px 30px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.footer-brand img { background: #fff; border-radius: 14px; padding: 6px; }
.footer-tag { font-family: var(--display); font-style: italic; font-size: 16.5px; margin-top: 14px; max-width: 34ch; color: rgba(247, 242, 232, 0.75); }
.footer-col h4 { font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(247, 242, 232, 0.55); margin-bottom: 12px; }
.footer-col a { display: block; padding: 4px 0; font-size: 14.5px; }
.footer-fine { text-align: center; font-size: 12.5px; color: rgba(247, 242, 232, 0.45); padding: 16px 22px 26px; border-top: 1px solid rgba(247, 242, 232, 0.12); }

/* ── login ──────────────────────────────────────────────────────── */
.login-wrap { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 50px 22px; }
.login-card { max-width: 420px; width: 100%; padding: 40px 38px; text-align: center; }
.login-card img { margin: 0 auto 18px; }
.login-card h1 { font-size: 30px; margin-bottom: 8px; }
.login-card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 24px; }

/* ── dash ───────────────────────────────────────────────────────── */
.dash-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 22px 0 0; }
.dash-head h1 { font-size: 30px; }
.dash-head .sub { color: var(--muted); font-size: 14px; margin-top: 3px; }
.dash-tabs { display: flex; gap: 4px; margin-top: 16px; flex-wrap: wrap; }
.dash-tabs a { padding: 10px 18px; font-size: 14px; font-weight: 700; color: var(--muted); border-bottom: 2.5px solid transparent; }
.dash-tabs a.on, .dash-tabs a:hover { color: var(--pine-dark); border-bottom-color: var(--marigold); }
.dash-wrap { max-width: 1080px; margin: 0 auto; padding: 30px 22px 70px; display: flex; flex-direction: column; gap: 24px; }
.dash-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.dash-bar .spacer { flex: 1; }
.stat-line { color: var(--muted); font-size: 14px; }
.stat-line b { color: var(--ink); font-size: 16px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--pine-soft); }
.tbl .num { text-align: right; }
.card-pad { padding: 20px 22px; }
.card h2.card-title { font-size: 12px; font-family: var(--font); font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: flex; align-items: baseline; gap: 10px; }
.card h2.card-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.inline-form { display: inline; }
.row-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 18px; }
.form-wide { grid-column: 1 / -1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.badge-cancelled { background: var(--danger-soft); color: var(--danger); border-radius: 6px; padding: 2px 9px; font-size: 12px; font-weight: 700; }
.mailto-strip { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── error page ─────────────────────────────────────────────────── */
.error-wrap { text-align: center; padding: 90px 22px 110px; }
.error-wrap h1 { font-size: 90px; color: var(--pine); line-height: 1; }
.error-wrap p { color: var(--muted); font-size: 17px; margin: 14px 0 26px; }

/* ── animation ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .section .card, .sched-row, .type-card { animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
  .type-card:nth-child(2) { animation-delay: 0.06s; }
  .type-card:nth-child(3) { animation-delay: 0.12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }
}

/* ── responsive ─────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .teacher-split, .detail-grid { grid-template-columns: 1fr; }
  .form-card { position: static; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .next-when { min-width: 0; }
}
@media (max-width: 640px) {
  .topnav { gap: 12px; padding: 12px 16px; }
  .navlinks { order: 3; width: 100%; gap: 16px; }
  .sched-row { grid-template-columns: 86px 1fr; }
  .sched-right { grid-column: 1 / -1; justify-content: flex-end; }
  .next-card { grid-template-columns: 1fr; gap: 6px; }
  .section { padding: 44px 0; }
  .section h2 { font-size: 31px; }
}
