/* Bhakti Parivar: one stylesheet for the home page, the policy pages and 404. Mobile first; no third-party requests. */

@font-face {
  font-family: "Tiro Devanagari Hindi";
  src: url("/fonts/tiro-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Tiro Devanagari Hindi";
  src: url("/fonts/tiro-deva.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF;
}
@font-face {
  font-family: "Cinzel";
  src: url("/fonts/cinzel-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00B7, U+2013-2014, U+2018-2019, U+201C-201D, U+2026;
}

:root {
  --cream: #fff8ee;
  --cream-deep: #fbefdc;
  --paper: #ffffff;
  --ink: #2b1810;
  --ink-soft: #66483a;
  --maroon: #7a1e12;
  --maroon-deep: #4e120a;
  --saffron: #e07b24;
  --saffron-text: #a8470c;
  --marigold: #f2b134;
  --gold-soft: #f7dda0;
  --line: #ecd9bd;
  --wa: #0e7c66;
  --wa-deep: #0a6352;
  --focus: #1a5fd0;
  --radius: 16px;
  --serif: "Tiro Devanagari Hindi", "Noto Serif Devanagari", Georgia, "Times New Roman", serif;
  --display: "Cinzel", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", Mangal, sans-serif;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--maroon); text-underline-offset: 0.18em; }
a:hover { color: var(--maroon-deep); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--maroon); line-height: 1.18; margin: 0; letter-spacing: -0.005em; text-wrap: balance; }
h3 { margin: 0; }
p { margin: 0; text-wrap: pretty; }
[lang="hi"] { font-family: var(--serif); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--paper); color: var(--maroon); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---- Header -------------------------------------------------------------------------------------------------- */

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1120px; margin: 0 auto; padding: 12px 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-height: 44px; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-hi { font-family: var(--serif); font-size: 1.32rem; color: var(--maroon); padding-top: 4px; }
.brand-en { font-family: var(--display); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--saffron-text); margin-top: 1px; }
.header-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--wa); color: #fff; font-weight: 600; font-size: 0.95rem; text-decoration: none;
}
.header-cta:hover { background: var(--wa-deep); color: #fff; }

.toran {
  height: 12px;
  background:
    radial-gradient(circle at 9px 3px, var(--marigold) 5px, transparent 5.6px) 0 0 / 36px 12px repeat-x,
    radial-gradient(circle at 27px 3px, var(--saffron) 5px, transparent 5.6px) 0 0 / 36px 12px repeat-x;
  border-top: 2px solid #d9a441;
}

/* ---- Buttons ------------------------------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 650; font-size: 1.05rem; text-decoration: none; text-align: center; line-height: 1.25;
}
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 22px -12px rgba(10, 99, 82, 0.9); }
.btn-wa:hover { background: var(--wa-deep); color: #fff; }
.btn svg { width: 22px; height: 22px; flex: none; }

/* ---- Hero ---------------------------------------------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(90% 60% at 85% 0%, rgba(247, 181, 59, 0.28), transparent 70%),
    radial-gradient(70% 50% at 0% 100%, rgba(224, 123, 36, 0.10), transparent 70%),
    var(--cream);
  padding: 28px 0 48px;
}
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-hi { font-size: 1.3rem; line-height: 1.5; color: var(--saffron-text); margin-bottom: 10px; }
.hero h1 { font-size: clamp(2rem, 1.35rem + 3vw, 3.15rem); }
.lead { margin-top: 16px; font-size: 1.08rem; color: var(--ink); max-width: 36em; }
.hero-actions { margin-top: 24px; }
.hero-actions .btn { width: 100%; }
.hero-note { margin-top: 12px; font-size: 0.95rem; color: var(--ink-soft); }

/* The WhatsApp mock-up: the real Wednesday message, drawn in HTML. */
.phone { margin: 0 auto; width: min(100%, 340px); }
.phone-screen {
  border: 9px solid #1d1410; border-radius: 34px; overflow: hidden; background: #efe7dc;
  box-shadow: 0 30px 60px -28px rgba(78, 18, 10, 0.55), 0 0 0 1px rgba(78, 18, 10, 0.08);
  font-family: var(--sans); color: #111b21;
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #075e54; color: #fff; }
.chat-head img { width: 34px; height: 34px; border-radius: 50%; }
.chat-head strong { font-size: 0.98rem; line-height: 1.2; }
.chat-body { padding: 12px 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.bubble { border-radius: 10px; font-size: 0.875rem; line-height: 1.45; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.bubble-out { align-self: flex-end; background: #d9fdd3; padding: 6px 9px 5px; border-top-right-radius: 3px; }
.bubble-in { align-self: flex-start; width: 94%; background: #fff; padding: 3px; border-top-left-radius: 3px; }
.bubble-in img { border-radius: 8px; width: 100%; aspect-ratio: 1; }
.msg { padding: 7px 7px 4px; }
.msg p + p { margin-top: 0.75em; }
.msg strong { font-weight: 650; }
.msg-footer { color: #667781; font-size: 0.8rem; }
.msg time, .bubble-out time { display: block; text-align: right; color: #667781; font-size: 0.68rem; line-height: 1; margin-top: 3px; }
.bubble-out time { display: inline; margin-left: 8px; }
.wa-buttons { width: 94%; display: grid; gap: 4px; }
.wa-buttons span {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px;
  background: #fff; border-radius: 8px; color: #027eb5; font-size: 0.875rem; font-weight: 550;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}
.wa-buttons svg { width: 14px; height: 14px; }
.phone figcaption { margin-top: 14px; text-align: center; font-size: 0.88rem; color: var(--ink-soft); }

/* ---- Sections ------------------------------------------------------------------------------------------------ */

.section { padding: 56px 0; }
.section-alt { background: var(--cream-deep); }
.eyebrow { font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; color: var(--saffron-text); margin-bottom: 6px; }
.section h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); }
.section-intro { margin-top: 12px; color: var(--ink-soft); max-width: 40em; }

/* How it works */
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 18px 20px 72px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 18px;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--maroon); color: var(--gold-soft); font-family: var(--serif); font-size: 1.2rem; line-height: 1;
  padding-top: 3px;
}
.steps h3 { font-size: 1.1rem; color: var(--maroon); margin-bottom: 4px; }
.steps p { color: var(--ink); font-size: 1rem; }

/* A sankalp for someone you love */
.gift-grid { display: grid; gap: 36px; align-items: center; }
.gift-copy p + p { margin-top: 12px; }
.gift-copy .section-intro { color: var(--ink); }
.chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 0.95rem; line-height: 1.3; font-weight: 600; color: var(--maroon);
}
.chips li span { font-weight: 400; color: var(--ink-soft); margin-left: 4px; }

.card-mock { margin: 0 auto; width: min(100%, 380px); }
.card {
  position: relative; container-type: inline-size; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(78, 18, 10, 0.6);
}
.card img { width: 100%; aspect-ratio: 1; }
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 42%, rgba(0, 0, 0, 0.55) 62%, rgba(0, 0, 0, 0.3) 92%);
}
.card-lines {
  position: absolute; left: 6%; right: 6%; bottom: 11%; z-index: 1;
  text-align: center; color: #fff; font-family: var(--sans); text-shadow: 0 2px 3px rgba(0, 0, 0, 0.55);
}
.card-lines p { line-height: 1.22; }
.card-occasion { color: #ffd98e; font-size: 13px; font-size: 4.3cqw; }
.card-to { font-weight: 650; font-size: 22px; font-size: 7.4cqw; margin-top: 2.6cqw; }
.card-from { font-weight: 650; font-size: 15px; font-size: 5cqw; margin-top: 3cqw; }
.card-mock figcaption { margin-top: 14px; text-align: center; font-size: 0.88rem; color: var(--ink-soft); }

/* A deity for every day */
.day-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.day-grid li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.day-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.day-grid li:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }
.day-meta { padding: 10px 12px 14px; }
.day-name { display: block; font-size: 0.82rem; color: var(--saffron-text); font-weight: 600; letter-spacing: 0.02em; }
.day-name [lang="hi"] { font-weight: 400; font-size: 0.95rem; }
.deity { display: block; font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; color: var(--maroon); margin-top: 3px; }
.mantra { display: block; font-size: 0.82rem; color: var(--ink-soft); font-style: italic; margin-top: 2px; }

/* Questions */
.narrow { max-width: 760px; }
.faq-list { margin-top: 24px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 12px 0; font-weight: 650; font-size: 1.05rem; color: var(--maroon);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream-deep); color: var(--maroon); font-size: 1.3rem; font-weight: 400; line-height: 1;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding: 0 0 18px; color: var(--ink); max-width: 40em; }

/* Closing call to action */
.cta { text-align: center; padding: 64px 0 72px; background: radial-gradient(70% 90% at 50% 0%, rgba(247, 181, 59, 0.3), transparent 70%), var(--cream-deep); }
.cta-hi { font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2rem); color: var(--saffron-text); line-height: 1.45; }
.cta h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); margin-top: 4px; }
.cta p.cta-text { margin: 12px auto 0; color: var(--ink-soft); max-width: 30em; }
.cta .btn { margin-top: 24px; }
.cta-number { margin-top: 16px; font-size: 1rem; color: var(--ink-soft); }
.cta-number a { font-weight: 650; white-space: nowrap; }

/* ---- Footer -------------------------------------------------------------------------------------------------- */

.site-footer { background: var(--maroon-deep); color: #f7e6cc; padding: 28px 16px 32px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: #fde7c2; text-decoration: underline; text-decoration-color: rgba(253, 231, 194, 0.45); }
.footer-links a:hover { color: #fff; text-decoration-color: #fff; }
.footer-note { margin-top: 8px; font-size: 0.88rem; color: #e8cfae; }
.site-footer :focus-visible { outline-color: #ffd98e; }

/* ---- Policy pages and 404 ------------------------------------------------------------------------------------ */

.doc-page .site-header,
.notfound-page .site-header { border-bottom: 1px solid var(--line); max-width: none; width: 100%; }
.doc-page .site-header > *,
.notfound-page .site-header > * { flex: none; }
.doc { max-width: 68ch; margin: 0 auto; padding: 36px 16px 72px; }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.6rem); }
.doc .doc-updated { margin-top: 8px; color: var(--ink-soft); font-size: 0.95rem; }
.doc h2 { font-family: var(--sans); font-weight: 650; font-size: 1.2rem; line-height: 1.35; color: var(--maroon); margin-top: 2em; }
.doc p, .doc li { font-size: 1.0625rem; line-height: 1.7; }
.doc p { margin-top: 0.9em; }
.doc ul, .doc ol { margin: 0.9em 0 0; padding-left: 1.3em; }
.doc li + li { margin-top: 0.4em; }
.doc strong { font-weight: 650; }
.doc a { word-break: break-word; }

body.doc-page,
body.notfound-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.doc-page main,
body.notfound-page main { flex: 1 0 auto; width: 100%; }

.notfound { max-width: 34em; margin: 0 auto; padding: 72px 16px 88px; text-align: center; }
.notfound .eyebrow { color: var(--saffron-text); margin: 0; }
.notfound h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.6rem); margin-top: 6px; }
.notfound p { margin-top: 14px; color: var(--ink-soft); }
.notfound .btn { margin-top: 26px; }
.notfound .home-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; }

/* ---- Wider screens ------------------------------------------------------------------------------------------- */

@media (min-width: 640px) {
  .wrap, .site-header { padding-left: 24px; padding-right: 24px; }
  .hero-actions .btn { width: auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .day-grid li:last-child { grid-column: 2; width: auto; justify-self: stretch; }
}

@media (min-width: 960px) {
  .hero { padding: 40px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: start; }
  .hero-copy { padding-top: 56px; }
  .hero-hi { font-size: 1.5rem; }
  .lead { font-size: 1.15rem; }
  .section { padding: 80px 0; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps li { padding: 70px 20px 22px; }
  .steps li::before { left: 20px; top: 20px; }
  .gift-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; }
  .day-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
  .day-grid li:last-child { grid-column: auto; }
  .day-meta { padding: 10px 10px 14px; }
  .deity { font-size: 1.12rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
