/* RadhaPrint · Clay design (shared). Sab pages isi se chalte hain. */
:root {
  --bg: #f4efe9;
  --surface: #fbf8f4;
  --ink: #2b2740;
  --muted: #6b6780;
  --accent: #7c6cf0;
  --accent-deep: #5b4bd6;
  --ok: #16a34a;
  --warn: #b45309;
  --err: #dc2626;
  --line: rgba(43, 39, 64, .08);
  --clay-out: 12px 14px 28px rgba(120, 100, 80, .18), -10px -10px 22px rgba(255, 255, 255, .9);
  --clay-in: inset 6px 6px 12px rgba(120, 100, 80, .14), inset -6px -6px 12px rgba(255, 255, 255, .9);
  --clay-btn: 8px 10px 20px rgba(91, 75, 214, .30), inset 3px 4px 8px rgba(255, 255, 255, .45), inset -4px -6px 10px rgba(0, 0, 0, .12);
}
html.dark {
  --bg: #221d36;
  --surface: #2c2646;
  --ink: #f1edff;
  --muted: #b4aecb;
  --line: rgba(255, 255, 255, .06);
  --clay-out: 12px 14px 28px rgba(0, 0, 0, .35), -8px -8px 20px rgba(255, 255, 255, .03);
  --clay-in: inset 6px 6px 12px rgba(0, 0, 0, .3), inset -4px -4px 10px rgba(255, 255, 255, .04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; overflow-x: hidden; transition: background .3s ease, color .3s ease; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.3px; }
h1 { font-size: clamp(30px, 4.2vw, 46px); margin: 0 0 14px; }
h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 10px; }
h3 { font-size: 18px; margin: 0 0 6px; }
p { margin: 0 0 14px; color: var(--muted); }
[hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }

/* Progress + nav */
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 100%; background: var(--accent); border-radius: 0 4px 4px 0; transform-origin: 0 50%; transform: scaleX(0); z-index: 30; }
.nav { position: sticky; top: 0; z-index: 10; background: var(--bg); transition: box-shadow .3s ease; }
.nav.scrolled { box-shadow: 0 10px 24px rgba(120, 100, 80, .12); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; }
.brand img { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 15px; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.theme-btn { width: 46px; height: 46px; border-radius: 16px; border: 0; background: var(--surface); box-shadow: var(--clay-out); color: var(--ink); font-size: 20px; cursor: pointer; display: grid; place-items: center; transition: transform .2s; }
.theme-btn:hover { transform: translateY(-2px) rotate(-6deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font: inherit; font-weight: 800; padding: 16px 28px; border-radius: 22px; font-size: 17px; border: 0; cursor: pointer; min-height: 56px; transition: transform .2s ease, box-shadow .2s ease, background .2s; }
.btn:hover:not(:disabled) { transform: translateY(-3px); }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--clay-btn); }
.btn-primary:hover:not(:disabled) { background: var(--accent-deep); }
.btn-soft { background: var(--surface); color: var(--ink); box-shadow: var(--clay-out); }
.btn-white { background: #fff; color: var(--ink); box-shadow: var(--clay-out); }
.btn-small { padding: 10px 18px; font-size: 14px; min-height: 44px; border-radius: 16px; }
.btn-block { width: 100%; }

/* Clay surface + eyebrow tag */
.clay { background: var(--surface); border-radius: 28px; box-shadow: var(--clay-out); }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; margin: 0 0 14px; padding: 8px 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--clay-in); }

/* Page header (subpages) */
.page-head { padding: 64px 0 30px; }
.page-head p.lead { font-size: 18px; max-width: 620px; }

/* Content sections */
.section { padding: 48px 0; }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--surface); border-radius: 26px; box-shadow: var(--clay-out); padding: 26px 24px; transition: transform .3s ease; }
.card:hover { transform: translateY(-4px); }
.card p { margin: 0; font-size: 15.5px; }
.prose { background: var(--surface); border-radius: 28px; box-shadow: var(--clay-out); padding: 34px 32px; }
.prose h2 { margin-top: 26px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 16px; }
.prose ul { padding-left: 22px; color: var(--muted); }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); font-weight: 800; }
.updated { font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 22px; }

/* Forms (contact, review) */
.field { display: grid; gap: 8px; margin-bottom: 18px; font-weight: 700; font-size: 15px; }
.field input, .field textarea, .field select { font: inherit; font-weight: 600; color: var(--ink); width: 100%; background: var(--bg); border: 0; border-radius: 16px; padding: 14px 16px; box-shadow: var(--clay-in); outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { box-shadow: var(--clay-in), 0 0 0 3px rgba(124, 108, 240, .45); }
.form-card { background: var(--surface); border-radius: 28px; box-shadow: var(--clay-out); padding: 30px 28px; }
.msg { font-weight: 800; min-height: 1.4em; margin: 10px 0 0; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--err); }

/* Star rating (review) */
.stars-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.stars-pick input { position: absolute; opacity: 0; pointer-events: none; }
.stars-pick label { font-size: 30px; cursor: pointer; color: #d6d3e0; transition: transform .15s; line-height: 1; }
.stars-pick label:hover { transform: scale(1.15); }
.stars-pick label.on { color: #f59e0b; }
.stars-pick input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 8px; }

/* Contact tiles */
.info-tile { display: flex; gap: 16px; align-items: flex-start; }
.info-tile .ico { width: 52px; height: 52px; border-radius: 18px; background: var(--bg); box-shadow: var(--clay-in); display: grid; place-items: center; font-size: 24px; flex-shrink: 0; }
.info-tile h3 { margin-bottom: 4px; }
.info-tile p { margin: 0; }

/* Footer */
footer { padding: 56px 0 28px; color: var(--muted); margin-top: 40px; }
footer .grid-f { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
footer h4 { color: var(--ink); margin: 0 0 12px; font-size: 15px; }
footer p, footer li { font-size: 14px; line-height: 1.7; margin: 0; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer .fb { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 18px; margin-bottom: 10px; }
footer .fb img { width: 32px; height: 32px; }
footer .bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }

/* Live banner (Firebase: siteBanner) */
.site-banner { position: relative; z-index: 20; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 12px 48px 12px 18px; text-align: center; font-weight: 700; font-size: 15px; color: #fff; background: var(--accent); }
.site-banner.warn { background: #d97706; }
.site-banner.ok { background: var(--ok); }
.site-banner a { color: inherit; font-weight: 800; text-decoration: underline; }
.site-banner .x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.rise { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .nav-links { display: none; }
  footer .grid-f { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .card-grid { grid-template-columns: 1fr; }
  .prose { padding: 26px 22px; }
  .page-head { padding: 44px 0 22px; }
}
@media (max-width: 600px) {
  footer .grid-f { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .rise { opacity: 1; transform: none; }
}
