/* ==========================================================================
   Royal Maharashtrian Paithani & Marigold Wedding Theme (Mobile-First)
   ========================================================================== */
:root {
  --maroon-deep: #520812;
  --maroon: #7a1020;
  --maroon-light: #a11c33;
  --gold: #d4af37;
  --gold-bright: #fae084;
  --haldi: #f2a900;
  --paithani-teal: #0e5a53;
  --ivory: #fffaf0;
  --ivory-warm: #fdf0d8;
  --text-dark: #2c1316;
  --text-muted: #634448;
  --border-gold: rgba(212, 175, 55, 0.5);
  --shadow-royal: 0 18px 45px rgba(82, 8, 18, 0.14);
  --radius-lg: 22px;
  --radius-md: 14px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: "Mukta", "Noto Sans Devanagari", sans-serif;
  color: var(--text-dark);
  background-color: var(--ivory);
  background-image:
    radial-gradient(circle at 10% 15%, rgba(212, 175, 55, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 90% 45%, rgba(122, 16, 32, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 18% 82%, rgba(14, 90, 83, 0.08) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d4af37' stroke-opacity='0.14' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='18'/%3E%3Cpath d='M40 14 L46 34 L66 40 L46 46 L40 66 L34 46 L14 40 L34 34 Z'/%3E%3C/g%3E%3C/svg%3E");
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

.wedding-bg-graphics {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.wedding-bg-graphics svg {
  position: absolute;
  opacity: 0.24;
}

.bg-mandala-top {
  width: 340px;
  height: 340px;
  top: -85px;
  left: -95px;
  animation: slowSpin 48s linear infinite;
}

.bg-mandala-bottom {
  width: 320px;
  height: 320px;
  bottom: -95px;
  right: -95px;
  animation: slowSpin 54s linear infinite reverse;
}

.bg-kalash {
  width: 150px;
  height: 175px;
  opacity: 0.16;
}

.bg-kalash-left {
  top: 38%;
  left: 16px;
}

.bg-kalash-right {
  top: 26%;
  right: 16px;
}

main,
.site-footer,
.toran-strip {
  position: relative;
  z-index: 1;
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

h1, h2, h3, h4, .shloka, .cover-title {
  font-family: "Noto Serif Devanagari", serif;
  margin-top: 0;
}

#petals-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 900;
}

/* ==========================================================================
   Floating Mini Controls (Bottom-Right, Unobtrusive)
   ========================================================================== */
.floating-controls {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.float-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: rgba(82, 8, 18, 0.9);
  backdrop-filter: blur(8px);
  color: var(--gold-bright);
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(40, 4, 8, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.float-btn:hover,
.float-btn:active {
  transform: scale(1.08);
  background: var(--maroon);
}

/* ==========================================================================
   Royal Patrika Opening Cover
   ========================================================================== */
.patrika-cover {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: radial-gradient(circle at center, #8a1326 0%, #44050d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s ease;
}

.patrika-cover.hidden {
  opacity: 0;
  transform: scale(1.05);
  visibility: hidden;
  pointer-events: none;
}

.cover-inner {
  position: relative;
  max-width: 540px;
  width: 100%;
  background: linear-gradient(160deg, rgba(90, 10, 20, 0.95), rgba(56, 4, 11, 0.97));
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2.3rem 1.5rem;
  text-align: center;
  color: var(--ivory);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55), inset 0 0 35px rgba(212, 175, 55, 0.16);
}

.cover-corner,
.card-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--gold);
  border-style: solid;
  pointer-events: none;
}
.cover-corner.tl, .card-corner.tl { top: 12px; left: 12px; border-width: 2.5px 0 0 2.5px; }
.cover-corner.tr, .card-corner.tr { top: 12px; right: 12px; border-width: 2.5px 2.5px 0 0; }
.cover-corner.bl, .card-corner.bl { bottom: 12px; left: 12px; border-width: 0 0 2.5px 2.5px; }
.cover-corner.br, .card-corner.br { bottom: 12px; right: 12px; border-width: 0 2.5px 2.5px 0; }

.cover-mantra {
  font-size: 0.88rem;
  color: var(--gold-bright);
  margin-bottom: 0.9rem;
}

.cover-emblem {
  width: 88px;
  height: 88px;
  margin: 0 auto 0.9rem;
  animation: floatGentle 4s ease-in-out infinite;
}

.emblem-svg {
  width: 100%;
  height: 100%;
}

.cover-title {
  font-family: "Rozha One", "Noto Serif Devanagari", serif;
  font-size: clamp(1.9rem, 6vw, 2.7rem);
  color: var(--gold-bright);
  margin-bottom: 0.35rem;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}

.cover-subtitle {
  font-size: 0.95rem;
  color: #f5dcc0;
  margin-bottom: 1.15rem;
}

.cover-couples {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.9rem;
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
  padding: 0.75rem 1rem;
  background: rgba(212, 175, 55, 0.13);
  border: 1px dashed var(--gold);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.cover-couples strong {
  color: #ff8594;
}

.cover-amp {
  color: var(--gold-bright);
  font-size: 1rem;
}

.cover-date {
  font-size: 1.02rem;
  color: var(--gold-bright);
  margin-bottom: 1.4rem;
}

.btn-royal {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold), #b9891f);
  color: #3d050c;
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1.12rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 25px rgba(247, 215, 116, 0.38);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-royal:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 30px rgba(247, 215, 116, 0.55);
}

/* ==========================================================================
   Top Decorative Toran
   ========================================================================== */
.toran-strip {
  height: 12px;
  background-image: repeating-linear-gradient(
    90deg,
    #1f6f3e 0px,
    #1f6f3e 16px,
    #f2a900 16px,
    #f2a900 28px,
    #d94e1f 28px,
    #d94e1f 38px
  );
  border-bottom: 2px solid var(--gold);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 2.2rem 1rem 2rem;
  display: flex;
  justify-content: center;
}

.hero-card {
  max-width: 920px;
  width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, var(--ivory-warm) 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-royal);
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(122, 16, 32, 0.22);
  border-radius: 14px;
  pointer-events: none;
}

.ornament-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 1.2rem;
}

.shloka-box {
  display: inline-block;
  background: rgba(212, 175, 55, 0.14);
  border-left: 3px solid var(--maroon);
  border-right: 3px solid var(--maroon);
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  margin-bottom: 1.35rem;
}

.shloka {
  margin: 0;
  font-size: 1.02rem;
  color: var(--maroon-deep);
  font-weight: 600;
}

.invite-lead {
  font-size: 1.06rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.highlight-name {
  font-family: "Noto Serif Devanagari", serif;
  font-size: 1.35rem;
  color: var(--maroon);
}

.place-sub {
  font-size: 0.96rem;
}

.main-heading {
  font-family: "Rozha One", "Noto Serif Devanagari", serif;
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  color: var(--maroon-deep);
  margin: 0.4rem 0 0.9rem;
  letter-spacing: 0.5px;
}

.hero-date-pill {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.65rem;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  color: var(--gold-bright);
  padding: 0.5rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.countdown-wrapper {
  margin-bottom: 1.75rem;
}

.countdown-label {
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 0.65rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 102px));
  justify-content: center;
  gap: 0.75rem;
}

.cd-box {
  background: linear-gradient(160deg, var(--maroon), var(--maroon-deep));
  color: #fff;
  padding: 0.8rem 0.4rem;
  border-radius: 14px;
  border: 1.5px solid var(--gold);
  box-shadow: 0 8px 18px rgba(82, 8, 18, 0.22);
}

.cd-num {
  display: block;
  font-family: "Noto Serif Devanagari", serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.2;
}

.cd-unit {
  font-size: 0.84rem;
  color: #f9e8d2;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.55rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--maroon-light), var(--maroon-deep));
  color: var(--gold-bright);
  box-shadow: 0 8px 20px rgba(122, 16, 32, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(122, 16, 32, 0.35);
}

.btn-secondary {
  background: #fff;
  color: var(--maroon-deep);
  border: 2px solid var(--gold);
}

.btn-secondary:hover {
  background: var(--ivory-warm);
  transform: translateY(-2px);
}

/* ==========================================================================
   Sections & Headings
   ========================================================================== */
.section {
  padding: 3.25rem 1rem;
  max-width: 1120px;
  margin: 0 auto;
}

.couples-section {
  padding-top: 1.5rem;
}

.section-tinted {
  max-width: 100%;
  background: linear-gradient(180deg, rgba(253, 240, 216, 0.65), rgba(255, 250, 240, 0.92));
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

.section-tinted > * {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-tag {
  display: inline-block;
  color: var(--maroon);
  font-weight: 700;
  font-size: 0.96rem;
  margin-bottom: 0.3rem;
}

.section-title {
  font-family: "Rozha One", "Noto Serif Devanagari", serif;
  font-size: clamp(1.75rem, 4.2vw, 2.45rem);
  color: var(--maroon-deep);
  margin-bottom: 0.35rem;
}

.section-desc {
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   Couples Grid
   ========================================================================== */
.couples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.hero-couples {
  margin: 1.25rem 0 1.75rem;
  position: relative;
  z-index: 2;
}

.couple-card {
  background: linear-gradient(180deg, #ffffff 0%, #fffaf2 100%);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.35rem;
  text-align: center;
  box-shadow: var(--shadow-royal);
  position: relative;
  overflow: hidden;
}

.couple-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--maroon), var(--gold), var(--paithani-teal));
}

.couple-badge {
  display: inline-block;
  background: var(--ivory-warm);
  color: var(--maroon);
  border: 1px solid var(--gold);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
}

.couple-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}

.person .honorific {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.person h3 {
  font-family: "Rozha One", "Noto Serif Devanagari", serif;
  font-size: 1.95rem;
  color: var(--maroon-deep);
  margin: 0;
}

.knot-symbol {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--gold-bright);
  border: 1.5px solid var(--gold);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.couple-parents {
  background: var(--ivory);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.96rem;
}

.couple-parents p {
  margin: 0.2rem 0;
}

.couple-parents .address {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.invitation-plea {
  margin-top: 1.75rem;
  text-align: center;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  color: var(--ivory);
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--gold);
  font-size: 1.06rem;
  box-shadow: var(--shadow-royal);
}

.invitation-plea p {
  margin: 0;
}

/* ==========================================================================
   Pre-Wedding Photo Gallery & Lightbox
   ========================================================================== */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  background: var(--ivory-warm);
  color: var(--maroon-deep);
  border: 1.5px solid var(--gold);
  min-height: 40px;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--maroon);
  color: var(--gold-bright);
  border-color: var(--maroon);
}

.gallery-card.is-hidden {
  display: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.gallery-card {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--gold);
  background: var(--maroon-deep);
  box-shadow: var(--shadow-royal);
  cursor: pointer;
  aspect-ratio: 3 / 4;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card.gallery-wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(82, 8, 18, 0.24);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-card figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2rem 0.85rem 0.75rem;
  background: linear-gradient(transparent, rgba(40, 4, 8, 0.9));
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 0.94rem;
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1150;
  background: rgba(25, 3, 6, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(94vw, 960px);
  max-height: 76vh;
  border-radius: 14px;
  border: 2px solid var(--gold);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
  object-fit: contain;
}

.lightbox-caption {
  color: var(--gold-bright);
  font-family: "Noto Serif Devanagari", serif;
  font-size: 1.08rem;
  margin-top: 0.9rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: rgba(82, 8, 18, 0.88);
  color: var(--gold-bright);
  font-size: 1.25rem;
  cursor: pointer;
}

/* ==========================================================================
   Events Timeline
   ========================================================================== */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.event-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.45rem;
  border: 2px solid var(--border-gold);
  box-shadow: var(--shadow-royal);
  text-align: center;
}

.haldi-card {
  border-top: 6px solid var(--haldi);
  background: linear-gradient(180deg, #fffdf4 0%, #fff6d1 100%);
}

.wedding-card {
  border-top: 6px solid var(--maroon);
}

.event-icon {
  font-size: 2.3rem;
  margin-bottom: 0.45rem;
}

.event-time {
  display: inline-block;
  background: var(--maroon);
  color: var(--gold-bright);
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.event-card h3 {
  font-size: 1.5rem;
  color: var(--maroon-deep);
  margin-bottom: 0.55rem;
}

.event-place {
  display: block;
  margin-top: 0.9rem;
  font-weight: 700;
  color: var(--paithani-teal);
}

.important-note {
  margin-top: 1.75rem;
  text-align: center;
}

.important-note span {
  display: inline-block;
  background: linear-gradient(135deg, var(--maroon-light), var(--maroon-deep));
  border: 2px solid var(--gold);
  color: var(--gold-bright);
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 26px rgba(122, 16, 32, 0.28), 0 0 0 4px rgba(212, 175, 55, 0.2);
  animation: pulseNote 2.6s ease-in-out infinite;
}

@keyframes pulseNote {
  0%, 100% { box-shadow: 0 10px 26px rgba(122, 16, 32, 0.28), 0 0 0 4px rgba(212, 175, 55, 0.18); }
  50% { box-shadow: 0 12px 30px rgba(122, 16, 32, 0.38), 0 0 0 7px rgba(212, 175, 55, 0.32); }
}

/* ==========================================================================
   Venue Box
   ========================================================================== */
.venue-box {
  max-width: 680px;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf2 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-royal);
}

.venue-pin {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.venue-box h3 {
  font-size: 1.75rem;
  color: var(--maroon-deep);
  margin-bottom: 0.45rem;
}

.venue-address {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}

/* ==========================================================================
   Family Tabs
   ========================================================================== */
.tabs-container {
  background: #fff;
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-royal);
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 1rem;
}

.tab-btn {
  background: var(--ivory-warm);
  color: var(--maroon-deep);
  border: 1px solid var(--border-gold);
  min-height: 40px;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--maroon);
  color: var(--gold-bright);
  border-color: var(--maroon);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.35s ease;
}

.tab-panel.active {
  display: block;
}

.family-subgroup h4 {
  text-align: center;
  color: var(--maroon);
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}

.highlight-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.mini-card {
  background: var(--ivory);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  text-align: center;
}

.mini-card p {
  margin: 0.2rem 0;
}

.names-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem 1rem;
}

.names-grid li,
.names-list li {
  background: var(--ivory);
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  border-left: 3px solid var(--gold);
  font-weight: 500;
}

.two-col-family {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.35rem;
}

.names-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mandal-banner {
  margin-top: 1.35rem;
  background: var(--paithani-teal);
  color: #fff;
  padding: 0.95rem 1.15rem;
  border-radius: 12px;
  text-align: center;
  font-size: 0.98rem;
}

.pill-text {
  font-weight: 600;
  color: var(--maroon-deep);
  line-height: 1.8;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, var(--maroon), #38040b);
  color: var(--ivory);
  border-top: 3px solid var(--gold);
  padding: 2.8rem 1rem 2.2rem;
  text-align: center;
}

.footer-inner {
  max-width: 780px;
  margin: 0 auto;
}

.footer-nimantrak .section-tag {
  color: var(--gold-bright);
}

.footer-nimantrak h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.footer-nimantrak p {
  margin: 0.2rem 0;
  color: #f5dcc0;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.2rem 0 1.6rem;
}

.contact-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-signoff {
  font-family: "Noto Serif Devanagari", serif;
  font-size: 1.25rem;
  color: var(--gold-bright);
  font-weight: 700;
  margin: 0;
}

/* ==========================================================================
   Toast & Animations
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--maroon-deep);
  color: var(--gold-bright);
  border: 1.5px solid var(--gold);
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1200;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Mobile Optimization (<= 640px)
   ========================================================================== */
@media (max-width: 640px) {
  .bg-mandala-top,
  .bg-mandala-bottom {
    width: 220px;
    height: 220px;
  }
  .bg-kalash {
    width: 95px;
    height: 110px;
    opacity: 0.12;
  }
  .hero-section {
    padding: 1.25rem 0.8rem 1.5rem;
  }
  .hero-card {
    padding: 1.65rem 1rem;
  }
  .ornament-top {
    font-size: 0.82rem;
    gap: 0.3rem 0.75rem;
  }
  .shloka-box {
    padding: 0.55rem 0.85rem;
  }
  .shloka {
    font-size: 0.92rem;
  }
  .highlight-name {
    font-size: 1.18rem;
  }
  .hero-date-pill {
    font-size: 0.86rem;
    padding: 0.45rem 1rem;
  }
  .countdown-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
  }
  .cd-box {
    padding: 0.65rem 0.25rem;
    border-radius: 10px;
  }
  .cd-num {
    font-size: 1.3rem;
  }
  .cd-unit {
    font-size: 0.76rem;
  }
  .section {
    padding: 2.35rem 0.85rem;
  }
  .couples-section {
    padding-top: 0.75rem;
  }
  .person h3 {
    font-size: 1.65rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }
  .gallery-card.gallery-wide {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }
  .gallery-card:nth-child(4n) {
    grid-column: 1 / -1;
    aspect-ratio: auto;
  }
  .gallery-card:nth-child(4n) img {
    height: auto;
  }
  .gallery-card figcaption {
    font-size: 0.78rem;
    padding: 1.5rem 0.5rem 0.5rem;
  }
  .tabs-container {
    padding: 1rem 0.85rem;
  }
  .names-grid {
    grid-template-columns: 1fr;
  }
  .floating-controls {
    right: 12px;
    bottom: 12px;
  }
  .float-btn {
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }
}
