/* ── FIXED FONT BASELINE ──────────────────────────
   Sets 1rem = 16px on all devices by anchoring to
   a fixed reference width of 390px (standard phone).
   On narrower screens fonts scale down slightly,
   on wider ones slightly up — but the range is tiny
   so text looks identical across all modern phones.
─────────────────────────────────────────────────── */
:root {
  font-size: 16px;
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  text-size-adjust: none;
  --vh: 1svh; /* svh = small viewport height — consistent before JS runs */
  --screen-h: 100svh;
}

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

html, body {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

/* ════════════════════════════════════
   LOADING SCREEN
════════════════════════════════════ */
#loader {
  position: fixed;
  inset: 0;
  background: #0d0500;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#loader-diya {
  font-size: 3rem;
  animation: diyaPulse 1.2s ease-in-out infinite;
}

@keyframes diyaPulse {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%       { transform: scale(1.3); opacity: 0.7; }
}

#loader-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.6rem;
  background: linear-gradient(135deg,
    #f5e27a 0%, #d4af37 40%, #fff5b0 60%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

#loader-bar-wrap {
  width: 200px;
  height: 3px;
  background: rgba(212,175,55,0.2);
  border-radius: 4px;
  overflow: hidden;
}

#loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d4af37, #f5e27a);
  border-radius: 4px;
  transition: width 0.2s ease;
}

/* ════════════════════════════════════
   SECTION 2 NAVBAR
════════════════════════════════════ */
#s2-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: rgba(252, 240, 200, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(180,130,30,0.3);
  /* starts above viewport */
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

#s2-navbar.visible {
  transform: translateY(0);
}

/* navbar center — nav-left | #namakshi | nav-right */
#navbar-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

#nav-left-img,
#nav-right-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.85;
}

#namakshi-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  color: #5a2d00;
  -webkit-text-fill-color: #5a2d00;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* navbar buttons — brown border + icons */
#mute-btn,
#lang-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(90,45,0,0.5);
  background: rgba(252,240,200,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

#mute-btn:active,
#lang-btn:active {
  background: rgba(252,240,200,0.7);
}

#mute-btn svg {
  width: 20px;
  height: 20px;
}

#lang-label {
  font-family: 'Halant', serif;
  font-size: 0.85rem;
  color: rgba(90,45,0,0.9);
  font-weight: 400;
}

/* ════════════════════════════════════
   SECTION 1 BUTTONS — peach style
════════════════════════════════════ */
#mute-btn-s1,
#lang-btn-s1 {
  position: fixed;
  top: 16px;
  z-index: 9997;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(90,45,0,0.5);
  background: rgba(255,235,210,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.2s ease, opacity 0.3s ease;
}

#mute-btn-s1:active,
#lang-btn-s1:active {
  background: rgba(255,235,210,0.32);
}

#mute-btn-s1 { left: 16px; }
#lang-btn-s1 { right: 16px; }

#mute-btn-s1 svg { width: 22px; height: 22px; }

#lang-label-s1 {
  font-family: 'Halant', serif;
  font-size: 0.9rem;
  color: rgba(255,235,210,0.95);
  font-weight: 400;
}

/* when section 2 navbar visible, hide s1 buttons */
#mute-btn-s1.hidden,
#lang-btn-s1.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ════════════════════════════════════
   SNAP WRAPPER
════════════════════════════════════ */
#snap-wrap {
  width: 100%;
  height: 100dvh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
}

#snap-wrap.locked {
  overflow-y: hidden;
}

.snap-section {
  width: 100%;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
}

/* ════════════════════════════════════
   SECTION 1: DOOR + COURTYARD
   — completely unchanged
════════════════════════════════════ */
#door-sticky {
  perspective: 1800px;
  perspective-origin: 50% 50%;
  cursor: pointer;
}

#behind-door {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

#courtyard-behind {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.blossom {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.blossom-left {
  bottom: 0;
  left: 0;
  width: min(44vw, 180px);
  opacity: 0.88;
}

.blossom-right {
  bottom: 0;
  right: 0;
  width: min(44vw, 180px);
  opacity: 0.88;
}

#names-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  justify-content: center;
  padding-top: 4%;
  opacity: 0;
  pointer-events: none;
}

#names-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  width: 88%;
}

#name-groom,
#name-bride {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 7vw, 2.4rem);
  color: #5a2d00;
  letter-spacing: 0.1em;
  line-height: 1.15;
}

#weds-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 50%;
  margin: 3px auto;
}

.weds-line {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.weds-line:first-child { flex-direction: row; }
.weds-line:last-child  { flex-direction: row; }

.weds-line-bar {
  flex: 1;
  height: 1px;
  background: #5a2d00;
  opacity: 0.5;
}

.lotus-end {
  width: 26px;
  height: 26px;
  object-fit: contain;
  opacity: 0.8;
  flex-shrink: 0;
}

#weds-word {
  font-family: 'Pacifico', cursive;
  font-weight: 400;
  font-size: clamp(1rem, 3.8vw, 1.3rem);
  color: #5a2d00;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0 4px;
}

.lotus-main-img {
  width: 35px;
  height: 35px;
  object-fit: contain;
  opacity: 0.85;
  margin-top: 4px;
}

#door-left,
#door-right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#door-left {
  left: 0;
  object-position: right center;
  transform-origin: left center;
}

#door-right {
  right: 0;
  object-position: left center;
  transform-origin: right center;
}

#tap-indicator {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  pointer-events: none;
  animation: tapFloat 2s ease-in-out infinite;
  transition: opacity 0.4s ease;
}

#tap-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  color: rgba(255,235,210,0.95);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  transition: color 0.5s ease, text-shadow 0.5s ease;
}

#tap-svg-wrap {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tap-lotus {
  width: 34px;
  height: 34px;
  object-fit: contain;
  transition: all 0.5s ease;
}

#tap-chevron {
  width: 36px;
  height: auto;
}

@keyframes tapFloat {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.9; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 1;   }
}


#petal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

/* ════════════════════════════════════
   SECTION 2: INVITATION
════════════════════════════════════ */
#section-invite {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* portrait bg image — full bleed */
#invite-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#invite-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: blur(3px);
  transform: scale(1.05);
}

/* invitation card — equal strip on all sides
   top strip = navbar(58px) + gap(16px) = 74px               */
#invite-card {
  position: absolute;
  top: 74px;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  border-radius: 18px;
  border: 1.5px solid rgba(200,148,47,0.6);
  background: rgba(255, 252, 240, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* flex column so inner can use flex: 1 1 0 */
  display: flex;
  flex-direction: column;
  /* card itself does NOT scroll — inner does */
  overflow: hidden;
}

#invite-card::-webkit-scrollbar {
  display: none;
}

#invite-card-inner {
  padding: 28px 22px 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  /* height: 100% alone doesn't work in flex — min-height: 0 is needed */
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

#invite-card-inner::-webkit-scrollbar {
  display: none;
}

#invite-card-inner::-webkit-scrollbar {
  display: none;
}

.inv-para {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(0.90rem, 3.4vw, 1.02rem);
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.inv-divider-line {
  width: 55%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(180,130,30,0.5) 30%,
    rgba(180,130,30,0.5) 70%, transparent);
  margin: 6px auto;
  flex-shrink: 0;
}

.inv-person-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.inv-name {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  letter-spacing: 0.06em;
  line-height: 1.05;
}

.inv-parents {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(0.82rem, 3vw, 0.94rem);
  line-height: 1.3;
  opacity: 0.85;
}

.inv-gotra {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(0.68rem, 2.2vw, 0.74rem);
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.inv-and {
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.05rem, 4vw, 1.2rem);
  opacity: 0.7;
  margin: -2px 0;
}

.inv-closing {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(0.72rem, 2.8vw, 0.88rem);
  margin-top: 4px;
  letter-spacing: 0.06em;
}

.gold {
  background: linear-gradient(135deg,
    #7a3e00 0%, #c8942f 40%, #7a3e00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brown {
  color: #5a2d00;
  -webkit-text-fill-color: #5a2d00;
}

/* procession overlay — bottom of section 2 */
#procession-wrap {
  position: absolute;
  bottom: -12px;
  left: -2px;
  right: -2px;
  z-index: 3;
  pointer-events: none;
}

#procession-img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(100%) scaleY(1.1);
  transform-origin: bottom center;
  opacity: 0;
  filter: drop-shadow(0 -4px 12px rgba(0,0,0,0.15));
}

#procession-img.popped {
  animation: processionPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes processionPop {
  0%   { transform: translateY(100%) scaleY(1.1); opacity: 0; }
  100% { transform: translateY(0)    scaleY(1.1); opacity: 1; }
}

/* ════════════════════════════════════
   SECTION 3
════════════════════════════════════ */
#section-timeline {
  background: #0d0500;
}

/* ════════════════════════════════════
   HINDI FONT
════════════════════════════════════ */
.lang-hi {
  font-family: 'Halant', serif !important;
  font-style: normal !important;
  font-size: 100% !important;
}

/* names in section 1 and section 2 use Laila */
/* section 1 names */
#name-groom.lang-hi,
#name-bride.lang-hi {
  font-family: 'Laila', serif !important;
  font-size: clamp(1.6rem, 6.5vw, 2.2rem) !important;
}

/* section 2 names — bigger and bolder */
#inv-groom-name.lang-hi,
#inv-bride-name.lang-hi {
  font-family: 'Laila', serif !important;
  font-size: clamp(2.1rem, 8vw, 2.6rem) !important;
  font-weight: 900 !important;
}

#namakshi-text.lang-hi {
  font-family: 'Halant', serif !important;
  font-size: clamp(1.4rem, 5.5vw, 1.75rem) !important;
}

#weds-word.lang-hi {
  font-family: 'Halant', serif !important;
  font-size: clamp(1.1rem, 4.2vw, 1.4rem) !important;
}

/* ════════════════════════════════════
   MOBILE
════════════════════════════════════ */
@media (max-width: 600px) {
  #door-sticky   { perspective: 1000px; }
  #couple-wrap   { width: min(52vw, 200px); }
  .blossom-left,
  .blossom-right { width: min(50vw, 170px); }
  #invite-card   {
    top: 74px;
    left: 12px;
    right: 12px;
    bottom: 16px;
  }
  #invite-card-inner { padding: 22px 16px 16px; }
}

#card-top-img-wrap {
  width: calc(100% + 44px);
  /* negative top+sides pull image to card edges correctly */
  /* use margin-bottom only as positive to give text breathing room */
  margin: -28px -22px 12px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  flex-shrink: 0; /* never let the image shrink in flex column */
}

#card-top-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px 18px 0 0;
}



#card-end-wrap {
  width: 60%;
  margin: -16px auto 0;
}

#card-end-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.85;
}

.inv-gotra.lang-hi {
  font-size: clamp(0.68rem, 2vw, 0.72rem) !important;
  font-weight: 400 !important;
}

#branches-wrap {
  position: absolute;
  top: 58px;
  left: -2px;
  right: -2px;
  z-index: 3;
  pointer-events: none;
}

#branches-img {
  width: 100%;
  height: auto;
  display: block;
}



/* ════════════════════════════════════
   SECTION 3: EVENTS
════════════════════════════════════ */
#section-events {
  overflow: hidden;
  position: relative;
  background: #1a0800;
}

#events-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#events-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: none;
  opacity:0.45;
  transform: scale(1.04);
  transition: opacity 0.3s ease;
}

/* =========================================
   SECTION 3: EVENT FOREGROUND DECORATION
   ========================================= */

#events-front-img {
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center bottom;

  display: block;

  z-index: 4;
  opacity: 1;

  pointer-events: none;

  transition: opacity 0.3s ease;
}

#marigold-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

#events-card-stack {
  position: absolute;

  left: 42px;
  right: 42px;

  top: 82px;
  bottom: calc(36px + env(safe-area-inset-bottom, 0px));

  z-index: 2;
  overflow: hidden;
}

/* arrow buttons */
.events-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 34px;
  height: 34px;

  background: rgba(61,26,0,0.55);
  border: 1px solid rgba(212,175,55,0.5);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  transition: background 0.2s ease;
}

.events-arrow:active {
  background: rgba(61,26,0,0.85);
}

.events-arrow svg {
  width: 16px;
  height: 16px;
}
#events-arrow-left  { left: 8px; }
#events-arrow-right { right: 8px; }

#events-arrow-left.disabled,
#events-arrow-right.disabled {
  opacity: 0.25;
  pointer-events: none;
}

.event-card {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1.5px solid rgba(212,175,55,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  /* horizontal sliding */
  transition: none;
}
/* card image */
.event-card-img-wrap {
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.event-card-img {
  width: 100%;
  height: auto;
  max-height: 28dvh;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* card body */
.event-card-body {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-card-body::-webkit-scrollbar { display: none; }

.event-card-name {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.35rem;
  text-align: center;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: #3d1a00;
  -webkit-text-fill-color: #3d1a00;
  flex-shrink: 0;
}

.event-card-intro {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.84rem;
  text-align: center;
  line-height: 1.5;
  color: #3d1a00;
  -webkit-text-fill-color: #3d1a00;
  opacity: 0.85;
  flex-shrink: 0;
}

.event-card-divider {
  width: 50%;
  height: 1px;
  margin: 4px auto;
  background: linear-gradient(90deg,
    transparent,
    rgba(180,130,30,0.5) 30%,
    rgba(180,130,30,0.5) 70%,
    transparent);
  flex-shrink: 0;
}

/* detail rows — all same size as countdown */
.event-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
  flex-shrink: 0;
}

.event-detail-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-detail-icon svg {
  width: 16px;
  height: 16px;
  stroke: #3d1a00;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-detail-label {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #3d1a00;
  -webkit-text-fill-color: #3d1a00;
  flex-shrink: 0;
  min-width: 72px;
}

.event-detail-value {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  color: #3d1a00;
  -webkit-text-fill-color: #3d1a00;
  flex: 1;
}

/* countdown — same font size as rest */
.countdown-row-inner {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.countdown-num {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #3d1a00;
  -webkit-text-fill-color: #3d1a00;
  line-height: 1;
  min-width: 20px;
  text-align: right;
}

.countdown-label {
  font-family: 'Playfair Display', serif;
  font-size: 0.74rem;
  color: #3d1a00;
  -webkit-text-fill-color: #3d1a00;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.event-venue-link {
  color: #3d1a00;
  -webkit-text-fill-color: #3d1a00;
  text-decoration: underline;
  text-decoration-color: rgba(61,26,0,0.35);
  text-underline-offset: 2px;
}

/* buttons — brown rectangular */
.event-btn-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 6px;
  flex-shrink: 0;
}

.event-btn {
  width: 77%;
  margin: 0 auto;
  padding: 10px 10px;
  border-radius: 0;
  border: 1px solid rgba(212,175,55,0.6);
  background: #3d1a00;
  font-family: 'Playfair Display', serif;
  font-style: normal;
  font-size: 0.92rem;
  color: rgba(255,235,210,0.95);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: background 0.2s ease;
  -webkit-text-fill-color: rgba(255,235,210,0.95);
}

.event-btn:active {
  background: #2a0e00;
}



/* hindi overrides for event cards */
.lang-hi .event-card-name,
.lang-hi .event-card-intro,
.lang-hi .event-detail-label,
.lang-hi .event-detail-value,
.lang-hi .event-btn {
  font-family: 'Halant', serif;
}





.event-card[data-dark-card="true"] .event-card-name,
.event-card[data-dark-card="true"] .event-card-intro,
.event-card[data-dark-card="true"] .event-detail-label,
.event-card[data-dark-card="true"] .event-detail-value,
.event-card[data-dark-card="true"] .event-venue-link,
.event-card[data-dark-card="true"] .countdown-num,
.event-card[data-dark-card="true"] .countdown-label,
.event-card[data-dark-card="true"] .event-card-divider {
  color: rgba(255,235,210,0.95) !important;
  -webkit-text-fill-color: rgba(255,235,210,0.95) !important;
}

.event-card[data-dark-card="true"] .event-card-divider {
  background: linear-gradient(90deg,
    transparent,
    rgba(255,235,210,0.4) 30%,
    rgba(255,235,210,0.4) 70%,
    transparent);
}

.event-card[data-dark-card="true"] .event-detail-icon svg {
  stroke: rgba(255,235,210,0.95) !important;
}


/* ════════════════════════════════════
   SECTION 4: WISHES + FOOTER
════════════════════════════════════ */
#section-wishes {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #1a0800;
}

/* top half — bg image + buttons */
#wishes-top {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

#wishes-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.45);
  display: block;
}

#wishes-btn-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0 40px;
}

.wishes-btn {
  width: 100%;
  padding: 14px 20px;
  background: #3d1a00;
  border: 1px solid rgba(212,175,55,0.5);
  border-radius: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: rgba(255,235,210,0.95);
  -webkit-text-fill-color: rgba(255,235,210,0.95);
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease;
}

.wishes-btn:active { background: #2a0e00; }

/* rsvp input */
#rsvp-input-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

#rsvp-name-input {
  width: 100%;
  padding: 12px 14px;

  background: rgba(255,255,255,0.96);

  border: 1px solid rgba(212,175,55,0.75);
  border-radius: 0;

  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;

  color: #3d1a00;
  -webkit-text-fill-color: #3d1a00;

  outline: none;
}

#rsvp-name-input::placeholder {
  color: rgba(61,26,0,0.55);
  -webkit-text-fill-color: rgba(61,26,0,0.55);
}

#rsvp-name-input.lang-hi,
#rsvp-name-input.lang-hi::placeholder {
  font-family: 'Halant', serif !important;
}

#rsvp-submit-btn {
  padding: 8px 28px;
  background: #3d1a00;
  border: 1px solid rgba(212,175,55,0.5);
  border-radius: 0;
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  color: rgba(255,235,210,0.95);
  -webkit-text-fill-color: rgba(255,235,210,0.95);
  cursor: pointer;
}

/* hearts canvas */
#hearts-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

/* bottom half — footer */
#wishes-footer {
  background: #3d1a00;
  padding: calc(20px + env(safe-area-inset-bottom, 0px)) 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.footer-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: rgba(255,235,210,0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  -webkit-text-fill-color: rgba(255,235,210,0.55);
}

.footer-contact-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-contact-name {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255,235,210,0.9);
  -webkit-text-fill-color: rgba(255,235,210,0.9);
}

.footer-contact-num {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  color: rgba(255,235,210,0.7);
  -webkit-text-fill-color: rgba(255,235,210,0.7);
  text-decoration: none;
}

.footer-venue {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.78rem;
  color: rgba(255,235,210,0.65);
  -webkit-text-fill-color: rgba(255,235,210,0.65);
  line-height: 1.5;
}

.footer-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-btn {
  flex: 1;
  padding: 10px 12px;
  background: rgba(255,235,210,0.12);
  border: 1px solid rgba(255,235,210,0.3);
  border-radius: 0;
  font-family: 'Playfair Display', serif;
  font-size: 0.78rem;
  color: rgba(255,235,210,0.9);
  -webkit-text-fill-color: rgba(255,235,210,0.9);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
}

.footer-btn:active { background: rgba(255,235,210,0.22); }

.footer-admin-btn {
  font-size: 0.65rem;
  opacity: 0.45;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid rgba(255,235,210,0.15);
  color: rgba(255,235,210,0.5);
  -webkit-text-fill-color: rgba(255,235,210,0.5);
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  text-align: center;
  width: 100%;
  border-radius: 0;
}



.inv-download-btn {
  display: block;
  width: 72%;
  margin: 8px auto 0;
  padding: 10px 14px;
  border-radius: 0;
  border: 1px solid rgba(212,175,55,0.5);
  background: #3d1a00;
  font-family: 'Playfair Display', serif;
  font-style: normal;
  font-size: 0.92rem;
  color: rgba(255,235,210,0.95);
  -webkit-text-fill-color: rgba(255,235,210,0.95);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease;
}

.inv-download-btn:active {
  background: #2a0e00;
}

/* Footer two-column layout */

#wishes-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-left {
  flex: 1;
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-right {
  flex: 0 0 38%;

  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-monogram {
  display: block;
  width: 100%;
  max-width: 578px;
  height: auto;
  object-fit: contain;
}


/* Mobile layout */

@media (max-width: 600px) {

  #wishes-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 25px;
  }

  .footer-left {
    width: 100%;
  }

  .footer-right {
    width: 100%;
    flex: none;
  }

  .footer-monogram {
  width: 100%;
  max-width: 491px;
  margin: 0 auto;
  }

}


/* =========================================
   SECTION 4: MOBILE FOOTER
   ========================================= */

#wishes-footer {
  width: 100%;
  display: grid !important;

  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);

  grid-template-areas:
    "contact monogram"
    "actions actions";

  align-items: center;
  column-gap: 12px;
  row-gap: 12px;

  background: #3d1a00;

  padding:
    calc(20px + env(safe-area-inset-bottom, 0px))
    28px
    20px;

  flex-shrink: 0;
  box-sizing: border-box;
}

.footer-left {
  grid-area: contact;
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-right {
  grid-area: monogram;
  width: 100%;
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-monogram {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;

  transform: scale(1.12);
  transform-origin: center;
}

/* Venue spacing */
.footer-venue-block {
  margin-top: 12px;

  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-venue-block .footer-title {
  margin-top: 0 !important;
}

.footer-venue {
  line-height: 1.5;
}

.footer-venue a {
  color: rgba(255,235,210,0.65) !important;
  -webkit-text-fill-color: rgba(255,235,210,0.65) !important;
  text-decoration: underline;
}

/* Full width bottom buttons */
.footer-actions {
  grid-area: actions;

  width: 100%;

  display: flex;
  align-items: stretch;
  gap: 10px;

  margin-top: 4px;
}

.footer-actions .footer-btn {
  flex: 1;
  width: 100%;
  min-width: 0;

  margin: 0;
  padding: 11px 6px;
  font-size: 0.76rem;
}

.footer-actions .footer-admin-btn {
  flex: 1;
  width: auto;
  min-width: 0;

  padding: 11px 6px;
  font-size: 0.76rem;
  opacity: 0.65;
}

/* Remove default blue tap highlight across the website */

* {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
input,
textarea,
select,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}