/* ================================================================
   Om Sri Kerala Chotanikarai Bagavathi Manthriga Sidhar Peedam
   Shared stylesheet — colours drawn from the temple posters
   ================================================================ */

:root {
  --night:        #050b16;
  --night-2:      #0b1626;
  --night-3:      #122238;
  --deep-teal:    #0e2a33;
  --gold:         #e8b73f;
  --gold-bright:  #ffd86b;
  --gold-deep:    #b8862a;
  --maroon:       #7d1420;
  --maroon-light: #a81f2d;
  --silver:       #cdd6e0;
  --cream:        #f6ecd8;
  --text:         #e9e3d6;
  --text-dim:     #a9a294;

  --grad-gold: linear-gradient(135deg, #b8862a 0%, #ffd86b 45%, #e8b73f 60%, #8e6716 100%);
  --grad-night: linear-gradient(160deg, #050b16 0%, #0e2a33 55%, #050b16 100%);

  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .55);
  --shadow-gold: 0 0 26px rgba(232, 183, 63, .28);
  --radius: 16px;

  --font-en: 'Cinzel', 'Georgia', serif;
  --font-body: 'Mukta Malar', 'Noto Sans Tamil', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--night);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
}

/* subtle star field over the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,.55), transparent),
    radial-gradient(1.5px 1.5px at 68% 12%, rgba(255,216,107,.5), transparent),
    radial-gradient(1px 1px at 34% 62%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 82% 74%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 52% 88%, rgba(255,216,107,.4), transparent),
    radial-gradient(1px 1px at 92% 40%, rgba(255,255,255,.3), transparent);
  pointer-events: none;
  z-index: 0;
  opacity: .7;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.wrap { width: min(1180px, 92%); margin-inline: auto; position: relative; z-index: 1; }

/* ---------- language visibility ---------- */
body[data-lang="ta"] .en { display: none !important; }
body[data-lang="en"] .ta { display: none !important; }

/* ================= TOP BAR ================= */
.topbar {
  background: var(--grad-gold);
  color: #2a1c05;
  font-size: .86rem;
  font-weight: 600;
  padding: .45rem 0;
  position: relative;
  z-index: 60;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem;
  align-items: center; justify-content: center;
}
.topbar a { display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { text-decoration: underline; }

/* ================= HEADER ================= */
.site-header {
  position: sticky; top: 0; z-index: 55;
  background: rgba(5, 11, 22, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 183, 63, .28);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 0;
}
.brand { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.brand-mark {
  width: 52px; height: 52px; flex: none;
  border-radius: 50%;
  background: var(--grad-gold);
  display: grid; place-items: center;
  font-size: 1.6rem; color: #2a1c05;
  box-shadow: var(--shadow-gold);
}
.brand-text strong {
  display: block;
  font-family: var(--font-en);
  font-size: 1.02rem;
  letter-spacing: .5px;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
}
.brand-text span { font-size: .74rem; color: var(--text-dim); letter-spacing: 1.4px; text-transform: uppercase; }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(232,183,63,.45);
  color: var(--gold); font-size: 1.4rem; border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer;
}

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  padding: .5rem .85rem; border-radius: 10px;
  font-size: .93rem; font-weight: 600; color: var(--text);
  transition: .25s;
}
.nav a:hover { color: var(--gold-bright); background: rgba(232,183,63,.1); }
.nav a.active { color: #2a1c05; background: var(--grad-gold); }

.lang-switch {
  display: flex; border: 1px solid rgba(232,183,63,.5);
  border-radius: 999px; overflow: hidden; margin-left: .5rem; flex: none;
}
.lang-switch button {
  background: none; border: 0; cursor: pointer;
  color: var(--text); font: inherit; font-size: .8rem; font-weight: 700;
  padding: .35rem .75rem; transition: .2s;
}
.lang-switch button.on { background: var(--grad-gold); color: #2a1c05; }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid; align-items: center;
  overflow: hidden;
  border-bottom: 2px solid rgba(232,183,63,.3);
}
/* Desktop: the swamy poster fills the hero. Phone: it is shown in full. */
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transform: scale(1.06);
  animation: slowzoom 22s ease-in-out infinite alternate;
}
@keyframes slowzoom { to { transform: scale(1.16); } }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(5,11,22,.94) 0%, rgba(5,11,22,.78) 42%, rgba(5,11,22,.35) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding: 4.5rem 0; }
.hero-content { max-width: 660px; }

.eyebrow {
  display: inline-block;
  border: 1px solid rgba(232,183,63,.55);
  background: rgba(232,183,63,.1);
  color: var(--gold-bright);
  padding: .35rem 1rem; border-radius: 999px;
  font-size: .78rem; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  line-height: 1.25;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(232,183,63,.2);
}
.hero p.lead { font-size: 1.08rem; color: var(--silver); margin-bottom: 1.9rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: .97rem; cursor: pointer; border: 0;
  font-family: inherit; transition: .25s;
}
.btn-gold { background: var(--grad-gold); color: #2a1c05; box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(232,183,63,.4); }
.btn-wa { background: #1faa53; color: #fff; }
.btn-wa:hover { transform: translateY(-3px); background: #178f45; }
.btn-ghost { background: transparent; border: 1.5px solid rgba(232,183,63,.6); color: var(--gold-bright); }
.btn-ghost:hover { background: rgba(232,183,63,.12); transform: translateY(-3px); }

/* ================= SECTIONS ================= */
.section { padding: 4.5rem 0; position: relative; z-index: 1; }
.section.alt { background: var(--grad-night); border-block: 1px solid rgba(232,183,63,.16); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: .7rem; line-height: 1.35;
}
.section-head p { color: var(--text-dim); }
.divider {
  width: 130px; height: 2px; margin: 1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}
.divider::after {
  content: '✦'; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: var(--night); color: var(--gold);
  padding: 0 .5rem; font-size: .8rem;
}
.section.alt .divider::after { background: #0a1a22; }

/* ---------- cards grid ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
  background: linear-gradient(160deg, rgba(18,34,56,.9), rgba(10,22,38,.9));
  border: 1px solid rgba(232,183,63,.25);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  transition: .3s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-gold); opacity: 0; transition: .3s;
}
.card:hover { transform: translateY(-7px); border-color: rgba(232,183,63,.6); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(232,183,63,.14);
  border: 1px solid rgba(232,183,63,.35);
  display: grid; place-items: center; font-size: 1.6rem;
  margin-bottom: 1.1rem;
}
.card h3 { color: var(--gold-bright); font-size: 1.13rem; margin-bottom: .55rem; line-height: 1.45; }
.card p { color: var(--text-dim); font-size: .95rem; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.stat {
  text-align: center; padding: 1.6rem 1rem;
  border: 1px solid rgba(232,183,63,.28); border-radius: var(--radius);
  background: rgba(232,183,63,.05);
}
.stat b {
  display: block; font-size: 2.1rem; line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: .35rem;
}
.stat span { font-size: .88rem; color: var(--text-dim); }

/* ---------- media block ---------- */
.media-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.4rem; align-items: center; }
.media-frame {
  border-radius: var(--radius); overflow: hidden;
  border: 2px solid rgba(232,183,63,.45);
  box-shadow: var(--shadow-lg);
}
.media-frame img { width: 100%; }
.prose h3 { color: var(--gold-bright); font-size: 1.35rem; margin-bottom: .8rem; }
.prose p { color: var(--silver); margin-bottom: 1rem; }
.tick-list li {
  padding-left: 1.9rem; position: relative; margin-bottom: .65rem; color: var(--silver);
}
.tick-list li::before {
  content: '✦'; position: absolute; left: 0; top: 0; color: var(--gold);
}

/* ---------- testimonials ---------- */
.quote {
  background: linear-gradient(160deg, rgba(125,20,32,.24), rgba(10,22,38,.9));
  border: 1px solid rgba(232,183,63,.28);
  border-radius: var(--radius); padding: 1.8rem 1.6rem;
}
.quote .mark { font-size: 2.4rem; color: var(--gold); line-height: 1; }
.quote p { color: var(--silver); font-style: italic; margin: .5rem 0 1.1rem; }
.quote .who { display: flex; align-items: center; gap: .8rem; }
.quote .who div:first-child {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad-gold); color: #2a1c05;
  display: grid; place-items: center; font-weight: 800;
}
.quote .who b { display: block; color: var(--gold-bright); font-size: .95rem; }
.quote .who small { color: var(--text-dim); }
.stars { color: var(--gold); letter-spacing: 2px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--grad-gold); color: #2a1c05;
  padding: 3rem 0; text-align: center; position: relative; z-index: 1;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin-bottom: .6rem; line-height: 1.4; }
.cta-band p { margin-bottom: 1.6rem; font-weight: 600; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-dark { background: #0b1626; color: var(--gold-bright); }
.cta-band .btn-dark:hover { transform: translateY(-3px); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.contact-card {
  border: 1px solid rgba(232,183,63,.3); border-radius: var(--radius);
  padding: 1.6rem; background: rgba(18,34,56,.6);
  display: flex; gap: 1rem; align-items: flex-start;
}
.contact-card .icon { font-size: 1.7rem; flex: none; }
.contact-card b { color: var(--gold-bright); display: block; margin-bottom: .25rem; }
.contact-card a, .contact-card span { color: var(--silver); word-break: break-word; }
.contact-card a:hover { color: var(--gold-bright); }

form.enquiry { display: grid; gap: 1rem; }
form.enquiry label { font-size: .9rem; color: var(--gold-bright); font-weight: 600; }
form.enquiry input, form.enquiry select, form.enquiry textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 10px;
  background: rgba(5,11,22,.75); color: var(--text);
  border: 1px solid rgba(232,183,63,.3); font: inherit; font-size: .95rem;
}
form.enquiry input:focus, form.enquiry select:focus, form.enquiry textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,183,63,.15);
}
form.enquiry textarea { min-height: 120px; resize: vertical; }
form.enquiry option { background: #0b1626; }

/* ---------- accordion ---------- */
.acc { border: 1px solid rgba(232,183,63,.28); border-radius: 12px; margin-bottom: .8rem; overflow: hidden; }
.acc summary {
  padding: 1rem 1.2rem; cursor: pointer; font-weight: 600;
  color: var(--gold-bright); list-style: none; display: flex;
  justify-content: space-between; gap: 1rem; align-items: center;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-size: 1.4rem; color: var(--gold); }
.acc[open] summary::after { content: '−'; }
.acc .acc-body { padding: 0 1.2rem 1.1rem; color: var(--text-dim); font-size: .95rem; }

/* ---------- page banner (inner pages) ---------- */
.page-banner {
  position: relative; padding: 3.6rem 0; text-align: center;
  border-bottom: 2px solid rgba(232,183,63,.3); overflow: hidden;
}
.page-banner .bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: brightness(.35) saturate(1.1);
}
.page-banner .wrap { position: relative; z-index: 2; }
.page-banner h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.35;
}
.page-banner p { color: var(--silver); margin-top: .5rem; }

/* ================= FOOTER ================= */
.site-footer {
  background: #030710; border-top: 2px solid rgba(232,183,63,.3);
  padding: 3rem 0 1.4rem; position: relative; z-index: 1;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.site-footer h4 { color: var(--gold-bright); margin-bottom: .9rem; font-size: 1.02rem; }
.site-footer p, .site-footer li { color: var(--text-dim); font-size: .92rem; margin-bottom: .5rem; }
.site-footer a:hover { color: var(--gold-bright); }
.footer-bottom {
  margin-top: 2.2rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(232,183,63,.18);
  text-align: center; color: var(--text-dim); font-size: .85rem;
}
.disclaimer {
  margin-top: 1rem; font-size: .78rem; color: #6f6a5f;
  text-align: center; max-width: 820px; margin-inline: auto; line-height: 1.6;
}

/* ================= FLOATING BUTTONS ================= */
.floaters {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: flex; flex-direction: column; gap: 12px;
}
.float-btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; border: 0;
  box-shadow: 0 8px 22px rgba(0,0,0,.5); transition: .25s;
  position: relative;
}
.float-btn:hover { transform: scale(1.1); }
.float-btn svg { width: 28px; height: 28px; }
.float-wa { background: #25d366; }
.float-call { background: var(--grad-gold); }
.float-chat { background: var(--maroon-light); }
.float-btn::after {
  content: attr(data-tip);
  position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
  background: #0b1626; color: var(--gold-bright);
  border: 1px solid rgba(232,183,63,.4);
  padding: .35rem .7rem; border-radius: 8px; font-size: .8rem;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: .2s;
}
.float-btn:hover::after { opacity: 1; }
.pulse::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.6);
  animation: pulse 2.2s infinite;
}
.float-call.pulse::before { box-shadow: 0 0 0 0 rgba(232,183,63,.6); animation: pulseGold 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@keyframes pulseGold { 70% { box-shadow: 0 0 0 16px rgba(232,183,63,0); } 100% { box-shadow: 0 0 0 0 rgba(232,183,63,0); } }

/* ================= CHATBOT ================= */
.chatbox {
  position: fixed; right: 18px; bottom: 92px; z-index: 95;
  width: min(370px, calc(100vw - 36px));
  height: min(540px, calc(100vh - 130px));
  background: linear-gradient(170deg, #0b1626, #050b16);
  border: 1px solid rgba(232,183,63,.45);
  border-radius: 18px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(24px) scale(.94); opacity: 0; pointer-events: none;
  transition: .28s ease;
}
.chatbox.open { transform: none; opacity: 1; pointer-events: auto; }
.chat-head {
  background: var(--grad-gold); color: #2a1c05;
  padding: .8rem 1rem; display: flex; align-items: center; gap: .7rem;
}
.chat-head .av {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: #0b1626; color: var(--gold-bright);
  display: grid; place-items: center; font-size: 1.2rem;
}
.chat-head b { display: block; font-size: .95rem; line-height: 1.3; }
.chat-head small { font-size: .75rem; display: flex; align-items: center; gap: .3rem; }
.chat-head small i {
  width: 7px; height: 7px; border-radius: 50%; background: #147a37; display: inline-block;
}
.chat-close {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  font-size: 1.5rem; color: #2a1c05; line-height: 1;
}
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(232,183,63,.4); border-radius: 4px; }
.msg { max-width: 84%; padding: .65rem .9rem; border-radius: 14px; font-size: .92rem; line-height: 1.6; white-space: pre-line; }
.msg.bot { background: rgba(232,183,63,.12); border: 1px solid rgba(232,183,63,.3); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: var(--grad-gold); color: #2a1c05; align-self: flex-end; font-weight: 600; border-bottom-right-radius: 4px; }
.typing { display: flex; gap: 4px; align-self: flex-start; padding: .7rem .9rem; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .25; } 30% { opacity: 1; } }
.chat-opts { display: flex; flex-wrap: wrap; gap: .45rem; padding: .6rem 1rem .9rem; border-top: 1px solid rgba(232,183,63,.2); }
.chat-opts button {
  background: rgba(232,183,63,.1); border: 1px solid rgba(232,183,63,.45);
  color: var(--gold-bright); font: inherit; font-size: .82rem;
  padding: .42rem .8rem; border-radius: 999px; cursor: pointer; transition: .2s;
}
.chat-opts button:hover { background: var(--grad-gold); color: #2a1c05; }
.chat-foot { padding: .6rem 1rem .9rem; border-top: 1px solid rgba(232,183,63,.2); display: flex; gap: .5rem; }
.chat-foot a {
  flex: 1; text-align: center; padding: .55rem; border-radius: 10px;
  font-size: .85rem; font-weight: 700;
}
.chat-foot .wa { background: #25d366; color: #fff; }
.chat-foot .ph { background: var(--grad-gold); color: #2a1c05; }

/* ================= REVEAL ANIMATION ================= */
.reveal { opacity: 0; transform: translateY(26px); transition: .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; order: 3; }
  .lang-switch { order: 2; margin-left: auto; }
  .nav {
    order: 4; width: 100%; flex-direction: column; align-items: stretch;
    gap: .2rem; max-height: 0; overflow: hidden; transition: .3s;
  }
  .nav.open { max-height: 520px; padding: .6rem 0 .3rem; }
  .header-inner { flex-wrap: wrap; }
  /* ---- phone hero: show the swamy poster in full, nothing cropped ---- */
  .hero { min-height: auto; display: block; }
  .hero::after { display: none; }
  .hero-photo {
    position: static; width: 100%; height: auto;
    object-fit: fill; transform: none; animation: none;
    border-bottom: 2px solid rgba(232, 183, 63, .45);
  }
  .hero .wrap { padding: 2.2rem 0 3rem; }
  .hero-content { max-width: none; text-align: center; }
  .hero .btn-row { justify-content: center; }
}
@media (max-width: 480px) {
  .float-btn { width: 50px; height: 50px; }
  .float-btn svg { width: 25px; height: 25px; }
  .chatbox { bottom: 84px; }
  .btn { padding: .75rem 1.25rem; font-size: .9rem; }
}
