/* ====================================================================
   WEBEXTENSA — RAJWADI ROYAL WEDDING INVITATION DESIGN SYSTEM
   Refined Production Stylesheet
   ==================================================================== */

:root {
  /* Consolidated Design Tokens */
  --wine:         #4A0D19;
  --wine-deep:    #300A12;
  --maroon:       #711D2C;
  --gold:         #B38A43;
  --gold-light:   #F0DCA8;
  --ivory:        #FBF6EC;
  --paper:        #F2E9D9;
  --ink:          #30201C;
  --ink-muted:    #61514B;
  --on-wine:      #FFF9EE;
  
  --gold-metal:   linear-gradient(115deg, #805A2A 0%, #C39B53 25%, #F2DEA9 48%, #B58A42 72%, #765025 100%);
  --ease-royal:   cubic-bezier(.65, 0, .20, 1);
  --content-max:  1120px;
  --page-gutter:  20px;

  /* Backward Compatibility Mapping */
  --royal-maroon: var(--wine);
  --deep-wine:    var(--wine-deep);
  --royal-gold:   var(--gold);
  --light-gold:   var(--gold-light);
  --marigold:     var(--gold);

  /* Font Families */
  --font-heading:    'Cinzel Decorative', 'Cinzel', serif;
  --font-subheading: 'Cinzel', serif;
  --font-editorial:  'Cormorant Garamond', serif;
  --font-body:       'Poppins', sans-serif;
  --font-ui:         'Poppins', sans-serif;
  --font-devanagari: 'Tiro Devanagari Marathi', serif;

  --shadow-gold: 0 4px 20px rgba(179, 138, 67, 0.25);
  --shadow-deep: 0 10px 30px rgba(48, 10, 18, 0.4);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;

  --nav-height:  60px;
}

/* ====================================================================
   BASE RESET & LAYOUT CONTAINER
   ==================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--ivory);
  color: var(--ink);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--ivory);
  /* CSS-only subtle light surface texture: ~1px dots spaced 12px at opacity <= 0.035 */
  background-image: radial-gradient(rgba(179, 138, 67, 0.035) 1px, transparent 1px);
  background-size: 12px 12px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  /* Mobile 96px bottom space accounting for sticky nav & safe area */
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 1100px) {
  body {
    padding-bottom: 0;
  }
}

/* Responsive Gutter Breakpoints */
@media (min-width: 768px) {
  :root {
    --page-gutter: 32px;
  }
}

@media (min-width: 1100px) {
  :root {
    --page-gutter: 48px;
  }
}

/* Application Viewport Boundary */
.app-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  background-color: var(--wine);
  color: var(--on-wine);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  min-height: 100vh;
}

/* Section Spacing Standard */
.royal-section {
  position: relative;
  padding-block: 72px;
  padding-inline: var(--page-gutter);
  border-bottom: 1px solid rgba(179, 138, 67, 0.25);
  opacity: 1;
  transition: opacity 0.6s var(--ease-royal), transform 0.6s var(--ease-royal);
  background: radial-gradient(circle at 50% 30%, rgba(240, 220, 168, 0.08) 0%, transparent 70%), var(--wine);
}

@media (min-width: 768px) {
  .royal-section {
    padding-block: 88px;
  }
}

@media (min-width: 1100px) {
  .royal-section {
    padding-block: 104px;
  }
}

.royal-section.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
}

.royal-section.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Light / Ivory Section Variant */
.royal-section.section-ivory {
  background: var(--ivory);
  /* CSS-only texture on ivory sections */
  background-image: radial-gradient(rgba(179, 138, 67, 0.035) 1px, transparent 1px);
  background-size: 12px 12px;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
}

.royal-section.section-ivory h2,
.royal-section.section-ivory h3 {
  color: var(--maroon);
}

/* ====================================================================
   TYPOGRAPHY SPECIFICATIONS
   ==================================================================== */
/* Couple Names */
.hero-names,
.gold-shimmer-text {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 400;
  font-size: clamp(2.65rem, 11vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-align: center;
  color: var(--gold-light);
  background: var(--gold-metal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 1100px) {
  .hero-names,
  .gold-shimmer-text {
    font-size: clamp(4.5rem, 6vw, 6.5rem);
  }
}

/* Section Titles */
h1, h2, h3, .heading-royal {
  font-family: var(--font-subheading);
  font-weight: 500;
  font-size: clamp(1.7rem, 7vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: 0.015em;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 0.5rem;
}

@media (min-width: 1100px) {
  h1, h2, h3, .heading-royal {
    font-size: clamp(2.4rem, 3.2vw, 3.5rem);
  }
}

/* Editorial Invitation Lead */
.invitation-body-text {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.38;
  color: var(--on-wine);
  margin: 1.5rem 0;
  text-align: center;
}

@media (min-width: 1100px) {
  .invitation-body-text {
    font-size: 1.85rem;
    line-height: 1.38;
  }
}

/* Body & Schedule Text */
p, .ceremony-desc, .venue-address, .form-control, .day-theme-tag {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

/* Eyebrows */
.eyebrow,
.hero-subtitle,
.main-badge,
.countdown-label,
.day-date-title,
.contact-role {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (min-width: 1100px) {
  .eyebrow,
  .hero-subtitle,
  .main-badge,
  .countdown-label,
  .day-date-title,
  .contact-role {
    font-size: 0.8125rem;
  }
}

/* Buttons & Interactive Labels */
.btn-royal,
.btn-royal-outline,
.btn-open-invitation,
.tab-btn,
.form-label,
.nav-link-item,
.stepper-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.35;
  letter-spacing: 0.035em;
}

/* Devanagari Blessing Lines */
.devanagari-text,
.closing-devanagari {
  font-family: var(--font-devanagari);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 0.5rem;
  text-transform: none; /* Do NOT force uppercase on Devanagari */
}

@media (min-width: 1100px) {
  .devanagari-text,
  .closing-devanagari {
    font-size: 1.45rem;
  }
}

.section-ivory .devanagari-text {
  color: var(--maroon);
}

/* Prevent justified text alignment across app */
body, p, div, span, h1, h2, h3, h4, h5, h6 {
  text-align: center;
}

.royal-form, .form-group, .ceremony-card, .venue-card, .contact-card {
  text-align: left;
}

/* ====================================================================
   ACCESSIBILITY & VISIBLE FOCUS RINGS
   ==================================================================== */
a, button, input, textarea, select, [tabindex] {
  min-height: 44px; /* Minimum tap target height */
}

/* Focus rings on light surfaces */
.section-ivory :focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 3px;
}

/* Focus rings on dark surfaces */
.royal-section :focus-visible,
button:focus-visible,
a:focus-visible,
.nav-link-item:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* ====================================================================
   DECORATIVE ELEMENTS & DIVIDERS
   ==================================================================== */
.royal-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto 2.5rem auto;
  width: 80%;
  max-width: 400px;
}

.royal-divider::before,
.royal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.royal-divider svg {
  width: 28px;
  height: 28px;
  fill: var(--gold);
  flex-shrink: 0;
}

/* ====================================================================
   WELCOME SCREEN / 3D PALACE DOORS REDESIGN — "THE PALACE COMES ALIVE"
   ==================================================================== */
#welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #23080F;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: bgFadeIn 0.5s var(--ease-royal) forwards;
}

@keyframes bgFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#welcome-screen.opened {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s var(--ease-royal) 1s;
}

/* Background Palace Arcade Silhouette */
.palace-backdrop-silhouette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.palace-backdrop-silhouette svg {
  width: 100%;
  height: 65%;
  max-height: 600px;
}

/* 3D Palace Doors Leaves */
.door-left, .door-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50vw;
  background: linear-gradient(135deg, #300A12 0%, #4A0D19 50%, #300A12 100%);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 1.1s cubic-bezier(.65,0,.20,1);
  transform-style: preserve-3d;
  z-index: 2;
}

.door-left::before, .door-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(201, 162, 74, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.door-left {
  left: 0;
  transform-origin: left center;
  border-right: 1px solid rgba(179, 138, 67, 0.35);
  box-shadow: inset -4px 0 15px rgba(0, 0, 0, 0.6);
}

.door-right {
  right: 0;
  transform-origin: right center;
  border-left: 1px solid rgba(179, 138, 67, 0.35);
  box-shadow: inset 4px 0 15px rgba(0, 0, 0, 0.6);
}

/* Recessed Arch Panel on each door leaf */
.door-arch-panel {
  position: absolute;
  inset: 8% 12%;
  border: 1px solid rgba(240, 220, 168, 0.25);
  border-radius: 120px 120px 8px 8px / 60px 60px 8px 8px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  animation: outlineFadeIn 0.65s var(--ease-royal) forwards;
}

@keyframes outlineFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ====================================================================
   ADDITIVE DOOR ARCHITECTURAL DETAILING (JHAROKHA, BALCONY & GLOW)
   ==================================================================== */

/* Layer 0: Faint Static Radial Highlight behind pointed arch */
.door-glow-spot {
  position: absolute;
  top: 105px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 55%;
  background: radial-gradient(circle at 50% 40%, rgba(201, 162, 74, 0.065) 0%, transparent 68%);
  pointer-events: none;
  z-index: 1;
}

/* Layer 1: Main Carved Jharokha Relief (Visible Focal Detail) */
.door-jharokha-relief {
  position: absolute;
  top: 105px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 56%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation: revealJharokha 800ms cubic-bezier(.22, 1, .36, 1) forwards;
}

@keyframes revealJharokha {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.door-jharokha-relief svg {
  width: 100%;
  height: 100%;
  display: block;
}

.door-jharokha-relief .jharokha-outer {
  stroke: #C9A24A;
  stroke-width: 1.5px;
  opacity: 0.42;
  fill: rgba(20, 3, 8, 0.12);
}

.door-jharokha-relief .jharokha-inner {
  stroke: #C9A24A;
  stroke-width: 1px;
  opacity: 0.20;
}

.door-jharokha-relief .pillar-left,
.door-jharokha-relief .pillar-right {
  stroke: #C9A24A;
  stroke-width: 1px;
  opacity: 0.25;
}

.door-jharokha-relief .floral-drop {
  stroke: #C9A24A;
  stroke-width: 1.2px;
  opacity: 0.40;
  fill: rgba(201, 162, 74, 0.2);
}

/* Layer 2: Low Palace Balcony / Jali Detail */
.door-balcony-jali {
  position: absolute;
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 75px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation: revealBalcony 800ms cubic-bezier(.22, 1, .36, 1) 150ms forwards;
}

@keyframes revealBalcony {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.door-balcony-jali svg {
  width: 100%;
  height: 100%;
  display: block;
}

.door-balcony-jali line,
.door-balcony-jali path {
  stroke: #C9A24A;
  opacity: 0.28;
}

/* Mobile & Tablet Adjustments (< 768px) */
@media (max-width: 767px) {
  .door-jharokha-relief {
    width: 68%;
    top: 90px;
    height: 52%;
  }
  .door-jharokha-relief .jharokha-inner,
  .door-jharokha-relief .floral-drop {
    display: none; /* Simplify relief on mobile */
  }
  .door-jharokha-relief .jharokha-outer {
    opacity: 0.22;
  }
  .door-balcony-jali {
    display: none; /* Hide balcony on mobile */
  }
}

/* Desktop Visibility Enhancement (>= 1100px) */
@media (min-width: 1100px) {
  .door-jharokha-relief {
    width: 62%;
    top: 105px;
    height: 58%;
  }
  .door-jharokha-relief .jharokha-outer {
    opacity: 0.45;
  }
  .door-balcony-jali {
    bottom: 20%;
    width: 66%;
    height: 85px;
  }
}

/* Abstract Royal Medallions inside Side Arches */
.door-medallion-wrapper {
  position: absolute;
  top: 202px;
  left: 50%;
  transform: translateX(-50%);
  width: 205px;
  height: 205px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation: medallionEntrance 850ms cubic-bezier(.22, 1, .36, 1) forwards;
}

.door-medallion-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* One-time Entrance Animation */
@keyframes medallionEntrance {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

/* Slow Counter-Rotation of Inner Broken Ring */
.door-medallion--left .medallion-broken-ring {
  transform-origin: 120px 120px;
  animation: ringRotateClockwise 32s linear infinite;
}

.door-medallion--right .medallion-broken-ring {
  transform-origin: 120px 120px;
  animation: ringRotateCounterClockwise 32s linear infinite;
}

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

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

/* Stop Rotation when Doors Open */
#welcome-screen.opened .medallion-broken-ring {
  animation: none !important;
}

/* Responsive Sizing for Side Arch Medallions */
@media (min-width: 768px) and (max-width: 1099px) {
  .door-medallion-wrapper {
    top: 170px;
    width: 145px;
    height: 145px;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .door-medallion-wrapper {
    top: 140px;
    width: 92px;
    height: 92px;
  }
}

@media (max-width: 480px) {
  .door-medallion-wrapper {
    display: none !important;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .door-medallion-wrapper {
    animation: none;
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  .medallion-broken-ring {
    animation: none !important;
  }
}

/* ====================================================================
   CEREMONIAL DOOR CORNER ORNAMENTS COMPOSITION
   ==================================================================== */
.door-ornaments-group {
  position: absolute;
  bottom: 20px;
  pointer-events: none;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  animation: groupEntrance 700ms cubic-bezier(.22, 1, .36, 1) forwards;
}

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

.door-ornaments-group--left {
  left: 18px;
  flex-direction: row;
}

.door-ornaments-group--right {
  right: 18px;
  flex-direction: row-reverse;
}

/* Elephant Outer Corner Asset */
.welcome-elephant {
  width: 150px;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0.88;
  filter: drop-shadow(0 5px 8px rgba(15, 2, 5, 0.38));
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;
  pointer-events: none;
  flex-shrink: 0;
}

.welcome-elephant--left {
  transform: none;
}

.welcome-elephant--right {
  transform: scaleX(-1);
}

/* Trio Container (Kalash, Dhol, Havan Kund) */
.ornaments-trio-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.door-ornaments-group--left .ornaments-trio-wrapper {
  margin-left: 14px;
}

.door-ornaments-group--right .ornaments-trio-wrapper {
  margin-right: 14px;
}

/* Grounded Baseline Setting (1px antique-gold line & elliptical glow) */
.ornaments-trio-baseline {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 230px;
  height: 1px;
  background-color: rgba(167, 124, 59, 0.38);
  pointer-events: none;
  z-index: 1;
}

.ornaments-trio-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 70px;
  background: radial-gradient(ellipse at 50% 100%, rgba(201, 162, 74, 0.13) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Trio Flex Items Container */
.ornaments-trio-items {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

/* Common Trio Object Styles */
.welcome-door-item {
  display: block;
  object-fit: contain;
  opacity: 0.88;
  filter: drop-shadow(0 5px 8px rgba(15, 2, 5, 0.38));
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;
  pointer-events: none;
}

/* Individual Object Target Heights (Desktop >= 1024px) */
.welcome-door-kalash {
  height: 76px;
  width: auto;
  transform: translateY(2px);
}

.welcome-door-dhol {
  height: 59px;
  width: auto;
  transform: translateY(0);
}

.welcome-door-agni {
  height: 65px;
  width: auto;
  transform: translateY(1px);
}

/* Restrained Hover Micro-Interaction on Hover Devices */
@media (hover: hover) {
  .welcome-door-item, .welcome-elephant {
    pointer-events: auto;
    transition: transform 240ms ease-out;
  }
  .welcome-elephant--left:hover {
    transform: translateY(-3px);
  }
  .welcome-elephant--right:hover {
    transform: scaleX(-1) translateY(-3px);
  }
  .welcome-door-kalash:hover {
    transform: translateY(-1px);
  }
  .welcome-door-dhol:hover {
    transform: translateY(-3px);
  }
  .welcome-door-agni:hover {
    transform: translateY(-2px);
  }
}

/* Responsive Breakpoints */
@media (min-width: 768px) and (max-width: 1023px) {
  .door-ornaments-group {
    bottom: 20px;
  }
  .door-ornaments-group--left {
    left: 14px;
  }
  .door-ornaments-group--right {
    right: 14px;
  }
  .welcome-elephant {
    width: 110px;
  }
  .ornaments-trio-baseline {
    width: 160px;
  }
  .ornaments-trio-glow {
    width: 180px;
    height: 50px;
  }
  .ornaments-trio-items {
    gap: 10px;
  }
  .welcome-door-kalash {
    height: 60px;
    transform: translateY(1px);
  }
  .welcome-door-dhol {
    height: 46px;
    transform: translateY(0);
  }
  .welcome-door-agni {
    height: 50px;
    transform: translateY(1px);
  }
}

@media (max-width: 767px) {
  .door-ornaments-group {
    bottom: 14px;
  }
  .door-ornaments-group--left {
    left: 8px;
  }
  .door-ornaments-group--right {
    right: 8px;
  }
  .welcome-elephant {
    width: clamp(55px, 14vw, 70px);
  }
  /* Hide dhol and havan kund on mobile welcome screen ONLY */
  .ornaments-trio-items .welcome-door-dhol,
  .ornaments-trio-items .welcome-door-agni,
  .ornaments-trio-baseline,
  .ornaments-trio-glow {
    display: none !important;
  }
  .ornaments-trio-wrapper {
    margin-left: 6px;
    margin-right: 6px;
  }
  .welcome-door-kalash {
    height: 40px;
    width: auto;
    display: block !important;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .door-ornaments-group,
  .welcome-door-item,
  .welcome-elephant {
    transition: none !important;
    animation: none !important;
  }
}

/* Sacred Royal Gold Swastik Emblems on Welcome Doors */
.welcome-swastik {
  position: absolute;
  top: 360px;
  width: 112px;
  height: 112px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  opacity: 0;
  filter: none;
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;
  pointer-events: none;
  z-index: 2;
  display: block;
}

.welcome-swastik--left {
  left: 28.5%;
  transform: translate(-50%, -50%) scale(0.94);
  animation: swastikLeftEntrance 700ms cubic-bezier(.22, 1, .36, 1) forwards;
}

.welcome-swastik--right {
  right: 28.5%;
  transform: translate(50%, -50%) scale(0.94);
  animation: swastikRightEntrance 700ms cubic-bezier(.22, 1, .36, 1) forwards;
}

@keyframes swastikLeftEntrance {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94);
  }
  to {
    opacity: 0.78;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes swastikRightEntrance {
  from {
    opacity: 0;
    transform: translate(50%, -50%) scale(0.94);
  }
  to {
    opacity: 0.78;
    transform: translate(50%, -50%) scale(1);
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .door-left .door-elephant-wrapper {
    left: 24px;
    bottom: 20px;
  }
  .door-right .door-elephant-wrapper {
    right: 24px;
    bottom: 20px;
  }
  .welcome-elephant {
    width: 110px;
  }
  .welcome-door-kalash {
    width: 58px;
  }
  .door-left .welcome-door-kalash {
    left: calc(100% + 16px);
  }
  .door-right .welcome-door-kalash {
    right: calc(100% + 16px);
  }
  .welcome-door-dhol {
    width: 54px;
  }
  .door-left .welcome-door-dhol {
    left: calc(100% + 68px);
  }
  .door-right .welcome-door-dhol {
    right: calc(100% + 68px);
  }
  .welcome-swastik {
    top: 300px;
    width: 76px;
    height: 76px;
  }
  .welcome-swastik--left {
    left: 26%;
  }
  .welcome-swastik--right {
    right: 26%;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .door-left .door-elephant-wrapper {
    left: 14px;
    bottom: 16px;
    z-index: 1;
  }
  .door-right .door-elephant-wrapper {
    right: 14px;
    bottom: 16px;
    z-index: 1;
  }
  .welcome-elephant {
    width: 72px;
  }
  .welcome-door-kalash {
    width: 48px;
  }
  .door-left .welcome-door-kalash {
    left: calc(100% + 14px);
  }
  .door-right .welcome-door-kalash {
    right: calc(100% + 14px);
  }
  .welcome-door-dhol {
    width: 44px;
  }
  .door-left .welcome-door-dhol {
    left: calc(100% + 56px);
  }
  .door-right .welcome-door-dhol {
    right: calc(100% + 56px);
  }
}

@media (max-width: 767px) {
  .welcome-swastik {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .door-elephant-wrapper,
  .welcome-door-kalash,
  .welcome-door-dhol {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .door-elephant-wrapper {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .welcome-swastik {
    animation: none !important;
    opacity: 0.78 !important;
  }
  .welcome-swastik--left {
    transform: translate(-50%, -50%) scale(1) !important;
  }
  .welcome-swastik--right {
    transform: translate(50%, -50%) scale(1) !important;
  }
}

/* Sacred Ganesh Royal Chhatra Canopy */
.royal-chhatra {
  width: 50px;
  height: 20px;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.royal-chhatra svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 4px rgba(240, 220, 168, 0.4));
}

/* Royal Intertwined Rings with Sparkling Diamond Gems */
.royal-rings-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -10px;
  z-index: 5;
  pointer-events: none;
}

.royal-ring {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #F0DCA8;
  background: radial-gradient(circle, rgba(240, 220, 168, 0.25) 0%, transparent 70%);
  box-shadow: 0 0 8px rgba(240, 220, 168, 0.4);
}

.ring-left {
  margin-right: -6px;
}

.ring-gem {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 6px #FFFFFF, 0 0 10px #F0DCA8;
  animation: gemSparkle 2s ease-in-out infinite;
}

.ring-right .ring-gem {
  animation-delay: 1s;
}

@keyframes gemSparkle {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(0.9); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.4); }
}

/* Sparkling Floating Diamonds */
.welcome-diamond {
  position: absolute;
  color: #F0DCA8;
  font-size: 0.65rem;
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
  text-shadow: 0 0 6px rgba(240, 220, 168, 0.6);
}

.dia-1 { top: 12%; left: 12%; animation: diamondSparkle 3.5s ease-in-out infinite; }
.dia-2 { top: 16%; right: 14%; animation: diamondSparkle 4.2s ease-in-out 0.8s infinite; }
.dia-3 { top: 48%; left: 8%; animation: diamondSparkle 3.8s ease-in-out 1.5s infinite; }
.dia-4 { bottom: 20%; left: 16%; animation: diamondSparkle 4s ease-in-out 0.4s infinite; }
.dia-5 { bottom: 24%; right: 16%; animation: diamondSparkle 4.8s ease-in-out 1.2s infinite; }

@keyframes diamondSparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 0.9; transform: scale(1.3) rotate(45deg); filter: drop-shadow(0 0 8px #FFF); }
}

/* Door Opening Animation */
#welcome-screen.opened .door-left {
  transform: rotateY(-105deg);
}

#welcome-screen.opened .door-right {
  transform: rotateY(105deg);
}

/* Central Composition - Refined Rajwadi Marriage Invitation Card */
.welcome-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 92%;
  max-width: 440px;
  padding: 1.8rem 1.25rem;
  margin: auto;
  background: 
    radial-gradient(circle at 50% 38%, rgba(201, 162, 74, 0.105), transparent 58%),
    radial-gradient(circle at 50% 90%, rgba(201, 162, 74, 0.05), transparent 60%),
    linear-gradient(145deg, #3B0A15 0%, #300A12 52%, #27070F 100%);
  border: 1.5px solid var(--gold);
  border-radius: 28px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8), inset 0 0 25px rgba(240, 220, 168, 0.12);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: opacity 0.4s var(--ease-royal), transform 0.4s var(--ease-royal);
}

/* 1. Inner Frame (11px on mobile, 16px on desktop) with top/bottom gaps */
.welcome-inset-frame {
  position: absolute;
  inset: 11px;
  border-radius: 18px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: cardLinesReveal 750ms cubic-bezier(.22, 1, .36, 1) forwards;
}

.welcome-inner-frame-svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (min-width: 768px) {
  .welcome-inset-frame {
    inset: 16px;
    border-radius: 16px;
  }
}

/* Shorter upper & lower gold lines fading at ends */
.welcome-inner-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 52%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 74, 0.35), transparent);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation: cardLinesReveal 750ms cubic-bezier(.22, 1, .36, 1) forwards;
}

.welcome-inner-line.upper-line { top: 7px; }
.welcome-inner-line.lower-line { bottom: 7px; }

@keyframes cardLinesReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 2. Original Gold Corner Engraved Motifs */
.corner-motif {
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
}
.corner-motif.top-left { top: -1px; left: -1px; }
.corner-motif.top-right { top: -1px; right: -1px; transform: rotate(90deg); }
.corner-motif.bottom-right { bottom: -1px; right: -1px; transform: rotate(180deg); }
.corner-motif.bottom-left { bottom: -1px; left: -1px; transform: rotate(270deg); }

/* 2. Portrait Outer Arch & Lotus Bud Drop */
.welcome-portrait-outer-arch {
  position: absolute;
  inset: -8px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation: portraitArchReveal 750ms cubic-bezier(.22, 1, .36, 1) 100ms forwards;
}

.welcome-portrait-outer-arch svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes portraitArchReveal {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* 4. R & A Seal Detail: Inset Circular Ring */
.welcome-seal::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(255, 249, 238, 0.46);
  pointer-events: none;
}

/* 5. Short Gold Divider between Subtitle & Button */
.welcome-card-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 58px;
  margin: 0.2rem auto 0.6rem auto;
  opacity: 0.7;
  pointer-events: none;
  position: relative;
  z-index: 5;
}

.welcome-card-divider .divider-line {
  width: 26px;
  height: 1px;
  background-color: #B38A43;
}

.welcome-card-divider .divider-diamond {
  font-size: 5px;
  color: #F0DCA8;
  line-height: 1;
}

/* 3. Subtle Embossed Watermark Arch */
.welcome-card-watermark {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  height: 75%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.075;
}

.welcome-card-watermark svg {
  width: 100%;
  height: 100%;
}

/* 6. Single-Run Border Light Highlight */
.welcome-border-light {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  box-shadow: inset 0 1px 1px rgba(240, 220, 168, 0.32);
  animation: borderLightSweep 1600ms cubic-bezier(0.25, 1, 0.5, 1) 300ms 1 forwards;
}

@keyframes borderLightSweep {
  0% {
    opacity: 0;
    box-shadow: inset 0 0 0 rgba(240, 220, 168, 0);
  }
  35% {
    opacity: 0.45;
    box-shadow: inset 0 2px 14px rgba(240, 220, 168, 0.45);
  }
  100% {
    opacity: 0;
    box-shadow: inset 0 0 0 rgba(240, 220, 168, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-inset-frame,
  .welcome-inner-line,
  .welcome-portrait-outer-arch,
  .welcome-border-light,
  .welcome-ganesh {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

#welcome-screen.opened .welcome-content {
  opacity: 0;
  transform: scale(0.92);
}

/* Elevate Content Elements Above Decorative Background Layers */
.ganpati-face-emblem,
.welcome-ganesh,
.welcome-portrait-container,
.welcome-names,
.welcome-subtitle,
.btn-clasp-wrapper {
  position: relative;
  z-index: 5;
}

/* Sacred Ganpati Face Emblem */
.ganpati-face-emblem {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ganpati-face-emblem img,
.ganpati-face-emblem svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(240, 220, 168, 0.45));
}

/* 1. Sacred Ganesh Invocation */
.welcome-ganesh {
  font-family: var(--font-devanagari);
  font-weight: 400;
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
  line-height: 1.55;
  letter-spacing: 0;
  color: #F0DCA8;
  text-align: center;
  text-transform: none;
  text-shadow: 0 1px 0 rgba(255, 249, 238, 0.16),
               0 0 12px rgba(201, 162, 74, 0.16);
  margin-bottom: 18px;
  white-space: nowrap;
  opacity: 0;
  animation: ganeshInvocationReveal 650ms cubic-bezier(.22, 1, .36, 1) 180ms forwards;
}

.welcome-ganesh::before,
.welcome-ganesh::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #B38A43;
  opacity: 0.65;
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.welcome-ganesh::before {
  margin-right: 12px;
}

.welcome-ganesh::after {
  margin-left: 12px;
}

@media (max-width: 480px) {
  .welcome-ganesh::before,
  .welcome-ganesh::after {
    display: none !important;
  }
}

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

/* 2. Framed Photograph Container */
.welcome-portrait-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.6rem;
  animation: photoReveal 0.7s cubic-bezier(.22,1,.36,1) forwards;
}

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

/* Palace Jharokha Arch Frame - Rajwadi Pointed Arch Architecture */
.welcome-jharokha-frame {
  width: 184px;
  height: 226px;
  /* Safari iOS fallback for clip-path */
  border-radius: 48% 48% 6px 6px / 28% 28% 6px 6px;
  -webkit-clip-path: url(#rajwadiPhotoClip);
  clip-path: url(#rajwadiPhotoClip);
  padding: 0;
  background-color: #300A12;
  border: none;
  outline: none;
  box-shadow: 0 12px 30px rgba(12, 2, 5, 0.28);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .welcome-jharokha-frame {
    width: 228px;
    height: 280px;
  }
}

.welcome-jharokha-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.welcome-jharokha-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: contrast(1.03) saturate(0.96);
  border-radius: 0;
  display: block;
}

/* Primary Photo Edge 1px solid #F0DCA8 Overlay */
.jharokha-primary-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* 3. R & A Monogram Wax Seal */
.welcome-seal {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #F0DCA8, #B38A43 40%, #765025 85%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -22px;
  border: 2px solid #F0DCA8;
  position: relative;
  z-index: 6;
}

@media (min-width: 768px) {
  .welcome-seal {
    width: 78px;
    height: 78px;
    margin-top: -24px;
  }
}

.welcome-seal-monogram {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #300A12;
  letter-spacing: 0.02em;
}

/* Couple Names & Subtitle */
.welcome-names {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 400;
  font-size: clamp(1.45rem, 5vw, 2rem);
  line-height: 1.2;
  color: #F0DCA8;
  margin-top: 0.6rem;
  margin-bottom: 0.2rem;
  text-align: center;
}

.welcome-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #FFF9EE;
  opacity: 0.9;
  margin-bottom: 1.2rem;
  text-align: center;
}

/* 5. Signature "Tap to Open" Button Clasp & Royal Attention Animations */
.btn-clasp-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Pulsing Royal Gold Aura Ring around the button */
.btn-aura-ring {
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(240, 222, 169, 0.45) 0%, rgba(201, 162, 74, 0.2) 50%, transparent 75%);
  animation: royalAuraPulse 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes royalAuraPulse {
  0% { transform: scale(0.92); opacity: 0.3; }
  50% { transform: scale(1.12); opacity: 0.85; }
  100% { transform: scale(1.25); opacity: 0; }
}

.btn-open-invitation {
  position: relative;
  z-index: 2;
  min-height: 56px;
  min-width: 200px;
  padding: 14px 34px;
  border-radius: 999px;
  border: 1.5px solid #F3DFA7;
  background: linear-gradient(115deg, #805A2A 0%, #C39B53 25%, #F2DEA9 48%, #B58A42 72%, #765025 100%);
  background-size: 200% 200%;
  color: #300A12;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.75),
    inset 0 -2px 4px rgba(61, 7, 16, 0.3),
    0 8px 25px rgba(0, 0, 0, 0.45),
    0 0 15px rgba(201, 162, 74, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  overflow: hidden;
  animation: royalButtonFloat 3s ease-in-out infinite, goldShimmerSweep 5s ease infinite;
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes goldShimmerSweep {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes royalButtonFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.02); }
}

.btn-open-invitation:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.9),
    0 14px 35px rgba(0, 0, 0, 0.55),
    0 0 25px rgba(240, 222, 169, 0.65);
}

.btn-open-invitation:active {
  transform: translateY(1px) scale(0.975);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-open-invitation:focus-visible {
  outline: 2px solid #FFF9EE;
  outline-offset: 4px;
}

.btn-royal-icon {
  width: 16px;
  height: 16px;
  color: #300A12;
  flex-shrink: 0;
  animation: iconPulse 2.4s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.25); opacity: 1; }
}

.btn-glint {
  position: absolute;
  top: 0;
  left: -120%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
  animation: brilliantGlint 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes brilliantGlint {
  0%, 65% { left: -120%; }
  100% { left: 220%; }
}

/* Viewport height optimization for short mobile screens (< 700px height) */
@media (max-height: 700px) {
  .welcome-content {
    padding: 0.75rem 0.5rem;
  }
  .welcome-ganesh {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }
  .welcome-jharokha-frame {
    width: 155px;
    height: 190px;
  }
  .welcome-seal {
    width: 56px;
    height: 56px;
    margin-top: -12px;
  }
  .welcome-seal-monogram {
    font-size: 1rem;
  }
  .welcome-names {
    font-size: 1.35rem;
    margin-top: 0.4rem;
    margin-bottom: 0.1rem;
  }
  .welcome-subtitle {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }
  .btn-open-invitation {
    min-height: 50px;
    padding: 10px 24px;
  }
}

/* prefers-reduced-motion Overrides */
@media (prefers-reduced-motion: reduce) {
  #welcome-screen {
    animation: none !important;
  }
  .door-arch-panel, .welcome-portrait-container, .btn-glint, .btn-open-invitation, .welcome-star, .door-jharokha-relief, .door-balcony-jali {
    animation: none !important;
    transform: translateX(-50%) !important;
    opacity: 1 !important;
  }
  #welcome-screen.opened {
    opacity: 0 !important;
    display: none !important;
    transition: none !important;
  }
  #welcome-screen.opened .door-left,
  #welcome-screen.opened .door-right {
    transform: none !important;
    transition: none !important;
  }
}

.btn-open-invitation:hover,
.btn-open-invitation:active {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(179, 138, 67, 0.6);
}

/* ====================================================================
   HERO SECTION & CRAFTED JHAROKHA ARCH
   ==================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  background-color: var(--wine);
  /* Fine silk-like background texture (2 repeating gradients, 6px spacing, opacity 0.022) */
  background-image: 
    repeating-linear-gradient(0deg, rgba(240, 217, 159, 0.022) 0px, rgba(240, 217, 159, 0.022) 1px, transparent 1px, transparent 6px),
    repeating-linear-gradient(90deg, rgba(240, 217, 159, 0.022) 0px, rgba(240, 217, 159, 0.022) 1px, transparent 1px, transparent 6px),
    radial-gradient(ellipse at 50% 30%, transparent 40%, rgba(20, 2, 6, 0.42) 100%);
  padding-block: 64px 72px;
}

/* Top Sacred Grouping: Ganesh emblem -> 14px gap -> invocation -> 32px gap -> photo frame */
.hero-top-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

.hero-top-group .ganpati-face-emblem {
  margin-bottom: 14px;
}

.hero-invocation {
  font-family: var(--font-devanagari);
  font-size: 20px;
  line-height: 1.5;
  color: #F0D99F;
  text-shadow: none;
  text-align: center;
  margin-bottom: 0;
}

/* Faint Symmetrical Side Architectural Motifs */
.hero-side-motif {
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  width: 250px;
  height: 430px;
  pointer-events: none;
  z-index: 1;
}

.hero-side-motif--left {
  left: 20px;
}

.hero-side-motif--right {
  right: 20px;
}

.hero-side-motif svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Photo Frame Container */
.jharokha-frame-container {
  position: relative;
  width: 85%;
  max-width: 380px;
  margin: 0 auto 2.2rem auto;
  z-index: 2;
}

/* Subtle Radial Glow behind the arch (remains behind frame) */
.hero-arch-glow {
  position: absolute;
  inset: -40px -30px -30px -30px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(201, 162, 74, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Crafted Jharokha Arch Frame */
.jharokha-arch {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 190px 190px 16px 16px;
  overflow: hidden;
  border: 3px solid #B88A43;
  box-shadow: 0 18px 42px rgba(29, 3, 9, 0.34);
  background-color: var(--wine-deep);
  animation: heroPhotoEntrance 650ms cubic-bezier(.22, 1, .36, 1) forwards;
}

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

/* Second 1px inner line in #E7C985 inset by 7px */
.jharokha-inner-border {
  position: absolute;
  inset: 7px;
  border: 1px solid #E7C985;
  border-radius: 183px 183px 9px 9px;
  pointer-events: none;
  z-index: 3;
}

.jharokha-arch picture {
  display: block;
  width: 100%;
  height: 100%;
}

.jharokha-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
  filter: none;
}

.hero-subtitle {
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  text-transform: none;
}

.hero-date-badge {
  display: inline-block;
  padding: 0.4rem 1.4rem;
  margin-top: 0.5rem;
  border: 1px solid var(--gold);
  border-radius: 20px;
  background: rgba(48, 10, 18, 0.6);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gold-light);
}

/* Responsive Media Queries for Hero Section */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-side-motif {
    width: 140px;
    height: 250px;
    opacity: 0.67;
  }
  .hero-side-motif--left {
    left: 8px;
  }
  .hero-side-motif--right {
    right: 8px;
  }
}

@media (max-width: 767px) {
  .hero-side-motif {
    display: none !important;
  }
  .hero-invocation {
    font-size: 18px;
  }
  .jharokha-frame-container {
    max-width: calc(100vw - 48px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jharokha-arch {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ====================================================================
   INVITATION CARD SECTION & PROMINENT PHOTO FRAME
   ==================================================================== */
.invitation-card {
  position: relative;
  padding: 2.5rem 1.5rem;
  border: 2px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: -7px;
  background: rgba(48, 10, 18, 0.75);
  border-radius: var(--radius-md);
  text-align: center;
  height: auto;
}

@media (max-width: 480px) {
  .invitation-card {
    padding: 2rem 1.25rem;
  }
}

.invitation-photo-frame {
  position: relative;
  width: min(54vw, 210px);
  aspect-ratio: 3 / 4;
  height: auto;
  margin: 0 auto 22px auto;
  border-radius: 120px 120px 14px 14px;
  border: 2px solid #B88A43;
  box-shadow: 0 12px 28px rgba(28, 3, 8, 0.28);
  overflow: hidden;
  background-color: var(--wine-deep);
}

@media (min-width: 560px) {
  .invitation-photo-frame {
    width: 240px;
  }
}

@media (min-width: 1024px) {
  .invitation-photo-frame {
    width: 300px;
  }
}

.invitation-photo-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.invitation-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
  filter: none;
}

.family-name {
  font-family: var(--font-subheading);
  font-size: 1.25rem;
  color: var(--gold-light);
  margin: 0.3rem 0;
}

.event-highlight-box {
  margin-top: 2rem;
  padding: 1.2rem;
  background: rgba(179, 138, 67, 0.12);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.event-highlight-date {
  font-family: var(--font-subheading);
  font-size: 1.3rem;
  color: var(--gold-light);
  font-weight: 700;
}

.event-highlight-venue {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--on-wine);
}

/* ====================================================================
   COUNTDOWN TIMER
   ==================================================================== */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.countdown-box {
  flex: 1;
  max-width: 85px;
  padding: 0.8rem 0.4rem;
  background: linear-gradient(180deg, var(--wine-deep), #20050b);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.countdown-number {
  font-family: var(--font-subheading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.countdown-label {
  color: var(--on-wine);
  margin-top: 0.3rem;
  opacity: 0.9;
}

.countdown-finished {
  font-family: var(--font-subheading);
  font-size: 1.3rem;
  color: var(--gold-light);
  text-align: center;
  padding: 1rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
}

/* Sacred Agni Havan Image & Emblem Styling */
.section-agni-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.6rem;
  pointer-events: none;
}

.countdown-agni-img {
  width: 96px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(240, 220, 168, 0.45));
  animation: agniPulse 4s ease-in-out infinite alternate;
}

.ceremony-agni-emblem {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.6rem 0 1rem 0;
  pointer-events: none;
}

.ceremony-agni-img {
  width: 110px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(240, 220, 168, 0.5));
  transition: transform 0.4s var(--ease-royal);
  display: block;
}

.ceremony-card.main-ceremony:hover .ceremony-agni-img {
  transform: scale(1.06);
  filter: drop-shadow(0 6px 20px rgba(240, 220, 168, 0.7));
}

@keyframes agniPulse {
  0% {
    transform: scale(0.97);
    filter: drop-shadow(0 4px 14px rgba(240, 220, 168, 0.35));
  }
  100% {
    transform: scale(1.04);
    filter: drop-shadow(0 6px 22px rgba(240, 220, 168, 0.65));
  }
}

/* ====================================================================
   CELEBRATIONS & DAY TABS
   ==================================================================== */
.day-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.tab-btn {
  padding: 0.65rem 1.3rem;
  color: var(--on-wine);
  background: rgba(48, 10, 18, 0.7);
  border: 1px solid var(--gold);
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s var(--ease-royal);
  min-height: 44px;
}

.tab-btn.active {
  background: var(--gold-metal);
  color: var(--wine-deep);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(179, 138, 67, 0.4);
}

.day-panel {
  display: none;
}

.day-panel.active {
  display: block;
  animation: fadeIn 0.4s var(--ease-royal);
}

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

.day-header-card {
  text-align: center;
  padding: 1rem;
  background: rgba(179, 138, 67, 0.12);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--gold);
  border-right: 3px solid var(--gold);
}

.day-date-title {
  font-family: var(--font-subheading);
  font-size: 1.25rem;
  color: var(--gold-light);
  font-weight: 700;
  text-transform: none;
}

.day-theme-tag {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--on-wine);
}

/* Ceremony Card */
.ceremony-card {
  position: relative;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: rgba(48, 10, 18, 0.55);
  border: 1px solid rgba(179, 138, 67, 0.4);
  border-radius: var(--radius-md);
  transition: transform 0.2s var(--ease-royal), border-color 0.2s var(--ease-royal);
  text-align: left;
}

.ceremony-card:hover {
  border-color: var(--gold);
}

.ceremony-card.main-ceremony {
  border: 2px solid var(--gold);
  background: rgba(48, 10, 18, 0.88);
  box-shadow: var(--shadow-gold);
}

.main-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  padding: 0.25rem 0.8rem;
  background: var(--gold-metal);
  color: var(--wine-deep);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.ceremony-name {
  font-family: var(--font-subheading);
  font-size: 1.35rem;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
  text-align: left;
}

.ceremony-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
  opacity: 0.95;
  text-align: left;
}

.ceremony-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ceremony-desc {
  color: var(--on-wine);
  margin-bottom: 1rem;
  text-align: left;
}

/* ====================================================================
   BUTTON STYLES
   ==================================================================== */
.btn-royal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  color: var(--wine-deep);
  background: var(--gold-metal);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s var(--ease-royal), box-shadow 0.2s var(--ease-royal);
}

.btn-royal:hover,
.btn-royal:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(179, 138, 67, 0.4);
}

.btn-royal-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  color: var(--gold-light);
  background: transparent;
  border: 1.5px solid var(--gold);
  border-radius: 25px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease-royal), color 0.2s var(--ease-royal);
}

.btn-royal-outline:hover,
.btn-royal-outline:active {
  background: var(--gold);
  color: var(--wine-deep);
}

.section-ivory .btn-royal-outline {
  color: var(--maroon);
  border-color: var(--maroon);
}

.section-ivory .btn-royal-outline:hover {
  background: var(--maroon);
  color: var(--on-wine);
}

/* ====================================================================
   ADD TO CALENDAR SECTION
   ==================================================================== */
.calendar-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
}

@media (min-width: 500px) {
  .calendar-actions {
    flex-direction: row;
  }
}

/* ====================================================================
   VENUES SECTION
   ==================================================================== */
.venue-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 650px) {
  .venue-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.venue-card {
  padding: 1.5rem;
  background: rgba(48, 10, 18, 0.65);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.venue-title {
  font-family: var(--font-subheading);
  font-size: 1.2rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.venue-address {
  color: var(--on-wine);
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.travel-note-box {
  padding: 1.2rem;
  background: rgba(179, 138, 67, 0.12);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold);
  text-align: center;
  margin-top: 1.5rem;
}

/* ====================================================================
   ROYAL MEMORIES PHOTO GALLERY GRID & LIGHTBOX
   ==================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 1.5rem;
}

/* Individual Tile Styling */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: #300A12;
  border: 1px solid rgba(232, 207, 138, 0.38);
  cursor: pointer;
}

/* Image Base & Object Positioning */
.gallery-item img,
.gallery-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  object-fit: cover;
  transition: transform 400ms cubic-bezier(.22, 1, .36, 1);
}

/* Per-Image Object Position for Face Preservation */
.gallery-item:nth-child(1) img,
.gallery-item--1 img {
  object-position: center 10%;
}

.gallery-item:nth-child(2) img,
.gallery-item--2 img {
  object-position: center 32%;
}

.gallery-item:nth-child(3) img,
.gallery-item--3 img {
  object-position: center 28%;
}

.gallery-item:nth-child(4) img,
.gallery-item--4 img {
  object-position: center 28%;
}

.gallery-item:nth-child(5) img,
.gallery-item--5 img {
  object-position: center 28%;
}

/* Restrained Hover Interaction (Hover-Capable Devices Only) */
@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover img {
    transform: scale(1.025);
  }
}

/* PHONE (< 600px): Single Column, 12px Gap */
.gallery-item:nth-child(1) {
  aspect-ratio: 3 / 2;
}

.gallery-item:nth-child(n+2) {
  aspect-ratio: 4 / 5;
}

/* TABLET (600px - 899px): 2 Equal Columns, 12px Gap */
@media (min-width: 600px) and (max-width: 899px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    aspect-ratio: 3 / 2;
  }

  .gallery-item:nth-child(n+2) {
    grid-column: span 1;
    aspect-ratio: 4 / 5;
  }
}

/* DESKTOP (min-width: 900px): 3 Columns, 14px Gap */
@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  /* First photo spans two columns, aspect 8 / 5 */
  .gallery-item:nth-child(1) {
    grid-column: span 2;
    aspect-ratio: 8 / 5;
  }

  /* Remaining four portraits occupy one column each, aspect 4 / 5 */
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) {
    grid-column: span 1;
    aspect-ratio: 4 / 5;
  }
}

/* Hide any text overlay over photos */
.gallery-overlay {
  display: none !important;
}

/* Lightbox Modal */
#gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 2, 4, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-royal);
  backdrop-filter: blur(10px);
  padding: 16px;
}

#gallery-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  width: 100%;
  max-width: 100vw;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-img-frame {
  position: relative;
  border: 1px solid rgba(232, 207, 138, 0.38);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
  max-width: 100vw;
  max-height: calc(100dvh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #300A12;
}

.lightbox-img-frame img {
  max-width: 100vw;
  max-height: calc(100dvh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  margin-top: 0.75rem;
  font-family: var(--font-subheading);
  font-size: 1.05rem;
  color: var(--gold-light);
  text-align: center;
}

.lightbox-btn {
  position: fixed;
  background: rgba(48, 10, 18, 0.85);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10002;
  transition: background 0.2s var(--ease-royal), transform 0.2s var(--ease-royal);
}

.lightbox-btn:hover {
  background: var(--gold);
  color: var(--wine-deep);
  transform: scale(1.05);
}

.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  .gallery-item img {
    transition: none !important;
    transform: none !important;
  }
  .gallery-item:hover img {
    transform: none !important;
  }
}

/* ====================================================================
   REFINED ROYAL RSVP SECTION & REPLY CARD
   ==================================================================== */

/* Section Base */
.royal-section.section-rsvp {
  position: relative;
  background-color: #FBF3E4;
  /* Barely visible CSS paper texture */
  background-image: 
    repeating-linear-gradient(0deg, rgba(107, 15, 26, 0.018) 0px, rgba(107, 15, 26, 0.018) 1px, transparent 1px, transparent 7px),
    repeating-linear-gradient(90deg, rgba(169, 124, 59, 0.018) 0px, rgba(169, 124, 59, 0.018) 1px, transparent 1px, transparent 7px);
  padding-block: 88px;
  padding-inline: 20px;
  overflow: hidden;
  border-bottom: 1px solid rgba(169, 124, 59, 0.35);
}

@media (max-width: 599px) {
  .royal-section.section-rsvp {
    padding-block: 56px;
    padding-inline: 0;
  }
}

/* Radial Vignette behind form */
.rsvp-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(232, 207, 138, 0.14) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

/* Side Concentric Arch Motifs (Desktop >= 900px Only) */
.rsvp-side-motif {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 220px;
  height: 300px;
  pointer-events: none;
  z-index: 1;
}

.rsvp-side-motif--left {
  left: calc(50% - 460px);
}

.rsvp-side-motif--right {
  right: calc(50% - 460px);
}

.rsvp-side-motif svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 899px) {
  .rsvp-side-motif {
    display: none !important;
  }
}

/* Centered Reply Card */
.rsvp-reply-card {
  position: relative;
  z-index: 2;
  width: calc(100% - 32px);
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 44px 44px 44px;
  background-color: #FFF9EF;
  border: 1px solid rgba(169, 124, 59, 0.55);
  border-radius: 12px;
  box-shadow: 0 20px 55px rgba(57, 18, 20, 0.10);
  box-sizing: border-box;
}

@media (max-width: 599px) {
  .rsvp-reply-card {
    width: calc(100% - 32px);
    padding: 28px 22px;
  }
}

/* Inset Hairline Border (8px inside) */
.rsvp-inset-frame {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(169, 124, 59, 0.25);
  border-radius: 8px;
  pointer-events: none;
  z-index: 1;
}

/* Corner Flourishes (18px x 18px) */
.rsvp-corner-flourish {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.rsvp-corner-flourish svg {
  width: 100%;
  height: 100%;
  display: block;
}

.rsvp-corner-flourish--tl { top: -1px; left: -1px; }
.rsvp-corner-flourish--tr { top: -1px; right: -1px; }
.rsvp-corner-flourish--br { bottom: -1px; right: -1px; }
.rsvp-corner-flourish--bl { bottom: -1px; left: -1px; }

/* RSVP Title & Subtitle */
.rsvp-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.035em;
  color: #6B0F1A;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 0.4rem;
}

.rsvp-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #4B3028;
  text-align: center;
  margin-bottom: 2rem;
}

/* RSVP Form Elements */
.rsvp-form {
  position: relative;
  z-index: 2;
  width: 100%;
}

.rsvp-form .form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.rsvp-form .form-label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #3D211D;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.rsvp-form .form-control {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background-color: #FFFFFF;
  border: 1px solid #B9A995;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #2B1A12;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rsvp-form .form-control:focus {
  border-color: #8C642C;
  outline: 3px solid rgba(201, 162, 74, 0.28);
}

.rsvp-form textarea.form-control {
  min-height: 104px;
  resize: vertical;
}

/* Attendance Radio Group */
.rsvp-radio-group {
  display: flex;
  gap: 12px;
  padding-block: 4px;
}

@media (max-width: 440px) {
  .rsvp-radio-group {
    flex-direction: column;
    gap: 10px;
  }
}

.rsvp-radio-choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #D5C7B3;
  background-color: #FFFFFF;
  cursor: pointer;
  user-select: none;
  flex: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.rsvp-radio-choice:hover {
  border-color: #C9A24A;
}

.rsvp-radio-choice.is-selected,
.rsvp-radio-choice:has(input:checked) {
  background-color: #F7EBD7;
  border-color: #C9A24A;
}

.rsvp-radio-choice input[type="radio"] {
  accent-color: #6B0F1A;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.rsvp-radio-choice .radio-label-text {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #3D211D;
}

/* Guest Counter Stepper */
.section-rsvp .stepper-container {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-rsvp .stepper-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background-color: #6B0F1A;
  color: #FFF9EF;
  border: 1px solid #C9A24A;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.section-rsvp .stepper-btn:hover:not(:disabled):not(.is-disabled) {
  background-color: #8C1423;
}

.section-rsvp .stepper-btn:disabled,
.section-rsvp .stepper-btn.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  border-color: #B9A995;
  background-color: #8C6B6F;
}

.section-rsvp .stepper-value {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  color: #3D211D;
  width: 40px;
  text-align: center;
}

/* Recipient Note */
.rsvp-recipient-note {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #72512D;
  text-align: center;
  margin-top: 1.25rem;
  margin-bottom: 20px;
  font-style: normal;
  line-height: 1.5;
}

/* Submit Button */
.rsvp-submit-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 8px;
  background: linear-gradient(110deg, #735022 0%, #A77934 45%, #735022 100%);
  color: #FFFFFF;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(115, 80, 34, 0.22);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .rsvp-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(115, 80, 34, 0.35);
  }
}

.rsvp-submit-btn:focus-visible {
  outline: 3px solid #C9A24A;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-submit-btn {
    transition: none !important;
    transform: none !important;
  }
  .rsvp-submit-btn:hover {
    transform: none !important;
  }
}

/* ====================================================================
   FORM CONTROLS (BLESSINGS ON LIGHT/IVORY)
   ==================================================================== */
.royal-form {
  margin-top: 1.5rem;
  text-align: left;
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: #FFFFFF;
  border: 1.5px solid var(--paper);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s var(--ease-royal), box-shadow 0.2s var(--ease-royal);
}

.form-control:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(113, 29, 44, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Stepper */
.stepper-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stepper-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--on-wine);
  border: 1px solid var(--gold);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.stepper-value {
  font-family: var(--font-subheading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  width: 40px;
  text-align: center;
}

/* Blessing Chips */
.suggestion-chips {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.chip-btn {
  padding: 0.65rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s var(--ease-royal);
  min-height: 44px;
}

.chip-btn:hover {
  background: rgba(179, 138, 67, 0.2);
}

/* Contact Cards */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 600px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-card {
  padding: 1.5rem;
  background: rgba(48, 10, 18, 0.65);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  text-align: center;
}

.contact-name {
  font-family: var(--font-subheading);
  font-size: 1.2rem;
  color: var(--gold-light);
}

.contact-role {
  color: var(--on-wine);
  opacity: 0.85;
  margin-bottom: 1rem;
}

.contact-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

/* ====================================================================
   SHARE SECTION
   ==================================================================== */
#share.royal-section {
  padding-block: 64px 68px;
  padding-inline: var(--page-gutter);
  text-align: center;
  border-bottom: 1px solid rgba(201, 162, 74, 0.32);
  box-shadow: none;
}

@media (max-width: 599px) {
  #share.royal-section {
    padding-block: 48px 56px;
  }
}

/* ====================================================================
   CLOSING SECTION & MEDALLION PHOTO
   ==================================================================== */
.closing-section {
  position: relative;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(240, 220, 168, 0.08) 0%, transparent 80%), var(--wine);
  border: none;
  padding-top: 0;
  padding-bottom: 48px;
  padding-inline: var(--page-gutter);
  height: auto;
  overflow: visible;
}

@media (max-width: 599px) {
  .closing-section {
    padding-bottom: 40px;
  }
}

/* Centered 1:1 Circular Photo Frame */
.closing-medallion {
  width: 180px;
  aspect-ratio: 1 / 1;
  margin-top: 36px;
  margin-bottom: 22px;
  margin-inline: auto;
  display: block;
  border-radius: 50%;
  border: 3px solid #C9A24A;
  outline: 1px solid #E8CF8A;
  outline-offset: 7px;
  box-shadow: 0 12px 32px rgba(20, 2, 7, 0.30);
  overflow: hidden;
  background-color: var(--wine-deep);
}

@media (max-width: 599px) {
  .closing-medallion {
    width: 154px;
    margin-top: 32px;
  }
}

.closing-medallion picture {
  display: block;
  width: 100%;
  height: 100%;
}

.closing-medallion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  display: block;
  border-radius: 50%;
}

/* Closing Sign-off Typography */
.closing-heading {
  font-family: var(--font-subheading);
  font-size: 1.6rem;
  color: var(--light-gold);
  margin-top: 0;
  margin-bottom: 8px;
  text-align: center;
}

.closing-subtext {
  font-family: var(--font-subheading);
  font-size: 1.2rem;
  color: var(--ivory);
  margin-top: 0;
  margin-bottom: 12px;
  text-align: center;
}

.closing-devanagari {
  font-family: var(--font-devanagari);
  font-size: 1.25rem;
  color: var(--light-gold);
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
}

/* ====================================================================
   FLOATING AUDIO CONTROLLER & MOBILE STICKY NAV
   ==================================================================== */
#audio-toggle-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(48, 10, 18, 0.9);
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  transition: transform 0.2s var(--ease-royal);
}

#audio-toggle-btn:hover {
  transform: scale(1.08);
  background: var(--wine);
}

.audio-waves {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.audio-bar {
  width: 3px;
  background-color: var(--gold-light);
  border-radius: 2px;
  height: 6px;
}

#audio-toggle-btn.playing .audio-bar:nth-child(1) { animation: wave 1.2s ease-in-out infinite; }
#audio-toggle-btn.playing .audio-bar:nth-child(2) { animation: wave 1.2s ease-in-out 0.2s infinite; }
#audio-toggle-btn.playing .audio-bar:nth-child(3) { animation: wave 1.2s ease-in-out 0.4s infinite; }

@keyframes wave {
  0%, 100% { height: 4px; }
  50% { height: 18px; }
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(48, 10, 18, 0.96);
  border-top: 1.5.px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-around;
  backdrop-filter: blur(10px);
}

@media (min-width: 1100px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.nav-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--on-wine);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  opacity: 0.8;
  transition: opacity 0.2s var(--ease-royal), color 0.2s var(--ease-royal);
  flex: 1;
  height: 100%;
}

.nav-link-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  margin-bottom: 2px;
}

.nav-link-item.active,
.nav-link-item:hover {
  color: var(--gold-light);
  opacity: 1;
}

/* ====================================================================
   ROYAL MODAL CONFIRMATION BOX
   ==================================================================== */
.royal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(15, 2, 4, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-royal);
  backdrop-filter: blur(6px);
}

.royal-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.royal-modal-card {
  width: 100%;
  max-width: 440px;
  padding: 2rem;
  background: var(--wine);
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.royal-modal-title {
  font-family: var(--font-subheading);
  font-size: 1.6rem;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}

.royal-modal-text {
  font-size: 1rem;
  color: var(--on-wine);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
