/* =========================================================
   Indian Digital Wedding Invitation — main stylesheet
   Colours come from config.js → theme (set as CSS variables)
   ========================================================= */
:root {
  --ivory: #fbf6ee;
  --champagne: #c9a45c;
  --gold: #b08a3e;
  --blush: #f3d6d3;
  --maroon: #7a1f2b;
  --text: #3b2a24;
  --muted: color-mix(in srgb, var(--text) 68%, transparent);
  --card: #fffdf9;
  --line: color-mix(in srgb, var(--champagne) 45%, transparent);
  --font-heading: 'Cormorant Garamond', 'Tiro Devanagari Hindi', Georgia, serif;
  --font-script: 'Great Vibes', 'Tiro Devanagari Hindi', cursive;
  --font-body: 'Poppins', 'Hind', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(74, 15, 24, .10);
  --topbar-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--topbar-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--ivory);
  background-image:
    radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--blush) 55%, transparent) 0, transparent 40%),
    radial-gradient(circle at 85% 60%, color-mix(in srgb, var(--champagne) 18%, transparent) 0, transparent 45%);
  background-attachment: fixed;
  overflow-x: hidden;
}
html[lang="hi"] body { font-family: 'Hind', var(--font-body); }
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--maroon); }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--champagne); outline-offset: 3px; border-radius: 6px; }
.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-link { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--maroon); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.4em;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 500; font-size: .95rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.btn--gold { background: linear-gradient(135deg, var(--champagne), var(--gold)); color: #fff; }
.btn--maroon { background: var(--maroon); color: #fff; }
.btn--outline { background: transparent; border-color: var(--champagne); color: var(--maroon); }
.btn--outline:hover { background: color-mix(in srgb, var(--champagne) 14%, transparent); }
.btn--whatsapp { background: #25d366; color: #073b1c; }
.btn--lg { min-height: 54px; padding: .9em 2em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.icon-btn {
  min-width: 44px; min-height: 44px; padding: 0 .8em;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--maroon); cursor: pointer; font-weight: 500; font-size: .85rem;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center; align-content: center; gap: 18px;
  background: var(--maroon); color: #f6e7c8;
  transition: opacity .6s ease, visibility .6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mandala {
  width: 96px; height: 96px; border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, var(--champagne) 0 10deg, transparent 10deg 30deg),
    radial-gradient(circle, var(--maroon) 0 30%, transparent 31%);
  -webkit-mask: radial-gradient(circle, transparent 0 22%, #000 23% 70%, transparent 71%);
          mask: radial-gradient(circle, transparent 0 22%, #000 23% 70%, transparent 71%);
  animation: spin 3s linear infinite;
}
.loader__text { margin: 0; font-family: var(--font-heading); font-size: 1.2rem; letter-spacing: .05em; }
@keyframes spin { to { transform: rotate(360deg); } }

.preview-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 500; background: #222; color: #fff; text-align: center; font-size: .8rem; padding: 6px; }

/* ---------- Couple names (shared) ---------- */
html[lang="hi"] .hero__names, html[lang="hi"] .footer__names { font-family: 'Tiro Devanagari Hindi', var(--font-heading); font-size: clamp(2.2rem, 9vw, 3.4rem); }
.hero__names .amp { display: block; font-size: .55em; color: var(--champagne); }

/* ---------- Top bar & nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100; height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 14px;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__brand { font-family: var(--font-script); font-size: 1.7rem; color: var(--maroon); text-decoration: none; white-space: nowrap; }
html[lang="hi"] .topbar__brand { font-family: 'Tiro Devanagari Hindi', serif; font-size: 1.2rem; }
.topbar__actions { display: flex; gap: 8px; }
.nav-toggle { padding: 0; width: 44px; display: grid; place-items: center; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: var(--maroon); border-radius: 2px; position: relative; transition: transform .25s, opacity .25s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
.nav {
  position: fixed; top: var(--topbar-h); left: 0; right: 0;
  background: var(--ivory); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  transform: translateY(-120%); visibility: hidden; transition: transform .3s ease, visibility .3s;
  max-height: calc(100vh - var(--topbar-h)); overflow-y: auto;
}
.nav.is-open { transform: none; visibility: visible; }
.nav__list { list-style: none; margin: 0; padding: 10px 14px 16px; display: grid; gap: 2px; }
.nav__list a { display: block; padding: 12px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 500; }
.nav__list a:hover, .nav__list a.is-active { background: color-mix(in srgb, var(--blush) 60%, transparent); color: var(--maroon); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; position: relative; }
.section--alt { background: color-mix(in srgb, var(--blush) 28%, transparent); }
.section--alt::before, .section--alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 14px;
  background: radial-gradient(circle at 7px 7px, var(--champagne) 2.5px, transparent 3px) 0 0 / 22px 14px repeat-x;
  opacity: .6;
}
.section--alt::before { top: 0; }
.section--alt::after { bottom: 0; }
.container { width: min(100% - 32px, 1100px); margin-inline: auto; }
.container--narrow { width: min(100% - 32px, 640px); }
.section__head { text-align: center; margin-bottom: 40px; }
.section__ornament { margin: 0; font-size: 1.6rem; color: var(--champagne); line-height: 1; }
.section__title { margin: 8px 0 10px; font-family: var(--font-heading); font-weight: 600; font-size: clamp(2rem, 7vw, 2.9rem); color: var(--maroon); line-height: 1.15; }
.section__title::after { content: ""; display: block; width: 90px; height: 10px; margin: 12px auto 0; background: linear-gradient(90deg, transparent, var(--champagne), transparent) center / 100% 1.5px no-repeat, radial-gradient(circle, var(--champagne) 3px, transparent 3.5px) center / 10px 10px no-repeat; }
.section__lead { margin: 0 auto; max-width: 620px; color: var(--muted); font-size: 1.02rem; }
.eyebrow { margin: 0; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
html[lang="hi"] .eyebrow { text-transform: none; letter-spacing: .02em; font-size: .95rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Image fallback */
.img-fallback {
  display: grid; place-items: center;
  background:
    radial-gradient(circle, transparent 0 30%, color-mix(in srgb, var(--champagne) 30%, transparent) 31% 32%, transparent 33%),
    repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--champagne) 25%, transparent) 0 6deg, transparent 6deg 20deg),
    linear-gradient(135deg, var(--blush), color-mix(in srgb, var(--champagne) 50%, var(--ivory)));
  color: var(--maroon); font-family: var(--font-script); font-size: 2.4rem;
}

/* ---------- Hero ---------- */
.hero { padding: 40px 0 72px; }
.hero__inner { width: min(100% - 32px, 1100px); margin-inline: auto; display: grid; gap: 34px; align-items: center; }
.hero__photo-wrap {
  position: relative; width: min(72%, 380px); margin-inline: auto; padding: 10px;
  border-radius: 220px 220px 24px 24px;
  background: linear-gradient(135deg, var(--champagne), var(--gold), var(--champagne));
  box-shadow: var(--shadow);
}
.hero__photo, .hero__photo-wrap .img-fallback { width: 100%; height: auto; aspect-ratio: 9 / 11; object-fit: cover; border-radius: 210px 210px 16px 16px; border: 4px solid var(--ivory); }
.hero__text { text-align: center; }
.hero__names { margin: 8px 0; font-family: var(--font-script); font-weight: 400; font-size: clamp(3rem, 13vw, 4.6rem); line-height: 1.1; color: var(--maroon); }
.hero__date { margin: 0; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600; letter-spacing: .06em; color: var(--gold); }
.hero__welcome { margin: 16px auto 0; max-width: 520px; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.hero__hashtag { margin: 18px 0 0; font-weight: 500; color: var(--maroon); }

.countdown { margin: 26px auto 0; max-width: 460px; }
.countdown__title { margin: 0 0 10px; font-family: var(--font-heading); font-style: italic; font-size: 1.15rem; color: var(--maroon); }
.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown__cell {
  padding: 12px 4px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center;
}
.countdown__num { font-family: var(--font-heading); font-size: clamp(1.7rem, 8vw, 2.4rem); font-weight: 700; color: var(--maroon); line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
html[lang="hi"] .countdown__label { text-transform: none; font-size: .85rem; letter-spacing: 0; }
.countdown__done { margin: 0; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-family: var(--font-heading); font-size: 1.3rem; color: var(--maroon); }

/* ---------- Family ---------- */
.family-grid { display: grid; gap: 24px; }
.family-card { padding: 0 0 26px; text-align: center; overflow: hidden; }
.family-card__img, .family-card .img-fallback { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.family-card__body { padding: 20px 22px 0; }
.family-card__title { margin: 0; font-family: var(--font-heading); font-size: 1.7rem; color: var(--maroon); }
.family-card__label { margin: 14px 0 2px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
html[lang="hi"] .family-card__label { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.family-card__names { margin: 0; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; }
.family-card__intro { margin: 14px 0 0; color: var(--muted); font-size: .95rem; }
.family__closing { margin: 34px auto 0; text-align: center; font-family: var(--font-heading); font-style: italic; font-size: 1.3rem; color: var(--maroon); max-width: 560px; }

/* ---------- Story ---------- */
.couple-cards { display: grid; gap: 24px; margin-bottom: 36px; }
.person { padding: 26px 22px; text-align: center; }
.person__img, .person .img-fallback { width: 150px; height: 150px; margin: 0 auto 14px; border-radius: 50%; object-fit: cover; border: 4px solid var(--ivory); box-shadow: 0 0 0 2px var(--champagne); }
.person__role { margin: 0; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
html[lang="hi"] .person__role { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.person__name { margin: 4px 0 8px; font-family: var(--font-heading); font-size: 1.7rem; color: var(--maroon); }
.person__about { margin: 0; color: var(--muted); font-size: .95rem; }
.how-we-met { text-align: center; max-width: 640px; margin: 0 auto 44px; padding: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-we-met h3 { margin: 0 0 8px; font-family: var(--font-heading); font-size: 1.6rem; color: var(--maroon); }
.how-we-met p { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; display: grid; gap: 28px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--champagne), var(--blush)); }
.timeline__item { position: relative; }
.timeline__item::before { content: ""; position: absolute; left: -24px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--maroon); box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px var(--champagne); }
.timeline__card { overflow: hidden; display: grid; }
.timeline__img, .timeline__card .img-fallback { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.timeline__body { padding: 16px 20px 20px; }
.timeline__date { margin: 0; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
html[lang="hi"] .timeline__date { text-transform: none; letter-spacing: 0; }
.timeline__title { margin: 2px 0 6px; font-family: var(--font-heading); font-size: 1.45rem; color: var(--maroon); }
.timeline__text { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Events ---------- */
.events-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.events-grid > .event { flex: 1 1 280px; max-width: 380px; }
.event { overflow: hidden; display: flex; flex-direction: column; }
.event__media { position: relative; }
.event__img, .event .img-fallback { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.event__icon { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; background: var(--card); border: 2px solid var(--champagne); box-shadow: var(--shadow); }
.event__body { padding: 36px 22px 22px; text-align: center; display: flex; flex-direction: column; flex: 1; }
.event__name { margin: 0; font-family: var(--font-heading); font-size: 1.7rem; color: var(--maroon); line-height: 1.2; }
.event__when { margin: 8px 0 0; font-weight: 600; color: var(--gold); }
.event__venue { margin: 10px 0 0; font-weight: 500; }
.event__address { margin: 2px 0 0; font-size: .88rem; color: var(--muted); }
.event__desc { margin: 12px 0 0; font-size: .95rem; color: var(--muted); }
.event__dress { margin: 12px auto 0; display: inline-block; padding: 4px 14px; border-radius: 999px; background: color-mix(in srgb, var(--blush) 60%, transparent); font-size: .82rem; color: var(--maroon); }
.event__actions { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.event__actions .btn { min-height: 42px; padding: .5em 1.1em; font-size: .88rem; }

/* ---------- Venue ---------- */
.venue { display: grid; gap: 24px; }
.venue__info { text-align: center; }
.venue__name { margin: 0; font-family: var(--font-heading); font-size: 1.9rem; color: var(--maroon); }
.venue__address { margin: 6px 0 0; font-size: 1.02rem; }
.venue__note { margin: 12px 0 0; color: var(--muted); font-size: .94rem; }
.venue__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.venue__contacts { margin-top: 26px; display: grid; gap: 12px; }
.venue__contacts-title { margin: 0; font-weight: 600; color: var(--maroon); }
.contact { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; text-align: left; }
.contact__name { margin: 0; font-weight: 500; font-size: .95rem; }
.contact__phone { margin: 0; color: var(--muted); font-size: .88rem; }
.contact .btn { min-height: 40px; padding: .4em 1em; font-size: .85rem; flex-shrink: 0; }
.venue__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 300px; background: var(--card); }
.venue__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.venue__map-placeholder { min-height: 300px; height: 100%; display: grid; place-items: center; align-content: center; gap: 12px; padding: 24px; text-align: center; }

/* ---------- Gallery ---------- */
.gallery { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 12px; }
.gallery li { break-inside: avoid; margin-bottom: 12px; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; position: relative; }
.gallery img, .gallery .img-fallback { width: 100%; height: auto; min-height: 120px; object-fit: cover; transition: transform .5s; background: color-mix(in srgb, var(--blush) 40%, transparent); }
.gallery .img-fallback { aspect-ratio: 4/5; }
.gallery button:hover img { transform: scale(1.05); }
.video-block { margin-top: 48px; text-align: center; }
.video-block__title { margin: 0 0 16px; font-family: var(--font-heading); font-size: 1.7rem; color: var(--maroon); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; border: 3px solid var(--champagne); }
.video iframe, .video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video__play { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.video__play::after { content: "▶"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; padding-left: 6px; font-size: 1.8rem; color: #fff; background: color-mix(in srgb, var(--maroon) 85%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, #fff 35%, transparent); transition: transform .2s; }
.video__play:hover::after { transform: translate(-50%, -50%) scale(1.08); }

/* ---------- Forms ---------- */
.form { padding: 26px 22px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 500; font-size: .92rem; padding: 0; margin-bottom: 6px; }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; min-height: 48px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font: inherit; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--champagne); box-shadow: 0 0 0 4px color-mix(in srgb, var(--champagne) 22%, transparent); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__hint { color: var(--muted); font-size: .78rem; text-align: right; }
.choice-row { display: grid; gap: 10px; }
.field .choice { margin: 0; font-weight: 400; }
.choice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .2s, background-color .2s; }
.choice:has(input:checked) { border-color: var(--maroon); background: color-mix(in srgb, var(--blush) 40%, #fff); }
.choice input, .checks input { accent-color: var(--maroon); width: 18px; height: 18px; }
.checks { display: grid; gap: 8px; }
.checks label { display: flex; align-items: center; gap: 10px; font-weight: 400; margin: 0; cursor: pointer; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { margin: 0; color: #b3261e; font-size: .9rem; min-height: 0; }
.form__error:empty, .form__ok:empty { display: none; }
.form__ok { margin: 0; color: #1e6b35; font-size: .9rem; }
.form__error .btn { margin-top: 10px; }
.rsvp__deadline { margin: 10px 0 0; font-weight: 500; color: var(--maroon); }
.success { padding: 34px 24px; text-align: center; }
.success__icon { font-size: 2.6rem; margin: 0; }
.success__title { font-family: var(--font-heading); font-size: 1.5rem; color: var(--maroon); margin: 8px 0; }
.success__note { color: var(--muted); margin: 0 0 18px; }

/* ---------- Wishes ---------- */
.wishes { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.wish { padding: 18px 20px; position: relative; }
.wish::before { content: "“"; position: absolute; right: 16px; top: -6px; font-family: var(--font-heading); font-size: 4rem; color: color-mix(in srgb, var(--champagne) 50%, transparent); line-height: 1; }
.wish__msg { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.wish__name { margin: 8px 0 0; font-weight: 600; color: var(--maroon); font-size: .9rem; }
.wish__meta { font-weight: 400; color: var(--muted); font-size: .78rem; }
.wishes__empty { text-align: center; color: var(--muted); }

/* ---------- Share ---------- */
.share__actions { display: grid; gap: 12px; }
.share__url { margin: 16px 0 0; text-align: center; font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.footer { padding: 50px 20px 110px; text-align: center; background: var(--maroon); color: #f6e7c8; }
.footer__names { margin: 0; font-family: var(--font-script); font-size: 2.6rem; color: #fff; }
.footer__hashtag { margin: 4px 0; color: var(--champagne); font-weight: 500; }
.footer__made { margin: 10px 0; font-size: .85rem; opacity: .8; }
.footer__top { color: var(--champagne); font-size: .85rem; }

/* ---------- Floaters ---------- */
.floaters { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 150; display: grid; gap: 12px; }
.floater { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.22); text-decoration: none; transition: transform .2s; }
.floater:hover { transform: scale(1.08); }
.floater--wa { background: #25d366; color: #fff; }
.floater--music { background: var(--card); color: var(--maroon); border: 2px solid var(--champagne); font-size: 1.4rem; }
.floater--music.is-playing .floater__icon { animation: spin 4s linear infinite; display: inline-block; }
.floater--music:not(.is-playing)::after { content: ""; position: absolute; width: 30px; height: 2px; background: var(--maroon); transform: rotate(-45deg); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 350; background: rgba(20, 8, 10, .94); display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 16px 6px; }
.lightbox__figure { margin: 0; display: grid; place-items: center; gap: 12px; min-width: 0; }
.lightbox__figure img { max-height: 80vh; max-width: 100%; border-radius: 10px; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__figure figcaption { color: #f6e7c8; text-align: center; font-size: .95rem; }
.lightbox__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox__btn:hover { background: rgba(255,255,255,.2); }
.lightbox__close { position: absolute; top: 14px; right: 14px; font-size: 1.2rem; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); z-index: 450; background: var(--text); color: #fff; padding: 10px 20px; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Print card (hidden on screen) ---------- */
.print-card { display: none; }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  .choice-row { grid-template-columns: 1fr 1fr; }
  .share__actions { grid-template-columns: 1fr 1fr; }
  .gallery { columns: 3; }
  .checks { grid-template-columns: 1fr 1fr; }
  .form { padding: 34px 32px; }
}
@media (min-width: 760px) {
  .family-grid, .couple-cards { grid-template-columns: 1fr 1fr; }
  .timeline { padding-left: 0; }
  .timeline::before { left: 50%; transform: translateX(-1px); }
  .timeline__item { width: calc(50% - 30px); }
  .timeline__item:nth-child(odd) { justify-self: start; }
  .timeline__item:nth-child(even) { justify-self: end; }
  .timeline__item:nth-child(odd)::before { left: auto; right: -37px; }
  .timeline__item:nth-child(even)::before { left: -37px; }
}
@media (min-width: 980px) {
  :root { --topbar-h: 68px; }
  .topbar { padding: 0 28px; }
  .nav-toggle { display: none; }
  .nav { position: static; transform: none; visibility: visible; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; }
  .nav__list { display: flex; padding: 0; gap: 2px; }
  .nav__list a { padding: 8px 10px; font-size: .88rem; }
  .hero__inner { grid-template-columns: 1fr 1.1fr; }
  .hero__photo-wrap { width: min(100%, 420px); }
  .hero__text { text-align: left; }
  .hero__text .countdown { margin-left: 0; }
  .hero__welcome { margin-left: 0; }
  .hero__actions { justify-content: flex-start; }
  .venue { grid-template-columns: 1fr 1.2fr; align-items: stretch; }
  .venue__info { text-align: left; }
  .venue__actions { justify-content: flex-start; }
  .gallery { columns: 4; }
  .section { padding: 96px 0; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print: only the invitation card ---------- */
@media print {
  @page { size: A5 portrait; margin: 0; }
  body { background: #fff !important; overflow: visible !important; }
  body > *:not(.print-card) { display: none !important; }
  .print-card {
    display: flex !important; flex-direction: column; align-items: center; justify-content: center;
    width: 148mm; height: 210mm; padding: 14mm 12mm; text-align: center; color: #3b2a24;
    background: #fbf6ee; border: 3mm double #b08a3e; box-sizing: border-box;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
    font-family: Georgia, 'Tiro Devanagari Hindi', serif;
  }
  .print-card h1 { font-family: 'Great Vibes', cursive; font-weight: 400; font-size: 34pt; color: #7a1f2b; margin: 4mm 0; line-height: 1.1; }
  .print-card .pc-bless { color: #b08a3e; margin: 0 0 4mm; }
  .print-card .pc-small { font-size: 9pt; letter-spacing: .15em; text-transform: uppercase; margin: 0; }
  .print-card .pc-date { font-size: 14pt; color: #b08a3e; margin: 2mm 0 5mm; }
  .print-card .pc-msg { font-size: 10pt; margin: 0 0 5mm; }
  .print-card ul { list-style: none; padding: 0; margin: 0 0 5mm; font-size: 9.5pt; line-height: 1.5; }
  .print-card .pc-venue { font-size: 10pt; margin: 0 0 3mm; }
  .print-card .pc-url { font-size: 8pt; color: #7a1f2b; word-break: break-all; }
}

/* ---------- Wedding films (multiple videos) ---------- */
.video-list { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; text-align: left; }
.video-card { margin: 0; min-width: 0; }
.video-card--featured { grid-column: 1 / -1; }
.video-card .video { border-width: 2px; }
.video-card:not(.video-card--featured) .video__play::after { width: 50px; height: 50px; font-size: 1.2rem; padding-left: 4px; }
.video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.video__badge { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: .75rem; pointer-events: none; }
.video__error { position: absolute; inset: 0; font-size: 2.4rem; }
.video-card__title { margin: 8px 2px 0; font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: var(--maroon); line-height: 1.25; }
.video-card--featured .video-card__title { font-size: 1.4rem; text-align: center; }
@media (min-width: 760px) { .video-list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Venue photo & footer credits ---------- */
.venue__photo { margin: 0 0 20px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 3px solid var(--champagne); }
.venue__photo-img, .venue__photo .img-fallback { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.footer__credits { margin: 18px 0 0; font-size: .72rem; opacity: .6; }

/* ---------- Platform additions ---------- */
.status-page { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 30%, var(--blush), var(--ivory) 70%); }
.status-page__card { max-width: 440px; text-align: center; padding: 40px 28px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.status-page__icon { font-size: 2.6rem; margin: 0; }
.status-page__title { margin: 10px 0; font-family: var(--font-heading); color: var(--maroon); font-size: 1.9rem; }
.status-page__text { color: var(--muted); margin: 0 0 22px; }
.footer__brand { margin: 14px 0 0; font-size: .8rem; }
.footer__brand a { color: var(--champagne); font-weight: 600; }
.preview-banner { top: 0; bottom: auto; background: #1f2937; font-size: .82rem; padding: 8px; }
.preview-banner a { color: #fcd34d; }

/* portrait photos in landscape event/story frames: keep faces in view */
.event__img, .timeline__img { object-position: 50% 22%; }
