/* =========================================================
   Vadic Hindu Sanskriti — Stylesheet
   Palette grounded in temple pigment: turmeric saffron, sindoor
   vermillion, sandalwood ink, and aged-manuscript ivory.
   ========================================================= */

:root {
  --ivory: #FBF2E3;
  --ivory-deep: #F3E4C8;
  --paper: #FFFBF3;
  --saffron: #E28125;
  --saffron-deep: #C1650F;
  --vermillion: #AF3626;
  --vermillion-deep: #8C2A1D;
  --gold: #C9962C;
  --gold-light: #E4BE6B;
  --ink: #3B2417;
  --ink-soft: #5A3E2B;
  --tulsi: #4B6043;
  --line: rgba(59, 36, 23, 0.14);
  --shadow: 0 12px 32px rgba(59, 36, 23, 0.14);

  --font-display: 'Yatra One', 'Tiro Devanagari Hindi', serif;
  --font-body: 'Mukta', 'Noto Sans Devanagari', sans-serif;

  --container: 1180px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.25; margin: 0 0 .5em; color: var(--vermillion-deep); }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--saffron-deep);
  background: rgba(226, 129, 37, 0.12);
  border: 1px solid rgba(226, 129, 37, 0.35);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section {
  padding: 88px 0;
  position: relative;
}

.section-alt {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 { font-size: clamp(28px, 4vw, 40px); }

.section-head p { color: var(--ink-soft); font-size: 18px; }

/* ---------- Diya flame divider (signature element) ---------- */
.diya-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0;
  padding: 6px 0;
  background: var(--ivory);
}
.diya-divider .line { flex: 1; max-width: 260px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.diya-divider svg { width: 30px; height: 30px; }
.diya-flame { animation: flicker 2.6s ease-in-out infinite; transform-origin: 50% 85%; }
@keyframes flicker {
  0%, 100% { transform: scaleY(1) rotate(0deg); }
  25% { transform: scaleY(1.06) rotate(-1.5deg); }
  50% { transform: scaleY(0.96) rotate(1.5deg); }
  75% { transform: scaleY(1.03) rotate(-1deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--vermillion); color: var(--paper); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--vermillion-deep); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; border-color: var(--paper); color: var(--paper); }
.btn-outline:hover { background: rgba(255,255,255,0.14); }
.btn-outline-dark { background: transparent; border-color: var(--vermillion); color: var(--vermillion-deep); }
.btn-outline-dark:hover { background: rgba(175,54,38,0.08); }
.btn-block { width: 100%; justify-content: center; }

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 242, 227, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand-text .name { font-family: var(--font-display); font-size: 20px; color: var(--vermillion-deep); line-height: 1.1; }
.brand-text .tagline { font-size: 12px; color: var(--ink-soft); letter-spacing: .03em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: color .15s ease, background .15s ease;
}
.main-nav a:hover { color: var(--vermillion); background: rgba(175,54,38,0.06); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: flex;
  border: 1px solid var(--gold);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch a {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}
.lang-switch a.active { background: var(--saffron); color: var(--paper); }
.lang-switch a:hover:not(.active) { background: rgba(226,129,37,0.12); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ================= HERO ================= */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 100% at 50% -10%, #4a231a 0%, #2c150f 60%, #1c0d09 100%);
  color: var(--paper);
  padding: 120px 0 100px;
}
.hero-mandala {
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  opacity: 0.16;
  animation: spin 140s linear infinite;
  pointer-events: none;
}
@keyframes spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold-light);
  letter-spacing: .06em;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  color: var(--paper);
  font-size: clamp(32px, 5.4vw, 56px);
  margin-bottom: 20px;
}
.hero p.hero-sub {
  font-size: 19px;
  color: rgba(251,242,227,0.86);
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ================= STATS ================= */
.stats-bar {
  background: var(--vermillion-deep);
  color: var(--paper);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat .num { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); color: var(--gold-light); }
.stat .label { font-size: 14px; letter-spacing: .03em; color: rgba(251,242,227,0.85); }

/* ================= ABOUT ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-media { position: relative; }
.about-media .frame {
  border: 6px solid var(--paper);
  outline: 2px solid var(--gold);
  outline-offset: 6px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.about-text p { color: var(--ink-soft); }

/* ================= MISSION / VISION ================= */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
}
.mv-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--saffron);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.mv-card h3 { font-size: 24px; }
.mv-card p { color: var(--ink-soft); margin: 0; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.value-card { text-align: center; padding: 26px 18px; }
.value-icon {
  width: 58px; height: 58px; margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(226,129,37,0.12);
  border: 1px solid rgba(226,129,37,0.35);
  display: flex; align-items: center; justify-content: center;
}
.value-icon svg { width: 28px; height: 28px; stroke: var(--saffron-deep); }
.value-card h4 { font-size: 18px; margin-bottom: 8px; }
.value-card p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ================= DHARMA ================= */
.dharma-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.dharma-text p { color: var(--ink-soft); }
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--vermillion-deep);
  box-shadow: 0 6px 18px rgba(59,36,23,0.08);
}

/* ================= YOGA & AYURVEDA ================= */
.yoga-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.yoga-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.yoga-card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--tulsi);
  background: rgba(75,96,67,0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.yoga-card p { color: var(--ink-soft); margin: 0; }

.yoga-list-wrap {
  background: var(--vermillion-deep);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 40px;
}
.yoga-list-wrap h3 { color: var(--gold-light); font-size: 22px; }
.yoga-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.yoga-list li { padding-left: 30px; position: relative; color: rgba(251,242,227,0.92); }
.yoga-list li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 14px; height: 14px;
  background: var(--gold-light);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ================= SCRIPTURES ================= */
.scripture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.scripture-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: box-shadow .2s ease, transform .2s ease;
}
.scripture-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.scripture-card .om {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 10px;
}
.scripture-card h3 { font-size: 20px; margin-bottom: 10px; }
.scripture-card p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ================= ACTIVITIES ================= */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.activity-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.activity-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold); }
.activity-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--vermillion));
  display: flex; align-items: center; justify-content: center;
}
.activity-icon svg { width: 26px; height: 26px; stroke: var(--paper); fill: none; }
.activity-card h4 { font-size: 17px; margin-bottom: 8px; }
.activity-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ================= GALLERY CAROUSEL ================= */
.carousel {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}
.carousel-track-wrap { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.carousel-track {
  display: flex;
  transition: transform .5s cubic-bezier(.65,.05,.36,1);
}
.carousel-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16/8;
  background: linear-gradient(135deg, var(--ivory-deep), var(--gold-light));
}
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 24px;
  background: linear-gradient(0deg, rgba(28,13,9,0.75), transparent);
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 3;
}
.carousel-btn svg { width: 18px; height: 18px; stroke: var(--vermillion-deep); }
.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.carousel-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: none; background: var(--line); cursor: pointer; padding: 0;
}
.carousel-dots button.active { background: var(--vermillion); }

/* ================= TESTIMONIALS ================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testimonial-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 6px 18px rgba(59,36,23,0.06);
}
.testimonial-card .quote-mark { font-family: var(--font-display); font-size: 42px; color: var(--gold); line-height: 1; }
.testimonial-card p.quote { color: var(--ink-soft); font-style: italic; }
.testimonial-person { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--vermillion));
  display: flex; align-items: center; justify-content: center;
  color: var(--paper); font-family: var(--font-display); font-size: 18px;
}
.testimonial-person .name { font-weight: 700; font-size: 15px; }
.testimonial-person .role { font-size: 13px; color: var(--ink-soft); }

/* ================= CONTACT ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: var(--vermillion-deep);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-info-card h3 { color: var(--gold-light); margin-bottom: 24px; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info-item .ic {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(251,242,227,0.14);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-item .ic svg { width: 18px; height: 18px; stroke: var(--gold-light); }
.contact-info-item .t { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.contact-info-item .b { font-size: 14.5px; color: rgba(251,242,227,0.85); }
.map-placeholder {
  margin-top: 24px;
  border-radius: var(--radius);
  border: 1px dashed rgba(251,242,227,0.4);
  padding: 40px 16px;
  text-align: center;
  font-size: 13px;
  color: rgba(251,242,227,0.75);
}

.contact-form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.form-group .req { color: var(--vermillion); }
.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
  color: var(--ink);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--saffron);
  outline-offset: 1px;
  background: var(--paper);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-error-text { color: var(--vermillion); font-size: 13px; margin-top: 4px; display: none; }
.form-group.invalid input,
.form-group.invalid textarea { border-color: var(--vermillion); }
.form-group.invalid .form-error-text { display: block; }

.form-alert {
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14.5px;
  font-weight: 600;
}
.form-alert.success { background: rgba(75,96,67,0.12); color: var(--tulsi); border: 1px solid rgba(75,96,67,0.3); }
.form-alert.error { background: rgba(175,54,38,0.1); color: var(--vermillion-deep); border: 1px solid rgba(175,54,38,0.3); }

/* ================= FOOTER ================= */
.site-footer {
  background: #241209;
  color: rgba(251,242,227,0.82);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(251,242,227,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .name { font-family: var(--font-display); color: var(--gold-light); font-size: 19px; }
.site-footer h4 { color: var(--gold-light); font-family: var(--font-body); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 18px; }
.site-footer p { font-size: 14.5px; color: rgba(251,242,227,0.72); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14.5px; color: rgba(251,242,227,0.75); }
.footer-links a:hover { color: var(--gold-light); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(251,242,227,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a svg { width: 16px; height: 16px; stroke: var(--gold-light); }
.footer-social a:hover { background: var(--saffron); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; font-size: 13px; color: rgba(251,242,227,0.55); flex-wrap: wrap; gap: 8px;
}

/* ================= SCROLL REVEAL ================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .about-grid, .dharma-grid, .contact-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .scripture-grid { grid-template-columns: 1fr 1fr; }
  .activities-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .yoga-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-top: 1px solid var(--line); padding: 10px 18px 18px;
    box-shadow: var(--shadow);
  }
  .header-inner { flex-wrap: wrap; }
  .hero { padding: 90px 0 70px; }
  .form-row { grid-template-columns: 1fr; }
  .values-grid, .scripture-grid, .activities-grid { grid-template-columns: 1fr; }
  .yoga-list { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .carousel-btn.prev { left: 6px; }
  .carousel-btn.next { right: 6px; }
  .section { padding: 64px 0; }
}
