/* ============================================================
   Vruksh Yoga — Forest & Sand
   ============================================================ */

:root {
  --forest:      #2F4A34;
  --forest-deep: #223828;
  --sage:        #6E8F63;
  --sage-text:   #557548;   /* AA-contrast sage, for small text only */
  --sage-soft:   #E7EEE2;
  --sand:        #FAF7F0;
  --surface:     #FFFFFF;
  --bark:        #1E241C;
  --muted:       #5C6A55;
  --wa:          #25D366;
  --rule:        rgba(30, 36, 28, 0.12);
  --rule-soft:   rgba(30, 36, 28, 0.07);
  --shadow:      0 1px 2px rgba(30, 36, 28, .05), 0 8px 24px -12px rgba(30, 36, 28, .18);

  --display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1080px;
  --gut: clamp(20px, 5vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --forest:      #AFC99C;
    --forest-deep: #C7DDB6;
    --sage:        #93B085;
    --sage-text:   #A6C79A;
    --sage-soft:   #23251B;   /* warm band, not blue-black */
    --sand:        #1B1C15;   /* warm bark ground, lifted off pure black */
    --surface:     #232619;
    --bark:        #EDEBE0;   /* warm off-white, not cool grey */
    --muted:       #ADB1A0;
    --rule:        rgba(233, 238, 227, 0.15);
    --rule-soft:   rgba(233, 238, 227, 0.08);
    --shadow:      0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--bark);
  font: 400 17px/1.65 var(--ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.sprite { display: none; }

svg { width: 1em; height: 1em; fill: currentColor; flex: none; }

a { color: var(--forest); }

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

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

.devanagari { font-family: system-ui, sans-serif; }

.skip {
  position: absolute; left: -9999px;
  background: var(--forest); color: var(--sand);
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip:focus { left: 0; top: 0; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--sand) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--bark);
}

.brand-logo {
  width: auto;
  height: 34px;
  display: block;
}

/* The logo's branches are near-black, so on the dark theme it is set on a
   light chip rather than recoloured — keeps the brand colours intact. */
@media (prefers-color-scheme: dark) {
  .brand-logo {
    background: #FAF7F0;
    padding: 4px 7px;
    border-radius: 9px;
  }
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name {
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 26px);
  font-size: 0.92rem;
}

.nav > a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav > a:hover { color: var(--forest); }
.nav > a.btn:hover { color: var(--sand); }

@media (max-width: 700px) {
  .nav a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  background: var(--forest);
  color: var(--sand) !important;
  font-family: var(--ui);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn svg { width: 1.05em; height: 1.05em; }
.btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-sm { padding: 8px 15px; font-size: 0.87rem; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }

.btn-ghost {
  background: transparent;
  color: var(--forest) !important;
  border-color: var(--rule);
}
.btn-ghost:hover { background: var(--sage-soft); border-color: var(--sage); color: var(--forest) !important; }

.btn-wa { background: var(--wa); border-color: var(--wa); color: #06331a !important; }
.btn-wa:hover { background: #1EBE5A; border-color: #1EBE5A; color: #06331a !important; }

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

.hero {
  position: relative;
  padding-block: clamp(56px, 10vw, 104px) clamp(48px, 8vw, 88px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% 30% auto;
  width: min(560px, 70vw);
  aspect-ratio: 1;
  background: radial-gradient(circle at 70% 30%, var(--sage-soft), transparent 68%);
  z-index: -1;
}

.eyebrow {
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-text);
}

h1 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: clamp(2.3rem, 6.4vw, 4rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--forest);
  text-wrap: balance;
}

.lede {
  margin: 0 0 32px;
  max-width: 52ch;
  text-wrap: balance;
  font-size: clamp(1.03rem, 1.7vw, 1.16rem);
  color: var(--muted);
}

.lede strong { color: var(--bark); font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.rating {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 0.92rem;
  color: var(--muted);
}

.rating-link {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--forest) 35%, transparent);
  padding-bottom: 2px;
  transition: border-color .15s ease;
}

.rating-link:hover { border-bottom-color: var(--forest); }

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

.section { padding-block: clamp(52px, 8vw, 88px); }
.section-alt { background: var(--sage-soft); }

.section-head { margin-bottom: 36px; }

.kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-text);
}

h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--forest);
}

.section-intro { margin: 14px 0 0; max-width: 60ch; color: var(--muted); text-wrap: pretty; }

h3 { margin: 0 0 10px; font-size: 1.04rem; font-weight: 600; letter-spacing: -0.005em; }

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: 14px;
  padding: 26px 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--sage);
  border-radius: 2px;
  margin-bottom: 16px;
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--rule); }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; text-wrap: pretty; }

.note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 26px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.note svg { width: 1.1em; height: 1.1em; margin-top: 0.22em; color: var(--sage); }

/* ---------- Teacher ---------- */

.teacher {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

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

.teacher-main p { color: var(--muted); margin: 0 0 14px; max-width: 58ch; text-wrap: pretty; }

.pull {
  font-family: var(--display);
  text-wrap: balance;
  font-size: clamp(1.12rem, 2vw, 1.32rem);
  line-height: 1.45;
  color: var(--bark) !important;
  margin-top: 20px !important;
  padding-left: 18px;
  border-left: 2px solid var(--sage);
}

.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--bark);
  font-size: 0.89rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}

.social svg { color: var(--sage); width: 1.15em; height: 1.15em; }
.social:hover { border-color: var(--sage); color: var(--forest); }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 20px;
  background: var(--surface);
}

.stat-n {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1;
  color: var(--forest);
  letter-spacing: -0.02em;
}

.stat-u { font-size: 0.9rem; }

.stat-l {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Visit ---------- */

.visit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.visit-col h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.visit-col h3 svg { color: var(--sage); width: 1.05em; height: 1.05em; }

address { font-style: normal; line-height: 1.75; color: var(--muted); margin-bottom: 14px; }

.inline-link { font-size: 0.92rem; font-weight: 500; text-decoration: none; }
.inline-link:hover { text-decoration: underline; }

.hours { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.hours tr + tr th, .hours tr + tr td { border-top: 1px solid var(--rule-soft); }
.hours th, .hours td { padding: 8px 0; font-weight: 400; }
.hours th { text-align: left; color: var(--bark); font-weight: 500; }
.hours td { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours .closed th, .hours .closed td { color: var(--muted); opacity: .6; }

.facts { margin: 0; padding: 0; list-style: none; }

.facts li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.95rem;
}

.facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

.map {
  margin-top: clamp(32px, 5vw, 52px);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.map iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 42vw, 420px);
  border: 0;
}

/* ---------- Quotes ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.quote {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: 14px;
}

.quote blockquote { margin: 0; }

.quote blockquote::before {
  content: "\201C";
  display: block;
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 0.7;
  color: var(--sage);
  margin-bottom: 10px;
}

.quote p { margin: 0; font-size: 0.97rem; color: var(--bark); text-wrap: pretty; }

.quote figcaption {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Contacts ---------- */

.contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.contacts a {
  display: flex;
  align-items: center;
  gap: 15px;
  height: 100%;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
  text-decoration: none;
  color: var(--bark);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.contacts a:hover { border-color: var(--sage); transform: translateY(-2px); box-shadow: var(--shadow); }

.ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--sage-soft);
  color: var(--forest);
}

.ic svg { width: 20px; height: 20px; }
.ic-wa { background: color-mix(in srgb, var(--wa) 18%, transparent); color: #128C4A; }

@media (prefers-color-scheme: dark) { .ic-wa { color: #4BE08C; } }

.ct { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.ct-l {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ct-v {
  font-size: 0.97rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

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

.site-footer {
  background: var(--forest);
  color: color-mix(in srgb, var(--sand) 82%, transparent);
  padding-block: 40px 48px;
}

@media (prefers-color-scheme: dark) {
  .site-footer { background: var(--surface); border-top: 1px solid var(--rule); color: var(--muted); }
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer p { margin: 0; }
.site-footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.footer-name {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--sand);
  margin-bottom: 6px !important;
}

@media (prefers-color-scheme: dark) { .footer-name { color: var(--bark); } }

.footer-dev { font-size: 0.9rem; opacity: .8; }
.footer-meta { font-size: 0.92rem; line-height: 1.8; }
.fine { font-size: 0.82rem; opacity: .75; }

/* ---------- WhatsApp FAB ---------- */

.fab {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--wa);
  color: #06331a;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  box-shadow: 0 6px 20px -4px rgba(18, 140, 74, .5);
  transition: transform .15s ease, box-shadow .15s ease;
}

.fab svg { width: 22px; height: 22px; }
.fab:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -4px rgba(18, 140, 74, .6); }

@media (max-width: 560px) {
  .fab { padding: 15px; }
  .fab-label { display: none; }
}

/* ---------- Today's row ---------- */

.hours .today th { color: var(--forest); font-weight: 600; }
.hours .today td { color: var(--bark); font-weight: 500; }

.today-tag {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.hours .today.closed th, .hours .today.closed td { opacity: 1; }
.hours .today.closed td { color: var(--muted); }
