/* ══════════════════════════════════════════
   SATTVA STUDIO — style.css
   Palette: dark slate + warm gold + muted sage
   Type: Cormorant Garamond (display) + DM Sans (body)
═══════════════════════════════════════════ */

:root {
  --bg:     #0E1419;
  --bg2:    #141B22;
  --bg3:    #1C2530;
  --gold:   #C8A97E;
  --sage:   #7FB5A3;
  --yin-c:  #A89BC8;
  --cream:  #F2EDE6;
  --muted:  #8A9AA0;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15;
}

a { text-decoration: none; color: inherit; }

img { display: block; width: 100%; height: 100%; object-fit: cover; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── EYEBROW ── */
.eyebrow {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 18px;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 400;
  color: var(--cream);
}

/* ── SHARED BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(242,237,230,0.3);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--cream); background: rgba(242,237,230,0.05); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════
   NAV
════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  transition: background 0.35s, padding 0.35s, border-color 0.35s;
}
#navbar.scrolled {
  background: rgba(14,20,25,0.94);
  backdrop-filter: blur(14px);
  padding: 14px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--cream);
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 13px;
  color: rgba(242,237,230,0.65);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cream); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-btn {
  background: none;
  border: 1px solid rgba(242,237,230,0.22);
  color: rgba(242,237,230,0.65);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lang-btn:hover { border-color: var(--cream); color: var(--cream); }

.nav-cta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--bg);
  padding: 10px 22px;
  border-radius: 2px;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span { display: block; width: 22px; height: 1.5px; background: var(--cream); transition: all 0.3s; }

/* mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 199;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.mobile-menu.open { display: flex; }
.mobile-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 400;
  color: var(--cream);
}
.mobile-cta {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--bg) !important;
  padding: 14px 36px;
  border-radius: 2px;
  margin-top: 8px;
}

/* ════════════════════════════════
   HERO
════════════════════════════════ */
#hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img { object-position: center 25%; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,20,25,0.55) 0%,
    rgba(14,20,25,0.25) 40%,
    rgba(14,20,25,0.72) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(80px, 15vw, 172px);
  font-weight: 300;
  line-height: 0.88;
  color: var(--cream);
  letter-spacing: -0.02em;
}
.hero-title em { font-style: italic; color: var(--gold); }

/* ── Signature: breathing vertical line ── */
.breath-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  margin: 32px auto;
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { height: 36px; opacity: 0.35; }
  50%       { height: 80px; opacity: 1; }
}

.hero-sub {
  font-size: 15px;
  font-weight: 300;
  color: rgba(242,237,230,0.68);
  letter-spacing: 0.06em;
  margin-bottom: 44px;
  max-width: 380px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--cream), transparent);
  margin: 0 auto;
  animation: scrollFade 2.2s ease-in-out infinite;
}
@keyframes scrollFade {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 0.75; }
}

/* ════════════════════════════════
   ABOUT
════════════════════════════════ */
#about { padding: 120px 0; }

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

.about-text h2 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 22px;
}
.about-text p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 48px;
}

.about-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 40px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 50px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.stat-label { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

.about-img {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.about-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(14,20,25,0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(200,169,126,0.3);
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  padding: 10px 18px;
  border-radius: 2px;
}

/* ════════════════════════════════
   CLASSES
════════════════════════════════ */
#classes {
  padding: 100px 0;
  background: var(--bg2);
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

.class-card {
  background: var(--bg3);
  overflow: hidden;
}
.class-card:hover { background: #222B3C; }

.class-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.class-img img { transition: transform 0.55s ease; }
.class-card:hover .class-img img { transform: scale(1.05); }

.class-level {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(14,20,25,0.78);
  backdrop-filter: blur(6px);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--sage);
  padding: 4px 10px;
  border-radius: 2px;
}

.class-body { padding: 28px; }
.class-body h3 {
  font-size: 26px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 10px;
}
.class-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.class-meta {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ════════════════════════════════
   SCHEDULE
════════════════════════════════ */
#schedule { padding: 100px 0; }

.schedule-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.schedule-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
}
.schedule-table th,
.schedule-table td {
  padding: 15px 10px;
  text-align: center;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.schedule-table thead th {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 20px;
}
.t-time {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.sc {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.sc.hatha      { background: rgba(200,169,126,0.14); color: var(--gold); }
.sc.vinyasa    { background: rgba(127,181,163,0.14); color: var(--sage); }
.sc.yin        { background: rgba(168,155,200,0.14); color: var(--yin-c); }
.sc.meditation { background: rgba(200,180,126,0.14); color: #C8B888; }

/* ════════════════════════════════
   INSTRUCTORS
════════════════════════════════ */
#instructors {
  padding: 100px 0;
  background: var(--bg2);
}

.instructors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.instructor-card {
  background: var(--bg3);
  overflow: hidden;
}
.instructor-img {
  aspect-ratio: 3/4;
  overflow: hidden;
}
.instructor-img img { transition: transform 0.55s ease; }
.instructor-card:hover .instructor-img img { transform: scale(1.04); }

.instructor-info { padding: 28px; }
.instructor-info h3 {
  font-size: 24px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 4px;
}
.instr-style {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--sage);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.instructor-info p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* ════════════════════════════════
   PRICING
════════════════════════════════ */
#pricing { padding: 100px 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.price-card {
  background: var(--bg2);
  padding: 48px 36px;
  position: relative;
}
.price-card.featured {
  background: var(--bg3);
  border-top: 2px solid var(--gold);
}

.price-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200,169,126,0.14);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 22px;
}

.price-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 8px;
}
.price-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 54px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 32px;
}
.price-amount span { font-size: 18px; color: var(--muted); }

.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}
.price-list li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.price-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-size: 12px;
}

.price-btn {
  display: block;
  text-align: center;
  border: 1px solid rgba(242,237,230,0.2);
  color: var(--cream);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px;
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
}
.price-btn:hover { border-color: var(--cream); background: rgba(242,237,230,0.05); }

.price-btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}
.price-btn-gold:hover { background: #d4b58a; border-color: #d4b58a; color: var(--bg); }

/* ════════════════════════════════
   GALLERY
════════════════════════════════ */
#gallery {
  padding: 100px 0;
  background: var(--bg2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 280px;
  gap: 4px;
}

.gallery-item {
  overflow: hidden;
}
.gallery-item img { transition: transform 0.55s ease; }
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item.g-tall { grid-row: span 2; }
.gallery-item.g-wide { grid-column: span 2; }

/* ════════════════════════════════
   LOCATION
════════════════════════════════ */
#location { padding: 100px 0; }

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

.location-info h2 {
  font-size: clamp(32px, 4.5vw, 50px);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 44px;
}

.loc-details { display: flex; flex-direction: column; gap: 28px; }

.loc-row { display: flex; gap: 16px; align-items: flex-start; }
.loc-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.loc-row strong {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 4px;
}
.loc-row p { font-size: 14px; color: var(--muted); line-height: 1.75; }

.location-photo {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.loc-cta-wrap {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

/* ════════════════════════════════
   BOOKING / CTA
════════════════════════════════ */
#booking {
  padding: 120px 0;
  background: var(--bg2);
  text-align: center;
}
.booking-inner { max-width: 580px; }

#booking .eyebrow { margin-bottom: 18px; }
#booking h2 {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 20px;
}
#booking p { font-size: 15px; color: var(--muted); max-width: 440px; margin: 0 auto; }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
footer {
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--cream);
}
.footer-logo span { color: var(--gold); }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--cream); }
.footer-copy { font-size: 12px; color: var(--muted); }

/* ════════════════════════════════
   CHAT WIDGET
════════════════════════════════ */
#chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  font-family: 'DM Sans', sans-serif;
}

.chat-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(200,169,126,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-left: auto;
}
.chat-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(200,169,126,0.55);
}

.chat-box {
  display: none;
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 340px;
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  flex-direction: column;
}
.chat-box.open { display: flex; }

.chat-header {
  background: var(--bg3);
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.chat-header-left { display: flex; align-items: center; gap: 10px; }

.chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.chat-title { font-size: 14px; font-weight: 500; color: var(--cream); }

.chat-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  transition: color 0.2s;
}
.chat-close:hover { color: var(--cream); }

.chat-messages {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bg3) transparent;
}

.msg { display: flex; max-width: 88%; }
.msg.bot  { align-self: flex-start; }
.msg.user { align-self: flex-end; }

.msg-text {
  padding: 11px 15px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.msg.bot  .msg-text { background: var(--bg3); color: var(--cream); border-bottom-left-radius: 3px; }
.msg.user .msg-text { background: var(--gold); color: var(--bg); border-bottom-right-radius: 3px; }
.msg.typing .msg-text { color: var(--muted); font-style: italic; }

.chat-input-row {
  display: flex;
  padding: 11px 14px;
  background: var(--bg3);
  border-top: 1px solid rgba(255,255,255,0.06);
  gap: 8px;
  align-items: center;
}
#chatInput {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 2px 4px;
}
#chatInput::placeholder { color: var(--muted); }

#chatSend {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gold);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
#chatSend:hover { opacity: 0.7; }
#chatSend:disabled { opacity: 0.3; cursor: default; }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 960px) {
  #navbar { padding: 18px 24px; }
  #navbar.scrolled { padding: 12px 24px; }
  .nav-links, .nav-right { display: none; }
  .burger { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img { aspect-ratio: 16/9; order: -1; }

  .classes-grid { grid-template-columns: 1fr; }
  .instructors-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item.g-tall { grid-row: span 1; }
  .gallery-item.g-wide { grid-column: span 2; }

  .location-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }

  .chat-box { width: 300px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 72px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .about-stats { flex-wrap: wrap; gap: 24px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.g-wide { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  .breath-line, .scroll-line, .chat-dot { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
