/* =========================================================
   Praveen & Durga — wedding site
   Traditional maroon & gold. Mobile first.
   ========================================================= */

:root {
  --maroon-950: #2e050d;
  --maroon-900: #3d0812;
  --maroon-800: #5c0f1c;
  --maroon-700: #7a1526;
  --maroon-600: #932035;
  --gold-100: #fbf0d4;
  --gold-300: #f3dc9c;
  --gold-400: #e6c27a;
  --gold-500: #d4a64a;
  --gold-600: #b8862b;
  --gold-700: #8a5a12;
  --cream-50: #fffaf0;
  --cream-100: #fbf3e2;
  --cream-200: #f3e5c8;
  --ink: #3b1d14;
  --ink-soft: #6b4a3a;
  --kumkum: #c8102e;

  --font-en: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-script: 'Great Vibes', 'Cormorant Garamond', cursive;
  --font-te: 'Noto Serif Telugu', 'Tiro Telugu', 'Nirmala UI', 'Gautami', serif;
  --font-te-classic: 'Tiro Telugu', 'Noto Serif Telugu', 'Nirmala UI', serif;
  --font-te-display: 'Suravaram', 'Tiro Telugu', 'Noto Serif Telugu', 'Nirmala UI', serif;

  --header-h: 60px;
  --radius: 16px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 22px 48px -30px rgba(61, 8, 18, .45);
  --maroon-bg:
    url("../assets/ornaments/damask.svg") repeat,
    radial-gradient(120% 80% at 50% 0%, #7a1526 0%, #5c0f1c 45%, #3d0812 100%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-en);
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream-100);
  overflow-x: hidden;
  font-variant-numeric: lining-nums;
}

[hidden] { display: none !important; }

img { max-width: 100%; display: block; }

.eyebrow, .section-title, .invite p, .shloka p, .shloka-meaning, .panchangam,
.muhurtham__venue, .vow__text, .rsvp__intro, .abhilasha, .hero__invite { text-wrap: balance; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; }

/* ---------- Language switching ---------- */
html[data-lang="en"] [lang="te"],
html[data-lang="te"] [lang="en"] { display: none !important; }

[lang="te"], [lang="te-x-show"] {
  font-family: var(--font-te);
  font-size: .9em;
  line-height: 1.85;
}

[lang="sa"] { font-family: var(--font-te-classic); }

/* ---------- Shared bits ---------- */
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

.divider {
  display: block;
  width: 200px;
  height: 20px;
  margin: 18px auto;
  color: var(--gold-500);
}
.divider--gold { color: var(--gold-400); }

.eyebrow {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--maroon-600);
}
.eyebrow [lang="te"] { letter-spacing: .02em; font-size: 1rem; font-weight: 500; }
.eyebrow--gold { color: var(--gold-400); }

.section-title {
  font-family: var(--font-script);
  font-size: clamp(2.7rem, 9vw, 3.8rem);
  line-height: 1.1;
  color: var(--maroon-700);
}
.section-title [lang="te"] {
  font-family: var(--font-te-display);
  font-size: .72em;
  line-height: 1.5;
  display: inline-block;
  padding-top: .2em;
}
.section-title--gold { color: var(--gold-300); }

.section-head { text-align: center; margin-bottom: 28px; }
.section-head .eyebrow { margin-bottom: 6px; }

.section { padding: 72px 20px; }

/* Lace bands between maroon and cream sections */
.band {
  height: 20px;
  background: var(--cream-100) url("../assets/ornaments/band.svg") repeat-x 0 0 / auto 20px;
}
.band--up { transform: scaleY(-1); }

/* Toran (mango leaves + marigolds) */
.toran {
  position: absolute;
  inset: 0 0 auto 0;
  height: 74px;
  background: url("../assets/ornaments/toran.svg") repeat-x center top / auto 74px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .25));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 46px;
  padding: .6em 1.35em;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn [lang="te"] { font-size: .92em; line-height: 1.5; }

.btn--gold {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  border-color: var(--gold-600);
  color: var(--maroon-900);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5);
}
.btn--gold:hover { background: linear-gradient(180deg, #f8e6b4, var(--gold-400)); }

.btn--ghost {
  background: rgba(0, 0, 0, .12);
  border-color: var(--gold-400);
  color: var(--gold-300);
}
.btn--ghost:hover { background: rgba(243, 220, 156, .12); }

.btn--maroon {
  background: var(--maroon-700);
  color: var(--cream-50);
  border-color: var(--maroon-800);
}
.btn--maroon:hover { background: var(--maroon-800); }

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--maroon-700);
  color: var(--maroon-700);
}
.btn--outline:hover { background: var(--maroon-700); color: var(--cream-50); }

.btn--block { width: 100%; }
.btn--te { font-family: var(--font-te); font-weight: 500; }

.btn:focus-visible,
.icon-btn:focus-visible,
.lang-toggle:focus-visible,
.nav a:focus-visible,
.monogram:focus-visible,
.gallery__item:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 3px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(230, 194, 122, .6);
  background: rgba(0, 0, 0, .15);
  color: var(--gold-300);
  cursor: pointer;
}
.icon-btn .icon { width: 20px; height: 20px; }

/* ---------- Splash ---------- */
.splash { display: none; }

html.js:not(.splash-done) body { overflow: hidden; }

html.js:not(.splash-done) .splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  background: var(--maroon-bg);
  color: var(--cream-50);
  text-align: center;
  transition: opacity .6s ease, visibility .6s;
}
.splash.splash--leaving { opacity: 0; visibility: hidden; }

.splash__inner { padding: 96px 22px 40px; max-width: 560px; }
.splash__kalasam { width: 104px; height: auto; margin: 0 auto 14px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); }
.splash__blessing { font-family: var(--font-te-classic); font-size: 1.05rem; color: var(--gold-300); letter-spacing: .02em; }
.splash__names {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 14vw, 5.2rem);
  line-height: 1.15;
  color: var(--gold-300);
  margin-top: 10px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.splash__names .amp { font-family: var(--font-en); font-style: italic; font-size: .5em; color: var(--gold-500); vertical-align: .25em; }
.splash__names-te { font-family: var(--font-te-display); font-size: 1.9rem; line-height: 1.4; color: var(--gold-400); }
.splash__date { margin-top: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .9rem; color: var(--cream-200); }
.splash__prompt { margin: 30px 0 16px; font-style: italic; color: rgba(255, 250, 240, .85); line-height: 1.5; }
.splash__prompt span { font-style: normal; font-size: .85rem; }
.splash__buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.splash__buttons .btn { min-width: 140px; font-size: 1.1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 14px;
  background: rgba(46, 5, 13, .94);
  border-bottom: 1px solid rgba(212, 166, 74, .55);
  color: var(--cream-50);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.monogram {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: .12em;
  color: var(--gold-300);
  text-decoration: none;
  white-space: nowrap;
}
.monogram span { color: var(--gold-500); margin: 0 .15em; font-size: .9em; }

.nav { display: none; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--gold-400);
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  color: var(--maroon-900);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.lang-toggle .when-en { font-weight: 600; font-size: .95rem; }
html[data-lang="en"] .when-te,
html[data-lang="te"] .when-en { display: none; }

.music-toggle .icon--off { display: none; }
.music-toggle[aria-pressed="false"] .icon--on { display: none; }
.music-toggle[aria-pressed="false"] .icon--off { display: block; }
.music-toggle[aria-pressed="true"] { animation: pulse 2.4s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 194, 122, .45); }
  50% { box-shadow: 0 0 0 7px rgba(230, 194, 122, 0); }
}

@media (min-width: 820px) {
  .site-header { padding: 0 28px; gap: 28px; }
  .nav { display: flex; gap: 26px; margin-left: auto; }
  .nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: .05em;
    color: var(--cream-200);
    padding: 6px 0;
    border-bottom: 1px solid transparent;
  }
  .nav a:hover, .nav a[aria-current="true"] { color: var(--gold-300); border-bottom-color: var(--gold-500); }
  .header-actions { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--maroon-bg);
  color: var(--cream-50);
  text-align: center;
}

.bell {
  position: absolute;
  top: 6px;
  width: 40px;
  height: auto;
  z-index: 2;
  transform-origin: 50% 0;
  animation: swing 3.4s ease-in-out infinite;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .35));
}
.bell--left { left: 5%; }
.bell--right { right: 5%; animation-delay: -1.7s; }

@keyframes swing {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.petal {
  position: absolute;
  top: -6%;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * 1.3);
  border-radius: 80% 0 80% 0;
  background: var(--c);
  opacity: .85;
  animation: fall var(--dur) linear var(--delay) infinite;
}
@keyframes fall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(var(--drift), 55vh, 0) rotate(200deg); }
  100% { transform: translate3d(0, 110vh, 0) rotate(400deg); opacity: .2; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 20px 64px;
}

.blessing {
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: .04em;
  color: var(--gold-300);
  margin-bottom: 26px;
}
.blessing [lang="te"] { font-family: var(--font-te-classic); font-style: normal; font-size: 1rem; }

.hero__grid { display: grid; justify-items: center; gap: 34px; }

.arch-photo {
  position: relative;
  margin: 0;
  width: min(74vw, 340px);
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 18px 18px;
  padding: 7px;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-600));
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .7);
}
.arch-photo::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 999px 999px 24px 24px;
  border: 1px solid rgba(230, 194, 122, .55);
  pointer-events: none;
}
.arch-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 999px 999px 12px 12px;
}

.hero__text .eyebrow { color: var(--gold-400); }

.names {
  font-family: var(--font-script);
  font-size: clamp(3.1rem, 12.5vw, 5.8rem);
  line-height: 1.1;
  color: var(--gold-300);
  margin: 8px 0 4px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.names__amp {
  font-family: var(--font-en);
  font-style: italic;
  font-size: .48em;
  color: var(--gold-500);
  margin: 0 .3em;
  vertical-align: .2em;
}
.names [lang="te"] { font-family: var(--font-te-display); font-size: .8em; line-height: 1.5; }
.names [lang="te"] .names__amp { font-size: .6em; }

.hero__invite { font-style: italic; font-size: 1.3rem; color: var(--cream-200); }
.hero__invite [lang="te"] { font-style: normal; font-size: 1.05rem; }

.hero__date {
  display: inline-block;
  margin-top: 22px;
  padding: 10px 6px;
  border-top: 1px solid rgba(230, 194, 122, .6);
  border-bottom: 1px solid rgba(230, 194, 122, .6);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.hero__date [lang="te"] { letter-spacing: .02em; font-weight: 500; font-size: 1.05rem; }

.hero__place { margin-top: 8px; font-style: italic; font-size: 1.35rem; color: var(--cream-100); }
.hero__place [lang="te"] { font-style: normal; font-size: 1.1rem; }

.countdown { margin-top: 26px; }
.countdown__label { font-size: .95rem; color: var(--cream-200); margin-bottom: 10px; letter-spacing: .06em; }
.countdown__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 76px)); gap: 10px; justify-content: center; }
.countdown__cell {
  display: grid;
  gap: 2px;
  padding: 10px 4px 8px;
  border: 1px solid rgba(230, 194, 122, .5);
  border-radius: 12px;
  background: rgba(0, 0, 0, .2);
}
.countdown__num {
  font-weight: 600;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--gold-300);
  font-variant-numeric: tabular-nums lining-nums;
}
.countdown__unit { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-200); }
.countdown__unit [lang="te"] { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.countdown--done .countdown__grid { display: none; }
.countdown--done .countdown__label { font-size: 1.25rem; font-style: italic; color: var(--gold-300); }

.hero__cta { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (min-width: 880px) {
  .toran { height: 92px; background-size: auto 92px; }
  .bell { width: 54px; top: 8px; }
  .hero__inner { padding-top: 118px; padding-bottom: 84px; }
  .hero__grid { grid-template-columns: minmax(300px, 400px) 1fr; align-items: center; gap: 64px; justify-items: stretch; }
  .arch-photo { width: 100%; }
}

/* ---------- Invitation card ---------- */
.invitation {
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(230, 194, 122, .18), transparent 70%),
    var(--cream-100);
}

.card-frame {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 44px 22px 40px;
  background: var(--cream-50);
  border: 1px solid var(--gold-500);
  border-radius: 6px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.card-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212, 166, 74, .55);
  border-radius: 3px;
  pointer-events: none;
}

.shloka { color: var(--maroon-700); font-size: .95rem; line-height: 1.9; }
.shloka p + p { margin-top: 2px; }
@media (min-width: 700px) { .shloka { font-size: 1.05rem; } }
.shloka-meaning { max-width: 560px; margin: 12px auto 0; font-style: italic; font-size: 1rem; color: var(--ink-soft); }
.shloka-meaning [lang="te"] { font-style: normal; font-size: .92rem; }

.invitation .section-title { margin-bottom: 18px; }

.invite { display: grid; gap: 10px; max-width: 600px; margin: 0 auto; }
.invite__hosts { font-weight: 600; font-size: 1.3rem; color: var(--maroon-700); }
.invite__relation { font-style: italic; color: var(--ink-soft); }
.invite__person { margin-top: 6px; }
.invite__prefix { font-size: .9rem; font-weight: 600; letter-spacing: .08em; color: var(--maroon-600); }
.invite__name {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(2.3rem, 8vw, 3rem);
  line-height: 1.2;
  color: var(--maroon-700);
}
.invite__with { font-style: italic; color: var(--gold-700); }

.invite[lang="te"] .invite__hosts { font-size: 1.12rem; }
.invite[lang="te"] .invite__relation { font-style: normal; }
.invite[lang="te"] .invite__prefix { letter-spacing: 0; font-size: .95rem; }
.invite[lang="te"] .invite__name { display: inline; font-family: var(--font-te-display); font-size: 1.75rem; }

@media (min-width: 700px) {
  .card-frame { padding: 56px 56px 50px; }
  .card-frame::before { inset: 10px; }
}

/* ---------- Sumuhurtham ---------- */
.muhurtham {
  background: var(--maroon-bg);
  color: var(--cream-50);
  text-align: center;
  padding: 64px 20px;
}
.muhurtham__inner { max-width: 760px; margin: 0 auto; }
.muhurtham__date {
  margin-top: 10px;
  font-weight: 600;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  color: var(--gold-300);
  letter-spacing: .02em;
}
.muhurtham__date [lang="te"] { font-weight: 600; font-size: .8em; }
.muhurtham__time {
  font-family: var(--font-script);
  font-size: clamp(3.4rem, 13vw, 4.8rem);
  line-height: 1.15;
  color: var(--gold-400);
}
.muhurtham__time [lang="te"] { font-family: var(--font-te-display); font-size: .55em; line-height: 1.8; }
.panchangam { color: var(--cream-200); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }
.panchangam [lang="en"] { font-style: italic; }
.muhurtham__venue { margin-top: 18px; color: var(--cream-100); }
.muhurtham__venue strong { color: var(--gold-300); font-weight: 600; }

/* ---------- Events ---------- */
.events__grid { display: grid; gap: 22px; max-width: 1080px; margin: 0 auto; }

.event-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 20px 22px;
  background: var(--cream-50);
  border: 1px solid rgba(212, 166, 74, .7);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.event-card__head { text-align: center; }
.event-card__title { font-family: var(--font-script); font-size: 2.8rem; line-height: 1.1; color: var(--maroon-700); }
.event-card__title [lang="te"] { font-family: var(--font-te-display); font-size: .7em; line-height: 1.6; }
.event-card__date { display: inline-flex; align-items: center; gap: .5em; margin-top: 4px; font-weight: 600; color: var(--maroon-600); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.timeline li {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-left: 3px solid var(--gold-400);
  border-radius: 0 10px 10px 0;
  background: rgba(230, 194, 122, .14);
}
.timeline__time { font-weight: 700; color: var(--maroon-700); }
.timeline__main { background: var(--maroon-800) !important; border-left-color: var(--gold-300) !important; }
.timeline__main .timeline__time { color: var(--gold-300); }
.timeline__main .timeline__what { color: var(--cream-50); font-weight: 600; }

.venue { display: flex; gap: 10px; align-items: flex-start; }
.venue .icon { color: var(--maroon-600); margin-top: .3em; }
.venue strong { color: var(--maroon-700); font-weight: 700; }
.venue small { font-size: .9rem; color: var(--ink-soft); font-style: italic; }
.venue [lang="te"] small { font-style: normal; }

.map {
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 166, 74, .7);
  background: var(--cream-200);
}
.map:empty { display: none; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.event-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.event-card__actions .btn { flex: 1 1 160px; }

@media (min-width: 860px) {
  .events__grid { grid-template-columns: 1fr 1fr; }
  .event-card { padding: 32px 30px 28px; }
}

/* ---------- Saptapadi ---------- */
.saptapadi {
  background: var(--maroon-bg);
  color: var(--cream-50);
  padding: 64px 20px 56px;
}
.vows {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1040px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px 16px;
}
.vow {
  flex: 0 1 150px;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}
.vow__feet {
  width: 78px;
  height: 78px;
  padding: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fffaf0, #f3e5c8);
  border: 2px solid var(--gold-400);
  box-shadow: 0 0 0 4px rgba(230, 194, 122, .18);
  margin-bottom: 6px;
}
.vow__step { font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400); }
.vow__step [lang="te"] { letter-spacing: 0; font-size: .9rem; text-transform: none; }
.vow__text { font-style: italic; font-size: 1.12rem; line-height: 1.35; color: var(--cream-50); }
.vow__text [lang="te"] { font-style: normal; font-size: .9rem; line-height: 1.7; }

.naati { margin-top: 38px; text-align: center; display: grid; gap: 2px; }
.naati__te { font-family: var(--font-te-classic); font-size: 1.5rem; color: var(--gold-300); }
.naati__en { font-family: var(--font-script); font-size: 2rem; color: var(--gold-400); }

@media (min-width: 700px) {
  .vow { flex-basis: 200px; }
  .vows { gap: 34px 26px; }
}

/* ---------- Gallery ---------- */
.gallery__grid {
  max-width: 1100px;
  margin: 0 auto;
  columns: 2;
  column-gap: 12px;
}
.gallery__item {
  display: block;
  margin-bottom: 12px;
  break-inside: avoid;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 166, 74, .7);
  background: var(--cream-200);
  box-shadow: 0 14px 30px -22px rgba(61, 8, 18, .6);
}
.gallery__item img { width: 100%; height: auto; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.04); }

@media (min-width: 760px) {
  .gallery__grid { columns: 3; column-gap: 16px; }
  .gallery__item { margin-bottom: 16px; }
}

/* ---------- RSVP ---------- */
.rsvp {
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(230, 194, 122, .2), transparent 70%),
    var(--cream-100);
}
.rsvp__card {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 20px 30px;
  background: var(--cream-50);
  border: 1px solid rgba(212, 166, 74, .8);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.rsvp__card .section-head { margin-bottom: 22px; }
.rsvp__intro { margin-top: 8px; color: var(--ink-soft); }

.rsvp__form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field__label { font-weight: 700; color: var(--maroon-700); font-size: 1rem; padding: 0; }
.field--short input { max-width: 140px; }

.rsvp input[type="text"],
.rsvp input[type="number"],
.rsvp textarea {
  width: 100%;
  font: inherit;
  font-size: 1.1rem;
  color: var(--ink);
  padding: .65em .85em;
  background: #fff;
  border: 1px solid #d8c294;
  border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.rsvp textarea { resize: vertical; min-height: 92px; }
.rsvp input:focus, .rsvp textarea:focus {
  outline: none;
  border-color: var(--maroon-600);
  box-shadow: 0 0 0 3px rgba(212, 166, 74, .35);
}
html[data-lang="te"] .rsvp input::placeholder,
html[data-lang="te"] .rsvp textarea::placeholder { font-family: var(--font-te); font-size: .9em; }

.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .5em 1em;
  border: 1px solid #d8c294;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  line-height: 1.3;
  transition: background-color .2s ease, border-color .2s ease;
}
.choice input { accent-color: var(--maroon-700); width: 1.05em; height: 1.05em; margin: 0; }
.choice:has(input:checked) { background: var(--gold-100); border-color: var(--gold-600); }
.choice:has(input:focus-visible) { outline: 3px solid var(--gold-400); outline-offset: 2px; }

.if-attending { display: grid; gap: 18px; }
.if-attending[hidden] { display: none; }

.form-error { color: var(--kumkum); font-weight: 600; }
.rsvp__note { text-align: center; font-size: .92rem; color: var(--ink-soft); }
[data-rsvp-number] { white-space: nowrap; font-family: var(--font-en); font-weight: 600; }

@media (min-width: 640px) {
  .rsvp__card { padding: 44px 44px 36px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--maroon-bg);
  color: var(--cream-50);
  text-align: center;
  padding: 56px 20px 44px;
}
.footer__inner { max-width: 760px; margin: 0 auto; }
.abhilasha { margin-top: 10px; font-style: italic; font-size: 1.2rem; color: var(--cream-100); }
.abhilasha [lang="te"] { font-style: normal; font-size: .95rem; }

.signatures { display: grid; gap: 22px; margin: 6px 0 30px; }
.signatures__role { font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 4px; }
.signatures__role [lang="te"] { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.signatures__names { font-weight: 600; font-size: 1.2rem; color: var(--gold-300); line-height: 1.5; }

.contact { margin-bottom: 26px; }
.contact__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.contact__links .btn { font-variant-numeric: lining-nums; letter-spacing: .06em; }

.compliments { font-style: italic; color: var(--gold-400); }
.compliments [lang="te"] { font-style: normal; }

@media (min-width: 560px) {
  .signatures { grid-template-columns: 1fr 1fr; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(24, 4, 9, .96);
  color: var(--cream-50);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .7); }
.lightbox__img {
  max-width: 92vw;
  max-height: 84vh;
  max-height: 84dvh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.lightbox .icon-btn { position: absolute; width: 48px; height: 48px; background: rgba(0, 0, 0, .45); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }
.lightbox__count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; letter-spacing: .2em; color: var(--gold-300); font-weight: 600; }

/* ---------- Scroll reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bell, .music-toggle[aria-pressed="true"] { animation: none; }
  .petals { display: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .gallery__item img { transition: none; }
  .splash { transition: none !important; }
}
