/* ==========================================================================
   Sankat Mochan — site enhancements (language toggle, DARPAN badge,
   hero slideshow, animations, WhatsApp widget). Plain CSS, loaded after
   the Vite bundle so no rebuild is needed.
   ========================================================================== */

/* ---------- Hindi typography ---------- */
.smc-lang-hi body,
body.smc-lang-hi { font-family: 'Noto Sans Devanagari', 'Lato', sans-serif; }
body.smc-lang-hi .hero-title,
body.smc-lang-hi .section-title,
body.smc-lang-hi .about-text h2,
body.smc-lang-hi .action-card h4,
body.smc-lang-hi .ritual-card h5 { font-family: 'Tiro Devanagari Hindi', 'Cinzel', serif; letter-spacing: 0; }
body.smc-lang-hi .hero-subtitle,
body.smc-lang-hi .hero-stat .lbl,
body.smc-lang-hi .section-eyebrow,
body.smc-lang-hi .smcs-brand-tagline,
body.smc-lang-hi .smcs-tech-btn,
body.smc-lang-hi .smcs-login-btn,
body.smc-lang-hi .footer-heading { font-family: 'Noto Sans Devanagari', sans-serif; letter-spacing: .5px; text-transform: none; }
body.smc-lang-hi .hero-title { line-height: 1.3; }
body.smc-lang-hi .hero-stat .lbl { font-size: .8rem; }

/* ---------- Navbar: language toggle + DARPAN ---------- */
.smc-lang {
  display: inline-flex; align-items: center; padding: 3px;
  border: 1px solid rgba(201,168,76,.35); border-radius: 999px;
  background: rgba(255,255,255,.04); flex-shrink: 0;
}
.smc-lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 26px; padding: 0 9px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; line-height: 1; text-decoration: none;
  color: rgba(255,255,255,.7); transition: background .25s, color .25s;
}
.smc-lang a[lang="hi"] { font-family: 'Noto Sans Devanagari', sans-serif; font-size: .82rem; }
.smc-lang a[lang="en"] { font-family: 'Cinzel', serif; letter-spacing: .5px; }
.smc-lang a:hover { color: #fff; }
.smc-lang a.active { background: linear-gradient(135deg, var(--saffron), #c0520a); color: #fff; box-shadow: 0 2px 10px rgba(232,101,10,.4); }

.smc-nav-darpan {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 5px 12px; border-radius: 6px;
  border: 1px dashed rgba(201,168,76,.4); background: rgba(201,168,76,.06);
  color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .3px; line-height: 1.15;
}
.smc-nav-darpan > i, .smc-nav-darpan > svg { color: var(--gold); font-size: .9rem; }
.smc-nav-darpan small { display: block; font-size: .56rem; font-weight: 400; color: var(--gold); letter-spacing: 1.2px; text-transform: uppercase; }

/* Mobile-only controls (lang toggle + hamburger) */
.smc-mob-controls { display: none; align-items: center; gap: 10px; }
@media (max-width: 1100px) {
  .smc-mob-controls { display: flex; }
  .smc-nav-darpan { display: none !important; }
}
.smc-mob-darpan {
  text-align: center; font-size: .78rem; color: rgba(255,255,255,.75);
  padding: 8px; border: 1px dashed rgba(201,168,76,.35); border-radius: 6px;
}
.smc-mob-darpan strong { color: #fff; }
.smc-mob-darpan i, .smc-mob-darpan svg { color: var(--gold); }

/* Tight desktop widths: compact the right-hand cluster so everything fits */
@media (min-width: 1101px) and (max-width: 1360px) {
  #smcs-navbar .nav-inner { padding: 0 16px; }
  .smcs-brand { margin-right: 14px; }
  .smcs-nav-right { gap: 7px; }
  .smcs-tech-btn { padding: 8px 10px; font-size: 0; gap: 0; }
  .smcs-tech-btn > i:first-child, .smcs-tech-btn > svg:first-child { font-size: .8rem; }
  .smcs-tech-btn .nav-chevron { display: none; }
  .smcs-login-btn { padding: 8px 12px; }
  .smc-nav-darpan { padding: 4px 9px; font-size: .68rem; }
}

.smc-footer-darpan { font-size: .85rem; color: rgba(255,255,255,.6); margin: -8px 0 18px; }
.smc-footer-darpan strong { color: #fff; }
.smc-footer-darpan i, .smc-footer-darpan svg { color: var(--gold); margin-right: 4px; }

/* ---------- Hero slideshow ---------- */
.smc-hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.smc-hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center 30%;
  opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease;
  will-change: opacity, transform;
}
.smc-hero-slide.is-active { opacity: 1; animation: smcKenBurns 9s ease-out forwards; }
.smc-hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26,10,46,.78) 0%, rgba(26,10,46,.62) 40%, rgba(61,12,17,.84) 100%),
    radial-gradient(ellipse at center, rgba(0,0,0,0) 30%, rgba(10,3,20,.55) 100%);
}
#hero.smc-hero .hero-mandala { opacity: .35; }
#hero.smc-hero .hero-title, #hero.smc-hero .hero-desc { text-shadow: 0 2px 18px rgba(0,0,0,.55); }

.smc-hero-dots { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.smc-hero-dots button {
  width: 9px; height: 9px; padding: 0; border: none; border-radius: 999px;
  background: rgba(255,255,255,.35); cursor: pointer; transition: width .35s, background .35s;
}
.smc-hero-dots button.is-active { width: 28px; background: var(--saffron); }

/* floating embers */
.smc-hero-sparks { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.smc-hero-sparks span {
  position: absolute; bottom: -12px; left: calc((var(--i) * 7.1%) + 2%);
  width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, #ffd27a 0%, rgba(232,101,10,.8) 45%, transparent 70%);
  opacity: 0; animation: smcEmber calc(7s + (var(--i) * .45s)) linear infinite;
  animation-delay: calc(var(--i) * -.9s);
}

/* ---------- Entrance + scroll animations ---------- */
.smc-fade-up { opacity: 0; transform: translateY(26px); animation: smcFadeUp .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
.smc-anim { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.smc-anim.smc-in { opacity: 1; transform: none; }
.smc-anim-left { transform: translateX(-40px); }
.smc-anim-right { transform: translateX(40px); }
.smc-anim-zoom { transform: scale(.92); }

.smc-spin-slow { animation: smcSpin 120s linear infinite; }
.smc-float { animation: smcFloat 4s ease-in-out infinite; }
.smc-glow-ring { box-shadow: 0 0 0 0 rgba(201,168,76,.55); animation: smcRing 2.8s ease-out infinite; }

/* shine sweep on primary buttons */
.smc-shine { position: relative; overflow: hidden; }
.smc-shine::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); animation: smcShine 3.8s ease-in-out infinite;
}

/* lift on cards */
.ritual-card, .action-card, .katha-card, .testimonial-card, .gallery-card { transition: transform .35s ease, box-shadow .35s ease; }
.ritual-card:hover, .katha-card:hover, .testimonial-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(139,26,26,.16); }
.action-card:hover { transform: translateY(-8px) scale(1.01); }
.ritual-card:hover .ritual-icon { animation: smcWiggle .6s ease; }
.gallery-card img { transition: transform .6s ease; }
.gallery-card:hover img { transform: scale(1.07); }
.smc-tilt { transition: transform .5s ease; }
.smc-tilt:hover { transform: perspective(900px) rotateY(-4deg) rotateX(2deg); }

/* Mandala divider breathing */
.mandala-divider { animation: smcBreath 4s ease-in-out infinite; }

/* Navbar link underline */
.smcs-nav > li > a, .smcs-nav > li > span { position: relative; }
.smcs-nav > li > a::after, .smcs-nav > li > span::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 6px; height: 2px;
  background: var(--saffron); transition: left .3s, right .3s; border-radius: 2px;
}
.smcs-nav > li > a:hover::after, .smcs-nav > li:hover > span::after { left: 14px; right: 14px; }

@keyframes smcKenBurns { from { transform: scale(1.12) translate(0,0); } to { transform: scale(1) translate(0,-1%); } }
@keyframes smcFadeUp { to { opacity: 1; transform: none; } }
@keyframes smcSpin { to { transform: rotate(360deg); } }
@keyframes smcFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes smcRing { 0% { box-shadow: 0 0 0 0 rgba(201,168,76,.55); } 80%,100% { box-shadow: 0 0 0 18px rgba(201,168,76,0); } }
@keyframes smcShine { 0%,60% { left: -75%; } 100% { left: 130%; } }
@keyframes smcWiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-10deg) scale(1.08); } 75% { transform: rotate(10deg) scale(1.08); } }
@keyframes smcBreath { 0%,100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes smcEmber {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  10% { opacity: .9; }
  80% { opacity: .5; }
  100% { transform: translateY(-95vh) translateX(30px) scale(1.1); opacity: 0; }
}

/* ---------- WhatsApp floating widget ---------- */
.smc-wa { position: fixed; right: 20px; bottom: 20px; z-index: 9998; font-family: 'Lato', 'Noto Sans Devanagari', sans-serif; }
.smc-wa-btn {
  position: relative; width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: #25D366; color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .25s;
}
.smc-wa-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1;
  animation: smcWaPulse 2.2s ease-out infinite;
}
.smc-wa-btn:hover { transform: scale(1.08); }
.smc-wa-btn svg, .smc-wa-btn i { width: 30px; height: 30px; }
.smc-wa-tip {
  position: absolute; right: 72px; top: 50%; transform: translateY(-50%);
  background: #fff; color: #1a0a2e; font-size: .82rem; font-weight: 700; white-space: nowrap;
  padding: 7px 12px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.18);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.smc-wa-btn:hover .smc-wa-tip, .smc-wa.smc-wa-hint .smc-wa-tip { opacity: 1; }
.smc-wa-card {
  position: absolute; right: 0; bottom: 76px; width: 310px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,.25);
  transform-origin: bottom right; animation: smcWaOpen .28s ease;
}
.smc-wa-card[hidden] { display: none; }
.smc-wa-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px; background: #075E54; color: #fff; }
.smc-wa-head strong { display: block; font-size: .92rem; }
.smc-wa-head small { display: block; font-size: .72rem; opacity: .8; }
.smc-wa-avatar { width: 38px; height: 38px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.smc-wa-close { margin-left: auto; background: none; border: none; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; opacity: .8; }
.smc-wa-body { padding: 18px 14px; background: #ECE5DD; }
.smc-wa-bubble { background: #fff; border-radius: 0 10px 10px 10px; padding: 10px 12px; font-size: .86rem; color: #303030; line-height: 1.5; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.smc-wa-start {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px; padding: 11px;
  border-radius: 999px; background: #25D366; color: #fff !important; font-weight: 700; text-decoration: none; font-size: .9rem;
}
.smc-wa-start:hover { background: #1ebe5b; }
@keyframes smcWaPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes smcWaOpen { from { opacity: 0; transform: scale(.85) translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 576px) {
  .smc-wa { right: 14px; bottom: 14px; }
  .smc-wa-btn { width: 54px; height: 54px; font-size: 26px; }
  .smc-wa-tip { display: none; }
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .smc-fade-up, .smc-anim { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .smc-hero-slide.is-active, .smc-spin-slow, .smc-float, .smc-glow-ring, .smc-shine::after,
  .mandala-divider, .smc-hero-sparks span, .smc-wa-btn::before { animation: none !important; }
  .smc-hero-sparks { display: none; }
}

/* ---------- Technical partner (Melonkode) ---------- */
.smc-tp { padding: 70px 0; background: var(--ivory, #FDF6E3); }
.smc-tp-card {
  position: relative; overflow: hidden; border-radius: 20px; padding: 48px 44px;
  background: linear-gradient(135deg, #1A0A2E 0%, #2a0f3d 55%, #3d0c11 100%);
  border: 1px solid rgba(201,168,76,.25); box-shadow: 0 24px 60px rgba(26,10,46,.25);
}
.smc-tp-glow {
  position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31,140,255,.28) 0%, rgba(31,140,255,0) 65%);
  animation: smcFloat 7s ease-in-out infinite; pointer-events: none;
}
.smc-tp-logo {
  display: inline-flex; align-items: center; justify-content: center; width: 150px; height: 150px;
  border-radius: 28px; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.06), 0 14px 40px rgba(31,140,255,.35);
  transition: transform .4s ease; text-decoration: none;
}
.smc-tp-logo:hover { transform: rotate(-4deg) scale(1.05); }
.smc-tp-logo img { width: 120px; height: 120px; object-fit: contain; border-radius: 18px; }
.smc-tp-mono { font-family: 'Cinzel', serif; font-weight: 700; font-size: 3rem; color: #1f8cff; }
.smc-tp-name { margin-top: 18px; font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.5rem; color: #fff; letter-spacing: 1px; }
.smc-tp-role { font-size: .78rem; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; }
.smc-tp-eyebrow { text-align: left; color: var(--gold) !important; margin-bottom: 10px; }
.smc-tp-title { font-family: 'Cinzel', serif; color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; line-height: 1.25; margin-bottom: 14px; }
.smc-tp-title span { background: linear-gradient(90deg, #1f8cff, #3fd0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.smc-tp-desc { color: rgba(255,255,255,.72); font-size: 1rem; line-height: 1.75; max-width: 640px; margin-bottom: 22px; }
.smc-tp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.smc-tp-chips span {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(201,168,76,.22); color: rgba(255,255,255,.85); font-size: .82rem;
}
.smc-tp-chips i, .smc-tp-chips svg { color: var(--gold); }
.smc-tp-btns { display: flex; flex-wrap: wrap; gap: 14px; }
body.smc-lang-hi .smc-tp-title { font-family: 'Tiro Devanagari Hindi', 'Cinzel', serif; }
@media (max-width: 991px) {
  .smc-tp { padding: 50px 0; }
  .smc-tp-card { padding: 36px 22px; text-align: center; }
  .smc-tp-eyebrow { text-align: center; }
  .smc-tp-desc { margin-left: auto; margin-right: auto; }
  .smc-tp-chips, .smc-tp-btns { justify-content: center; }
}
@media (max-width: 576px) {
  .smc-tp-btns a { width: 100%; text-align: center; }
  .smc-tp-logo { width: 120px; height: 120px; }
  .smc-tp-logo img { width: 96px; height: 96px; }
}

/* ---------- Inner page heroes (photo slideshow like the homepage) ---------- */
.page-hero.smc-ph { min-height: 64vh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 110px; }
.page-hero.smc-ph .smc-hero-shade {
  background:
    linear-gradient(180deg, rgba(26,10,46,.82) 0%, rgba(26,10,46,.62) 45%, rgba(61,12,17,.88) 100%),
    radial-gradient(ellipse at center, rgba(0,0,0,0) 25%, rgba(10,3,20,.6) 100%);
}
.page-hero.smc-ph .page-hero-glow, .page-hero.smc-ph .page-hero-mandala { z-index: 1; }
.page-hero.smc-ph .page-hero-mandala { opacity: .35; animation: smcSpin 140s linear infinite; }
.page-hero.smc-ph .page-hero-content { padding-bottom: 56px; margin-top: auto; z-index: 3; }
.page-hero.smc-ph .breadcrumb-bar { position: relative; z-index: 3; }
.page-hero.smc-ph .page-hero-title, .page-hero.smc-ph .page-hero-desc, .page-hero.smc-ph p { text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.page-hero.smc-ph .smc-hero-dots { margin-top: 26px; }
.page-hero.smc-ph .smc-ph-om {
  font-size: 2.6rem; color: var(--gold); text-shadow: 0 0 30px rgba(201,168,76,.6);
  margin-bottom: 8px; line-height: 1; animation: omPulse 3s ease-in-out infinite;
}
@keyframes smcFadeUpFrom { from { opacity: 0; transform: translateY(26px); } }
.page-hero .page-hero-content > * { animation: smcFadeUpFrom .9s cubic-bezier(.2,.7,.2,1) both; }
.page-hero .page-hero-content > *:nth-child(1) { animation-delay: .05s; }
.page-hero .page-hero-content > *:nth-child(2) { animation-delay: .18s; }
.page-hero .page-hero-content > *:nth-child(3) { animation-delay: .31s; }
.page-hero .page-hero-content > *:nth-child(4) { animation-delay: .44s; }
.page-hero .page-hero-content > *:nth-child(5) { animation-delay: .57s; }
.page-hero .page-hero-content > *:nth-child(n+6) { animation-delay: .7s; }
.page-hero.smc-ph .page-hero-content > .smc-ph-om { animation: smcFadeUpFrom .9s both, omPulse 3s ease-in-out 1s infinite; }
@media (max-width: 768px) {
  .page-hero.smc-ph { min-height: 56vh; padding-top: 90px; }
  .page-hero.smc-ph .page-hero-content { padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero .page-hero-content > *, .page-hero.smc-ph .page-hero-mandala, .page-hero.smc-ph .smc-ph-om { animation: none !important; }
}
