/* =========================================================
   Kailasapuram: public website styles
   ========================================================= */

:root {
  --maroon: #7a1f1f;
  --maroon-d: #4f1212;
  --saffron: #e07b1a;
  --saffron-d: #c4660f;
  --gold: #c9a227;
  --gold-l: #f1dc9a;
  --cream: #f4e4c8;   /* sandalwood */
  --sand: #ead3ac;    /* deeper sandal for alternate sections */
  --paper: #fbf3e4;   /* light sandal for cards & white sections */
  --ink: #2b2220;
  --muted: #6e625a;
  --line: #dcc49c;
  --white: #ffffff;
  --success: #2f7d4a;
  --error: #b3261e;

  --font-head: "Marcellus", "Georgia", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-te: "Noto Sans Telugu", "Nirmala UI", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(79, 18, 18, 0.25);
  --shadow-sm: 0 4px 14px -6px rgba(79, 18, 18, 0.18);
  --container: 1180px;
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(255, 246, 228, .7), transparent 45%),
    radial-gradient(ellipse at 90% 40%, rgba(196, 140, 80, .12), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .18' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .45  0 0 0 0 .28  0 0 0 0 .12  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed;
  overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--saffron-d); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  color: var(--maroon-d);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.te { font-family: var(--font-te); }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 1000;
  background: var(--maroon); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 0.95rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--saffron); color: #fff; box-shadow: 0 6px 18px -8px rgba(224, 123, 26, .8); }
.btn-primary:hover { background: var(--saffron-d); color: #fff; }
.btn-maroon { background: var(--maroon); color: #fff; }
.btn-maroon:hover { background: var(--maroon-d); color: #fff; }
.btn-outline { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-light { background: #fff; color: var(--maroon); }
.btn-light:hover { background: var(--gold-l); color: var(--maroon-d); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Top bar & header ---------- */
.topbar {
  background: var(--maroon-d);
  color: var(--gold-l);
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 36px;
}
.topbar a { color: var(--gold-l); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 18px; }
.topbar .te { font-size: 0.9rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 228, 200, 0.94);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--maroon-d); }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-size: 1.45rem; color: var(--maroon); }
.brand-sub { font-family: var(--font-te); font-size: 0.8rem; color: var(--saffron-d); }

.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.93rem;
}
.nav a:hover { color: var(--maroon); background: var(--sand); }
.nav a[aria-current="page"] { color: var(--maroon); box-shadow: inset 0 -2px 0 var(--saffron); border-radius: 0; }
.nav-cta-mobile { display: none; }

.header-cta { display: flex; gap: 10px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: var(--sand); color: var(--maroon); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 36px) 0 auto 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h) - 36px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; padding: 12px 16px; }
  .nav a { padding: 14px 12px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--saffron); }
  .nav-cta-mobile { display: flex; gap: 10px; padding: 8px 16px 20px; }
  .nav-cta-mobile .btn { flex: 1; }
}
@media (max-width: 640px) {
  .topbar-tagline { display: none; }
  .brand-name { font-size: 1.25rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-sm { padding: clamp(40px, 5vw, 64px) 0; }
.section-alt { background: var(--sand); }
.section-white { background: var(--paper); }
.section-dark {
  background:
    radial-gradient(circle at 15% 20%, rgba(224, 123, 26, .25), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(201, 162, 39, .18), transparent 45%),
    var(--maroon-d);
  color: #f7e9d6;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--gold-l); }
.section-dark p { color: #f0dcc4; }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--saffron-d); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; }
.lead { font-size: 1.12rem; color: var(--muted); }
.section-dark .lead { color: #f0dcc4; }

.divider-om {
  display: flex; align-items: center; gap: 16px; justify-content: center;
  color: var(--gold); margin: 8px auto 28px; max-width: 280px;
}
.divider-om::before, .divider-om::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .6; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 30%, rgba(241, 220, 154, .55), transparent 55%),
    linear-gradient(180deg, #f9ead0 0%, rgba(244, 228, 200, 0) 100%);
  padding: clamp(40px, 7vw, 90px) 0 clamp(48px, 7vw, 90px);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-te { font-family: var(--font-te); color: var(--saffron-d); font-size: 1.15rem; margin-bottom: 10px; }
.hero h1 { color: var(--maroon-d); }
.hero h1 em { font-style: normal; color: var(--saffron-d); }
.hero p.lead { max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: var(--muted); font-size: .9rem; }
.hero-meta strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--maroon); font-weight: 400; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(79, 18, 18, .18)); }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 480px; margin: 0 auto; order: -1; }
}

.glow { animation: glow 6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes glow { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
.float-slow { animation: floaty 9s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(224, 123, 26, .35), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(201, 162, 39, .25), transparent 40%),
    var(--maroon);
  color: #fff;
  padding: clamp(48px, 7vw, 84px) 0 clamp(44px, 6vw, 72px);
}
.page-hero::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 360px; height: 360px;
  background: url("../assets/mandala.svg") center/contain no-repeat; opacity: .12; pointer-events: none;
}
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero .te { color: var(--gold-l); font-size: 1.1rem; }
.page-hero p { color: #f3dfc6; max-width: 680px; font-size: 1.08rem; margin: 10px 0 0; }
.breadcrumb { font-size: .85rem; color: var(--gold-l); margin-bottom: 14px; }
.breadcrumb a { color: var(--gold-l); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .te { color: var(--saffron-d); font-size: .92rem; display: block; margin-bottom: 6px; }

.icon-badge {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--saffron), var(--maroon));
  color: #fff; margin-bottom: 18px;
}
.icon-badge svg { width: 28px; height: 28px; }

.feature-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--saffron) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat;
}
.section-dark .feature-list li::before { background-color: var(--gold); }

/* Image / art frames */
.art-frame {
  position: relative; border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, #fbe7c8, #f2c98f 55%, #c96b2b);
  aspect-ratio: 4 / 3.4; box-shadow: var(--shadow);
}
.art-frame svg { width: 100%; height: 100%; }
.art-frame img { width: 100%; height: 100%; object-fit: cover; }
.art-caption {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  background: rgba(79, 18, 18, .82); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: .88rem;
}

/* ---------- Pillars strip ---------- */
.pillars { margin-top: -40px; position: relative; z-index: 2; }
.pillars .card { text-align: left; }

/* ---------- Quote ---------- */
.quote {
  font-family: var(--font-head); font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.45;
  color: var(--maroon-d); border-left: 4px solid var(--saffron); padding-left: 22px; margin: 0 0 1.2em;
}
.section-dark .quote { color: #fff; border-color: var(--gold); }

/* ---------- Membership price card ---------- */
.price-card {
  background: #fff; border-radius: 22px; padding: 36px; text-align: center;
  border: 2px solid var(--gold); box-shadow: var(--shadow); position: relative;
}
.price-card .ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--saffron); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  padding: 6px 16px; border-radius: 999px; text-transform: uppercase; white-space: nowrap;
}
.price { font-family: var(--font-head); font-size: 3.2rem; color: var(--maroon); line-height: 1; margin: 12px 0 4px; }
.price small { font-size: 1rem; color: var(--muted); font-family: var(--font-body); }
.price-card .feature-list { text-align: left; margin-top: 24px; }

/* ---------- Progress ---------- */
.progress-wrap { margin: 24px 0; }
.progress-label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; }
.progress { height: 14px; background: rgba(255, 255, 255, .18); border-radius: 999px; overflow: hidden; }
.section:not(.section-dark) .progress { background: var(--line); }
.progress span {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  transition: width 1.4s cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 28px 52px; }
.timeline li::before {
  content: ""; position: absolute; left: 6px; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--gold);
}
.timeline li.done::before { background: var(--saffron); border-color: var(--saffron); }
.timeline li.current::before { background: var(--gold-l); border-color: var(--saffron); box-shadow: 0 0 0 6px rgba(224, 123, 26, .18); }
.timeline h3 { font-size: 1.15rem; margin-bottom: .2em; }
.timeline .meta { font-size: .82rem; font-weight: 600; color: var(--saffron-d); text-transform: uppercase; letter-spacing: .08em; }
.timeline p { color: var(--muted); margin: 0; }

/* ---------- Events ---------- */
.event-card { display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: start; }
.event-date {
  background: linear-gradient(160deg, var(--maroon), var(--maroon-d)); color: #fff;
  border-radius: 14px; text-align: center; padding: 14px 8px;
}
.event-date .d { font-family: var(--font-head); font-size: 2rem; line-height: 1; display: block; }
.event-date .m { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-l); }
.event-date .tba { font-size: .82rem; line-height: 1.3; display: block; padding: 6px 0; }
.event-card h3 { margin-bottom: .2em; }
.event-meta { font-size: .88rem; color: var(--muted); margin-bottom: .6em; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--sand); color: var(--maroon); padding: 4px 10px; border-radius: 999px;
}
.tag.gold { background: var(--gold-l); }
@media (max-width: 560px) { .event-card { grid-template-columns: 1fr; } .event-date { max-width: 140px; } }

/* ---------- Causes ---------- */
.cause-card { display: flex; flex-direction: column; }
.cause-card .btn { margin-top: auto; align-self: flex-start; }
.cause-card .amounts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.cause-card .amounts span { font-size: .82rem; font-weight: 600; color: var(--maroon); background: var(--cream); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }

/* ---------- Video ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } }
.video-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.section-dark .video-card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.video-card p { padding: 14px 16px 16px; margin: 0; font-size: .92rem; font-weight: 500; }
.lite-yt {
  position: relative; aspect-ratio: 16 / 9; background: #000 center/cover no-repeat; cursor: pointer; border: 0; width: 100%; padding: 0; display: block;
}
.lite-yt::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .45));
}
.lite-yt .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 68px; height: 48px; border-radius: 14px; background: rgba(224, 123, 26, .95);
  display: grid; place-items: center; transition: transform .2s;
}
.lite-yt:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.lite-yt .play::before { content: ""; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.lite-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery-grid figure { margin: 0; border-radius: 12px; overflow: hidden; background: var(--sand); position: relative; aspect-ratio: 1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; color: #fff; font-size: .85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7));
}

.social-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 700px) { .social-tiles { grid-template-columns: 1fr; } }
.social-tile {
  display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--radius);
  text-decoration: none; color: #fff; font-weight: 600; transition: transform .2s;
}
.social-tile:hover { transform: translateY(-3px); color: #fff; }
.social-tile svg { width: 34px; height: 34px; flex: none; }
.social-tile small { display: block; font-weight: 400; opacity: .85; }
.social-tile.yt { background: linear-gradient(135deg, #c4302b, #7a1f1f); }
.social-tile.ig { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.social-tile.fb { background: linear-gradient(135deg, #1877f2, #0d4fa8); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 24px; padding: clamp(32px, 5vw, 56px);
  background:
    radial-gradient(circle at 100% 0%, rgba(241, 220, 154, .35), transparent 45%),
    linear-gradient(135deg, var(--saffron), var(--maroon));
  color: #fff; display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { color: #ffeedd; margin: 0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: 20px; padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); font-size: .82rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--saffron); background: #fff; box-shadow: 0 0 0 4px rgba(224, 123, 26, .15);
}
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--saffron); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-size: .92rem; display: none; }
.form-status.show { display: block; }
.form-status.success { background: #e7f4ec; color: var(--success); border: 1px solid #bfe0cb; }
.form-status.error { background: #fbeaea; color: var(--error); border: 1px solid #f0c4c1; }
.amount-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.amount-chips button {
  font: 600 .85rem var(--font-body); padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--maroon);
}
.amount-chips button:hover, .amount-chips button.active { border-color: var(--saffron); background: var(--saffron); color: #fff; }

/* ---------- Info list ---------- */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--sand); color: var(--maroon); display: grid; place-items: center; flex: none; }
.info-list .ic svg { width: 22px; height: 22px; }
.info-list strong { display: block; color: var(--maroon-d); }
.info-list span, .info-list a { color: var(--muted); }

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); aspect-ratio: 16 / 10; background: var(--sand); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px 24px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 24px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--maroon); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.2rem;
  border: 3px solid var(--cream);
}
.step h3 { font-size: 1.15rem; margin-top: 8px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative;
  font-weight: 600; color: var(--maroon-d);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--saffron); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- Notice ---------- */
.notice {
  display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px;
  background: #fff6e6; border: 1px solid #f4d9a8; color: #6b4a14; font-size: .93rem;
}
.notice svg { width: 22px; height: 22px; flex: none; color: var(--saffron-d); margin-top: 1px; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- Footer ---------- */
.site-footer { background: #2a0b0b; color: #d9c3ad; padding: 70px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--gold-l); font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #d9c3ad; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: var(--gold-l); }
.footer-about { margin: 16px 0 20px; color: #bfa58e; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s; }
.socials a:hover { background: var(--saffron); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; color: #a88f7a;
}
.footer-bottom .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .35);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .glow, .float-slow { animation: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.stack-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#site-header { min-height: calc(var(--header-h) + 36px); }
.inline-cta { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 36px; }
@media (max-width: 700px) { .inline-cta { grid-template-columns: 1fr; padding: 26px; } }
.section-dark .price-card p, .section-dark .price-card .muted { color: var(--muted); }
.section-dark .card:not(.price-card) { color: var(--ink); }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(79, 18, 18, .18)); }
@media (max-width: 900px) { .pillars { margin-top: 0; } .hero-art { max-width: 360px; } }

/* ---------- Temple model photos ---------- */
.art-frame { margin-inline: 0; }
.hero-photo {
  position: relative; margin: 0 auto; max-width: 440px; aspect-ratio: 4 / 5;
  border-radius: 220px 220px 24px 24px; overflow: hidden;
  border: 4px solid var(--gold); outline: 1px solid var(--gold); outline-offset: 8px;
  box-shadow: 0 30px 50px -20px rgba(79, 18, 18, .45); background: var(--sand);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 68%; }
.hero-photo figcaption {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap;
  background: rgba(79, 18, 18, .85); color: #fff; font-size: .8rem; padding: 6px 14px; border-radius: 999px;
}
.model-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
.model { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; height: 440px; background: var(--sand); box-shadow: var(--shadow-sm); }
.model img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.model:hover img { transform: scale(1.04); }
.model figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; color: #f3dfc6; font-size: .86rem;
  background: linear-gradient(transparent, rgba(42, 11, 11, .85));
}
.model figcaption strong { display: block; color: #fff; font-family: var(--font-head); font-weight: 400; font-size: 1.2rem; }
.model-note { text-align: center; color: var(--muted); font-size: .85rem; margin: 16px 0 0; }
@media (max-width: 900px) {
  .model-grid { grid-template-columns: 1fr 1fr; }
  .model:first-child { grid-column: 1 / -1; height: auto; aspect-ratio: 16 / 9; }
  .model { height: 380px; }
}
@media (max-width: 560px) { .model { height: 340px; } }

/* ---------- Sandalwood surfaces ---------- */
.price-card, .form-card, .step, .faq details, .empty-state, .video-card, .art-frame { background-color: var(--paper); }
.field input, .field select, .field textarea { background: #fffaf0; }
.field input:focus, .field select:focus, .field textarea:focus { background: #fff; }

/* ---------- Page hero with photo ---------- */
.page-hero.has-photo {
  background:
    linear-gradient(100deg, rgba(60, 12, 12, .95) 0%, rgba(110, 28, 24, .86) 48%, rgba(110, 28, 24, .35) 100%),
    var(--hero-img) var(--hero-pos, center) / cover no-repeat,
    var(--maroon);
}
@media (max-width: 700px) {
  .page-hero.has-photo { background: linear-gradient(rgba(60, 12, 12, .86), rgba(90, 20, 20, .9)), var(--hero-img) var(--hero-pos, center) / cover no-repeat, var(--maroon); }
}

/* ---------- Cards with photos ---------- */
.photo-card { padding: 0 0 26px; overflow: hidden; }
.photo-card > *:not(.card-img):not(a) { margin-left: 26px; margin-right: 26px; }
.photo-card .card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 20px; display: block; }
.photo-card .card-img.wide { aspect-ratio: 16 / 9; }
.photo-card > a { display: block; }

/* ---------- Event cards with image ---------- */
.event-card.has-img { padding-top: 0; overflow: hidden; }
.event-img { grid-column: 1 / -1; width: calc(100% + 56px); max-width: none; margin: 0 -28px 4px; aspect-ratio: 16 / 8; object-fit: cover; }

/* ---------- Darshan strip ---------- */
.darshan-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.darshan-strip a { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4.4; border: 2px solid rgba(241, 220, 154, .35); }
.darshan-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.darshan-strip a:hover img { transform: scale(1.06); }
@media (max-width: 900px) { .darshan-strip { grid-template-columns: repeat(3, 1fr); } .darshan-strip a:nth-child(n+4) { display: none; } }

/* ---------- 3D renders ---------- */
.renders-title { text-align: center; margin: 48px 0 18px; font-size: 1.4rem; }
.render-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.render { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow-sm); }
.render img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.render:hover img { transform: scale(1.05); }
.render span { position: absolute; left: 12px; bottom: 12px; background: rgba(79, 18, 18, .85); color: #fff; font-size: .82rem; padding: 5px 12px; border-radius: 999px; }
@media (max-width: 800px) { .render-grid { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.gallery-filters button {
  font: 600 .88rem var(--font-body); padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--maroon);
}
.gallery-filters button.active, .gallery-filters button:hover { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.photo-grid { columns: 4 240px; column-gap: 14px; }
.photo { display: block; break-inside: avoid; margin-bottom: 14px; position: relative; border-radius: 12px; overflow: hidden; background: var(--sand); }
.photo[hidden] { display: none; }
.photo img { width: 100%; height: auto; display: block; transition: transform .5s; }
.photo:hover img { transform: scale(1.04); }
.photo span {
  position: absolute; inset: auto 0 0 0; padding: 28px 12px 10px; color: #fff; font-size: .82rem;
  background: linear-gradient(transparent, rgba(30, 8, 8, .75)); opacity: 0; transition: opacity .3s;
}
.photo:hover span, .photo:focus-visible span { opacity: 1; }
@media (hover: none) { .photo span { opacity: 1; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20, 6, 6, .94); display: grid; place-items: center; padding: 56px 64px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: min(1200px, 100%); max-height: calc(100vh - 150px); object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: #f3dfc6; font-size: .95rem; text-align: center; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; font-size: 2rem; line-height: 1; }
.lightbox button:hover { background: var(--saffron); }
.lightbox button[hidden] { display: none; }
.lightbox .lb-close { top: 14px; right: 14px; }
.lightbox .lb-close svg { width: 24px; height: 24px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding: 64px 12px; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 14px; transform: none; } }
