/* Shadi Biodata Maker — site styles */
:root {
  --ink: #231915;
  --ink-2: #5b4a40;
  --ink-3: #8b7a6f;
  --paper: #fbf7f0;
  --card: #ffffff;
  --line: #e8ddd0;
  --line-2: #d9cab8;
  --maroon: #7b1e22;
  --maroon-d: #5f1418;
  --gold: #d9a12b;
  --gold-soft: #fbefd3;
  --green: #2f7a4b;
  --red: #b3261e;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(35, 25, 21, .06), 0 4px 14px rgba(35, 25, 21, .06);
  --serif: 'Playfair Display', 'Tiro Devanagari Hindi', Georgia, serif;
  --sans: 'Source Sans 3', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--maroon); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.hidden { display: none !important; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .72em 1.3em; border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-d); }
.btn-gold { background: var(--gold); color: #2a1a07; }
.btn-gold:hover { background: #c98f18; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); background: #fff; }
.btn-sm { padding: .45em .85em; font-size: .9rem; }
.btn-lg { padding: .9em 1.6em; font-size: 1.05rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--maroon); cursor: pointer; font-weight: 600; }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 247, 240, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }
.logo svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--maroon); }
.user-slot { display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--line-2); border-radius: 40px; background: #fff; cursor: pointer; font-size: .9rem; font-weight: 600; }
.user-chip .av { width: 28px; height: 28px; border-radius: 50%; background: var(--maroon); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 190px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; }
.menu-list a, .menu-list button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; color: var(--ink); text-decoration: none; border-radius: 4px; cursor: pointer; font-size: .95rem; }
.menu-list a:hover, .menu-list button:hover { background: var(--paper); }
@media (max-width: 820px) { .nav { display: none; } .site-header .wrap { justify-content: space-between; } }

/* ---- hero ---- */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--maroon); margin-bottom: 14px; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; color: var(--ink-2); font-size: .95rem; }
.hero-points li::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--gold); vertical-align: middle; }
.hero-stack { position: relative; height: 470px; }
.hero-stack .thumb { position: absolute; width: 270px; box-shadow: 0 10px 30px rgba(35, 25, 21, .18); }
.hero-stack .thumb:nth-child(1) { left: 4%; top: 40px; transform: rotate(-6deg); }
.hero-stack .thumb:nth-child(2) { right: 4%; top: 40px; transform: rotate(5deg); }
.hero-stack .thumb:nth-child(3) { left: 50%; top: 0; transform: translateX(-50%); z-index: 2; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-stack { height: 340px; }
  .hero-stack .thumb { width: 190px; }
}

/* ---- sections ---- */
.band { padding: 64px 0; }
.band-white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section-head p { margin: 0; max-width: 36em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { padding-top: 18px; border-top: 2px solid var(--line-2); }
.step::before { counter-increment: step; content: '0' counter(step); display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--gold); margin-bottom: 6px; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---- template gallery ---- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 40px; background: #fff; cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 26px 22px; }
.tcard { display: block; text-decoration: none; color: var(--ink); }
.tcard .thumb { transition: transform .2s, box-shadow .2s; box-shadow: var(--shadow); }
.tcard:hover .thumb { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(35, 25, 21, .14); }
.tcard-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-weight: 600; }
.tcard-meta small { font-weight: 600; color: var(--ink-3); text-transform: capitalize; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 3px; background: var(--gold-soft); color: #7a5208; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.thumb { position: relative; width: 100%; aspect-ratio: 794 / 1123; overflow: hidden; background: #fff; border-radius: 3px; }
.thumb-scale { position: absolute; top: 0; left: 0; transform-origin: 0 0; pointer-events: none; }

/* ---- pricing ---- */
.price-box { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 34px 38px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; }
.price-box ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); columns: 2; column-gap: 32px; }
.price-box li { margin-bottom: 6px; }
.price { text-align: center; }
.price .amt { font-family: var(--serif); font-size: 3rem; font-weight: 700; line-height: 1; }
.price s { color: var(--ink-3); margin-right: 6px; }
.price .per { display: block; color: var(--ink-3); font-size: .9rem; margin: 6px 0 14px; }
@media (max-width: 760px) { .price-box { grid-template-columns: 1fr; } .price-box ul { columns: 1; } }

/* ---- faq ---- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--maroon); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* ---- footer ---- */
.site-footer { padding: 40px 0 30px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--maroon); }

/* ---- forms ---- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .85rem; font-weight: 700; color: var(--ink-2); margin-bottom: 5px; }
.input, select.input, textarea.input {
  width: 100%; padding: .6em .75em; border: 1px solid var(--line-2); border-radius: 5px; background: #fff; outline: none;
}
.input:focus { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(123, 30, 34, .12); }
textarea.input { resize: vertical; min-height: 2.6em; }

/* ---- modal ---- */
.modal-bg { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(25, 15, 10, .55); }
.modal { position: relative; width: 100%; max-width: 410px; max-height: calc(100vh - 32px); overflow: auto; padding: 30px 28px 26px; background: #fff; border-radius: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.modal h3 { font-size: 1.45rem; margin-bottom: .25em; }
.modal-x { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--ink-3); cursor: pointer; }
.btn-google { width: 100%; background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-google:hover { background: var(--paper); }
.btn-google svg { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink-3); font-size: .85rem; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.phone-row { display: flex; }
.phone-row .cc { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-right: 0; border-radius: 5px 0 0 5px; background: var(--paper); font-weight: 600; }
.phone-row .input { border-radius: 0 5px 5px 0; }
.form-error { color: var(--red); font-size: .9rem; min-height: 1.3em; margin: 6px 0 0; }
.demo-note { margin-top: 14px; padding: 8px 10px; background: var(--gold-soft); border-radius: 5px; font-size: .82rem; color: #6d4a07; }
.spinner { width: 34px; height: 34px; margin: 8px auto 14px; border: 3px solid var(--line); border-top-color: var(--maroon); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- toast ---- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translateX(-50%); padding: 10px 18px; border-radius: 6px; background: var(--ink); color: #fff; font-size: .95rem; box-shadow: var(--shadow); }
.toast.err { background: var(--red); }

/* ---- simple content pages ---- */
.page { max-width: 780px; padding: 50px 20px 70px; }
.page h1 { font-size: 2.2rem; }
.page h2 { font-size: 1.3rem; margin-top: 1.6em; }
.page p, .page li { color: var(--ink-2); }
@media (max-width: 420px) { .logo { font-size: 1.08rem; gap: 8px; } .logo svg { width: 26px; height: 26px; } }

/* username & password login (admin / test account) */
.lg-pw { margin-top: 16px; text-align: center; }
.lg-pw summary { cursor: pointer; list-style: none; font-size: .85rem; color: var(--ink-3); }
.lg-pw summary::-webkit-details-marker { display: none; }
.lg-pw summary:hover { color: var(--maroon); }
.lg-pw form { margin-top: 12px; text-align: left; }
