:root {
  --saffron: #d9661f;
  --saffron-dark: #b04f12;
  --maroon: #7a1f1f;
  --gold: #c99a2e;
  --ink: #2a1d14;
  --muted: #6e5d50;
  --bg: #fffaf3;
  --bg-alt: #f8efe2;
  --card: #ffffff;
  --line: #ead9c3;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(80, 40, 10, .07);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3e9dc; --muted: #c2b2a2; --bg: #1b1410; --bg-alt: #241a14; --card: #2a1f18; --line: #3f2f24;
    --shadow: 0 2px 10px rgba(0, 0, 0, .3); --maroon: #f0a37a;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.lang-kn { font-family: "Noto Sans Kannada", Inter, system-ui, sans-serif; }
h1, h2, h3 { font-family: "Noto Serif", Georgia, serif; line-height: 1.25; color: var(--maroon); margin: 0 0 .5em; }
.lang-kn h1, .lang-kn h2, .lang-kn h3 { font-family: "Noto Sans Kannada", sans-serif; }
a { color: var(--saffron-dark); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { font-family: "Noto Serif", serif; font-weight: 700; font-size: 1.35rem; color: var(--maroon); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-mark { color: var(--saffron); font-size: 1.5rem; }
.site-nav { display: flex; gap: 20px; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--saffron); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 4px 12px; text-decoration: none; color: var(--muted); font-size: .9rem; }
.lang-switch a.on { background: var(--saffron); color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.2rem; padding: 4px 10px; color: var(--ink); }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--card); flex-direction: column; padding: 12px 16px; gap: 12px; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .header-actions { margin-left: auto; }
}

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; text-align: center; }
.btn-primary { background: var(--saffron); color: #fff; }
.btn-primary:hover { background: var(--saffron-dark); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.btn-ghost { border-color: var(--saffron); color: var(--saffron-dark); background: transparent; }
.btn.block { display: block; width: 100%; }

/* Hero */
.hero { background: linear-gradient(135deg, #7a1f1f 0%, #b04f12 60%, #d9661f 100%); color: #fff; padding: 72px 0 56px; }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 820px; }
.hero .lead { font-size: 1.15rem; max-width: 700px; opacity: .95; }
.hero .btn-ghost { border-color: #fff; color: #fff; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.trust { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.trust li::before { content: "✓ "; color: #ffd27a; font-weight: 700; }
.page-hero { background: var(--bg-alt); padding: 40px 0 24px; border-bottom: 1px solid var(--line); }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }
.section-head a { white-space: nowrap; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ritual-card { text-decoration: none; color: inherit; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s; }
.ritual-card:hover { transform: translateY(-3px); }
.card-img img, .img-ph { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.img-ph { display: grid; place-items: center; font-size: 3rem; background: linear-gradient(135deg, #f6d9b8, #f0b98a); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); margin: 0 0 12px; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price { font-weight: 700; color: var(--saffron-dark); }
.price small { font-weight: 400; color: var(--muted); }
.more { font-size: .9rem; color: var(--muted); }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 32px 0 0; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--saffron); color: #fff; font-weight: 700; margin-bottom: 10px; }
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 28px; }
.compare-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.compare-card.highlight { border: 2px solid var(--saffron); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pills a { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--card); }
.pills a.on { background: var(--saffron); color: #fff; border-color: var(--saffron); }

/* Ritual page */
.ritual-hero { background: var(--bg-alt); padding: 48px 0; border-bottom: 1px solid var(--line); }
.ritual-hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.ritual-img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 760px) { .ritual-hero-inner { grid-template-columns: 1fr; } }
.lead { font-size: 1.1rem; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 24px 0 12px; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.tier.featured { border: 2px solid var(--saffron); }
.tier p { color: var(--muted); }
.tier .btn { margin-top: auto; }
.tier-tag { align-self: flex-start; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--saffron-dark); background: rgba(217, 102, 31, .1); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.tier-price { font-size: 1.8rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.tier-price s { font-size: 1rem; color: var(--muted); font-weight: 400; margin-left: 6px; }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; }
.ticks li { padding-left: 24px; position: relative; margin-bottom: 6px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--saffron); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); }
.content-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
@media (max-width: 760px) { .content-grid { grid-template-columns: 1fr; } }
.addon-list { list-style: none; padding: 0; margin: 0; }
.addon-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }

.priests { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.priest { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.priest img, .priest .avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex: none; }
.priest .avatar { display: grid; place-items: center; background: var(--bg-alt); font-size: 2rem; }
.priest h3 { font-size: 1.1rem; margin-bottom: 4px; }
.priest p { margin: 0 0 6px; }

.notice { margin: 16px 0; padding: 12px 16px; border-radius: 10px; background: #fff3cd; color: #5c4400; }
.notice-success { background: #e3f4e6; color: #1f5a2a; }
.notice-error { background: #fde5e5; color: #7a1f1f; }

/* Footer */
.site-footer { background: #2a1d14; color: #e9dccd; padding: 48px 0 24px; margin-top: 0; }
.site-footer .logo { color: #fff; }
.site-footer h4 { color: #ffd27a; margin: 0 0 10px; }
.site-footer p { margin: 0 0 6px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.copyright { margin-top: 32px; padding-top: 16px; border-top: 1px solid #4a3a2e; font-size: .85rem; color: #b8a796; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 30; }
