/* Saanjh Weddings — tokens */
:root {
  --plum: #241428;        /* night */
  --plum-2: #3a1f3f;      /* dusk */
  --marigold: #F2A93B;
  --marigold-deep: #E0812E;
  --blush: #F6D7CC;
  --ivory: #FBF1E6;
  --ink: #2a1a2e;
  --ink-soft: #6b5a6e;
  --wa: #25D366;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Karla', system-ui, sans-serif;
  --wrap: 1120px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--ivory); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin: 0 auto; }

h1, h2, h3, .invite-names, .tier i, blockquote p { font-family: var(--display); font-weight: 300; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.1; max-width: 22ch; }
h1 em, h2 em { font-style: italic; font-weight: 300; color: var(--marigold); }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--marigold-deep); margin-bottom: 18px; }
.lede { font-size: 1.15rem; max-width: 46ch; color: var(--ink-soft); }

/* Header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; color: var(--ivory); mix-blend-mode: normal; }
.brand { font-family: var(--display); font-size: 1.6rem; font-weight: 600; }
.brand span { color: var(--marigold); }
.menu { display: flex; gap: 22px; align-items: center; font-weight: 500; font-size: 0.95rem; }
.menu a { opacity: .85; }
.menu a:hover { opacity: 1; }
.menu-cta { background: var(--wa); color: #fff; padding: 9px 16px; border-radius: 999px; opacity: 1 !important; }
@media (max-width: 720px) { .menu a:not(.menu-cta) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 12px 30px -10px rgba(37,211,102,.6); }
.btn-wa.small { padding: 11px 18px; font-size: .9rem; }
.btn-ghost { color: var(--ivory); border: 1px solid rgba(251,241,230,.4); }
.btn-ghost:hover { border-color: var(--marigold); color: var(--marigold); }

/* HERO */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; background: radial-gradient(120% 80% at 50% 0%, var(--plum-2) 0%, var(--plum) 60%, #170b1a 100%); color: var(--ivory); overflow: hidden; padding: 140px 0 90px; }
.mandap { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.hero.has-3d .scene .garland { display: none; }
.hero.has-3d::after { height: 55%; }
@media (max-width: 960px) { .hero.has-3d::after { height: 68%; } }
.scene { position: absolute; inset: 0; perspective: 900px; transform-style: preserve-3d; pointer-events: none; }
.layer { position: absolute; inset: 0; will-change: transform; transition: transform .15s linear; }
.garland { position: absolute; width: 104%; left: -2%; top: -90px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.45)); }
.g1 { opacity: .35; transform: scale(1.12); top: -120px; }
.g2 { opacity: .7; top: -70px; }
.g3 { top: -40px; }
.l-glow { background: radial-gradient(40% 30% at 70% 70%, rgba(242,169,59,.22), transparent 70%); }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; z-index: 1; height: 62%; background: linear-gradient(to top, rgba(23,11,26,.92) 30%, rgba(23,11,26,0)); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; width: min(var(--wrap), 100% - 40px); margin: 0 auto; max-width: 760px; margin-left: max(20px, calc((100% - var(--wrap)) / 2)); }
.hero .eyebrow { color: var(--marigold); }
.hero .lede { color: rgba(251,241,230,.78); margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: rgba(251,241,230,.55); }
.scroll-hint { position: absolute; right: 28px; bottom: 28px; width: 1px; height: 64px; background: rgba(251,241,230,.2); overflow: hidden; }
.scroll-hint span { position: absolute; inset: 0; background: var(--marigold); animation: drop 1.8s var(--ease) infinite; }
@keyframes drop { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* Sections */
section { padding: 110px 0; }
.work { background: var(--ivory); }
.plan { background: var(--blush); }
.how { background: var(--ivory); }
.packages { background: var(--plum); color: var(--ivory); }
.quote { background: var(--marigold); color: var(--plum); padding: 90px 0; }
.contact { background: var(--ivory); }

/* Gallery (photo placeholders; swap .shot-img backgrounds for real photos) */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.shot { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; transform-style: preserve-3d; transition: transform .35s var(--ease), box-shadow .35s var(--ease); box-shadow: 0 20px 40px -24px rgba(42,26,46,.5); background: var(--plum); }
.shot:hover { box-shadow: 0 40px 60px -28px rgba(42,26,46,.6); }
.shot-img { position: absolute; inset: 0; background-size: cover; background-position: center; transform: translateZ(20px) scale(1.06); }
.s1 .shot-img { background: radial-gradient(circle at 30% 20%, #f7c56e, transparent 40%), linear-gradient(160deg, #7b2d4a, #2c1230); }
.s2 .shot-img { background: radial-gradient(circle at 70% 80%, #f2a93b, transparent 45%), linear-gradient(200deg, #3a1f3f, #b8473f); }
.s3 .shot-img { background: radial-gradient(circle at 50% 30%, #fbd98a, transparent 40%), linear-gradient(180deg, #1f6b8a, #2a1a2e); }
.s4 .shot-img { background: radial-gradient(circle at 20% 70%, #e0812e, transparent 45%), linear-gradient(150deg, #5a1f3a, #1a0d1e); }
.s5 .shot-img { background: radial-gradient(circle at 60% 40%, #f6d7cc, transparent 40%), linear-gradient(210deg, #6a4a2a, #2a1a2e); }
.s6 .shot-img { background: radial-gradient(circle at 40% 60%, #f2a93b, transparent 40%), linear-gradient(170deg, #2f5a4a, #170b1a); }
.shot-img::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23fbf1e6' stroke-opacity='.14'%3E%3Ccircle cx='60' cy='60' r='40'/%3E%3Ccircle cx='60' cy='60' r='26'/%3E%3Cpath d='M60 20v80M20 60h80M32 32l56 56M88 32L32 88'/%3E%3C/g%3E%3C/svg%3E") center/120px; opacity: .9; }
.shot-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 20px; background: linear-gradient(to top, rgba(23,11,26,.85), transparent); color: var(--ivory); transform: translateZ(40px); }
.shot-meta b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.35rem; }
.shot-meta span { font-size: .85rem; opacity: .8; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.card { background: var(--ivory); border-radius: 18px; padding: 30px 28px; transform-style: preserve-3d; transition: transform .35s var(--ease), box-shadow .35s var(--ease); box-shadow: 0 1px 0 rgba(42,26,46,.06); }
.card:hover { box-shadow: 0 30px 50px -30px rgba(42,26,46,.45); }
.card h3 { font-size: 1.6rem; font-weight: 400; margin-bottom: 10px; transform: translateZ(24px); }
.card p { color: var(--ink-soft); transform: translateZ(12px); }

/* Steps: a true sequence, so numbered */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 10px; counter-reset: none; }
.steps li { position: relative; padding-top: 18px; border-top: 1px solid rgba(42,26,46,.15); }
.steps span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--plum); color: var(--marigold); font-family: var(--display); font-weight: 600; margin-bottom: 14px; }
.steps b { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.steps p { color: var(--ink-soft); font-size: .95rem; }

/* Packages */
.packages h2 em { color: var(--marigold); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.tier { background: rgba(251,241,230,.06); border: 1px solid rgba(251,241,230,.14); border-radius: 18px; padding: 32px 28px; transform-style: preserve-3d; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tier.featured { background: var(--ivory); color: var(--ink); border-color: transparent; }
.tier b { display: block; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--marigold-deep); }
.tier i { display: block; font-style: normal; font-size: 2.2rem; margin: 10px 0 12px; transform: translateZ(20px); }
.tier p { opacity: .85; min-height: 3.2em; }
.tier.featured p { color: var(--ink-soft); }
.tier a { display: inline-block; margin-top: 22px; font-weight: 700; border-bottom: 2px solid var(--marigold); padding-bottom: 2px; }
.fine { margin-top: 26px; font-size: .9rem; opacity: .7; max-width: 60ch; }

/* Quote */
blockquote { max-width: 26ch; margin: 0 auto; text-align: center; }
blockquote p { font-size: clamp(1.6rem, 3.6vw, 2.8rem); line-height: 1.2; font-style: italic; }
blockquote footer { margin-top: 20px; font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.contact-copy .lede { margin-top: 20px; }
.contact-list { margin-top: 32px; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; align-items: baseline; }
.contact-list b { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--marigold-deep); }
.contact-list a { font-weight: 700; border-bottom: 2px solid var(--marigold); }

/* The invitation: flips to reveal the WhatsApp QR */
.invite { all: unset; cursor: pointer; display: block; width: min(380px, 100%); aspect-ratio: 5 / 7; margin: 0 auto; perspective: 1400px; }
.invite-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.invite.is-open .invite-inner, .invite:hover .invite-inner { transform: rotateY(180deg); }
.invite-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; }
.invite-face.front { background: var(--plum); color: var(--ivory); box-shadow: 0 40px 70px -30px rgba(36,20,40,.7), inset 0 0 0 1px rgba(242,169,59,.35), inset 0 0 0 8px var(--plum), inset 0 0 0 9px rgba(242,169,59,.35); }
.invite-face.back { background: var(--ivory); color: var(--ink); transform: rotateY(180deg); box-shadow: 0 40px 70px -30px rgba(36,20,40,.5), inset 0 0 0 1px rgba(224,129,46,.4); gap: 14px; }
.invite-top { font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--marigold); }
.invite-names { font-size: 1.9rem; line-height: 1.15; margin: 18px 0; font-style: italic; }
.invite-rule { width: 60px; height: 1px; background: var(--marigold); }
.invite-bottom { margin-top: 18px; font-size: .8rem; opacity: .6; letter-spacing: .1em; text-transform: uppercase; }
.invite-face.back img { width: 200px; height: 200px; border-radius: 10px; }
.invite-scan { font-weight: 700; font-size: .95rem; }

/* Footer */
.foot { background: var(--plum); color: rgba(251,241,230,.7); padding: 28px 0; font-size: .9rem; }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.foot a { border-bottom: 1px solid var(--marigold); color: var(--ivory); }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 58px; height: 58px; border-radius: 999px; background: var(--wa); display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(37,211,102,.7); animation: pulse 2.4s ease-in-out infinite; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes pulse { 0%, 100% { box-shadow: 0 14px 30px -8px rgba(37,211,102,.7); } 50% { box-shadow: 0 14px 30px -8px rgba(37,211,102,.7), 0 0 0 12px rgba(37,211,102,.18); } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .gallery, .cards, .tiers { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 600px) {
  section { padding: 80px 0; }
  .gallery, .cards, .tiers, .steps { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 80px; }
  .garland { width: 200%; left: -50%; top: -30px; }
  .g1 { top: -50px; } .g2 { top: -40px; } .g3 { top: -20px; }
  .scroll-hint { display: none; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .layer, .shot, .card, .tier, .invite-inner, .btn { transition: none !important; }
  .scroll-hint span, .wa-float { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
