/* ═══════════════════════════════════════════════
   TEMPLE GIRL KIDS — Main Stylesheet
   Design Language: Sacred Warmth + Modern Polish
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=DM+Sans:wght@300;400;500;600&family=Noto+Serif+Devanagari:wght@400;700&display=swap');

/* ── CSS Variables ─────────────────────────────── */
:root {
  --night:    #1C0A00;
  --mid:      #2D1200;
  --saffron:  #E8722A;
  --gold:     #D4A04A;
  --cream:    #FDF3E3;
  --sand:     #E4DDD5;
  --muted:    #8B6A3E;
  --dim:      #5C4A30;
  --white:    #FFFFFF;
  --lGold:    #FAF0DC;
  --peacock:  #0F6E56;
  --vishnu:   #7F77DD;
  --krishna:  #1D9E75;
  --shiva:    #9F5CE6;
  --devi:     #D4548A;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'DM Sans', -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;

  --shadow-warm: 0 4px 24px rgba(232,114,42,0.15);
  --shadow-deep: 0 16px 64px rgba(28,10,0,0.25);
  --shadow-card: 0 2px 16px rgba(28,10,0,0.10);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--sand);
  color: var(--night);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-sans); }

/* ── Animations ────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes diya-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(232,114,42,0.4), 0 0 40px rgba(212,160,74,0.2); }
  50%       { box-shadow: 0 0 35px rgba(232,114,42,0.7), 0 0 60px rgba(212,160,74,0.4); }
}
@keyframes wave {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(14deg); }
  40%  { transform: rotate(-8deg); }
  60%  { transform: rotate(14deg); }
  80%  { transform: rotate(-4deg); }
  100% { transform: rotate(10deg); }
}

.animate-fadeUp      { animation: fadeUp 0.6s ease forwards; }
.animate-fadeIn      { animation: fadeIn 0.5s ease forwards; }
.animate-slideInLeft { animation: slideInLeft 0.5s ease forwards; }
.animate-float       { animation: float 3s ease-in-out infinite; }
.animate-diya-glow   { animation: diya-glow 2s ease-in-out infinite; }

/* Stagger delays */
.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }
.delay-400 { animation-delay: 0.4s; opacity: 0; }
.delay-500 { animation-delay: 0.5s; opacity: 0; }

/* ── Navbar ─────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(28,10,0,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,160,74,0.2);
  transition: var(--transition);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.navbar-brand .brand-text {
  font-family: var(--font-serif);
  font-size: clamp(15px, 2.8vw, 20px);
  font-weight: 700;
  color: #F5E6C8;
  line-height: 1.15;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(245,230,200,0.75);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
  background: rgba(212,160,74,0.1);
}
.nav-cta {
  background: var(--saffron) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 9px 18px !important;
  border-radius: 20px !important;
}
.nav-cta:hover { background: #D4621E !important; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--night);
  border-top: 1px solid rgba(212,160,74,0.15);
  padding: 12px 24px 20px;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 0;
  font-size: 15px;
  color: rgba(245,230,200,0.8);
  border-bottom: 1px solid rgba(212,160,74,0.08);
  transition: var(--transition);
}
.mobile-nav a:hover { color: var(--gold); }

/* ── Page Header (hero for inner pages) ─────────── */
.page-hero {
  padding: 120px 24px 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--night) 0%, var(--mid) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4A04A' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .ornament {
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 16px;
  display: block;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: #F5E6C8;
  line-height: 1.2;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── Container ──────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--saffron);
  color: var(--white);
}
.btn-primary:hover { background: #D4621E; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(232,114,42,0.35); }
.btn-outline {
  background: transparent;
  color: #F5E6C8;
  border: 1.5px solid rgba(245,230,200,0.3);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold {
  background: var(--gold);
  color: var(--night);
}
.btn-gold:hover { background: #C49040; transform: translateY(-1px); }

/* ── Cards ──────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-deep); }

/* ── Badge ──────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-saffron { background: rgba(232,114,42,0.15); color: var(--saffron); }
.badge-gold    { background: rgba(212,160,74,0.15); color: #9A6E20; }
.badge-peacock { background: rgba(15,110,86,0.12); color: var(--peacock); }

/* ── Divider ornament ───────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}
.divider span {
  font-size: 18px;
  opacity: 0.6;
}

/* ── Section Heading ────────────────────────────── */
.section-heading {
  text-align: center;
  margin-bottom: 56px;
}
.section-heading .tag {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--saffron);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}
.section-heading h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--night);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-heading h2.light { color: #F5E6C8; }
.section-heading p {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-heading p.light { color: rgba(245,230,200,0.65); }

/* ── Footer ─────────────────────────────────────── */
.footer {
  background: var(--night);
  color: rgba(245,230,200,0.65);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #F5E6C8;
  margin-bottom: 4px;
}
.footer-brand .brand-tagline {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.75;
  max-width: 260px;
}
.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: #F5E6C8;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(245,230,200,0.55);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(212,160,74,0.12);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; }
.footer-bottom .store-badges { display: flex; gap: 10px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212,160,74,0.25);
  font-size: 11px;
  color: rgba(245,230,200,0.7);
  transition: var(--transition);
}
.store-badge:hover { border-color: var(--gold); color: var(--gold); }

/* ── Utility ─────────────────────────────────────── */
.text-center   { text-align: center; }
.text-gold     { color: var(--gold); }
.text-saffron  { color: var(--saffron); }
.text-muted    { color: var(--muted); }
.text-cream    { color: #F5E6C8; }
.bg-night      { background: var(--night); }
.bg-cream      { background: var(--cream); }
.bg-sand       { background: var(--sand); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero { padding: 100px 20px 48px; }
  .section { padding: 56px 0; }
}
