/* NitYoga — styles. Colours come from config/site.config.js (theme →
   CSS custom properties set on :root by app.js). */

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

:root {
  /* fallbacks — overridden at runtime from SITE.theme */
  --c-primary: #1d7a74;
  --c-primary-dark: #115e59;
  --c-primary-soft: #e4f2f0;
  --c-accent: #e8843c;
  --c-ink: #15302d;
  --c-ink-soft: #4e6763;
  --c-bg: #fbfaf7;
  --c-surface: #ffffff;
  --c-line: #e3e0d8;
  --radius: 18px;

  --font-head: "Fraunces", "Noto Serif Devanagari", Georgia, serif;
  --font-body: "Outfit", "Noto Sans Devanagari", -apple-system, system-ui, sans-serif;
  --shadow: 0 10px 30px -12px rgba(21, 48, 45, .18);
  --wrap: 1140px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 600; white-space: pre-line; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

a { color: var(--c-primary); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--c-primary); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--c-primary-dark); color: #d9ece9;
  font-size: .82rem;
}
.topbar-in {
  max-width: var(--wrap); margin-inline: auto; padding: 6px 20px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.tb-contacts { display: flex; gap: 18px; align-items: center; }
.tb-contacts a {
  color: inherit; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.tb-contacts a:hover { color: #fff; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.tb-ic {
  display: inline-flex; width: 26px; height: 26px; padding: 4px;
  color: inherit; border-radius: 8px; align-items: center; justify-content: center;
}
.tb-ic svg { width: 100%; height: 100%; }
a.tb-ic:hover { background: rgba(255,255,255,.15); color: #fff; }

.lang-switch {
  display: inline-flex; gap: 2px; margin-left: 8px;
  background: rgba(255,255,255,.12); border-radius: 999px; padding: 2px;
}
.lang-btn {
  border: 0; background: none; color: inherit; cursor: pointer;
  font: inherit; font-size: .78rem; padding: 3px 10px; border-radius: 999px;
}
.lang-btn.active { background: #fff; color: var(--c-primary-dark); font-weight: 600; }

@media (max-width: 560px) {
  .tb-txt { display: none; }               /* icons only on small phones */
  .topbar-in { padding-block: 4px; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.header-in {
  display: flex; align-items: center; gap: 16px;
  max-width: var(--wrap); margin-inline: auto;
  padding: 12px 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--c-ink);
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
  margin-right: auto;
}
.brand img { width: 38px; height: 38px; }
.brand small {
  display: block; font-family: var(--font-body); font-weight: 400;
  font-size: .68rem; color: var(--c-ink-soft); letter-spacing: .08em;
  text-transform: uppercase;
}

.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--c-ink-soft);
  padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.nav a.active { background: var(--c-primary); color: #fff; }

/* dropdown groups */
.nav-group { position: relative; }
.nav-parent {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; cursor: pointer; font: inherit;
  color: var(--c-ink-soft); padding: 8px 14px; border-radius: 999px;
  font-weight: 500; font-size: .95rem;
  transition: background .2s, color .2s;
}
.nav-parent:hover, .nav-parent.active { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 8px;
  display: none; z-index: 60;
}
.dropdown a { display: block; border-radius: 8px; padding: 9px 12px; }
.nav-group.open .dropdown,
.nav-group:hover .dropdown,
.nav-group:focus-within .dropdown { display: block; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--c-line);
  border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--c-ink);
}
.nav-toggle svg { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 auto 0; top: 0; z-index: 49;
    flex-direction: column; gap: 6px;
    background: var(--c-surface); border-bottom: 1px solid var(--c-line);
    padding: 76px 20px 20px;
    transform: translateY(-120%); transition: transform .25s ease;
    box-shadow: var(--shadow);
    max-height: 100dvh; overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav a, .nav-parent { padding: 12px 16px; font-size: 1.05rem; width: 100%; text-align: left; }
  /* dropdowns become inline groups on mobile */
  .dropdown {
    position: static; display: block; border: 0; box-shadow: none;
    padding: 0 0 0 18px; background: none;
  }
  .nav-parent svg { display: none; }
  .nav-parent { pointer-events: none; color: var(--c-primary-dark); font-weight: 600; }
}
.scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(21,48,45,.35);
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 70px);
  background:
    radial-gradient(1000px 460px at 85% -10%, var(--c-primary-soft) 0%, transparent 60%),
    radial-gradient(700px 420px at -10% 110%, color-mix(in srgb, var(--c-accent) 12%, transparent) 0%, transparent 60%);
}
.hero.compact { padding: clamp(36px, 6vw, 64px) 0 clamp(20px, 3vw, 36px); }
.hero.has-image { padding-block: clamp(36px, 6vw, 72px); }
.hero-cols {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 64px);
}
.hero-art img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 24px 40px rgba(21, 48, 45, .16));
}
@media (max-width: 820px) {
  .hero-cols { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 340px; margin-inline: auto; }
}
.hero .subtitle {
  max-width: 620px; font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--c-ink-soft); margin: 0 0 28px;
}
.hero .eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--c-primary);
  background: var(--c-primary-soft); padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--c-primary-dark); }
.btn-ghost { border-color: var(--c-primary); color: var(--c-primary-dark); }
.btn-ghost:hover { background: var(--c-primary-soft); }
.btn-accent { background: var(--c-accent); color: #fff; }

/* ---------- sections ---------- */
.section { padding: clamp(36px, 6vw, 72px) 0; }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head p { color: var(--c-ink-soft); margin: 0; }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.stat {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 22px 18px; text-align: center;
}
.stat b {
  display: block; font-family: var(--font-head);
  font-size: 2rem; color: var(--c-primary-dark);
}
.stat span { color: var(--c-ink-soft); font-size: .9rem; }

/* ---------- video grid ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px;
}
.filters select {
  appearance: none;
  font: inherit; color: var(--c-ink);
  background: var(--c-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234e6763' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--c-line); border-radius: 999px;
  padding: 10px 38px 10px 18px; cursor: pointer;
}
.filters .clear {
  background: none; border: none; color: var(--c-primary);
  font: inherit; font-weight: 600; cursor: pointer; padding: 10px 6px;
}
.count { color: var(--c-ink-soft); font-size: .9rem; margin: 0 0 18px; }

.video-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.video-card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.player { position: relative; aspect-ratio: 16 / 9; background: #0c1f1d; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .thumb-btn {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; cursor: pointer; background: none; display: block;
}
.player .thumb-btn img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s, opacity .3s;
}
.player .thumb-btn:hover img { transform: scale(1.04); opacity: .9; }
.player .play-badge {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 62px; height: 62px; border-radius: 50%;
  background: color-mix(in srgb, var(--c-primary) 92%, black);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .2s, background .2s;
  pointer-events: none;
}
.thumb-btn:hover .play-badge { transform: scale(1.1); background: var(--c-accent); }
.play-badge::after {
  content: ""; margin-left: 4px;
  border-style: solid; border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #fff;
}
.duration-chip {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(12,31,29,.85); color: #fff;
  font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 6px;
}

.video-meta { padding: 16px 18px 18px; }
.video-meta .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  color: var(--c-primary-dark); background: var(--c-primary-soft);
  padding: 3px 10px; border-radius: 999px;
}
.tag.level { color: #7c4a12; background: color-mix(in srgb, var(--c-accent) 16%, white); }
.video-meta h3 { margin-bottom: 4px; }
.video-meta .teacher { color: var(--c-primary); font-size: .88rem; font-weight: 600; margin: 0 0 6px; }
.video-meta .desc { color: var(--c-ink-soft); font-size: .92rem; margin: 0; }

.empty {
  text-align: center; color: var(--c-ink-soft);
  padding: 48px 20px; border: 1px dashed var(--c-line); border-radius: var(--radius);
}

/* ---------- card grid ---------- */
.card-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 26px 24px;
  text-decoration: none; color: inherit; display: block;
  transition: transform .2s, box-shadow .2s;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon { font-size: 2rem; line-height: 1; margin-bottom: 14px; }
.card p { color: var(--c-ink-soft); margin: 0; font-size: .95rem; }

/* ---------- people ---------- */
.people-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.person {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 28px 24px; text-align: center;
}
.avatar {
  width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff; font-family: var(--font-head); font-size: 1.7rem; font-weight: 600;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person .role { color: var(--c-accent); font-weight: 600; font-size: .85rem; margin: 0 0 10px; }
.person .bio { color: var(--c-ink-soft); font-size: .92rem; margin: 0; }

/* ---------- banner ---------- */
.banner {
  background: linear-gradient(120deg, var(--c-primary-dark), var(--c-primary));
  color: #fff; border-radius: calc(var(--radius) + 6px);
  padding: clamp(30px, 5vw, 52px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
}
.banner h2 { margin: 0 0 6px; color: #fff; }
.banner p { margin: 0; opacity: .85; max-width: 520px; }
.banner .grow { flex: 1 1 320px; }

/* ---------- prose ---------- */
.prose { max-width: 700px; font-size: 1.05rem; color: var(--c-ink-soft); }
.prose p { margin: 0 0 1em; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 40px; border-top: 1px solid var(--c-line);
  background: var(--c-surface);
}
.footer-in {
  max-width: var(--wrap); margin-inline: auto; padding: 32px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  color: var(--c-ink-soft); font-size: .92rem;
}
.footer-in .flinks { margin-left: auto; display: flex; gap: 18px; }
.footer-in a { color: var(--c-ink-soft); text-decoration: none; font-weight: 500; }
.footer-in a:hover { color: var(--c-primary); }

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.gallery-item { margin: 0; }
.gallery-item button {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; background: var(--c-primary-soft);
}
.gallery-item img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .3s;
}
.gallery-item button:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  font-size: .85rem; color: var(--c-ink-soft); padding: 8px 4px 0;
}

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12, 31, 29, .92);
  display: grid; place-items: center; padding: 24px;
}
.lightbox figure { margin: 0; max-width: min(920px, 94vw); text-align: center; }
.lightbox img {
  max-width: 100%; max-height: 80dvh; border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
}
.lightbox figcaption { color: #cfe5e2; margin-top: 12px; font-size: .95rem; }
.lightbox-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.1rem;
}
.lightbox-close:hover { background: rgba(255,255,255,.28); }

/* ---------- payment ---------- */
.pay-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 860px;
}
.pay-card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 28px 26px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.pay-card .qr {
  width: 190px; height: 190px; border: 1px solid var(--c-line);
  border-radius: 12px; align-self: center;
}
.pay-card .hint { color: var(--c-ink-soft); font-size: .88rem; margin: 0; align-self: center; }
.upi-id { align-self: center; margin: 0; }
.upi-id code {
  background: var(--c-primary-soft); color: var(--c-primary-dark);
  padding: 6px 14px; border-radius: 8px; font-size: 1rem;
}
.pay-card .btn { align-self: center; }
.bank-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.bank-dl dt { color: var(--c-ink-soft); font-size: .9rem; }
.bank-dl dd { margin: 0; font-weight: 600; }
.pay-note {
  background: color-mix(in srgb, var(--c-accent) 10%, white);
  border-left: 3px solid var(--c-accent); border-radius: 8px;
  padding: 10px 14px; font-size: .9rem; color: var(--c-ink-soft); margin: 4px 0 0;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid; gap: 36px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info .ci {
  display: flex; gap: 14px; align-items: flex-start; margin: 0 0 18px;
  color: var(--c-ink-soft);
}
.contact-info .ci b { color: var(--c-ink); }
.contact-info .ci a { color: var(--c-primary-dark); text-decoration: none; }
.ci-icon {
  flex: 0 0 auto; width: 38px; height: 38px; padding: 8px;
  border-radius: 10px; background: var(--c-primary-soft); color: var(--c-primary-dark);
}
.ci-icon svg { width: 100%; height: 100%; }
.or-wa { color: var(--c-ink-soft); font-size: .9rem; margin: 22px 0 10px; }
.btn-wa { display: inline-flex; align-items: center; gap: 10px; }
.btn-wa .wa-ic { width: 20px; height: 20px; display: inline-flex; }
.btn-wa .wa-ic svg { width: 100%; height: 100%; }

.contact-form {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 26px;
  display: grid; gap: 16px;
}
.contact-form label {
  display: grid; gap: 6px; font-weight: 600; font-size: .9rem;
}
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--c-ink);
  border: 1px solid var(--c-line); border-radius: 10px;
  padding: 11px 14px; background: var(--c-bg); width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--c-primary); outline-offset: 0; border-color: transparent;
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 600; }

/* ---------- floating WhatsApp button ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; padding: 13px;
  box-shadow: 0 10px 26px rgba(18, 140, 76, .45);
  transition: transform .15s, box-shadow .15s;
}
.wa-float svg { width: 100%; height: 100%; display: block; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 32px rgba(18, 140, 76, .55); }

/* ---------- misc ---------- */
.fade-in { animation: fadeUp .45s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
