/* =========================================================
   Shubh Vivah — wedding website styles
   ========================================================= */
:root {
  --maroon: #6b0f1a;
  --maroon-2: #8e1b2b;
  --maroon-dark: #3d0610;
  --red: #b3192b;
  --saffron: #f28c18;
  --marigold: #ffb22c;
  --gold: #d4a437;
  --gold-light: #f3d68b;
  --gold-grad: linear-gradient(135deg, #b8862b 0%, #f6e3a1 45%, #c99a3a 70%, #f3d68b 100%);
  --cream: #fff8ec;
  --cream-2: #fbefd9;
  --ink: #3a1d12;
  --muted: #7a5a48;
  --green: #2f6b2a;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(107, 15, 26, .12);
  --shadow-lg: 0 20px 50px rgba(61, 6, 16, .22);
  --f-head: 'Cinzel', serif;
  --f-script: 'Great Vibes', cursive;
  --f-body: 'Poppins', system-ui, sans-serif;
  --f-serif: 'Cormorant Garamond', serif;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.2; }
p { margin: 0 0 .8em; }
button { font: inherit; cursor: pointer; }
svg { flex-shrink: 0; }

/* ---------- Language switching ---------- */
body.lang-en .l-hi, body.lang-hi .l-en { display: none !important; }
body.lang-hi { font-family: 'Mukta', var(--f-body); }
body.lang-hi h2, body.lang-hi h3, body.lang-hi .script,
body.lang-hi .couple-names .name, body.lang-hi .footer-thanks { font-family: 'Yatra One', 'Mukta', serif; letter-spacing: 0; }
body.lang-hi .couple-names .name { font-size: clamp(2.6rem, 9vw, 5.2rem); }

/* ---------- Layout ---------- */
.container { width: min(1180px, 100% - 32px); margin-inline: auto; position: relative; z-index: 1; }
.container.narrow { width: min(820px, 100% - 32px); }
.section { padding: clamp(64px, 10vw, 110px) 0; position: relative; overflow: hidden; }
.pattern {
  background-color: var(--cream-2);
  background-image:
    radial-gradient(circle at 0 0, rgba(212, 164, 55, .14) 2px, transparent 2.5px),
    radial-gradient(circle at 14px 14px, rgba(179, 25, 43, .08) 2px, transparent 2.5px);
  background-size: 28px 28px;
}

.section-head { text-align: center; margin-bottom: clamp(36px, 6vw, 56px); }
.section-head h2 {
  font-family: var(--f-head);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--maroon);
  letter-spacing: .04em;
}
.section-sub { color: var(--muted); font-family: var(--f-serif); font-size: 1.2rem; font-style: italic; margin-top: 4px; }
body.lang-hi .section-sub { font-family: 'Mukta'; font-style: normal; font-size: 1.05rem; }

.divider { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); margin: 14px auto 8px; }
.divider span { height: 1px; width: min(90px, 20vw); background: linear-gradient(90deg, transparent, var(--gold)); }
.divider span:last-child { transform: scaleX(-1); }
.divider svg { width: 40px; height: 20px; }

.script { font-family: var(--f-script); font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; border: 0;
  font-weight: 500; font-size: .95rem; letter-spacing: .03em;
  text-decoration: none; transition: transform .25s, box-shadow .25s, background .25s, color .25s;
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold-grad); background-size: 200% 200%; color: var(--maroon-dark); box-shadow: 0 6px 20px rgba(212, 164, 55, .45); animation: shimmer 6s ease infinite; }
.btn-gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .7s;
}
.btn-gold:hover::after { transform: translateX(100%); }
.btn-outline { border: 1.5px solid var(--gold-light); color: var(--gold-light); background: rgba(0,0,0,.15); }
.btn-outline:hover { background: var(--gold-light); color: var(--maroon-dark); }
.btn-maroon { background: var(--maroon); color: var(--cream); box-shadow: 0 6px 18px rgba(107,15,26,.3); }
.btn-maroon:hover { background: var(--maroon-2); }
.btn-outline-dark { border: 1.5px solid var(--maroon); color: var(--maroon); background: transparent; }
.btn-outline-dark:hover { background: var(--maroon); color: var(--cream); }
.btn-block { width: 100%; }
.chip {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px;
  font-size: .8rem; font-weight: 500; text-decoration: none;
  border: 1px solid currentColor; background: transparent; color: inherit; transition: .2s;
}
.chip:hover { background: var(--maroon); color: var(--cream); border-color: var(--maroon); }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: radial-gradient(circle at center, var(--maroon-2), var(--maroon-dark));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity .8s, visibility .8s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.gate { display: none; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: 0 16px; }
#preloader.gated .gate { display: flex; animation: slideUp .7s ease both; }
#preloader.gated .preloader-text { animation: none; }
.gate-names {
  margin: 0; font-family: var(--f-script); font-size: clamp(2.6rem, 10vw, 4rem); line-height: 1.2; padding: 0 .4em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gate-names span { font-size: .7em; }
body.lang-hi .gate-names { font-family: 'Yatra One'; font-size: clamp(2rem, 8vw, 3rem); }
#gateBtn { padding: 15px 38px; font-size: 1rem; }
#gateBtn::before { content: "🪔"; }
.preloader-text { color: var(--gold-light); font-family: var(--f-head); font-size: clamp(1.1rem, 4vw, 1.6rem); letter-spacing: .08em; animation: fadePulse 2s ease-in-out infinite; }
body.lang-hi .preloader-text { font-family: 'Yatra One'; }

.diya { position: relative; width: 90px; height: 80px; }
.diya-base {
  position: absolute; bottom: 0; left: 0; width: 90px; height: 38px;
  background: linear-gradient(180deg, #e2a245, #8d4a12);
  border-radius: 0 0 50px 50px / 0 0 38px 38px;
  box-shadow: inset 0 4px 0 rgba(255,255,255,.25);
}
.diya-base::before { content: ""; position: absolute; top: -6px; left: -4px; right: -4px; height: 12px; border-radius: 50%; background: #c4752a; }
.flame {
  position: absolute; left: 50%; bottom: 38px; width: 18px; height: 34px;
  margin-left: -9px; border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 80%, #fff7c2 0%, #ffd23f 35%, #ff8a00 70%, transparent 75%);
  filter: drop-shadow(0 0 14px #ffb300) drop-shadow(0 0 30px #ff7b00);
  transform-origin: 50% 100%;
  animation: flicker 1.4s ease-in-out infinite alternate;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
  background: var(--maroon-dark);
  transition: background .35s, box-shadow .35s, transform .35s;
}
.nav.scrolled { background: rgba(61, 6, 16, .94); backdrop-filter: blur(8px); box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.nav-logo {
  font-family: var(--f-script); font-size: 2rem; text-decoration: none;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-logo span { font-size: 1.3rem; margin: 0 3px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--cream); text-decoration: none; font-size: .86rem; font-weight: 400; letter-spacing: .03em;
  padding: 8px 10px; border-radius: 8px; position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 1.5px;
  background: var(--gold-light); transform: scaleX(0); transition: transform .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links .nav-cta { background: var(--gold-grad); color: var(--maroon-dark); font-weight: 600; padding: 8px 18px; border-radius: 999px; margin-left: 6px; }
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { color: var(--maroon-dark); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  position: relative; display: flex; align-items: center;
  width: 78px; height: 34px; padding: 0; border-radius: 999px;
  border: 1.5px solid var(--gold); background: rgba(0,0,0,.25);
}
.lang-toggle .opt { flex: 1; z-index: 1; font-size: .8rem; font-weight: 600; color: var(--gold-light); transition: color .3s; }
.lang-toggle .opt-hi { font-family: 'Mukta'; font-size: .95rem; }
.lang-toggle .knob {
  position: absolute; top: 2px; left: 2px; width: 35px; height: 27px; border-radius: 999px;
  background: var(--gold-grad); transition: transform .35s cubic-bezier(.6,-0.3,.4,1.4);
}
body.lang-en .lang-toggle .opt-en, body.lang-hi .lang-toggle .opt-hi { color: var(--maroon-dark); }
body.lang-hi .lang-toggle .knob { transform: translateX(38px); }

.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--gold);
  background: rgba(0,0,0,.25); display: grid; place-items: center; padding: 0;
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-light); stroke-width: 2; }
.icon-btn.playing { animation: spin 4s linear infinite; }

.burger { display: none; width: 40px; height: 40px; background: transparent; border: 0; padding: 8px; flex-direction: column; justify-content: space-around; }
.burger span { display: block; height: 2px; background: var(--gold-light); border-radius: 2px; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; text-align: center;
  padding: 190px 16px 90px;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(242,140,24,.25), transparent 60%),
    radial-gradient(ellipse at 50% 120%, rgba(212,164,55,.35), transparent 55%),
    linear-gradient(180deg, var(--maroon-dark) 0%, var(--maroon) 55%, #4f0a14 100%);
}
.hero::after { /* subtle jaali pattern */
  content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 50%, transparent 9px, var(--gold-light) 10px, transparent 11px),
    radial-gradient(circle at 0 0, transparent 9px, var(--gold-light) 10px, transparent 11px);
  background-size: 40px 40px;
}
.mandala { color: var(--gold); pointer-events: none; }
.hero-mandala {
  position: absolute; top: 50%; left: 50%; width: min(820px, 140vw); height: auto;
  translate: -50% -50%; opacity: .2; animation: spin 120s linear infinite;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.invocation { font-family: var(--f-head); color: var(--gold-light); letter-spacing: .12em; font-size: clamp(.95rem, 3vw, 1.15rem); }
body.lang-hi .invocation { font-family: 'Yatra One'; letter-spacing: .04em; }
.hero-pre { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.1rem, 3.5vw, 1.5rem); color: var(--cream); opacity: .9; margin-top: 8px; }
body.lang-hi .hero-pre { font-family: 'Mukta'; font-style: normal; }
.couple-names { display: flex; flex-direction: column; align-items: center; margin: 6px 0 14px; }
.couple-names .name {
  font-family: var(--f-script); font-weight: 400; font-size: clamp(3.4rem, 13vw, 7.5rem); line-height: 1.05;
  background: var(--gold-grad); background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.35));
  /* script capitals swash outside the glyph box; background-clip would cut them off */
  padding: .12em .5em .08em;
  margin: -.12em 0 -.08em;
}
.couple-names .weds {
  font-family: var(--f-head); font-size: clamp(.85rem, 2.5vw, 1.05rem); letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold-light); display: flex; align-items: center; gap: 14px; margin: 2px 0;
}
.couple-names .weds::before, .couple-names .weds::after { content: ""; width: 50px; height: 1px; background: var(--gold-light); opacity: .7; }
body.lang-hi .couple-names .weds { font-family: 'Yatra One'; letter-spacing: .1em; font-size: 1.2rem; }
.hero-date { font-size: clamp(.95rem, 2.8vw, 1.15rem); letter-spacing: .05em; color: var(--gold-light); }

.countdown { display: flex; justify-content: center; gap: clamp(8px, 2.5vw, 18px); margin: 26px 0 30px; }
.countdown div {
  width: clamp(66px, 18vw, 92px); padding: 12px 4px 8px;
  border: 1px solid rgba(243,214,139,.55); border-radius: 50% 50% 12px 12px / 38% 38% 12px 12px;
  background: rgba(61,6,16,.45); backdrop-filter: blur(4px);
  box-shadow: inset 0 0 18px rgba(212,164,55,.18);
}
.countdown b { display: block; font-family: var(--f-head); font-size: clamp(1.5rem, 6vw, 2.3rem); color: var(--gold-light); }
.countdown b.tick { animation: tick .45s ease; }
.countdown small { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.countdown-done { font-family: var(--f-script); font-size: 2.4rem; color: var(--gold-light); }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.scroll-hint { position: absolute; bottom: 24px; left: 50%; translate: -50% 0; z-index: 2; width: 26px; height: 42px; border: 2px solid var(--gold-light); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-light); animation: scrollDot 1.8s infinite; }

/* ---------- Toran (marigold garland) ---------- */
.toran { position: absolute; top: var(--nav-h); left: 0; right: 0; z-index: 3; pointer-events: none; }
.toran-rope {
  display: flex; justify-content: space-around; align-items: flex-start;
  height: 22px; background: linear-gradient(180deg, #7a1420, #b3192b); box-shadow: 0 3px 8px rgba(0,0,0,.35);
  border-bottom: 2px solid var(--gold);
}
.leaf {
  width: 26px; height: 40px; margin-top: 10px;
  background: linear-gradient(135deg, #4c9a3b, #1f5a1a);
  border-radius: 0 100% 0 100%; transform: rotate(45deg); transform-origin: top center;
  box-shadow: inset -2px -2px 0 rgba(0,0,0,.15);
}
.leaf:nth-child(even) { background: linear-gradient(135deg, #6bb34f, #2c6e24); }
.toran-strands { display: flex; justify-content: space-around; padding: 0 10px; }
.strand {
  display: flex; flex-direction: column; align-items: center;
  transform-origin: top center; animation: sway 4s ease-in-out infinite; animation-delay: var(--d);
}
.strand::before { content: ""; width: 1.5px; height: 6px; background: #6b4a1a; }
.marigold {
  width: 20px; height: 20px; margin-top: -3px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #b35400 0 18%, transparent 20%),
    repeating-conic-gradient(from 0deg, #ffb300 0 12deg, #ff9100 12deg 24deg);
  box-shadow: 0 2px 3px rgba(0,0,0,.3), inset 0 0 0 2px rgba(255,214,79,.6);
}
.marigold.red {
  background:
    radial-gradient(circle at 50% 50%, #7a1d00 0 18%, transparent 20%),
    repeating-conic-gradient(from 0deg, #ff6d00 0 12deg, #e65100 12deg 24deg);
}
.bell {
  width: 12px; height: 14px; margin-top: 1px;
  background: var(--gold-grad); border-radius: 50% 50% 3px 3px / 70% 70% 3px 3px;
  box-shadow: 0 2px 3px rgba(0,0,0,.35);
}

/* ---------- Floating petals ---------- */
#petals { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.petal {
  position: absolute; top: -40px; width: 14px; height: 18px;
  border-radius: 150% 0 150% 0;
  background: linear-gradient(135deg, #ff9a3c, #f05a28);
  opacity: .85;
  animation: fall linear forwards;
}
.petal.rose { background: linear-gradient(135deg, #e0425b, #9b1230); }
.petal.gold { background: linear-gradient(135deg, #ffe08a, #ffb300); border-radius: 50%; width: 10px; height: 10px; }

/* ---------- Invitation card ---------- */
.invite { background: var(--cream); }
.invite-card {
  position: relative; text-align: center; padding: clamp(40px, 7vw, 70px) clamp(20px, 6vw, 60px);
  background:
    linear-gradient(var(--cream), var(--cream)) padding-box,
    var(--gold-grad) border-box;
  border: 3px solid transparent; border-radius: 12px;
  box-shadow: var(--shadow-lg);
  outline: 1px solid var(--gold); outline-offset: -14px;
}
.corner { position: absolute; width: 60px; height: 60px; border: 3px solid var(--maroon); }
.corner.tl { top: 22px; left: 22px; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.corner.tr { top: 22px; right: 22px; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.corner.bl { bottom: 22px; left: 22px; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.corner.br { bottom: 22px; right: 22px; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.ganesh { width: clamp(100px, 24vw, 130px); margin: 4px auto 14px; }
.ganesh img { width: 100%; height: auto; animation: floaty 4s ease-in-out infinite; }
.shloka { font-family: var(--f-serif); font-style: italic; color: var(--maroon); font-size: 1.08rem; max-width: 560px; margin-inline: auto; }
body.lang-hi .shloka { font-family: 'Yatra One'; font-style: normal; font-size: 1.15rem; }
.invite-card .label { margin-top: 24px; font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
body.lang-hi .invite-card .label { letter-spacing: .05em; font-size: 1rem; }
.elders { font-family: var(--f-serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
body.lang-hi .elders { font-family: 'Mukta'; font-size: 1.05rem; }
.invite-text { color: var(--muted); max-width: 560px; margin: 18px auto; }
.invite-couple { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 20px 0; }
.invite-couple h3 { font-family: var(--f-script); font-weight: 400; font-size: clamp(2.6rem, 7vw, 3.4rem); color: var(--maroon); margin-bottom: 4px; }
body.lang-hi .invite-couple h3 { font-size: clamp(2rem, 6vw, 2.6rem); }
body.lang-hi .invite-couple .amp { font-family: 'Yatra One'; font-size: 1.4rem; }
.invocations { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; font-size: .85rem; color: var(--maroon); font-weight: 500; margin: 6px 0 12px; }
.doha { margin-top: 10px; color: var(--muted); font-size: 1rem; }
.invite-card .elders { margin-top: 22px; }
.invite-couple p { font-size: .9rem; color: var(--muted); margin: 0; }
.invite-couple .amp { font-family: var(--f-script); font-size: 3rem; color: var(--gold); }
.invite-date { font-family: var(--f-head); color: var(--maroon); font-size: 1.15rem; letter-spacing: .05em; margin-top: 10px; }
.invite-venue { color: var(--muted); }

/* ---------- Couple ---------- */
.couple-card {
  max-width: 860px; margin: 0 auto; text-align: center;
  background: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 48px) clamp(18px, 4vw, 44px);
  box-shadow: var(--shadow-lg); border: 2px solid var(--gold); outline: 1px solid var(--gold); outline-offset: -12px;
}
.couple-names-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: clamp(10px, 3vw, 30px); }
.couple-amp { font-family: var(--f-script); font-size: clamp(3rem, 8vw, 4.5rem); color: var(--gold); line-height: 1; align-self: center; }
.person { text-align: center; }
.arch-frame {
  width: min(280px, 72vw); aspect-ratio: 3 / 4; margin: 0 auto 22px;
  border-radius: 999px 999px 16px 16px; padding: 8px;
  background: var(--gold-grad); box-shadow: var(--shadow-lg);
  position: relative; transition: transform .5s;
}
.arch-frame::before { /* outer thin arch line */
  content: ""; position: absolute; inset: -12px; border: 1.5px solid var(--gold); border-radius: inherit; opacity: .6;
}
.couple-frame { width: min(400px, 76vw); aspect-ratio: 4 / 5; margin-bottom: 30px; }
.couple-card:hover .arch-frame { transform: translateY(-6px); }
.arch-frame img, .photo-ph { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 10px 10px; }
.photo-ph {
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, var(--maroon-2), var(--maroon-dark));
}
.photo-ph span { font-family: var(--f-script); font-size: clamp(4.5rem, 16vw, 7rem); color: var(--gold-light); padding: 0 .3em; }
.photo-ph small { font-size: .55em; margin: 0 .12em; }
.person-role { font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0; }
body.lang-hi .person-role { letter-spacing: .05em; font-size: 1rem; }
.person h3 { font-size: clamp(2.6rem, 7vw, 3.4rem); color: var(--maroon); }
.person-parents { font-style: italic; color: var(--muted); font-family: var(--f-serif); font-size: 1.1rem; }
body.lang-hi .person-parents { font-family: 'Mukta'; font-style: normal; font-size: 1rem; }
.person-bio { max-width: 380px; margin-inline: auto; font-size: .95rem; }

/* ---------- Story timeline ---------- */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: linear-gradient(var(--gold), var(--maroon), var(--gold));
}
.tl-item { position: relative; width: 50%; padding: 0 40px 40px; }
.tl-item.left { left: 0; text-align: right; }
.tl-item.right { left: 50%; }
.tl-dot {
  position: absolute; top: 18px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--marigold); border: 3px solid var(--cream); box-shadow: 0 0 0 2px var(--gold), 0 0 14px var(--saffron);
}
.tl-item.left .tl-dot { right: -9px; }
.tl-item.right .tl-dot { left: -9px; }
.tl-card { background: #fff; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.tl-year { display: inline-block; font-family: var(--f-head); color: var(--cream); background: var(--maroon); padding: 2px 12px; border-radius: 999px; font-size: .85rem; margin-bottom: 8px; }
.tl-card h3 { font-family: var(--f-head); color: var(--maroon); font-size: 1.2rem; margin-bottom: 6px; }
.tl-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Events ---------- */
.events { background: linear-gradient(180deg, var(--maroon-dark), var(--maroon)); color: var(--cream); }
.events .section-head h2 { color: var(--gold-light); }
.events .section-sub { color: var(--cream); opacity: .8; }
.events-mandala { position: absolute; width: 700px; right: -260px; top: -200px; opacity: .1; animation: spin 150s linear infinite reverse; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.event-card {
  --accent: var(--gold);
  --tint: #fff8ec;
  background: var(--tint); color: var(--ink);
  border-radius: 160px 160px var(--radius) var(--radius);
  padding: 26px 26px 24px; text-align: center; position: relative;
  box-shadow: 0 14px 40px rgba(0,0,0,.3);
  border: 2px solid var(--accent);
  outline: 1px dashed var(--accent); outline-offset: -10px;
  transition: transform .4s, box-shadow .4s;
  /* subgrid: cards in the same row share row heights, so titles, details, dress codes and buttons line up */
  display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0;
}
.event-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(0,0,0,.4); }
.event-title { align-self: center; margin-bottom: 8px; }
.event-about { align-self: start; }
.event-meta { align-self: start; }
.event-actions { align-self: end; }
.event-card.theme-haldi { --accent: #e6a700; --tint: #fff8dc; }
.event-card.theme-mehendi { --accent: #3d8b37; --tint: #f1f8e9; }
.event-card.theme-sangeet { --accent: #a0287a; --tint: #fdf0f8; }
.event-card.theme-baraat { --accent: #e65100; --tint: #fff3e6; }
.event-card.theme-wedding { --accent: #b3192b; --tint: #fff1ef; }
.event-card.theme-reception { --accent: #4a3aa0; --tint: #f3f1ff; }
.event-card.theme-ganesh { --accent: #e65100; --tint: #fff3e6; }
.event-card.theme-lagan { --accent: #8e1b2b; --tint: #fdeef0; }
.event-card.theme-baan { --accent: #c2185b; --tint: #fdeef5; }
.event-sub { margin: 2px 0 0; font-size: .9rem; color: var(--accent); font-weight: 500; }
.event-arch {
  width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, #fff 40%, var(--tint) 41%);
  border: 2px solid var(--accent); position: relative;
}
.event-arch::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px dotted var(--accent); animation: spin 20s linear infinite;
}
.event-icon { font-size: 2.6rem; }
.event-card:hover .event-icon { animation: bounce .6s; }
.event-card h3 { font-family: var(--f-head); font-size: 1.35rem; color: var(--accent); }
.event-about { font-size: .92rem; color: var(--muted); }
.event-meta { list-style: none; padding: 14px 0 0; margin: 0 0 16px; text-align: left; border-top: 1px dashed var(--accent); }
.event-meta li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; padding: 4px 0; }
.event-meta svg { width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dress-code {
  text-align: left; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px;
  background: #fff; border: 1px dashed var(--accent);
}
.dress-title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
body.lang-hi .dress-title { font-size: .95rem; letter-spacing: .02em; }
.dress-title svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; }
.swatches { display: inline-flex; margin-left: auto; }
.swatches i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.18); margin-left: -5px; }
.dress-text { margin: 0; font-size: .9rem; line-height: 1.55; }
.event-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.event-card .chip { color: var(--accent); }
.event-card .chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Venue ---------- */
.venues { display: grid; gap: clamp(36px, 6vw, 56px); }
.venue-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: center; }
.venue-wrap:nth-child(even) .venue-info { order: 2; }
.venue-label { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold) !important; font-weight: 600; margin-bottom: 6px; }
body.lang-hi .venue-label { letter-spacing: .03em; font-size: .95rem; }
.venue-info { background: #fff; padding: 34px; border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid var(--gold); }
.venue-info h3 { font-family: var(--f-head); color: var(--maroon); font-size: 1.5rem; margin-bottom: 10px; }
.venue-info p { color: var(--muted); }
.venue-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff; aspect-ratio: 16 / 11; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Family ---------- */
.family-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.family-card {
  flex: 1 1 260px; max-width: 360px; text-align: center; padding: 30px 22px 24px; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow); border-top: 4px solid var(--saffron); position: relative; transition: transform .3s;
}
.family-card:hover { transform: translateY(-6px); }
.family-card::before {
  content: "❀"; position: absolute; top: -17px; left: 50%; translate: -50% 0;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--saffron); color: #fff; font-size: 1rem;
}
.family-card h3 { font-family: var(--f-head); color: var(--maroon); font-size: 1.15rem; margin-bottom: 10px; }
.family-card p { margin: 0; color: var(--ink); line-height: 1.9; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.g-item { border: 0; padding: 0; border-radius: 14px; overflow: hidden; position: relative; background: var(--maroon); box-shadow: var(--shadow); }
.g-item:nth-child(5n+1) { grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.g-item:hover img { transform: scale(1.08); }
.g-ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--maroon-2), var(--maroon-dark)); }
.g-ph .mandala { position: absolute; width: 85%; opacity: .25; animation: spin 60s linear infinite; }
.g-ph span { position: relative; color: var(--gold-light); font-family: var(--f-serif); font-style: italic; font-size: 1.05rem; }

.lightbox { position: fixed; inset: 0; z-index: 900; background: rgba(20,2,6,.92); display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; border-radius: 10px; box-shadow: 0 0 0 4px var(--gold); animation: zoomIn .35s ease; }
.lightbox button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: var(--gold-light); font-size: 2.6rem; line-height: 1; }

/* ---------- Forms ---------- */
input[type=text], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid #e6d3b0; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,164,55,.2); }
textarea { resize: vertical; }
.hp { position: absolute !important; left: -9999px; }
.form-msg { margin: 0; text-align: center; font-weight: 500; min-height: 1.4em; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--red); }
button[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Wishes ---------- */
.wishes-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: start; }
.wish-form { background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 14px; border-top: 4px solid var(--maroon); position: sticky; top: calc(var(--nav-h) + 20px); }
.wish-list { display: grid; gap: 16px; max-height: 560px; overflow-y: auto; padding: 4px 8px 4px 4px; }
.wish {
  background: #fff; border-radius: 4px var(--radius) var(--radius) var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
  border-left: 4px solid var(--gold); animation: slideUp .5s ease both;
}
.wish p { margin: 0 0 8px; font-family: var(--f-serif); font-size: 1.12rem; font-style: italic; }
.wish .who { font-size: .82rem; font-weight: 600; color: var(--maroon); }
.wish .when { font-size: .75rem; color: var(--muted); margin-left: 6px; font-weight: 400; }
.wish-empty { text-align: center; color: var(--muted); font-style: italic; padding: 40px 0; }

/* ---------- Contact ---------- */
.contact-card {
  text-align: center; padding: clamp(28px, 5vw, 40px) 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--maroon);
}
.contact-card h3 { font-family: var(--f-head); color: var(--maroon); font-size: 1.35rem; }
.contact-card .role { font-size: .8rem; color: var(--gold); font-weight: 600; letter-spacing: .15em; text-transform: uppercase; margin: 0 0 6px; }
body.lang-hi .contact-card .role { text-transform: none; letter-spacing: .03em; font-size: 1rem; }
.contact-card .address { color: var(--muted); max-width: 440px; margin: 8px auto 20px; }
.phone-list { display: grid; gap: 12px; justify-content: center; }
.phone-row { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--cream-2); border: 1px dashed var(--gold); }
.phone-row .phone { font-size: 1rem; font-weight: 500; margin-right: auto; padding-right: 8px; white-space: nowrap; text-align: left; line-height: 1.35; }
.phone-row .phone b { display: block; font-family: var(--f-head); font-size: .95rem; color: var(--maroon); }
body.lang-hi .phone-row .phone b { font-family: 'Mukta'; font-weight: 700; font-size: 1.05rem; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; transition: transform .2s; }
.round-btn:hover { transform: scale(1.1); }
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.round-btn.call { background: var(--maroon); }
.round-btn.wa { background: #25a244; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
details { background: #fff; border-radius: 14px; box-shadow: var(--shadow); border-left: 4px solid var(--gold); overflow: hidden; }
summary {
  list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 500; color: var(--maroon); position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream-2); color: var(--maroon); font-size: 1.2rem; transition: transform .3s;
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 22px 18px; margin: 0; color: var(--muted); animation: fadeIn .4s; }

/* ---------- Footer ---------- */
.footer {
  text-align: center; padding: 70px 16px calc(40px + env(safe-area-inset-bottom)); color: var(--cream); position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--maroon), var(--maroon-dark));
}
.footer > * { position: relative; }
.footer-mandala { position: absolute !important; width: 520px; left: 50%; top: 50%; translate: -50% -50%; opacity: .1; animation: spin 100s linear infinite; }
.footer-thanks { font-size: clamp(3rem, 10vw, 4.5rem); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 0; }
.hashtag { font-family: var(--f-head); color: var(--gold-light); font-size: 1.2rem; letter-spacing: .06em; margin: 10px 0 22px; }
.footer-small { margin-top: 30px; font-size: .8rem; opacity: .6; }

.to-top {
  position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-grad); color: var(--maroon-dark); text-decoration: none; font-size: 1.3rem; font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); opacity: 0; transform: translateY(20px); transition: .35s;
}
.to-top.show { opacity: 1; transform: none; }

.toast {
  position: fixed; left: 50%; bottom: 30px; translate: -50% 0; z-index: 950;
  background: var(--maroon-dark); color: var(--gold-light); border: 1px solid var(--gold);
  padding: 10px 22px; border-radius: 999px; font-size: .9rem;
  opacity: 0; transform: translateY(20px); transition: .35s; pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.events-grid .reveal:nth-child(4n+2), .family-grid .reveal:nth-child(3n+2) { transition-delay: .12s; }
.events-grid .reveal:nth-child(4n+3), .family-grid .reveal:nth-child(3n+3) { transition-delay: .24s; }
.events-grid .reveal:nth-child(4n+4) { transition-delay: .36s; }
.tl-item.left.reveal { transform: translateX(-40px); }
.tl-item.right.reveal { transform: translateX(40px); }
.tl-item.reveal.in { transform: none; }

/* ---------- Keyframes ---------- */
@keyframes spin { to { rotate: 360deg; } }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes flicker {
  0% { transform: scale(1, 1) rotate(-2deg); opacity: .95; }
  50% { transform: scale(.92, 1.08) rotate(2deg); opacity: 1; }
  100% { transform: scale(1.05, .95) rotate(-1deg); opacity: .9; }
}
@keyframes fadePulse { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes fall {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(var(--drift), 110vh) rotate(var(--rot)); }
}
@keyframes tick { 0% { transform: translateY(-6px); opacity: .3; } 100% { transform: none; opacity: 1; } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px) scale(1.1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links a { padding: 8px 7px; font-size: .8rem; }
}
@media (max-width: 960px) {
  .burger { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
    flex-direction: column; justify-content: flex-start; padding: 30px 20px; gap: 6px; overflow-y: auto;
    background: rgba(61, 6, 16, .98);
    transform: translateY(-110%); opacity: 0; transition: transform .45s cubic-bezier(.7,0,.2,1), opacity .3s;
  }
  .nav-links.open { transform: none; opacity: 1; }
  .nav-links a { font-size: 1.15rem; padding: 12px 20px; }
  .nav-links .nav-cta { margin: 12px 0 0; padding: 12px 40px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .venue-wrap, .wishes-wrap { grid-template-columns: 1fr; }
  .venue-wrap:nth-child(even) .venue-info { order: 0; }
  .wish-form { position: static; }
}
@media (max-width: 680px) {
  body { font-size: 15px; }
  .hero { padding-top: 190px; }
  .toran-strands .strand:nth-child(n+13), .toran-rope .leaf:nth-child(n+13) { display: none; }
  .marigold { width: 16px; height: 16px; }
  .leaf { width: 20px; height: 32px; }
  .couple-names-row { grid-template-columns: 1fr; gap: 6px; }
  .invite-couple { grid-template-columns: 1fr; gap: 4px; }
  .corner { width: 36px; height: 36px; }
  .corner.tl, .corner.tr { top: 14px; } .corner.bl, .corner.br { bottom: 14px; }
  .corner.tl, .corner.bl { left: 14px; } .corner.tr, .corner.br { right: 14px; }
  .invite-card { outline-offset: -8px; }
  .timeline::before { left: 12px; }
  .tl-item, .tl-item.right { width: 100%; left: 0; padding: 0 0 28px 40px; text-align: left; }
  .tl-item .tl-dot, .tl-item.left .tl-dot, .tl-item.right .tl-dot { left: 3px; right: auto; }
  .tl-item.left.reveal, .tl-item.right.reveal { transform: translateY(30px); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
  .event-card { border-radius: 130px 130px var(--radius) var(--radius); padding: 22px 20px; }
  .nav-logo { font-size: 1.7rem; }
}
@media (max-width: 420px) {
  .hero-btns .btn { flex: 1 1 100%; }
  .lang-toggle { width: 72px; } .lang-toggle .knob { width: 32px; } body.lang-hi .lang-toggle .knob { transform: translateX(35px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  #petals { display: none; }
}
