/* Ratnayog — the brand site. The palette, fonts and header are the same as kundli.ratnayog.com
   (Ratnayog.Kundli.Web/wwwroot/app.css), taken from the logo: deep maroon, gold, near-black and cream.
   Change a token here and there together, so the sites keep looking like one brand. */
:root {
    --ink: #140407;
    --ink-2: #2b0912;
    --gold: #d9a441;
    --gold-light: #f6e3bb;
    --maroon: #8c0d2f;
    --maroon-dark: #6d0724;
    --cream: #fdf8f1;
    --paper: #ffffff;
    --text: #23161a;
    --muted: #6b5b60;
    --line: #ecdfd2;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(20, 4, 7, .10);
    --shadow-lg: 0 18px 50px rgba(20, 4, 7, .18);
    --font: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-hi: "Noto Sans Devanagari", "Inter", system-ui, sans-serif;
    --font-display: "Cormorant Garamond", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--cream); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
html[lang="hi"] body { font-family: var(--font-hi); }
img { max-width: 100%; height: auto; }
a { color: var(--maroon); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.9rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }
h1:focus { outline: none; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.section { padding-top: 56px; padding-bottom: 56px; }
.section-title { font-size: 1.4rem; margin: 24px 0 14px; }
.small { font-size: .85rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.08rem; color: var(--muted); }
.eyebrow { color: var(--gold); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin: 0 0 8px; }
html[lang="hi"] .eyebrow { letter-spacing: .04em; font-size: .9rem; }

/* ---- Header (as on kundli.ratnayog.com) ---- */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 14px rgba(0,0,0,.25); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 54px; width: auto; display: block; }
.main-nav { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
.main-nav a { color: #e9ecf5; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.main-nav a:hover { background: var(--ink-2); color: #fff; }
.main-nav .nav-kundli { color: var(--gold); font-weight: 600; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.lang-switch, .shop-link { color: #fff; text-decoration: none; font-size: .9rem; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); }
.shop-link { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 600; }
@media (max-width: 900px) {
    .brand-logo { height: 38px; }
    .main-nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
    .main-nav a { white-space: nowrap; }
    .header-actions { margin-left: auto; }
}

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(20,4,7,.18); }
.btn-lg { padding: 13px 26px; font-size: 1.02rem; }
.btn-sm { padding: 7px 14px; font-size: .88rem; }
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-dark); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline { background: transparent; color: var(--gold-light); border-color: rgba(246,227,187,.6); }
.btn-outline:hover { background: rgba(246,227,187,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn-row.center { justify-content: center; margin-top: 28px; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 56px 0 0; background:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 78%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 12%, rgba(246,227,187,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 64%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 86%, rgba(246,227,187,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 62%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 18%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(circle at 75% 35%, #5a1428 0, var(--ink) 62%); }
.hero h1 { color: #fff; font-family: var(--font-display), var(--font-hi); font-weight: 700; }
html[lang="hi"] .hero h1 { font-family: var(--font-hi); }
.hero .lead { color: #d8dcea; max-width: 560px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: #e9dcc4; font-size: .92rem; }
.hero-points li::before { content: "✦ "; color: var(--gold); }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img { position: relative; width: min(420px, 100%); border-radius: 50% 50% 24px 24px; border: 3px solid rgba(217,164,65,.7); box-shadow: 0 0 0 10px rgba(217,164,65,.12), var(--shadow-lg); }
.hero-halo { position: absolute; width: 110%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(217,164,65,.35) 0, transparent 62%); }
.gem-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding-top: 40px; padding-bottom: 28px; }
.gem-strip a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: #e9dcc4; font-size: .8rem; width: 88px; }
.gem-strip img { width: 60px; height: 60px; border-radius: 50%; background: #fff; padding: 4px; border: 2px solid rgba(217,164,65,.55); transition: transform .2s ease; }
.gem-strip a:hover img { transform: translateY(-4px) scale(1.06); border-color: var(--gold); }
.hero.compact { padding: 32px 0 28px; }
.hero.compact h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art img { width: min(300px, 80%); }
}

/* ---- Section headings ---- */
.section-head { text-align: center; max-width: 700px; margin: 0 auto 32px; }
.section-head h2, h2.display { font-family: var(--font-display), var(--font-hi); font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; margin-bottom: 8px; }
html[lang="hi"] .section-head h2, html[lang="hi"] h2.display { font-family: var(--font-hi); font-size: clamp(1.45rem, 3vw, 2rem); }
.section-head h2::after { content: ""; display: block; width: 64px; height: 3px; margin: 12px auto 0; border-radius: 3px; background: linear-gradient(90deg, var(--maroon), var(--gold)); }
.section-head p { margin: 10px 0 0; }
.band-cream { background: linear-gradient(180deg, #fff7ea 0%, var(--cream) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: radial-gradient(circle at 15% 0%, #4a0f20 0, var(--ink) 65%); color: #e9dcc4; }
.band-dark .section-head h2 { color: #fff; }
.band-dark .muted { color: #cdbfa8; }

/* ---- Features ---- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-3px); border-color: var(--gold); }
.feature-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; font-size: 1.6rem; background: linear-gradient(135deg, var(--gold-light), #fff); border: 1px solid var(--gold); margin-bottom: 12px; }
.feature h3 { margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---- Two-column sections ---- */
.split-2 { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.split-2.reverse .split-media { order: 2; }
.split-media { display: flex; flex-direction: column; align-items: center; }
.photo { display: block; border-radius: 20px; box-shadow: var(--shadow-lg); border: 3px solid #fff; max-height: 520px; width: auto; }
.chart-frame { margin: 0; background: #fff; padding: 14px; border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); transform: rotate(-2deg); max-width: 400px; }
.chart-frame img { display: block; border-radius: 10px; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { padding-left: 26px; position: relative; margin: 8px 0; }
.ticks li::before { content: "✦"; color: var(--gold); position: absolute; left: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; text-decoration: none; color: var(--ink); }
.chips a:hover { border-color: var(--gold); }
@media (max-width: 860px) {
    .split-2 { grid-template-columns: 1fr; gap: 28px; }
    .split-2.reverse .split-media { order: 0; }
    .photo { max-height: 360px; }
}

/* ---- Gemstones ---- */
.gem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gem-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-columns: 140px 1fr; transition: transform .2s ease, box-shadow .2s ease; border-top: 4px solid var(--gem); }
.gem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gem-photo { position: relative; background: radial-gradient(circle at 50% 45%, #fff 0, #fff 45%, color-mix(in srgb, var(--gem) 12%, #fff) 100%); display: grid; place-items: center; padding: 10px; }
.gem-photo img { width: 120px; height: 120px; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s ease; }
.gem-card:hover .gem-photo img { transform: scale(1.08) rotate(-3deg); }
.gem-planet { position: absolute; top: 8px; left: 8px; background: var(--gem); color: #fff; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.gem-body { padding: 14px 16px 16px; display: flex; flex-direction: column; }
.gem-body h3 { font-size: 1.2rem; margin-bottom: 4px; }
.gem-body h3 small { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }
.gem-body p { margin: 0 0 8px; color: var(--muted); font-size: .9rem; }
.gem-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 12px; margin: 0 0 12px; font-size: .8rem; }
.gem-facts dt { color: var(--muted); }
.gem-facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.gem-actions { display: flex; gap: 8px; margin-top: auto; }
.cta-card { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; border-radius: 18px; background: linear-gradient(120deg, #fff 0%, #fff7e6 60%, var(--gold-light) 100%); border: 1px solid var(--gold); }
.cta-card h3 { font-size: 1.3rem; }
.cta-card p { margin: 0; color: var(--muted); }
@media (max-width: 1000px) { .gem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .gem-grid { grid-template-columns: 1fr; }
    .gem-card { grid-template-columns: 116px 1fr; }
    .gem-photo img { width: 96px; height: 96px; }
    .cta-card { flex-direction: column; align-items: flex-start; }
}

/* ---- Rudraksha ---- */
.mukhi-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; margin-top: 18px; }
.mukhi { display: flex; flex-direction: column; align-items: center; padding: 10px 2px; border-radius: 12px; background: linear-gradient(180deg, #7a3b1c, #4e2410); color: #f6e3bb; text-align: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.mukhi strong { font-size: 1.3rem; line-height: 1; }
.mukhi span { font-size: .68rem; opacity: .85; }
.mukhi em { font-style: normal; font-size: .74rem; margin-top: 4px; color: #fff; }
@media (max-width: 640px) { .mukhi-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---- Vastu ---- */
.vastu-layout { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: center; }
.vastu-photo { border-color: rgba(217,164,65,.5); max-height: 380px; }
.vastu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vastu-cell { border: 1px solid rgba(217,164,65,.35); background: rgba(255,255,255,.05); border-radius: 12px; padding: 14px; min-height: 96px; display: flex; flex-direction: column; justify-content: center; }
.vastu-cell strong { color: var(--gold-light); font-size: 1.02rem; }
.vastu-cell span { color: #cdbfa8; font-size: .86rem; }
.vastu-cell.centre { background: radial-gradient(circle, rgba(217,164,65,.35), rgba(217,164,65,.08)); border-color: var(--gold); text-align: center; align-items: center; }
@media (max-width: 860px) { .vastu-layout { grid-template-columns: 1fr; } .vastu-photo { margin: 0 auto; max-height: 280px; } }
@media (max-width: 480px) { .vastu-cell { padding: 10px 8px; min-height: 84px; } .vastu-cell span { font-size: .78rem; } }

/* ---- Numerology ---- */
.loshu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px; border-radius: 22px; background: radial-gradient(circle at 30% 20%, #4a0f20, var(--ink) 70%); box-shadow: var(--shadow-lg); width: min(340px, 100%); }
.loshu span { font-variant-numeric: lining-nums; aspect-ratio: 1; display: grid; place-items: center; font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; color: #f6d48a; border-radius: 14px; background: linear-gradient(145deg, rgba(246,227,187,.14), rgba(246,227,187,.02)); border: 1px solid rgba(217,164,65,.5); text-shadow: 0 2px 10px rgba(217,164,65,.45); }
.caption { color: var(--muted); font-size: .88rem; margin-top: 10px; text-align: center; }
.mulank-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.mulank { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.mulank:hover { border-color: var(--gold); transform: translateY(-2px); }
.mulank strong { font-variant-numeric: lining-nums; font-family: var(--font-display); font-size: 1.6rem; color: var(--maroon); width: 22px; text-align: center; }
.mulank img { width: 36px; height: 36px; object-fit: contain; mix-blend-mode: multiply; }
.mulank span { font-size: .8rem; line-height: 1.3; }
@media (max-width: 560px) { .mulank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Guides and bhakti ---- */
.read-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.read-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: inherit; box-shadow: var(--shadow); border-left: 4px solid var(--gold); transition: transform .2s ease; }
.read-card.bhakti { border-left-color: var(--maroon); }
.read-card:hover { transform: translateY(-3px); }
.read-kind { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-weight: 700; }
.read-card.bhakti .read-kind { color: var(--maroon); }
.read-card h3 { margin: 6px 0; color: var(--ink); }
.read-card p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 1000px) { .read-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .read-grid { grid-template-columns: 1fr; } }

/* ---- Closing ---- */
.closing { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 32px; border-radius: 22px; color: #fff; background: radial-gradient(circle at 85% 20%, #5a1428 0, var(--ink) 70%); box-shadow: var(--shadow-lg); }
.closing img { width: 100px; height: 100px; border-radius: 50%; background: #fff; padding: 8px; border: 3px solid var(--gold); }
.closing h2 { color: #fff; font-size: 1.6rem; }
.closing p { margin: 0; color: #d8dcea; }
.closing .btn-row { margin-top: 0; }
@media (max-width: 860px) { .closing { grid-template-columns: 1fr; text-align: center; justify-items: center; } .closing .btn-row { justify-content: center; } }

/* ---- Content pages (guides, bhakti) ---- */
.grid-2, .grid-3 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
a.card:hover { border-color: var(--gold); }
.card h2, .card h3 { margin: 0 0 6px; color: var(--maroon); font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.card.note { background: #fffaf0; margin-top: 24px; border-color: var(--gold); }
.card.note p { color: var(--text); margin-bottom: 12px; }
.crumbs { color: var(--muted); font-size: .9rem; margin-bottom: 4px; }
.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.3rem; margin: 26px 0 8px; color: var(--maroon); }
.prose blockquote { margin: 16px 0; padding: 14px 18px; background: #fff; border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; font-size: 1.08rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; background: #fff; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; font-size: .92rem; }
.prose code { background: #fff; padding: 1px 4px; border-radius: 4px; }

/* ---- Footer (as on kundli.ratnayog.com) ---- */
.site-footer { background: var(--ink); color: #cfd4e4; padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-grid a { display: block; color: #e9ecf5; text-decoration: none; margin: 5px 0; }
.footer-grid a:hover { color: var(--gold); }
.footer-logo { height: 54px; width: auto; margin-bottom: 8px; }
.footer-title { color: var(--gold); font-weight: 600; margin-bottom: 6px; }
.footer-note { border-top: 1px solid var(--ink-2); margin-top: 24px; padding-top: 14px; font-size: .85rem; }
.footer-note a { color: var(--gold-light); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } html { scroll-behavior: auto; } }

/* Devotional texts published from scans (M46) */
.bhakti-text .verses { margin: 18px 0 28px; }
.bhakti-text .verse { font-family: var(--font-hi), serif; font-size: 1.15rem; line-height: 1.9; margin: 0 0 18px; }
.bhakti-text .verse-heading { font-size: 1.05rem; color: var(--maroon); margin: 26px 0 8px; letter-spacing: .02em; }
.media-card { margin: 14px 0; }
.media-card audio, .media-card video { width: 100%; }
.video-frame { position: relative; padding: 0; overflow: hidden; aspect-ratio: 16 / 9; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
