/* ============================================================
   TEMPLE OPERATIONS — powered by Sevantra
   Design tokens: Ember dusk courtyard + saffron lamp-light
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Fraunces:ital,opsz,wght@1,9..144,400..600&family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* Color tokens */
  --ember:        #241005;
  --ember-2:      #341708;
  --ember-3:      #40200e;
  --ivory:        #FFFBF3;
  --ivory-2:      #FFF3E0;
  --saffron:      #F66612;
  --saffron-dim:  #C94A0C;
  --gold:         #FFD700;
  --gold-deep:    #C9960C;
  --maroon:       #7A1F0A;
  --ash:          #6B4226;
  --cream-text:   #FFEFD9;

  /* Type */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-accent:  'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Layout */
  --max-w: 1180px;
  --radius: 20px;
  --radius-sm: 12px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ember);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display:block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}
p{ margin: 0 0 1rem 0; }
:focus-visible{
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.wrap{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.eyebrow{
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.eyebrow::before{
  content: '';
  width: 22px; height: 1.5px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
section.on-dark .eyebrow{ color: var(--gold); }

/* ---------- NAV ---------- */
.site-nav{
  position: sticky; top: 0; z-index: 50;
  background: rgba(36,16,5,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,215,0,0.18);
}
.site-nav .wrap{
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand{ display:flex; align-items:center; gap: 12px; }
.brand img{ width: 38px; height: 38px; }
.brand-text{ display:flex; flex-direction: column; line-height:1.1; }
.brand-text .name{ font-family: var(--font-display); font-weight:700; font-size:18px; color: var(--ivory); letter-spacing: 0.01em;}
.brand-text .tag{ font-family: var(--font-body); font-size: 10px; letter-spacing:0.08em; color: var(--gold); text-transform: uppercase; }
.beta-badge{
  font-family: var(--font-body); font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--ember); background: var(--gold);
  padding: 3px 9px; border-radius: 999px; margin-left: 10px;
  text-transform: uppercase; font-weight: 700; vertical-align: middle;
}
.nav-links{ display:flex; align-items:center; gap: 34px; }
.nav-links a{
  color: var(--cream-text);
  font-size: 14.5px; font-weight: 500;
  position: relative; padding: 4px 0;
  transition: color .2s ease;
}
.nav-links a:hover{ color: var(--gold); }
.nav-links a.current{ color: var(--saffron); }
.nav-links a.current::after{
  content:''; position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background: var(--saffron);
}
.nav-links .mobile-only-cta{ display:none; }
.btn{
  display: inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  padding: 12px 22px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--saffron); color: var(--ivory); box-shadow: 0 6px 18px rgba(246,102,18,0.35);}
.btn-primary:hover{ background: #ff7a24; box-shadow: 0 10px 24px rgba(246,102,18,0.45); }
.btn-outline{ border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover{ background: rgba(255,215,0,0.1); }
.btn-outline-dark{ border-color: var(--saffron); color: var(--saffron); background: transparent;}
.btn-outline-dark:hover{ background: rgba(246,102,18,0.08); }
.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-toggle{ display:none; background:none; border:none; color:var(--ivory); font-size:26px; cursor:pointer; }

@media (max-width: 480px){
  .brand-text .name{ font-size: 15px; }
  .beta-badge{ font-size: 9px; padding: 2px 7px; margin-left: 6px; }
  .brand img{ width: 32px; height: 32px; }
}

@media (max-width: 880px){
  .nav-links{
    position:absolute; top:74px; left:0; right:0;
    background: var(--ember); flex-direction:column; align-items:flex-start;
    padding: 18px 28px 26px; gap: 18px;
    border-bottom: 1px solid rgba(255,215,0,0.18);
    display: none;
  }
  .nav-links.open{ display:flex; }
  .nav-links .mobile-only-cta{ display:inline-flex; }
  .nav-toggle{ display:block; }
  .nav-cta .btn-outline{ display:none; }
}

/* ---------- SECTIONS ---------- */
section{ padding: 96px 0; position: relative; }
section.on-dark{ background: var(--ember); color: var(--ivory); }
section.on-dark p{ color: var(--cream-text); }
section.tight{ padding: 64px 0; }
.section-head{ max-width: 640px; margin-bottom: 52px; }
.section-head h2{
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px;
}
.section-head p{ font-size: 17.5px; color: var(--ash); line-height:1.6; }
section.on-dark .section-head p{ color: var(--cream-text); }

/* ---------- HERO ---------- */
.hero{
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(246,102,18,0.28), transparent 70%), var(--ember);
  padding: 130px 0 100px;
  overflow: hidden;
  position: relative;
}
.hero::after{
  content:'';
  position:absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,215,0,0.10), transparent 45%);
  pointer-events:none;
}
.hero-inner{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items:center; }
.hero h1{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.08;
  color: var(--ivory);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero h1 em{ font-family: var(--font-accent); font-style: italic; font-weight: 500; color: var(--gold); }
.hero p.lead{ font-size: 19px; color: var(--cream-text); max-width: 520px; margin-bottom: 34px; line-height:1.65; }
.hero-ctas{ display:flex; gap:16px; flex-wrap: wrap; }
.hero-visual{
  position:relative; display:flex; align-items:center; justify-content:center;
  height: 380px;
}
.hero-flame{
  width: 200px; height:200px;
  filter: drop-shadow(0 0 44px rgba(246,102,18,0.5));
  animation: flicker 4.2s ease-in-out infinite;
}
@keyframes flicker{
  0%,100%{ transform: scale(1) rotate(0deg); }
  25%{ transform: scale(1.015) rotate(-0.6deg); }
  50%{ transform: scale(0.985) rotate(0.4deg); }
  75%{ transform: scale(1.01) rotate(0.5deg); }
}
.hero-ring{
  position:absolute; width: 330px; height:330px; border-radius:50%;
  border: 1px solid rgba(255,215,0,0.22);
}
.hero-ring::before{
  content:''; position:absolute; inset:-1px; border-radius:50%;
  border: 1px dashed rgba(255,215,0,0.16);
  animation: spin 90s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }
.trust-row{
  display:flex; gap: 30px; margin-top: 46px; flex-wrap: wrap;
}
.trust-item{
  display:flex; align-items:center; gap: 10px;
  font-size: 14px; color: var(--cream-text);
}
.trust-item .dot{
  width: 7px; height:7px; border-radius:50%; background: var(--gold); flex-shrink:0;
}

/* ---------- ORNAMENTAL DIVIDER (signature element) ---------- */
.aarti-divider{
  display:flex; justify-content:center; align-items:center; gap: 18px;
  padding: 20px 0;
}
.aarti-divider .rule{
  width: 90px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122,31,10,0.35));
}
.aarti-divider .rule.right{ background: linear-gradient(90deg, rgba(122,31,10,0.35), transparent); }
.aarti-divider .flame{
  width: 20px; height: 26px;
  animation: lamp-flicker 3.6s ease-in-out infinite;
}
@keyframes lamp-flicker{
  0%,100%{ transform: scaleY(1) scaleX(1); }
  30%{ transform: scaleY(1.06) scaleX(0.97); }
  60%{ transform: scaleY(0.95) scaleX(1.02); }
}
.on-dark .aarti-divider .rule{ background: linear-gradient(90deg, transparent, rgba(255,215,0,0.3)); }
.on-dark .aarti-divider .rule.right{ background: linear-gradient(90deg, rgba(255,215,0,0.3), transparent); }

/* ---------- CARDS (temple plaque) ---------- */
.grid{ display:grid; gap: 26px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px){
  .grid-3, .grid-2{ grid-template-columns: 1fr; }
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ height: 260px; order:-1; }
}

.plaque{
  position: relative;
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: 0 2px 10px rgba(122,31,10,0.06);
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.plaque::before{
  content:''; position:absolute; top:0; left:0; right:0; height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  opacity: 0; transition: opacity .25s ease;
}
.plaque:hover{
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(122,31,10,0.14);
}
.plaque:hover::before{ opacity: 1; }
.plaque .icon{
  width: 50px; height:50px; border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(246,102,18,0.3);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 20px;
  color: var(--saffron-dim); font-size: 20px;
}
.plaque h3{ font-family: var(--font-display); font-weight:700; font-size: 19px; margin-bottom: 11px; color: var(--ember); }
.plaque p{ font-size: 15px; color: var(--ash); margin-bottom: 0; line-height:1.65; }
.plaque.on-dark{ background: var(--ember-2); }
.plaque.on-dark .icon{ border-color: rgba(255,215,0,0.32); color: var(--gold); }
.plaque.on-dark h3{ color: var(--ivory); }
.plaque.on-dark p{ color: var(--cream-text); }

.device-col{ text-align:left; }
.device-col .tag{
  font-family: var(--font-body); font-size:11.5px; letter-spacing:.1em;
  color: var(--saffron); text-transform:uppercase; margin-bottom:10px; display:block;
}

/* ---------- CTA BANNER ---------- */
.cta-banner{
  background: linear-gradient(120deg, var(--maroon), var(--saffron));
  border-radius: 22px;
  padding: 56px 48px;
  display:flex; align-items:center; justify-content:space-between; gap: 32px;
  flex-wrap: wrap;
  color: var(--ivory);
}
.cta-banner h2{ font-size: clamp(24px,3vw,32px); margin-bottom:8px; color: var(--ivory); }
.cta-banner p{ color: var(--ivory-2); margin-bottom:0; }
.cta-banner .btn-primary{ background: var(--ember); box-shadow:none; }
.cta-banner .btn-primary:hover{ background:#150a02; }

/* ---------- FOOTER ---------- */
footer{ background: var(--ember); color: var(--cream-text); padding: 64px 0 32px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px;}
@media (max-width: 800px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
.footer-brand .brand{ margin-bottom: 14px; }
.footer-brand p{ font-size: 13.5px; color: rgba(255,239,217,0.65); max-width: 280px; }
.footer-col h4{
  font-family: var(--font-body); font-size: 12px; letter-spacing:.1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight:700;
}
.footer-col a, .footer-col span{ display:block; font-size: 14px; color: var(--cream-text); margin-bottom: 10px; opacity:0.85; }
.footer-col a:hover{ color: var(--gold); }
.footer-bottom{
  border-top: 1px solid rgba(255,215,0,0.15); padding-top: 26px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-size: 12.5px; color: rgba(255,239,217,0.55); font-family: var(--font-body);
}

/* ---------- PAGE HEADER (non-home pages) ---------- */
.page-header{
  background: var(--ember);
  padding: 150px 0 70px;
  position: relative;
  overflow:hidden;
}
.page-header::after{
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse 50% 60% at 85% 10%, rgba(246,102,18,0.25), transparent 60%);
  pointer-events:none;
}
.page-header h1{ font-size: clamp(32px, 5vw, 48px); color: var(--ivory); margin-bottom: 14px; max-width: 720px; }
.page-header p{ font-size: 17px; color: var(--cream-text); max-width: 560px; margin-bottom:0; }

/* ---------- REVEAL ANIMATION (progressive enhancement) ---------- */
/* Content is visible by default. Only hidden pre-reveal once JS confirms it's running. */
.reveal{ opacity: 1; transform: none; }
html.has-js .reveal{
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
html.has-js .reveal.in{ opacity: 1; transform: translateY(0); }

/* ---------- UTILS ---------- */
.center{ text-align:center; margin-left:auto; margin-right:auto; }
.mt-0{ margin-top:0; }
.small-note{ font-size: 13px; color: var(--ash); }
section.on-dark .small-note{ color: rgba(255,239,217,0.6); }
