/* InviteKatha storefront: tokens from the brand palette (ivory, sindoor, antique gold, ink, sand) */
:root {
  --ivory: #F7F1E7;
  --sand: #E7D7C4;
  --sindoor: #8F2635;
  --sindoor-deep: #6E1B28;
  --gold: #B99A5D;
  --gold-text: #7A6232; /* gold darkened for 4.5:1 text on ivory */
  --ink: #332720;
  --ink-soft: #5E4F45;
  --card: #FFFBF4;
  --line: #DCCAB2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(51,39,32,.06), 0 12px 32px -12px rgba(51,39,32,.18);
  --serif: "Cormorant", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --bn: "Noto Serif Bengali", "Cormorant", serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 16px/1.65 var(--sans); overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sindoor); outline-offset: 3px; border-radius: 6px; }
.bn { font-family: var(--bn); }
.deva { font-family: "Noto Serif Devanagari", var(--serif); }
.taml { font-family: "Noto Serif Tamil", var(--serif); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.eyebrow { font: 600 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(34px, 5vw, 52px); }
h3 { font-size: 26px; }
p { margin: 0; }
.lede { font-size: 18px; color: var(--ink-soft); max-width: 60ch; }
section { padding: clamp(72px, 10vw, 120px) 0; }
.section-head { text-align: center; display: grid; justify-items: center; gap: 14px; margin-bottom: 48px; }
.section-head .lede { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 14px/1 var(--sans); letter-spacing: .04em; text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--sindoor); color: #fff; }
.btn-primary:hover { background: var(--sindoor-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,241,231,.92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; color: var(--sindoor); }
.brand-name { font: 600 24px/1 var(--serif); }
.brand-name small { display: block; font: 500 10px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 0; }
.nav-links a:hover { color: var(--sindoor); }
.nav .btn { min-height: 42px; padding: 0 20px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 110px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 80px); letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--sindoor); font-weight: 500; }
.hero .bn-line { font: 500 19px/1.6 var(--serif); color: var(--gold-text); margin-bottom: 16px; }
.hero .lede { margin: 22px 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 13px; color: var(--ink-soft); list-style: none; padding: 0; }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 16px; height: 16px; color: var(--gold-text); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; } }

/* Phone mockup */
.phone-stage { position: relative; display: grid; place-items: center; }
.phone-stage .alpana-bg { position: absolute; width: min(520px, 110%); color: var(--gold); opacity: .35; animation: spin 120s linear infinite; }
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9/19; border-radius: 42px; padding: 10px;
  background: #1d1714; box-shadow: 0 40px 80px -30px rgba(51,39,32,.55);
}
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 33px; background: var(--ivory); }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; translate: -50% 0; width: 84px; height: 22px; border-radius: 12px; background: #1d1714; z-index: 2; }
.phone-caption { margin-top: 18px; font-size: 13px; color: var(--ink-soft); text-align: center; }
@keyframes spin { to { rotate: 360deg; } }

/* Divider motif */
.motif { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); }
.motif::before, .motif::after { content: ""; height: 1px; width: 80px; background: currentColor; opacity: .6; }
.motif svg { width: 22px; height: 22px; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font: 500 14px var(--sans); color: var(--ink); cursor: pointer; transition: all .2s var(--ease); }
.chip[aria-pressed="true"], .chip:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 340px)); justify-content: center; gap: 20px; }
@media (max-width: 1100px) { .gallery { grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }
.design { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.design:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.design[hidden] { display: none; }
.thumb { aspect-ratio: 1/1; display: grid; place-items: center; position: relative; overflow: hidden; }
.thumb .mini { width: 46%; aspect-ratio: 9/16; border-radius: 12px; display: grid; place-items: center; text-align: center; padding: 12px; box-shadow: 0 18px 30px -16px rgba(0,0,0,.45); }
.thumb .mini b { font: 600 20px/1.1 var(--serif); display: block; }
.thumb .mini span { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; display: block; margin-top: 6px; }
.thumb .mini .bn { font-size: 13px; margin-bottom: 6px; }
.thumb .badge { position: absolute; top: 12px; left: 12px; background: rgba(255,251,244,.92); color: var(--ink); font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.design-body { padding: 22px; display: grid; gap: 8px; flex: 1; }
.design-body .palette { display: flex; gap: 6px; margin-top: 4px; }
.design-body .palette i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); }
.design-body p { font-size: 14px; color: var(--ink-soft); }
.design-actions { display: flex; gap: 10px; padding: 0 22px 22px; flex-wrap: wrap; }
.design-actions .btn { min-height: 44px; padding: 0 14px; font-size: 13px; flex: 1; white-space: nowrap; }
.soon { font-size: 12px; color: var(--ink-soft); padding: 0 22px 22px; }

/* Experience */
.experience { background: var(--ink); color: var(--ivory); }
.experience .eyebrow { color: var(--gold); }
.experience .lede { color: #CDBFAF; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(185,154,93,.25); border: 1px solid rgba(185,154,93,.25); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--ink); padding: 32px 28px; display: grid; gap: 10px; align-content: start; }
.feature svg { width: 28px; height: 28px; color: var(--gold); }
.feature h3 { font-size: 24px; color: var(--ivory); }
.feature p { font-size: 15px; color: #CDBFAF; }
.compare { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }
.compare > div { border: 1px solid rgba(185,154,93,.3); border-radius: var(--radius); padding: 26px; }
.compare h3 { font-size: 22px; margin-bottom: 12px; }
.compare ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; color: #CDBFAF; }
.compare li { display: flex; gap: 10px; }
.compare svg { width: 18px; height: 18px; flex: none; margin-top: 4px; }
.compare .us { background: rgba(185,154,93,.08); border-color: var(--gold); }
.compare .us svg { color: var(--gold); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; padding-top: 64px; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font: 500 48px/1 var(--serif); color: var(--gold); }
.steps h3 { font-size: 24px; margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--ink-soft); }
.reassure { margin-top: 40px; text-align: center; font: italic 500 22px/1.4 var(--serif); color: var(--sindoor); }

/* Pricing */
.pricing { background: linear-gradient(var(--sand), var(--ivory)); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan.featured { border: 2px solid var(--sindoor); box-shadow: var(--shadow); }
@media (min-width: 961px) { .plan.featured { transform: translateY(-12px); } }
.plan .ribbon { position: absolute; top: -14px; left: 50%; translate: -50% 0; background: var(--sindoor); color: #fff; font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 30px; }
.plan .for { font-size: 14px; color: var(--ink-soft); }
.price { font: 600 44px/1 var(--serif); }
.price small { font: 500 13px var(--sans); color: var(--ink-soft); margin-left: 6px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--sindoor); }
.plan .meta { display: flex; justify-content: space-between; font-size: 13px; border-top: 1px solid var(--line); padding-top: 14px; color: var(--ink-soft); }
.plan .meta b { color: var(--ink); font-weight: 600; }
.addons { margin-top: 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.addons h3 { font-size: 22px; margin-bottom: 14px; }
.addons dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 28px; margin: 0; font-size: 14px; }
@media (max-width: 760px) { .addons dl { grid-template-columns: 1fr; } }
.addons dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.addons dd { margin: 0; font-weight: 600; white-space: nowrap; }
.fine { margin-top: 18px; font-size: 13px; color: var(--ink-soft); text-align: center; }

/* FAQ */
.faq { max-width: 780px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font: 600 22px/1.3 var(--serif); min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; transition: rotate .2s var(--ease); color: var(--sindoor); }
.faq details[open] summary svg { rotate: 45deg; }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); }

/* Enquiry */
.enquire { background: var(--sindoor); color: #fff; position: relative; overflow: hidden; }
.enquire .alpana-bg { position: absolute; right: -180px; top: -120px; width: 560px; color: #fff; opacity: .08; }
.enquire-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; position: relative; }
@media (max-width: 860px) { .enquire-grid { grid-template-columns: 1fr; } }
.enquire .eyebrow { color: #F1D9A8; }
.enquire h2 { color: #fff; }
.enquire .lede { color: #F5E3DA; margin-top: 18px; }
.enquire ol { margin: 28px 0 0; padding-left: 20px; display: grid; gap: 8px; color: #F5E3DA; }
.form { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.field { display: grid; gap: 6px; }
.field label { font: 600 13px var(--sans); }
.field .hint { font-size: 12px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: 400 16px var(--sans); color: var(--ink); background: #fff;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sindoor); outline-offset: 0; border-color: var(--sindoor); }
.field[data-invalid] input, .field[data-invalid] select { border-color: #B42318; }
.field .error { font-size: 13px; color: #B42318; display: none; }
.field[data-invalid] .error { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.form .btn { width: 100%; }
.form .note { font-size: 12px; color: var(--ink-soft); text-align: center; }

/* Footer */
.site-footer { background: var(--ink); color: #CDBFAF; padding: 56px 0 32px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer .brand-name { color: var(--ivory); }
.site-footer h4 { font: 600 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ivory); text-decoration: underline; }
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(205,191,175,.2); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #1F7A4D; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); }
.wa-float svg { width: 28px; height: 28px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone-stage .alpana-bg { animation: none; }
  * { transition-duration: 0s !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }

/* Live preview of a real invitation, scaled down inside the gallery card */
.live-frame { height: 88%; aspect-ratio: 9/16; border-radius: 16px; overflow: hidden; position: relative; border: 4px solid #1d1714; box-shadow: 0 18px 30px -16px rgba(0,0,0,.45); background: #fff; }
.live-frame .frame-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live-frame iframe { position: absolute; top: 0; left: 0; width: 360px; height: 640px; border: 0; transform-origin: 0 0; transform: scale(var(--s, .35)); pointer-events: none; }

/* Hero picture (images/hero.webp); the alpana shows until the picture is added */
.hero-art { margin: 0; position: relative; display: grid; place-items: center; aspect-ratio: 4/5; border-radius: 200px 200px 18px 18px; overflow: hidden; background: var(--sand); }
.hero-art .alpana-bg { position: absolute; width: 90%; color: var(--gold); opacity: .45; }
.hero-art img { position: relative; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .hero-art { max-width: 420px; width: 100%; margin-inline: auto; } }
.sample-note { display: inline-block; margin: 14px auto 0; padding: 6px 14px; border: 1px dashed var(--gold); border-radius: 999px; font: 600 13px var(--sans); color: var(--gold-text); background: var(--card); }
.lead-compare { padding-bottom: clamp(96px, 12vw, 150px); }
.lead-compare .compare { margin-top: 0; }
.lead-compare .section-head { margin-bottom: 32px; }
