/* Royal Floral Wedding Invitation Stylesheet */

:root {
  /* Royal Floral Palette: Soft Rose Pearl, Palace Gold & Blush Petal */
  --bg-deep: #FAF5F6;
  --bg-floral-grad: radial-gradient(circle at 50% 12%, #FFFFFF 0%, #FAF5F6 50%, #F5ECF0 100%);
  --surface-ivory: #FFFFFF;
  --surface-ivory-warm: #FCF8F9;
  --surface-card: #FFFFFF;
  --surface-card-hover: #FFFDFE;
  
  /* Metallics & Gold Foil */
  --gold-300: #EAD7A3;
  --gold-400: #D8B974;
  --gold-500: #C5A059;
  --gold-600: #A8813B;
  --gold-700: #7E5F23;
  --gold-foil: linear-gradient(135deg, #B58F4A 0%, #F5E6BD 45%, #C5A059 70%, #9B7530 100%);
  
  /* Auspicious Floral Pigments */
  --color-marigold: #DE6B16;
  --color-vermilion: #B83A28;
  --color-rose-deep: #A62B48;
  --color-rose-soft: #E88298;
  --color-leaf-green: #3B6B4C;
  --color-haldi: #DE9B18;

  /* Typography Inks */
  --ink-primary: #231C18;
  --ink-secondary: #4A3E37;
  --ink-muted: #7A6D65;
  --ink-gold: #967027;

  /* Typography Families */
  --font-display-regal: 'Marcellus', Georgia, serif;
  --font-display: 'Marcellus', Georgia, serif;
  --font-devanagari: 'Rozha One', 'Noto Serif Devanagari', serif;
  --font-devanagari-body: 'Noto Serif Devanagari', serif;
  --font-body: 'Tenor Sans', -apple-system, sans-serif;
  --font-script: 'Alex Brush', cursive, sans-serif;
  --font-ui: 'Marcellus', 'Tenor Sans', sans-serif;

  /* Geometry & Shadows */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-arch: 140px 140px 16px 16px;
  --shadow-royal: 0 10px 30px rgba(90, 60, 40, 0.08);
  --shadow-card: 0 6px 20px rgba(90, 60, 40, 0.06);
}

/* --------------------------------------------------------------------------
   Reset & Base Setup
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--ink-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  background: var(--bg-deep) var(--bg-floral-grad) fixed no-repeat center center;
  background-size: cover;
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

body.royal-envelope-active {
  overflow: hidden;
}

/* Accessible focus visible on all interactive controls */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Canvas: Falling Rose & Marigold Petal Shower
   -------------------------------------------------------------------------- */
.petal-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 50;
}

/* --------------------------------------------------------------------------
   Floating Controls (Flower Shower Only)
   -------------------------------------------------------------------------- */
.floating-controls {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
}

.control-btn {
  background: #FFFFFF;
  border: 1px solid var(--gold-400);
  color: var(--color-rose-deep);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(90, 60, 40, 0.12);
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.control-btn:hover {
  transform: scale(1.08);
  background: #FFF9F2;
  border-color: var(--gold-600);
}

.control-svg {
  display: block;
}

.control-tooltip {
  position: absolute;
  right: 50px;
  background: #FFFFFF;
  color: var(--ink-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-400);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.control-btn:hover .control-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   Royal Envelope & Wax Seal Reveal Curtain
   -------------------------------------------------------------------------- */
.royal-envelope-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: visibility 0.8s ease;
}

.royal-envelope-overlay.revealed {
  pointer-events: none;
  visibility: hidden;
}

.envelope-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background: #3B1017;
  border-right: 2px solid var(--gold-500);
  z-index: 1;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.curtain-left {
  left: 0;
  transform-origin: left center;
  background-image: 
    radial-gradient(rgba(197, 160, 89, 0.1) 1px, transparent 0),
    linear-gradient(135deg, #4A151D 0%, #2A090F 100%);
  background-size: 24px 24px, 100% 100%;
}

.curtain-right {
  right: 0;
  border-right: none;
  box-shadow: inset 2px 0 0 var(--gold-500);
  transform-origin: right center;
  background-image: 
    radial-gradient(rgba(197, 160, 89, 0.1) 1px, transparent 0),
    linear-gradient(225deg, #4A151D 0%, #2A090F 100%);
  background-size: 24px 24px, 100% 100%;
}

.royal-envelope-overlay.revealed .curtain-left {
  transform: translateX(-101%);
}

.royal-envelope-overlay.revealed .curtain-right {
  transform: translateX(101%);
}

.envelope-seal-container {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: opacity 0.6s ease, transform 0.6s ease;
  padding: 1rem;
}

.royal-envelope-overlay.revealed .envelope-seal-container {
  opacity: 0;
  transform: scale(0.85);
}

.gold-ring-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.35) 0%, rgba(197, 160, 89, 0) 70%);
  animation: pulseGlow 3s infinite ease-in-out;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

.wax-seal-badge {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #C94C38 0%, #992817 60%, #681509 100%);
  border: 3px solid #DFB86C;
  box-shadow: 
    0 0 0 4px rgba(223, 184, 108, 0.3),
    0 14px 35px rgba(0, 0, 0, 0.6),
    inset 0 2px 10px rgba(255, 255, 255, 0.35),
    inset 0 -4px 10px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s ease-out;
  user-select: none;
}

.wax-seal-badge:hover, .wax-seal-badge:focus-visible {
  transform: scale(1.05);
}

.wax-seal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FDF3D6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  padding: 0.4rem;
}

.shubh-om {
  font-family: var(--font-devanagari-body);
  font-size: 0.68rem;
  color: #FCEFD2;
}

.seal-monogram {
  font-family: var(--font-display-regal);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
  color: #FBE6B5;
  margin: 1px 0;
}

.seal-tap-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: #F4D596;
  font-weight: 600;
}

.seal-hindi {
  font-family: var(--font-devanagari);
  font-size: 0.82rem;
  color: #FFF;
  line-height: 1.1;
}

.seal-hint {
  margin-top: 1rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--gold-300);
}

/* --------------------------------------------------------------------------
   Main Page Layout & Wrapper
   -------------------------------------------------------------------------- */
.page-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.75rem 1rem 3.5rem;
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   Auspicious Header: Ganesh Shloka in Palatial Arch
   -------------------------------------------------------------------------- */
.auspicious-header {
  text-align: center;
  padding: 0.5rem 0.25rem 0;
  margin-bottom: 1.75rem;
}

.palatial-arch-frame {
  background: var(--surface-ivory);
  padding: 1.5rem 1.25rem 1.25rem;
  border-radius: var(--radius-arch);
  border: 1.5px solid var(--gold-500);
  box-shadow: var(--shadow-royal), inset 0 0 0 3px rgba(197, 160, 89, 0.18);
  display: inline-block;
  max-width: 580px;
  width: 100%;
  position: relative;
}

.arch-top-ornament {
  font-size: 1.5rem;
  color: var(--gold-500);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.ganesha-banner {
  max-width: 480px;
  margin: 0 auto;
}

.ganesha-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.subtle-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
  white-space: nowrap;
}

.divider-line {
  height: 1px;
  width: 45px;
  flex-shrink: 1;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

.divider-knot {
  color: var(--gold-600);
  font-family: var(--font-devanagari-body);
  font-size: 0.88rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Royal Palace Scroll & Frame
   -------------------------------------------------------------------------- */
.royal-palace-scroll {
  background: var(--surface-ivory);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gold-500);
  box-shadow: var(--shadow-royal);
  padding: 6px;
  position: relative;
  margin-bottom: 2.25rem;
}

.scroll-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold-500);
  pointer-events: none;
  z-index: 3;
}

.corner-tl { top: 5px; left: 5px; border-right: none; border-bottom: none; }
.corner-tr { top: 5px; right: 5px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 5px; left: 5px; border-right: none; border-top: none; }
.corner-br { bottom: 5px; right: 5px; border-left: none; border-top: none; }

.royal-scroll-inner {
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: calc(var(--radius-lg) - 4px);
  background: var(--surface-ivory-warm);
  padding: 2rem 1.25rem 1.75rem;
  position: relative;
  text-align: center;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(197, 160, 89, 0.08) 0%, transparent 60%),
    radial-gradient(rgba(197, 160, 89, 0.04) 1px, transparent 0);
  background-size: 100% 100%, 20px 20px;
}

/* --------------------------------------------------------------------------
   Grand Monogram Crest Showcase (7.jpeg)
   -------------------------------------------------------------------------- */
.royal-crest-showcase {
  position: relative;
  display: block;
  max-width: 250px;
  margin: 0 auto 1rem;
}

.crest-halo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.wedding-ss-crest-img {
  width: 100%;
  max-width: 250px;
  height: auto;
  aspect-ratio: 544 / 713;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  mix-blend-mode: multiply;
  filter: contrast(1.04) saturate(1.06);
}

/* --------------------------------------------------------------------------
   Couple Announcement
   -------------------------------------------------------------------------- */
.sub-greeting {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--ink-gold);
  margin-bottom: 0.85rem;
}

.couple-names-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.name-unit {
  max-width: 440px;
}

.person-name {
  font-family: var(--font-display-regal);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  font-feature-settings: "kern" 1, "liga" 1;
  position: relative;
}

.bride-name {
  color: var(--color-rose-deep);
}

.groom-name {
  color: var(--color-rose-deep);
}

.parent-line {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink-secondary);
  margin-top: 0.25rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.weds-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0.15rem 0;
}

.weds-flourish {
  color: var(--gold-500);
  font-size: 0.95rem;
}

.weds-script {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--color-rose-deep);
  line-height: 1;
  padding: 0 0.35rem;
  font-style: normal;
  display: inline-block;
  vertical-align: middle;
}

.heartfelt-invitation-text {
  font-family: var(--font-body);
  font-size: 1.18rem;
  color: var(--ink-secondary);
  max-width: 580px;
  margin: 0 auto 0.85rem;
  line-height: 1.5;
}

/* Pleasure of Company Statement */
.invite-tier-banner {
  margin: 0.35rem 0 1rem;
}

.invite-pleasure-text {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--color-vermilion);
  margin: 0 auto;
  max-width: 540px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0.015em;
}

/* Couple Hashtag Pill */
.hashtag-pill-wrapper {
  margin: 0.5rem 0 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hashtag-pill {
  background: var(--surface-ivory);
  border: 1px solid var(--gold-400);
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(90, 60, 40, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hashtag-pill:hover {
  transform: translateY(-2px);
  border-color: var(--gold-600);
}

.hash-symbol {
  color: var(--color-marigold);
  font-weight: 700;
  font-size: 1.1rem;
}

.hash-text {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--ink-primary);
  font-weight: 600;
}

.copy-tag-badge {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  color: var(--ink-muted);
  padding-left: 0.4rem;
  border-left: 1px solid var(--gold-400);
}

.copy-feedback-msg {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--color-leaf-green);
  font-weight: 600;
  min-height: 1.1rem;
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   Live Countdown Timer
   -------------------------------------------------------------------------- */
.countdown-section {
  margin-bottom: 2.5rem;
}

.countdown-card {
  background: var(--surface-ivory);
  border: 1.5px solid var(--gold-500);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-royal);
  position: relative;
  overflow: hidden;
}

.countdown-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--gold-foil);
}

.countdown-heading {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  color: var(--ink-primary);
  font-weight: 600;
  margin-bottom: 0.2rem;
  line-height: 1.25;
}

.countdown-subheading {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--ink-gold);
  margin-bottom: 1.25rem;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 440px;
  margin: 0 auto 1.5rem;
}

.countdown-box {
  background: var(--surface-ivory-warm);
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.35rem;
  min-width: 65px;
  flex: 1;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.countdown-number {
  display: block;
  font-family: var(--font-display-regal);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 700;
  color: var(--color-rose-deep);
  line-height: 1.1;
}

.countdown-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.countdown-sep {
  color: var(--gold-500);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.calendar-actions {
  display: flex;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Common Button & Link Styling
   -------------------------------------------------------------------------- */
.gold-action-btn {
  background: var(--gold-foil);
  color: #1A1406;
  border: 1px solid #DFBA6D;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  min-height: 44px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.gold-action-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.gold-action-btn:active {
  transform: translateY(0);
}

.btn-svg {
  display: inline-block;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Section Titles & Auspicious Badges
   -------------------------------------------------------------------------- */
.section-title-wrap {
  text-align: center;
  margin-bottom: 2rem;
}

.auspicious-mantra {
  display: block;
  font-family: var(--font-devanagari);
  font-size: 1.25rem;
  color: var(--color-rose-deep);
  margin-bottom: 0.2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.3rem);
  color: var(--ink-primary);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  font-feature-settings: "kern" 1, "liga" 1;
}

.ornate-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0.4rem 0 0.65rem;
  color: var(--gold-500);
  font-size: 1rem;
}

.section-lead {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--ink-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Ceremonies Timeline (Dynamic cards)
   -------------------------------------------------------------------------- */
.ceremonies-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.ceremony-card {
  background: var(--surface-ivory);
  border: 1px solid var(--gold-400);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-royal);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px 1fr;
  transition: transform 0.35s ease-out;
}

.ceremony-card:hover {
  transform: translateY(-3px);
}

.ceremony-art-wrapper {
  position: relative;
  background: #FDF9F2;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ceremony-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.ceremony-art-wrapper:hover .ceremony-thumb-img {
  transform: scale(1.04);
}

.card-zoom-badge {
  position: absolute;
  bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink-primary);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-500);
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.badge-svg {
  display: inline-block;
  flex-shrink: 0;
}

.ceremony-details {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ceremony-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
  padding-bottom: 0.4rem;
}

.ceremony-day-badge {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--color-rose-deep);
  font-weight: 700;
}

.ceremony-date-display {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-gold);
  font-weight: 600;
}

.ceremony-hindi-title {
  font-family: var(--font-devanagari);
  font-size: clamp(1.75rem, 3.5vw, 2.2rem);
  color: var(--ink-primary);
  line-height: 1.18;
  margin: 0.25rem 0 0.1rem;
}

.ceremony-eng-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink-secondary);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.ceremony-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(197, 160, 89, 0.15);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(197, 160, 89, 0.35);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: var(--ink-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.ceremony-venue-block {
  margin-bottom: 1.25rem;
}

.venue-label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 1px;
}

.venue-title {
  font-family: var(--font-body);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.venue-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink-secondary);
  line-height: 1.4;
}

.ceremony-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.map-link-btn {
  background: transparent;
  color: var(--color-leaf-green);
  border: 1px solid var(--color-leaf-green);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  transition: all 0.2s ease;
}

.map-link-btn:hover {
  background: var(--color-leaf-green);
  color: #FFF;
}

.card-view-btn {
  background: transparent;
  border: 1px solid var(--gold-500);
  color: var(--gold-700);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  transition: all 0.2s ease;
}

.card-view-btn:hover {
  background: rgba(197, 160, 89, 0.15);
  color: var(--ink-primary);
}

/* --------------------------------------------------------------------------
   Cards Gallery Slider with Native Scroll Snap
   -------------------------------------------------------------------------- */
.gallery-section {
  margin-bottom: 3.5rem;
}

/* Outer slider wrapper — sets relative context for arrows */
.card-slider {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 0 0 2.5rem; /* room for dots */
}

/* Scroll snap viewport */
.slider-track-outer {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-royal);
  background: var(--surface-ivory);
}

.slider-track-outer::-webkit-scrollbar {
  display: none;
}

/* Flex strip of slides */
.slider-track {
  display: flex;
  width: 100%;
}

/* Individual slide with scroll snap */
.slider-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  box-sizing: border-box;
}

.slider-slide-inner {
  cursor: pointer;
  background: var(--surface-ivory);
  border: 1px solid var(--gold-400);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.slider-slide-inner:hover,
.slider-slide-inner:focus-visible {
  box-shadow: 0 8px 28px rgba(90, 60, 40, 0.14);
  outline: none;
}

.slider-card-frame {
  position: relative;
  width: 100%;
  background: #FCF8F9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slider-card-img {
  width: 100%;
  height: 480px;
  max-height: 64vh;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease;
}

.slider-slide-inner:hover .slider-card-img {
  transform: scale(1.02);
}

.slider-zoom-hint {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-primary);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-500);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.slider-card-label {
  padding: 0.75rem 1rem;
  background: var(--surface-ivory-warm);
  border-top: 1px solid rgba(197, 160, 89, 0.3);
  text-align: center;
}

.gallery-card-name {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-primary);
  display: block;
}

/* Arrow buttons */
.slider-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 10;
  background: #FFFFFF;
  border: 1.5px solid var(--gold-400);
  color: var(--color-rose-deep);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(90, 60, 40, 0.12);
  transition: all 0.2s ease;
  padding: 0;
}

.slider-arrow:hover {
  background: var(--color-rose-deep);
  color: #FFFFFF;
  border-color: var(--color-rose-deep);
}

.slider-prev {
  left: -22px;
}

.slider-next {
  right: -22px;
}

@media (max-width: 500px) {
  .card-slider {
    max-width: 320px;
  }
  .slider-card-img {
    height: 430px;
    max-height: 58vh;
  }
  .slider-prev { left: -14px; }
  .slider-next { right: -14px; }
}

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.35);
  border: 1px solid var(--gold-400);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.slider-dot.active {
  background: var(--gold-500);
  transform: scale(1.3);
}

/* --------------------------------------------------------------------------
   Venues & Directions
   -------------------------------------------------------------------------- */
.venues-section {
  margin-bottom: 3.5rem;
}

.venues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.venue-card {
  background: var(--surface-ivory);
  border: 1px solid var(--gold-400);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-royal);
  padding: 1.75rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.venue-tag {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--color-rose-deep);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.venue-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink-primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.venue-address {
  font-family: var(--font-body);
  font-size: 1.12rem;
  color: var(--ink-secondary);
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.venue-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.venue-map-btn {
  justify-content: center;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   RSVP & Hosts
   -------------------------------------------------------------------------- */
.rsvp-section {
  margin-bottom: 2.75rem;
}

.rsvp-frame {
  padding: 2.5rem 1.75rem 2.25rem;
}

.shubh-vivah-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.badge-script {
  font-family: var(--font-devanagari);
  font-size: 1.85rem;
  color: var(--color-vermilion);
}

.rsvp-title {
  font-family: var(--font-display-regal);
  font-size: clamp(1.75rem, 4vw, 2.3rem);
  color: var(--ink-primary);
  margin-bottom: 0.65rem;
  line-height: 1.2;
}

.rsvp-message {
  font-family: var(--font-body);
  font-size: 1.22rem;
  color: var(--ink-secondary);
  max-width: 580px;
  margin: 0 auto 1.75rem;
  line-height: 1.5;
}

.family-hosts-card {
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid var(--gold-400);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  max-width: 500px;
  margin: 0 auto 1.75rem;
}

.hosts-heading {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--ink-gold);
  margin-bottom: 0.2rem;
}

.host-names {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.brothers-section {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(197, 160, 89, 0.3);
}

.brothers-label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.brothers-names {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-rose-deep);
}

.rsvp-interactive-box {
  max-width: 580px;
  margin: 0 auto 1.75rem;
}

.rsvp-callout {
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--ink-primary);
  margin-bottom: 0.2rem;
}

.rsvp-callout-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink-muted);
  margin-bottom: 1.15rem;
}

.rsvp-contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.85rem;
}

.rsvp-contact-card {
  background: #FFF;
  border: 1px solid var(--gold-400);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  box-shadow: 0 3px 10px rgba(90, 60, 40, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rsvp-contact-card:hover {
  transform: translateY(-2px);
  border-color: #25D366;
}

.contact-info {
  text-align: left;
}

.contact-role {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--ink-muted);
  display: block;
}

.contact-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink-primary);
  display: block;
}

.contact-phone {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-secondary);
}

.wa-action-badge {
  background: #25D366;
  color: #FFF;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  flex-shrink: 0;
}

.closing-blessing {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(197, 160, 89, 0.3);
}

.shloka-text {
  font-family: var(--font-devanagari-body);
  font-size: 1.05rem;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.hashtag-footer {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-marigold);
}

/* --------------------------------------------------------------------------
   Palatial Footer with Secret SS Switch Button
   -------------------------------------------------------------------------- */
.palace-footer {
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  color: var(--ink-muted);
}

.footer-crest-small {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  background: var(--surface-ivory);
  cursor: pointer;
  user-select: none;
  box-shadow: 0 4px 12px rgba(90, 60, 40, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.footer-crest-small:hover {
  transform: scale(1.08);
  border-color: var(--gold-600);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.crest-letters {
  font-family: var(--font-display-regal);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--gold-600);
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink-primary);
  margin-bottom: 2px;
}

.footer-date {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--ink-gold);
  margin-bottom: 0.4rem;
}

.footer-note {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Card Modal Lightbox
   -------------------------------------------------------------------------- */
.card-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.card-modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(40, 20, 25, 0.92);
}

.modal-content-wrap {
  position: relative;
  z-index: 2;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #FFF;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

.modal-img-container {
  max-height: 78vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border: 1.5px solid var(--gold-500);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.modal-image {
  max-height: 78vh;
  max-width: 90vw;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.modal-caption {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-300);
  margin-top: 0.65rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Comprehensive Mobile Viewport Breakpoint (Phones <= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .page-wrapper {
    padding: 1.25rem 0.75rem 2.5rem;
  }

  .auspicious-header {
    margin-bottom: 1.25rem;
  }

  .palatial-arch-frame {
    padding: 1.25rem 0.85rem 1rem;
    border-radius: 90px 90px 14px 14px;
  }

  .arch-top-ornament {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
  }

  .divider-knot {
    font-size: 0.8rem;
  }

  .divider-line {
    width: 25px;
  }

  .royal-palace-scroll {
    margin-bottom: 1.75rem;
    padding: 4px;
  }

  .royal-scroll-inner {
    padding: 1.5rem 0.85rem 1.35rem;
  }

  .royal-crest-showcase {
    max-width: 200px;
    margin-bottom: 0.85rem;
  }

  .wedding-ss-crest-img {
    max-width: 200px;
  }

  .person-name {
    font-size: 2rem;
  }

  .parent-line {
    font-size: 1rem;
  }

  .heartfelt-invitation-text {
    font-size: 1.08rem;
    margin-bottom: 0.65rem;
  }

  .invite-pleasure-text {
    font-size: 1.08rem;
    margin-bottom: 0.85rem;
  }

  .countdown-section {
    margin-bottom: 2rem;
  }

  .countdown-card {
    padding: 1.35rem 0.85rem;
  }

  .countdown-heading {
    font-size: 1.2rem;
  }

  .countdown-subheading {
    font-size: 0.82rem;
    margin-bottom: 1rem;
  }

  .countdown-grid {
    gap: 0.35rem;
    margin-bottom: 1.2rem;
  }

  .countdown-box {
    min-width: unset;
    padding: 0.5rem 0.2rem;
  }

  .countdown-number {
    font-size: 1.45rem;
  }

  .countdown-label {
    font-size: 0.68rem;
  }

  .countdown-sep {
    display: none;
  }

  .gold-action-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    font-size: 0.85rem;
    padding: 0.7rem 1rem;
  }

  .section-title-wrap {
    margin-bottom: 1.5rem;
  }

  .section-title {
    font-size: 1.55rem;
  }

  .section-lead {
    font-size: 1.05rem;
  }

  .ceremonies-timeline {
    gap: 1.5rem;
    margin-bottom: 2.25rem;
  }

  .ceremony-card {
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
  }

  .ceremony-art-wrapper {
    height: 190px;
  }

  .ceremony-details {
    padding: 1.15rem 1rem;
  }

  .ceremony-header-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding-bottom: 0.35rem;
  }

  .ceremony-day-badge {
    font-size: 0.82rem;
  }

  .ceremony-date-display {
    font-size: 0.85rem;
  }

  .ceremony-hindi-title {
    font-size: 1.6rem;
    margin: 0.2rem 0 0.1rem;
  }

  .ceremony-eng-title {
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
  }

  .ceremony-time-badge {
    font-size: 0.88rem;
    padding: 0.3rem 0.65rem;
    margin-bottom: 0.85rem;
  }

  .venue-title {
    font-size: 1.12rem;
  }

  .venue-desc {
    font-size: 0.98rem;
  }

  .ceremony-actions {
    gap: 0.5rem;
  }

  .map-link-btn, .card-view-btn {
    flex: 1 1 calc(50% - 0.25rem);
    justify-content: center;
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
    text-align: center;
  }

  .cards-preview-scroll {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .venues-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .venue-card {
    padding: 1.35rem 1.15rem;
  }

  .venue-name {
    font-size: 1.25rem;
  }

  .venue-address {
    font-size: 1.05rem;
    margin-bottom: 1rem;
  }

  .rsvp-frame {
    padding: 1.75rem 1rem 1.5rem;
  }

  .rsvp-title {
    font-size: 1.65rem;
  }

  .rsvp-message {
    font-size: 1.1rem;
    margin-bottom: 1.35rem;
  }

  .family-hosts-card {
    padding: 1.15rem 1rem;
    margin-bottom: 1.35rem;
  }

  .host-names {
    font-size: 1.15rem;
  }

  .brothers-names {
    font-size: 1.05rem;
  }

  .rsvp-contacts-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .floating-controls {
    top: 0.75rem;
    right: 0.75rem;
  }

  .control-btn {
    width: 38px;
    height: 38px;
  }
}
