/* Kalpana Suman — Vedic Astrologer
   Single stylesheet, no framework. Palette is warm maroon/gold/ivory —
   distinct from a generic "astrology site" purple-mystical look, and
   deliberately ties to the warm pink/gold tones in her own photo rather
   than being an arbitrary brand choice. */

:root {
  --ivory: #FBF7F0;
  --ink: #241A1D;
  --muted: #6E6259;
  --line: #EAE0D2;
  --maroon: #7A1F3D;
  --maroon-deep: #5C1730;
  --gold: #A9812E;
  --gold-soft: #D9C08A;
  --card-radius: 12px;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; letter-spacing: normal; }
p { margin: 0 0 1em; color: var(--ink); }
a { color: var(--maroon); transition: color 0.15s; }
a:hover { color: var(--maroon-deep); }

.pull-quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.3;
  color: var(--maroon-deep);
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.pull-quote::before, .pull-quote::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 22px;
}
.pull-quote::after { margin: 22px auto 0; }

/* Scroll reveal — small IntersectionObserver toggles .is-visible; pure CSS
   transition, no animation library. Falls back to fully visible if JS
   never runs (progressive enhancement, not a requirement to see content). */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.prose { max-width: 68ch; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 247, 240, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: 'Fraunces', serif; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.nav-links { display: none; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 0.92rem; }
.nav-links a:hover { color: var(--maroon); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: inline-flex; background: none; border: none; cursor: pointer; padding: 8px; }
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--ivory); }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 12px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.mobile-menu a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 12px 24px; font-size: 0.92rem; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-deep); color: #fff; box-shadow: 0 6px 16px rgba(122,31,61,0.22); }
.btn-outline { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1DA851; color: #fff; box-shadow: 0 6px 16px rgba(37,211,102,0.28); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* Hero */
.hero { border-bottom: 1px solid var(--line); }
.hero .container { display: grid; gap: 40px; padding: 56px 20px 64px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero .container { grid-template-columns: 1.15fr 0.85fr; align-items: center; } }
.hero-eyebrow { display: inline-block; font-size: 0.8rem; letter-spacing: 0.03em; color: var(--gold); font-weight: 600; margin-bottom: 10px; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; font-size: 0.88rem; color: var(--muted); }
.hero-trust span { display: flex; align-items: center; gap: 6px; }
.hero-photo-wrap { position: relative; }
.hero-photo {
  width: 100%; max-width: 360px; margin: 0 auto; display: block;
  border-radius: var(--card-radius); border: 1px solid var(--line);
}
.hero-badge {
  position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-size: 0.82rem; font-weight: 600; color: var(--ink);
  box-shadow: 0 6px 20px rgba(122, 31, 61, 0.08); white-space: nowrap;
}

/* Sections */
section.block { padding: 56px 0; }
section.block.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--muted); }
.section-eyebrow-rule { display: block; width: 40px; height: 3px; background: var(--gold); margin-bottom: 14px; border-radius: 2px; }
.center .section-eyebrow-rule { margin-left: auto; margin-right: auto; }

/* Grids / cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--card-radius);
  padding: 22px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(36,26,29,0.08); border-color: var(--gold-soft); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0; }
.card-icon { width: 34px; height: 34px; color: var(--maroon); margin-bottom: 12px; }

/* Steps */
.steps { counter-reset: step; }
.step { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.step-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--maroon); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 1rem;
}

/* FAQ (native details/summary — zero JS needed) */
.faq-item { border: 1px solid var(--line); border-radius: var(--card-radius); background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--maroon); font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 18px 16px; color: var(--muted); font-size: 0.93rem; }

/* Footer */
.site-footer { background: var(--maroon-deep); color: rgba(255,255,255,0.85); margin-top: 40px; }
.site-footer .container { padding: 48px 20px 20px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: rgba(255,255,255,0.65); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 32px; padding-top: 18px; font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); text-decoration: underline; }

/* Utility */
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.tag {
  display: inline-block; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; font-size: 0.78rem; color: var(--ink); background: #fff; text-decoration: none;
}
.tag:hover { border-color: var(--maroon); color: var(--maroon); }
.disclaimer-banner {
  background: #FCF3E7; border: 1px solid var(--gold-soft); border-radius: var(--card-radius);
  padding: 14px 18px; font-size: 0.88rem; margin-bottom: 28px;
}

/* Kundli tool specific */
.kundli-form { background: #fff; border: 1px solid var(--line); border-radius: var(--card-radius); padding: 24px; max-width: 560px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  font-size: 0.92rem; font-family: inherit; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--maroon); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.results-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-top: 16px; }
.results-table th, .results-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.results-table th { color: var(--muted); font-weight: 500; }
.dasha-chip { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.chart-svg-wrap { max-width: 340px; margin: 0 auto; }
