/* Design tokens are loaded from css/themes.css */

/* --------------------------------------------------------------------------
   2. Reset & Typography Baseline
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  background-color: var(--color-bg);
}

body {
  margin: 0;
  padding: calc(var(--header-height) + var(--nav-height) + env(safe-area-inset-top, 0px)) 0 calc(90px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.lang-en {
  font-family: var(--font-body-en);
}
body.lang-en h1, 
body.lang-en h2, 
body.lang-en h3,
body.lang-en .font-heading {
  font-family: var(--font-heading-en);
  font-weight: 400;
  letter-spacing: 0.04em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}


a:not(.btn):not(.pill-action-btn) {
  color: var(--heading-color);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:not(.btn):not(.pill-action-btn):hover {
  color: var(--heading-color);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.9;
}
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--focus-ring);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

button, 
a.btn,
.tap-target {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 5;
}

.gold-foil {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--color-rose);
}
.ornament-divider::before,
.ornament-divider::after {
  content: "";
  flex: 1;
  max-width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}
.ornament-divider.sage-accent {
  color: var(--heading-color);
}
.ornament-divider.sage-accent::before,
.ornament-divider.sage-accent::after {
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 20px;
}
.section-subtitle {
  font-size: 0.90rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--heading-color);
  font-weight: 600;
  margin-bottom: 4px;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2rem);
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.25;
}
.section-header--light .section-subtitle {
  color: var(--heading-color);
}
.section-header--light .section-title {
  color: var(--color-text);
}

.glass-card {
  background: var(--color-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  position: relative;
  transition: var(--transition-smooth);
}

/* --------------------------------------------------------------------------
   3. Petal Canvas (Layer 0)
   -------------------------------------------------------------------------- */
#petalCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   5. Cinematic Temple Doors (Screen 2)
   -------------------------------------------------------------------------- */
.doors-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  perspective: 1400px;
  overflow: hidden;
  transition: opacity 0.5s ease;
  pointer-events: auto;
}
.door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  height: 100%;
  background: var(--gradient-hero);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.door-left {
  left: 0;
  border-right: 3px solid var(--color-accent);
  transform-origin: left center;
  padding-right: 48px;
}
.door-right {
  right: 0;
  border-left: 3px solid var(--color-accent);
  transform-origin: right center;
  padding-left: 48px;
}
.door-arch-ornament {
  position: absolute;
  top: 24px;
  bottom: 24px;
  width: 82%;
  border: 1px dashed var(--divider);
  pointer-events: none;
}
.door-left .door-arch-ornament {
  right: 16px;
  border-top-left-radius: 90px;
  border-bottom-left-radius: 16px;
}
.door-right .door-arch-ornament {
  left: 16px;
  border-top-right-radius: 90px;
  border-bottom-right-radius: 16px;
}

.door-character-glow {
  position: relative;
  width: 100%;
  max-width: 160px;
  height: clamp(190px, 34vh, 270px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.door-character-glow::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 220px;
  background: radial-gradient(ellipse at center, var(--color-accent-light) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.door-character-img {
  width: auto;
  height: clamp(175px, 32vh, 255px);
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px var(--overlay-tint));
  position: relative;
  z-index: 2;
}

.door-seal-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}
.wax-seal-btn {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--gradient-gold);
  border: 3px solid var(--color-bg);
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-strong);
  font-weight: 700;
  animation: sealPulse 2s infinite;
  transition: transform 0.2s ease;
  cursor: pointer;
}
.wax-seal-btn:hover {
  transform: scale(1.06);
}
.wax-seal-btn:active {
  transform: scale(0.96);
}
.seal-text-en {
  font-family: var(--font-heading-en);
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.seal-tap-label {
  color: var(--text-on-primary);
  font-size: 0.90rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-align: center;
  max-width: min(260px, 78vw);
  line-height: 1.35;
  white-space: normal;
  text-shadow: none;
}

@keyframes sealPulse {
  0% {
    box-shadow: var(--shadow-strong);
  }
  70% {
    box-shadow: var(--shadow-glow);
  }
  100% {
    box-shadow: var(--shadow);
  }
}

.doors-opened .door-left {
  transform: rotateY(-115deg);
  transition: transform 1.6s cubic-bezier(0.77, 0, 0.175, 1);
}
.doors-opened .door-right {
  transform: rotateY(115deg);
  transition: transform 1.6s cubic-bezier(0.77, 0, 0.175, 1);
}
.doors-opened .door-seal-wrapper {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   6. Sticky Header & Story Bar
   -------------------------------------------------------------------------- */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px;
  max-width: 820px;
  margin: 0 auto;
  height: var(--header-height);
}
.header-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  color: var(--text-on-primary);
  background: var(--nav-pill-bg);
  border: 1px solid var(--divider);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}
.hamburger-btn:hover,
.hamburger-btn:active {
  background: var(--color-accent);
  color: var(--text-on-accent);
}

/* Mobile & Tablet Slide-Out Drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: var(--hero-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 82vw);
  z-index: 1100;
  background: var(--color-primary-dark);
  border-left: 2px solid var(--color-accent);
  box-shadow: var(--shadow-strong);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}
.mobile-nav-drawer.open {
  transform: translateX(0);
}
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--divider);
  min-height: var(--header-height);
}
.mobile-drawer-title {
  font-size: 1.2rem;
  color: var(--color-accent-light);
  letter-spacing: 0.5px;
}
.drawer-close-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  color: var(--text-on-primary);
  background: var(--nav-pill-bg);
  border: 1px solid var(--divider);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.drawer-close-btn:hover,
.drawer-close-btn:active {
  background: var(--color-accent);
  color: var(--text-on-accent);
}
.mobile-drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav-item {
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--nav-pill-bg);
  border: 1px solid var(--divider);
  color: var(--text-on-primary);
  font-size: 0.96rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
  transition: var(--transition-smooth);
}
.mobile-nav-item:hover:not(.active) {
  background: var(--border);
}
.mobile-nav-item.active {
  background: var(--gradient-gold);
  color: var(--text-on-accent);
  border-color: var(--color-accent-light);
  box-shadow: var(--shadow-glow);
}
.header-logo-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  background: var(--color-primary);
  padding: 1px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--border);
  flex-shrink: 0;
}
.header-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.header-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-on-primary);
  letter-spacing: 0.8px;
  line-height: 1;
}
/* Horizontal Ceremony Story Nav Carousel */
.story-nav-bar {
  position: fixed;
  top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 999;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--divider);
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 16px;
  box-shadow: var(--shadow);
}
.story-nav-bar::-webkit-scrollbar {
  display: none;
}
.story-nav-track {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin: 0 auto;
  padding: 4px 0;
}
.story-nav-pill {
  padding: 0 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--nav-pill-bg);
  border: 1px solid var(--divider);
  color: var(--text-on-primary);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition-smooth);
  cursor: pointer;
}
.story-nav-pill.active {
  background: var(--gradient-gold);
  color: var(--text-on-accent);
  border-color: var(--color-accent-light);
  box-shadow: var(--shadow-glow);
}
.story-nav-pill:hover:not(.active) {
  background: var(--border);
  color: var(--text-on-primary);
}

@media (max-width: 1024px) {
  body {
    padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  }
  .header-brand {
    width: auto;
    justify-content: flex-start;
  }
  .hamburger-btn {
    display: inline-flex;
  }
  .story-nav-bar {
    display: none;
  }
}
@media (min-width: 1025px) {
  .mobile-nav-drawer,
  .mobile-nav-backdrop {
    display: none;
  }
}


/* Smooth Section-to-Section Background Transitions */
.cover-page,
.ceremony-page,
.families-page,
.standalone-page {
  position: relative;
  transition: background 0.8s ease;
}
.ceremony-page::before,
.ceremony-page::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 3;
  pointer-events: none;
}
.ceremony-page::before {
  top: 0;
  background: linear-gradient(to bottom, var(--edge-fade), transparent);
}
.ceremony-page::after {
  bottom: 0;
  background: linear-gradient(to top, var(--edge-fade), transparent);
}

/* --------------------------------------------------------------------------
   7. Full-Page Ceremony Section Architecture
   -------------------------------------------------------------------------- */
.ceremony-page {
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 65px 16px 70px;
}

/* Cinematic Ken Burns Panning Background */
.ceremony-bg-media {
  position: absolute;
  top: -4%;
  left: -4%;
  width: 108%;
  height: 108%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(1.0) saturate(1.12);
  z-index: 1;
  animation: kenBurns 18s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenBurns {
  0% {
    transform: scale(1.0) translate(0, 0);
  }
  50% {
    transform: scale(1.08) translate(-1.5%, 1.2%);
  }
  100% {
    transform: scale(1.03) translate(1.2%, -1%);
  }
}

/* Soft Luminous Vignette Overlay so background artwork shines through */
.ceremony-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--overlay-center) 0%, var(--overlay-tint) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Page Specific Joyous Overlays */
.ceremony-page.haldi-page .ceremony-overlay {
  background: radial-gradient(ellipse at center, var(--overlay-center) 0%, var(--overlay-tint) 100%);
}
.ceremony-page.mehndi-page .ceremony-overlay {
  background: radial-gradient(ellipse at center, var(--overlay-center) 0%, var(--overlay-tint) 100%);
}
.ceremony-page.sangeet-page .ceremony-overlay {
  background: radial-gradient(ellipse at center, var(--overlay-center) 0%, var(--overlay-tint) 100%);
}
.ceremony-page.vivah-page .ceremony-overlay {
  background: radial-gradient(ellipse at center, var(--overlay-center) 0%, var(--overlay-tint) 100%);
}
.ceremony-page.vidai-page .ceremony-overlay {
  background: radial-gradient(ellipse at center, var(--overlay-center) 0%, var(--overlay-tint) 100%);
}

/* Ornate Banarasi Jharokha Ceremony Card */
.ceremony-card {
  position: relative;
  z-index: 5;
  background: var(--color-surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid var(--color-accent);
  border-radius: clamp(44px, 10vw, 72px) clamp(44px, 10vw, 72px) 24px 24px;
  box-shadow: var(--shadow-strong);
  padding: clamp(42px, 8vw, 56px) 24px 28px;
  max-width: 580px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}
.ceremony-card--featured {
  border-color: var(--color-marigold);
  box-shadow: var(--shadow-strong), var(--shadow-glow);
}
.ceremony-card-inner-border {
  position: absolute;
  top: 7px;
  left: 7px;
  right: 7px;
  bottom: 7px;
  border: 1px dashed var(--divider);
  border-radius: clamp(38px, 9vw, 65px) clamp(38px, 9vw, 65px) 18px 18px;
  pointer-events: none;
}

.ceremony-badge-top {
  display: inline-block;
  max-width: calc(100% - 16px);
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}
.badge-tilak,
.badge-mehndi,
.badge-vidai {
  background: var(--color-primary);
  color: var(--text-on-primary);
  border: 1px solid var(--color-accent);
}
.badge-haldi {
  background: var(--gradient-gold);
  color: var(--text-on-accent);
  border: 1px solid var(--color-accent-light);
}
.badge-sangeet {
  background: var(--color-primary-dark);
  color: var(--text-on-primary);
  border: 1px solid var(--color-accent);
}
.badge-vivah {
  background: var(--gradient-gold);
  color: var(--text-on-accent);
  border: 1.5px solid var(--color-marigold);
  box-shadow: var(--shadow-glow);
}

.ceremony-main-title {
  font-size: 1.95rem;
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}

.ceremony-poetic-verse {
  font-size: 0.98rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Ceremony Meta Info Chips */
.ceremony-meta-box {
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 14px;
  margin-bottom: 20px;
  text-align: left;
}
.ceremony-meta-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--text-strong);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
}
.ceremony-meta-line:last-child {
  margin-bottom: 0;
}
.ceremony-meta-line svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--heading-color);
  margin-top: 2px;
}
.ceremony-desc-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 12px 0 16px;
  line-height: 1.55;
}

.ceremony-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-add-calendar {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-card);
  border: 1.5px solid var(--color-accent);
  color: var(--heading-color);
  font-size: 0.90rem;
  font-weight: 700;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow);
}
.btn-add-calendar:hover,
.btn-add-calendar:active {
  background: var(--color-primary);
  color: var(--text-on-primary);
  transform: translateY(-2px);
}

.btn-venue-link {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--gradient-gold);
  color: var(--text-on-accent);
  border: 1.5px solid var(--color-accent);
  font-size: 0.90rem;
  font-weight: 700;
  transition: var(--transition-smooth);
}
.btn-venue-link:hover,
.btn-directions:hover {
  background: var(--hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

/* --------------------------------------------------------------------------
   8. Sacred Cover / Hero Page
   -------------------------------------------------------------------------- */
.cover-page {
  background-color: var(--color-primary);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 16px 60px;
  text-align: center;
  position: relative;
}
.cover-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: var(--gradient-glow), linear-gradient(var(--hero-overlay), var(--hero-overlay)), url('../assets/bg-vivah.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.shloka-card {
  margin-bottom: 28px;
  background: var(--color-surface-glass);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.shloka-text {
  font-size: 1.05rem;
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 10px;
}
.vandana-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.jharokha-card {
  position: relative;
  background: var(--color-surface-glass);
  border: 2.5px solid var(--color-accent);
  border-radius: clamp(64px, 20vw, 140px) clamp(64px, 20vw, 140px) 24px 24px;
  box-shadow: var(--shadow-strong);
  padding: 36px 24px 30px;
  margin-bottom: 24px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}
.jharokha-inner-border {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px dashed var(--divider);
  border-radius: clamp(58px, 18vw, 132px) clamp(58px, 18vw, 132px) 18px 18px;
  pointer-events: none;
}
.ganesh-top-mantra {
  font-size: 1.15rem;
  color: var(--heading-color);
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
}

.couple-hero-wrap {
  position: relative;
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
  z-index: 10;
}
.couple-hero-img {
  width: min(280px, 72%);
  height: auto;
  filter: drop-shadow(0 12px 24px var(--overlay-tint));
  animation: floatCouple 4s ease-in-out infinite;
  display: block;
}

@keyframes floatCouple {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-names-block {
  margin-top: 10px;
  margin-bottom: 16px;
}
.hero-name {
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.25;
}
.hero-weds-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 6px 0;
}
.hero-weds-line {
  flex: 0 1 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}
.hero-weds-text {
  font-size: 1.35rem;
  font-weight: 700;
}

.hero-invite-line {
  font-size: 1.02rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 14px;
}
.hero-baraat-line {
  display: inline-block;
  background: var(--accent-100);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.94rem;
  color: var(--text-strong);
  font-weight: 600;
  margin-bottom: 14px;
}

.countdown-box-wrap {
  margin-top: 4px;
}
.countdown-heading {
  font-size: 0.95rem;
  color: var(--heading-color);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 380px;
  margin: 0 auto;
}
.countdown-item {
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 14px;
  padding: 10px 4px;
  color: var(--text-on-primary);
  box-shadow: var(--shadow);
}
.countdown-number {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-on-primary);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.countdown-label {
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: var(--text-on-primary);
  opacity: 0.9;
  margin-top: 2px;
}
.countdown-completed-msg {
  display: none;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading-color);
  padding: 12px;
  background: var(--accent-100);
  border-radius: 12px;
}

/* --------------------------------------------------------------------------
   9. Noble Families Page with Real Photographs
   -------------------------------------------------------------------------- */
.families-page {
  background: var(--gradient-section-sand);
  min-height: 100vh;
  min-height: 100svh;
  padding: 60px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.families-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 700px) {
  .families-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.family-photo-card {
  position: relative;
  background: var(--color-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--color-accent);
  border-radius: 24px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow);
}
.family-photo-wrap {
  width: 144px;
  height: 144px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid var(--color-accent);
  background: var(--avatar-glow);
  padding: 8px 6px 2px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.family-real-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}
.family-badge-chip {
  display: inline-block;
  padding: 4px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.badge-groom-side,
.badge-bride-side {
  background: var(--gradient-gold);
  color: var(--text-on-accent);
  border: 1.5px solid var(--color-accent-light);
  box-shadow: var(--shadow);
}

.family-person-title {
  font-size: 1.55rem;
  color: var(--heading-color);
  font-weight: 700;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 6px;
}
.family-row {
  margin-bottom: 10px;
  text-align: left;
  line-height: 1.5;
}
.family-row-label {
  font-weight: 700;
  color: var(--heading-color);
  font-size: 0.90rem;
}
.family-row-val {
  color: var(--color-text);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   10. Baal Manuhar, Venue & RSVP Pages
   -------------------------------------------------------------------------- */
.standalone-page {
  background: var(--color-bg);
  min-height: 100vh;
  min-height: 100svh;
  padding: 60px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#section-venue {
  background: var(--gradient-section-maroon);
}
#section-rsvp {
  background: var(--gradient-section-sand);
}
#section-venue .section-header--light .section-subtitle {
  color: var(--color-accent-light);
}
#section-venue .section-header--light .section-title {
  color: var(--text-on-primary);
}
.baal-card {
  background: var(--color-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--color-accent);
  border-radius: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  padding: 32px 20px;
  max-width: 580px;
  margin: 0 auto;
}
.baal-avatar-wrap {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  background: var(--color-primary);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.baal-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.baal-title {
  font-size: 1.55rem;
  color: var(--heading-color);
  font-weight: 700;
  margin-bottom: 14px;
}
.baal-rhyme {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-strong);
  line-height: 1.7;
  margin-bottom: 16px;
}
.baal-signature {
  font-size: 0.96rem;
  color: var(--heading-color);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Venue */
.venue-card {
  text-align: center;
  padding: 24px 20px;
  max-width: 620px;
  margin: 0 auto;
}
.venue-map-wrap {
  width: 100%;
  height: 270px;
  border-radius: 14px;
  border: 1px solid var(--color-accent);
  overflow: hidden;
  margin-bottom: 20px;
}
.venue-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.venue-name {
  font-size: 1.65rem;
  color: var(--heading-color);
  font-weight: 700;
  margin-bottom: 6px;
}
.venue-address {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}
.btn-directions {
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: var(--gradient-gold);
  color: var(--text-on-accent);
  border: 1.5px solid var(--color-accent);
  font-size: 1rem;
  font-weight: 700;
  gap: 10px;
}

/* RSVP */
.rsvp-form-card {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}
.form-group {
  margin-bottom: 16px;
  text-align: left;
}
.form-label {
  display: block;
  font-weight: 600;
  color: var(--heading-color);
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--color-surface-card);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.98rem;
  min-height: 44px;
}
.form-textarea {
  resize: vertical;
  min-height: 80px;
}
.events-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 480px) {
  .events-checkbox-grid {
    grid-template-columns: 1fr;
  }
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.92rem;
  cursor: pointer;
}
.checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--heading-color);
}
.btn-rsvp-submit {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  background: var(--gradient-gold);
  color: var(--text-on-accent);
  border: 1.5px solid var(--color-accent);
  font-size: 1.05rem;
  font-weight: 700;
  transition: var(--transition-smooth);
}
.btn-rsvp-submit:hover:not(:disabled) {
  background: var(--hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}
.btn-rsvp-submit:active:not(:disabled) {
  background: var(--active);
}
.btn-rsvp-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.rsvp-status-msg {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}
.rsvp-status-msg.success { background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success); }
.rsvp-status-msg.error { background: var(--error-bg); border: 1px solid var(--error-border); color: var(--error); }
.hidden-honeypot { position: absolute; left: -5000px; width: 1px; height: 1px; }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--gradient-section-maroon);
  border-top: 3px solid var(--color-accent);
  color: var(--text-on-primary);
  padding: 56px 16px 40px;
  text-align: center;
  position: relative;
}
.footer-card {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-strong);
  padding: 32px 22px 28px;
  max-width: 620px;
  margin: 0 auto;
}
.footer-couple-wrap {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}
.footer-couple-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  object-position: bottom center;
  border-radius: 50%;
  border: 3px solid var(--color-accent);
  background: var(--footer-avatar-bg);
  padding: 8px 6px 2px;
  box-shadow: var(--shadow-glow);
}
.footer-block {
  margin-bottom: 20px;
}
.footer-label {
  font-size: 0.94rem;
  color: var(--text-on-primary);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-val {
  font-size: 0.98rem;
  color: var(--text-on-primary);
  line-height: 1.5;
  max-width: 580px;
  margin: 0 auto;
}
.footer-phone-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 6px;
}
.site-footer a.footer-tel-link {
  color: var(--color-accent-light);
  font-weight: 600;
  text-decoration: underline;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-closing {
  margin-top: 28px;
  font-size: 1.25rem;
  color: var(--text-on-primary);
  font-weight: 700;
  letter-spacing: 2px;
}

/* --------------------------------------------------------------------------
   12. Floating Action Pill & Next/Prev Controls
   -------------------------------------------------------------------------- */
.floating-pill {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-strong);
}
.pill-action-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--nav-pill-bg);
  color: var(--text-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.pill-action-btn:hover,
.pill-action-btn:active {
  background: var(--color-accent);
  color: var(--text-strong);
}
.pill-divider {
  width: 1px;
  height: 22px;
  background: var(--divider);
}

/* --------------------------------------------------------------------------
   13. Responsive Refinements
   -------------------------------------------------------------------------- */
@media (max-width: 440px) {
  .door-left { padding-right: 28px; }
  .door-right { padding-left: 28px; }
  .wax-seal-btn { width: 84px; height: 84px; }
  .countdown-grid { gap: 6px; }
  .ceremony-main-title { font-size: 1.65rem; }
  .hero-name { font-size: 1.65rem; }
  .countdown-number { font-size: 1.35rem; }
  .ceremony-card { padding: 40px 18px 24px; border-radius: 44px 44px 20px 20px; }
  .ceremony-card--featured {
    border-color: var(--color-marigold);
    box-shadow: var(--shadow-strong), var(--shadow-glow);
  }
  .ceremony-card-inner-border { border-radius: 38px 38px 15px 15px; }
}

/* --------------------------------------------------------------------------
   14. Reduced Motion Accessibility
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  #petalCanvas { display: none !important; }
  .ceremony-bg-media { animation: none !important; }
  .couple-hero-img { animation: none !important; }
  .wax-seal-btn { animation: none !important; }
  .doors-opened .door-left,
  .doors-opened .door-right {
    transform: none !important;
    opacity: 0 !important;
    transition: opacity 0.2s linear !important;
  }
}
