/* ShubhPatrika site styles — mobile first. */
:root {
  --maroon: #8a1c2b; --maroon-d: #5e0f1c; --gold: #c99a3b; --gold-l: #f2d27f; --cream: #fffaf3; --paper: #ffffff;
  --ink: #2b1d1d; --muted: #6f5b55; --line: #eadccb; --wa: #1fae55; --focus: #2563eb; --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.6 "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif; }
img, svg { max-width: 100%; }
a { color: var(--maroon); }
h1, h2, h3 { font-family: "Rozha One", "Mukta", serif; font-weight: 400; line-height: 1.2; color: var(--maroon-d); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* header + footer */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 250, 243, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--maroon-d); }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo-hi { font: 400 22px/1 "Rozha One", serif; }
.logo-en { font: 600 13px/1 "Mukta", sans-serif; color: var(--muted); letter-spacing: .04em; }
.logo-text { display: flex; flex-direction: column; gap: 3px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: 10px; white-space: nowrap; }
.nav a:hover, .nav a.on { background: #f6e9dc; color: var(--maroon-d); }
@media (max-width: 520px) { .hide-sm { display: none; } .nav a { padding: 8px 7px; font-size: 14px; } .logo-en { display: none; } }
.site-footer { margin-top: 56px; background: #2b0b11; color: #f3e3cf; padding: 36px 0 28px; font-size: 15px; }
.site-footer a { color: #f6d98f; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.foot-grid h3 { color: #f6d98f; font-size: 18px; margin: 0 0 8px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-note { margin-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; color: #cdb7a5; font-size: 14px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  font: 700 16px/1.2 "Mukta", sans-serif; padding: 11px 16px; border-radius: 12px; cursor: pointer; text-decoration: none; min-height: 46px; }
.btn:hover { border-color: var(--gold); }
.btn.big { padding: 13px 18px; font-size: 17px; }
.btn.small { min-height: 38px; padding: 7px 12px; font-size: 15px; }
.btn.primary { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.btn.primary:hover { background: var(--maroon-d); }
.btn.gold { background: linear-gradient(180deg, #f6d98f, #e2b65a); border-color: #d6a548; color: #3d1a07; }
.btn.gold s { opacity: .6; font-weight: 500; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.link-btn { background: none; border: 0; color: var(--maroon); font: 600 15px/1.4 "Mukta", sans-serif; cursor: pointer; padding: 6px 2px; text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; font-size: 14px; }
.icon-btn:hover { color: var(--maroon); border-color: var(--maroon); }
.badge { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: #e7f6ec; color: #17633a; font-weight: 700; font-size: 14px; }

/* home */
.hero { padding: 34px 0 10px; text-align: center; }
.hero h1 { font-size: clamp(32px, 7vw, 54px); margin: 0 0 8px; }
.hero .hi { display: block; font-size: .78em; color: var(--maroon); margin-top: 6px; }
.hero p { max-width: 680px; margin: 0 auto 20px; color: var(--muted); font-size: 18px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin: 18px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.trust li::before { content: "✓ "; color: #17633a; font-weight: 700; }
.sec-title { text-align: center; font-size: clamp(26px, 5vw, 36px); margin: 46px 0 6px; }
.sec-sub { text-align: center; color: var(--muted); margin: 0 auto 20px; max-width: 640px; }
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 230px), 1fr)); }
.card { display: block; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 6px 18px rgba(94, 15, 28, .06); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(94, 15, 28, .12); }
.card-art { position: relative; overflow: hidden; background: #f4ece2; }
.card-art > div { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.card-cap { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 10px 12px; font-weight: 700; }
.card-cap span { color: var(--maroon); font-size: 14px; white-space: nowrap; }
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--maroon); color: #fff; font-weight: 700; margin-bottom: 8px; }
.step h3 { margin: 0 0 4px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); }
.price-box { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.price { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.price b { font-size: 30px; color: var(--maroon-d); }
.price s { color: var(--muted); margin-left: 6px; }
.price ul { padding-left: 18px; margin: 10px 0 0; color: var(--muted); }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; color: var(--muted); }

/* editor */
.ed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 14px 0 120px; }
.ed > * { min-width: 0; }
@media (min-width: 900px) { .ed { grid-template-columns: minmax(0, 1fr) 440px; align-items: start; padding-bottom: 40px; } .ed-preview { position: sticky; top: 74px; order: 2; } .ed-form { order: 1; } }
.ed-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; background: #f3e6d8; border-radius: 12px; padding: 3px; }
.seg a, .seg button { border: 0; background: none; font: 700 15px/1 "Mukta", sans-serif; color: var(--muted); padding: 9px 13px; border-radius: 9px; cursor: pointer; text-decoration: none; }
.seg .on { background: #fff; color: var(--maroon-d); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.ed h1 { font-size: clamp(24px, 5vw, 32px); margin: 12px 0 2px; }
.ed .sub { color: var(--muted); margin: 0 0 12px; font-size: 15px; }
#stage { display: flex; justify-content: center; }
#frame { position: relative; overflow: hidden; border-radius: 8px; box-shadow: 0 10px 30px rgba(43, 11, 17, .22); background: #eee; }
#art { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.strip-h { font-weight: 700; margin: 14px 0 6px; font-size: 15px; color: var(--muted); }
#strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; }
.thumb { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; align-items: center; border: 2px solid transparent; background: none; padding: 3px; border-radius: 10px; cursor: pointer; font: 600 13px/1.2 "Mukta", sans-serif; color: var(--muted); }
.thumb.on { border-color: var(--maroon); color: var(--maroon-d); }
.thumb-art { position: relative; overflow: hidden; border-radius: 6px; display: block; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.thumb-in { position: absolute; left: 0; top: 0; transform-origin: 0 0; display: block; }
.thumb-cap { max-width: 104px; text-align: center; }
.form-tools { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 6px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 5px; }
.field input[type=text], .field input[type=date], .field textarea, .field select, .sec-ed input {
  width: 100%; font: 400 17px/1.4 "Mukta", sans-serif; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.field textarea { resize: vertical; min-height: 48px; }
.field input:focus, .field textarea:focus, .field select:focus, .sec-ed input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(201, 154, 59, .25); }
.inv-pick { margin-bottom: 6px; }
.photo-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.photo-thumb { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.secs { display: grid; gap: 12px; }
.sec-ed { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.sec-head { display: flex; gap: 8px; margin-bottom: 8px; }
.sec-head .sec-title { font-weight: 700; }
.row-ed { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 36px; gap: 6px; margin-bottom: 6px; }
.row-ed input { padding: 8px 10px; font-size: 16px; }
.actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 250, 243, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
.actions .btn { flex: 1 1 200px; max-width: 360px; }
@media (min-width: 900px) { .actions { position: static; background: none; border: 0; box-shadow: none; padding: 14px 0 0; justify-content: flex-start; } }
.restore { text-align: center; margin-top: 10px; }
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(30, 10, 14, .55); display: grid; place-items: center; padding: 16px; }
.overlay[hidden] { display: none; }
.spin-box { background: #fff; border-radius: 16px; padding: 22px 26px; display: flex; gap: 14px; align-items: center; font-weight: 700; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 4px solid #f0e2d2; border-top-color: var(--maroon); animation: sp 0.9s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.dialog { background: #fff; border-radius: 18px; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 18px; position: relative; }
.dialog h2 { margin: 0 34px 12px 0; font-size: 24px; }
.dialog-close { position: absolute; right: 12px; top: 12px; }
.ready-img { display: block; width: auto; max-width: 100%; max-height: 46vh; margin: 0 auto 14px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.ready-actions { display: grid; gap: 10px; }
.upsell { margin-top: 16px; padding: 14px; border-radius: 14px; background: #fff6e3; border: 1px solid #f0d9a6; text-align: center; }
.upsell strong { display: block; font-size: 17px; color: var(--maroon-d); }
.upsell p { margin: 6px 0 12px; color: var(--muted); font-size: 15px; }
.upsell .btn { width: 100%; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60; background: #2b0b11; color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600;
  width: max-content; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.toast[hidden] { display: none; }

/* content pages */
.prose { max-width: 760px; margin: 0 auto; padding: 24px 16px 0; }
.prose h1 { font-size: clamp(30px, 6vw, 44px); margin: 10px 0 10px; }
.prose h2 { font-size: 27px; margin: 36px 0 10px; }
.prose h3 { font-size: 21px; margin: 24px 0 6px; }
.prose p, .prose li { font-size: 18px; }
.prose .lead { font-size: 19px; color: var(--muted); }
.sample { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 12px; padding: 14px 18px; margin: 14px 0; white-space: pre-line; font-size: 18px; }
.sample .tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--maroon); background: #fbeee0; padding: 2px 8px; border-radius: 999px; margin-bottom: 6px; white-space: normal; }
.cta-box { margin: 30px 0; padding: 22px; border-radius: 16px; background: linear-gradient(135deg, #8a1c2b, #5e0f1c); color: #fff3df; text-align: center; }
.cta-box h2 { color: #f6d98f; margin: 0 0 6px; }
.cta-box p { margin: 0 0 14px; }
.cta-box .btn { background: #f6d98f; border-color: #f6d98f; color: #3d1a07; }
.note-box { background: #f6efe6; border-radius: 12px; padding: 12px 16px; color: var(--muted); font-size: 16px; }
table.simple { width: 100%; border-collapse: collapse; background: #fff; margin: 12px 0; font-size: 17px; }
table.simple th, table.simple td { text-align: left; border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
table.simple th { background: #fbf1e5; }
.crumbs { font-size: 14px; color: var(--muted); margin-top: 8px; }
.crumbs a { color: var(--muted); }
