/* Diwali Money Check-up campaign page (/festivals/diwali-money-checkup/ + /mr/).
   Static file on purpose - NOT a component <style> block. Astro's scoped-CSS
   chunks have been silently dropped from production builds on this site
   (see astro-site/CLAUDE.md, festival.css). Teal -> amber palette to match
   the pamphlet / OG kit. */

.dmc {
  --dmc-teal: #0b4f55;
  --dmc-teal-ink: #0b3b3f;
  --dmc-teal-tint: #e7f4f2;
  --dmc-amber-tint: #fff4e0;
  --dmc-gold: #b8862b;
  --dmc-wa: #0a7a4a;      /* white text contrast ~5.4:1 (WhatsApp brand #25D366 fails 4.5:1) */
  --dmc-wa-hover: #086a40;
  --dmc-line: #e3e6e8;
  color: #1f2a2c;
}

/* style.css sets .container to max-width:100% at >=992px (other pages
   constrain width with their own wrappers) - cap it here or the page runs
   edge to edge on desktop. */
.dmc .container { max-width: 1040px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
/* Site-wide paragraphs are justified - leaves rivers of space in short card text. */
.dmc p, .dmc li, .dmc td { text-align: left; }
.dmc .dmc-sip td, .dmc .dmc-toggle { text-align: right; }

/* Hero */
.dmc-hero {
  background: linear-gradient(135deg, var(--dmc-teal-tint) 0%, var(--dmc-amber-tint) 100%);
  padding: 20px 0 32px;
  border-bottom: 3px solid var(--dmc-gold);
}
.dmc-toggle { text-align: right; margin: 0 0 8px; font-size: 0.95rem; }
.dmc-toggle a { color: var(--dmc-teal); font-weight: 600; text-decoration: underline; display: inline-block; padding: 12px 0; }
.dmc-eyebrow {
  margin: 0 0 8px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--dmc-teal);
}
.dmc-h1 {
  font-family: "Noto Sans Devanagari", "PT Sans", sans-serif;
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  line-height: 1.3;
  font-weight: 700;
  color: var(--dmc-teal-ink);
  margin: 0 0 10px;
}
.dmc-sub { font-size: 1.15rem; line-height: 1.5; margin: 0 0 20px; color: #2c3a3c; max-width: 640px; }

.dmc-offer {
  background: #fff;
  border: 2px solid var(--dmc-gold);
  border-radius: 12px;
  padding: 18px 20px;
  max-width: 560px;
  box-shadow: 0 2px 10px rgba(184, 134, 43, 0.12);
}
.dmc-offer p { margin: 0; }
.dmc-offer-title { font-size: 1.35rem; font-weight: 700; color: var(--dmc-teal-ink); margin-bottom: 6px !important; }
.dmc-offer-body { font-size: 1rem; line-height: 1.55; }
.dmc-offer-valid { margin-top: 10px !important; font-weight: 700; color: #7a5410; font-size: 0.95rem; }

/* Offer states - build-time class, re-checked client-side */
.dmc-offer-over { display: none; }
.dmc-ended .dmc-offer-over { display: block; }
.dmc-ended .dmc-offer-live,
.dmc-ended .dmc-eyebrow { display: none; }

/* CTAs */
.dmc-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.dmc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}
.dmc-btn svg { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.dmc-btn-wa { background: var(--dmc-wa); color: #fff !important; }
.dmc-btn-wa:hover, .dmc-btn-wa:focus { background: var(--dmc-wa-hover); color: #fff; text-decoration: none; }
.dmc-btn-book { background: #fff; color: var(--dmc-teal) !important; border: 2px solid var(--dmc-teal); }
.dmc-btn-book:hover, .dmc-btn-book:focus { background: var(--dmc-teal-tint); text-decoration: none; }
.dmc-ctas-footer { margin: 8px 0 28px; }

/* Body sections */
.dmc-body { padding-top: 8px; padding-bottom: 24px; }
.dmc-section { margin: 32px 0; }
.dmc-section h2 { font-size: 1.45rem; color: var(--dmc-teal-ink); margin: 0 0 14px; }
.dmc-section-eyebrow { margin: 0 0 4px; font-weight: 700; color: #7a5410; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }

.dmc-look { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.dmc-look li { display: flex; align-items: center; gap: 14px; background: #f8fafa; border: 1px solid var(--dmc-line); border-radius: 10px; padding: 12px 14px; font-size: 1rem; }
.dmc-look-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--dmc-teal-tint); color: var(--dmc-teal); display: inline-flex; align-items: center; justify-content: center; }
.dmc-look-icon svg { width: 20px; height: 20px; fill: currentColor; }

.dmc-options { display: grid; gap: 14px; grid-template-columns: 1fr; }
.dmc-option { border: 1px solid var(--dmc-line); border-top: 3px solid var(--dmc-gold); border-radius: 10px; padding: 14px 16px; background: #fff; }
.dmc-option h3 { font-size: 1.1rem; margin: 0 0 4px; color: var(--dmc-teal-ink); }
.dmc-option p { margin: 0; }
.dmc-option-links { margin-top: 8px !important; }
.dmc-option-links a { color: var(--dmc-teal); font-weight: 600; display: inline-block; padding: 6px 0; }

/* SIP illustration table - disclaimer deliberately same size as table body */
.dmc-table-wrap { overflow-x: auto; }
.dmc-sip { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 320px; }
.dmc-sip th, .dmc-sip td { border-bottom: 1px solid var(--dmc-line); padding: 10px 8px; text-align: right; vertical-align: top; }
.dmc-sip thead th { background: var(--dmc-teal); color: #fff; font-weight: 600; font-size: 0.92rem; }
.dmc-sip th[scope="row"], .dmc-sip thead th:first-child { text-align: left; }
.dmc-sip tbody th { color: var(--dmc-teal-ink); }
.dmc-sip-value { display: block; font-weight: 700; color: var(--dmc-teal-ink); white-space: nowrap; }
.dmc-sip-invested { display: block; font-size: 0.85rem; color: #4d5a5c; font-style: italic; white-space: nowrap; }
.dmc-sip-disclaimer { font-size: 1rem; margin: 12px 0 0; color: #2c3a3c; }
.dmc-sip-calc { margin: 10px 0 0; font-weight: 700; }
.dmc-sip-calc a { color: var(--dmc-teal); display: inline-block; padding: 8px 0; }

.dmc-meet { display: flex; gap: 18px; align-items: flex-start; background: #f8fafa; border-radius: 12px; padding: 18px; }
.dmc-meet img { border-radius: 50%; flex: none; width: 96px; height: 96px; object-fit: cover; }
.dmc-meet h2 { font-size: 1.2rem; margin-bottom: 4px; }
.dmc-meet p { margin: 0 0 8px; }
.dmc-meet-name a { font-weight: 700; color: var(--dmc-teal); }
.dmc-meet-address { font-size: 0.95rem; color: #3b4749; }

.dmc-faq-item { border-bottom: 1px solid var(--dmc-line); }
.dmc-faq-item summary { cursor: pointer; font-weight: 600; padding: 14px 0; min-height: 48px; list-style-position: outside; }
.dmc-faq-item p { margin: 0 0 14px; }
.dmc-faq-item a { color: var(--dmc-teal); font-weight: 600; }

.dmc-credentials { border-top: 1px solid var(--dmc-line); padding-top: 16px; font-size: 0.9rem; color: #3b4749; }
.dmc-credentials p { margin: 0 0 10px; }

/* Sticky mobile WhatsApp bar - shown by JS once the hero is off-screen */
.dmc-sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 2px solid var(--dmc-gold);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(110%);
  transition: transform 0.2s ease;
}
.dmc-sticky.is-visible { transform: translateY(0); }
.dmc-sticky-text { font-weight: 700; color: var(--dmc-teal-ink); font-size: 0.95rem; line-height: 1.25; }
.dmc-sticky .dmc-btn { padding: 0 16px; flex: none; }

@media (max-width: 767.98px) {
  .page-diwali-checkup { padding-bottom: 72px; }
  .dmc-sip { font-size: 0.9rem; min-width: 0; }
  .dmc-sip th, .dmc-sip td { padding: 8px 3px; }
  .dmc-sip thead th { font-size: 0.8rem; }
  .dmc-sip-invested { font-size: 0.72rem; }
}
@media (min-width: 768px) {
  .dmc-sticky { display: none; }
  .dmc-hero { padding: 28px 0 44px; }
  .dmc-look { grid-template-columns: 1fr 1fr; }
  .dmc-options { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .dmc-sticky { transition: none; }
}
