:root {
  --bg: #f9f7f3;
  --bg-alt: #f0ebe3;
  --surface: #ffffff;
  --text: #2c2a28;
  --muted: #6f6a63;
  --primary: #9a7b3c;
  --primary-soft: rgba(154, 123, 60, 0.1);
  --accent: #6b7a8f;
  --accent-soft: rgba(107, 122, 143, 0.1);
  --border: rgba(44, 42, 40, 0.08);
  --shadow: 0 8px 28px rgba(44, 42, 40, 0.08);
  --glow: rgba(154, 123, 60, 0.18);
  --radius: 14px;
  --radius-lg: 20px;
  --max: 680px;
}

[data-theme="dark"] {
  --bg: #0c0e12;
  --bg-alt: #12161e;
  --surface: #181d27;
  --text: #ebe6dc;
  --muted: #9a958c;
  --primary: #c9a962;
  --primary-soft: rgba(201, 169, 98, 0.14);
  --accent: #7d8fa8;
  --accent-soft: rgba(125, 143, 168, 0.12);
  --border: rgba(235, 230, 220, 0.1);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --glow: rgba(201, 169, 98, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 100% 60% at 50% -8%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 50%),
    var(--bg);
  line-height: 1.55;
  padding-bottom: 5.5rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.5rem;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}

p {
  margin: 0;
  color: var(--muted);
}

a {
  color: var(--primary);
}

/* —— Header —— */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--primary) 15%, transparent);
}

.brand-mark {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  white-space: nowrap;
}

#quickNav {
  display: none;
}

.lang-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.lang-wrap select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
  background: var(--surface);
  color: var(--text);
  font-size: 0.72rem;
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  font-size: 0.9rem;
}

/* —— Sections —— */
.section {
  padding: 2.5rem 1rem;
  max-width: var(--max);
  margin: 0 auto;
}

.section-kicker {
  display: block;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.section > h2 {
  text-align: center;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  margin-bottom: 1.25rem;
}

.section-divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 auto 1.5rem;
}

/* —— Invitation (template video hero) —— */
.invite-section {
  padding: 0;
  max-width: var(--max);
  margin: 0 auto;
}

.invite-card-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow), 0 0 0 1px var(--border);
  background: var(--surface);
}

.invite-section--image-only .invite-card-wrap {
  border-radius: var(--radius-lg);
}

.invite-card-wrap img {
  width: 100%;
  display: block;
  cursor: zoom-in;
}

.invite-template-wrap {
  position: relative;
  overflow: hidden;
  background: #0c0e12;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow), 0 0 0 1px var(--border);
  border-top: 1px solid var(--border);
}

.invite-template-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0c0e12;
}

.invite-cinematic {
  position: relative;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px var(--border);
  background: #0c0e12;
}

.invite-generate {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  gap: 1rem;
  background: linear-gradient(145deg, #12161e 0%, #1a2030 50%, #12161e 100%);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.invite-generate.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.invite-generate-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--primary) 80%, #fff),
    transparent
  );
  box-shadow: 0 0 20px var(--glow);
  animation: inviteScan 2.2s ease-in-out infinite;
}

.invite-generate-bars {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  padding: 0 1.5rem;
}

.invite-generate-bars span {
  display: block;
  width: 4.5rem;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 55%, transparent);
  animation: inviteBar 1.1s ease-in-out infinite;
}

.invite-generate-bars span:nth-child(2) {
  animation-delay: 0.15s;
  width: 6rem;
}

.invite-generate-bars span:nth-child(3) {
  animation-delay: 0.3s;
}

.invite-generate-label {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--primary) 90%, #fff);
  font-family: "Cinzel", Georgia, serif;
  margin: 0;
  padding-top: 2.5rem;
}

.intro-greenscreen-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.intro-greenscreen-layer video {
  display: none;
}

.intro-greenscreen-layer canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.invite-frame {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  clip-path: inset(50% 50% 50% 50%);
  opacity: 0;
  transition: clip-path 1.1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

.invite-cinematic.is-ready .invite-frame {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

.invite-frame img {
  width: 100%;
  display: block;
  transform: scale(1.06);
  animation: inviteKenBurns 14s ease-in-out infinite alternate;
  will-change: transform;
}

.invite-cinematic.is-ready .invite-frame img {
  animation: inviteKenBurns 14s ease-in-out infinite alternate, inviteSettle 1.2s ease both;
}

.invite-shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.22) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: inviteShimmer 3.5s ease-in-out 1.2s infinite;
}

.invite-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle, color-mix(in srgb, var(--primary) 90%, #fff) 0 1px, transparent 2px);
  background-size:
    120px 120px,
    180px 180px;
  background-position:
    10% 20%,
    70% 60%;
  animation: inviteSparkle 4s ease-in-out 1.5s infinite;
}

.invite-cinematic.is-ready .invite-sparkles {
  opacity: 0.35;
}

.invite-music-btn {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--primary) 50%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, #0c0e12 75%, transparent);
  backdrop-filter: blur(10px);
  color: #ebe6dc;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s ease;
}

.invite-cinematic.is-ready .invite-music-btn {
  opacity: 1;
  transform: translateY(0);
}

.invite-music-btn.is-playing {
  background: color-mix(in srgb, var(--primary) 35%, #0c0e12);
  border-color: var(--primary);
}

.invite-music-btn.is-unavailable {
  opacity: 0.55;
  cursor: not-allowed;
}

.invite-music-icon {
  display: inline-block;
  font-size: 0.95rem;
  animation: inviteNote 1.2s ease-in-out infinite;
}

.invite-music-btn.is-playing .invite-music-icon {
  animation: inviteNote 0.55s ease-in-out infinite;
}

@keyframes inviteScan {
  0% {
    top: 8%;
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: 92%;
    opacity: 0.4;
  }
}

@keyframes inviteBar {
  0%,
  100% {
    transform: scaleX(0.55);
    opacity: 0.45;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes inviteKenBurns {
  0% {
    transform: scale(1.04) translate(0, 0);
  }
  100% {
    transform: scale(1.1) translate(-1.5%, -1%);
  }
}

@keyframes inviteSettle {
  from {
    filter: blur(6px);
  }
  to {
    filter: blur(0);
  }
}

@keyframes inviteShimmer {
  0% {
    transform: translateX(-120%);
  }
  45%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes inviteSparkle {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.45;
  }
}

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

/* —— Couple photo (second) —— */
.couple-photo-section {
  padding-top: 2rem;
}

.couple-photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 48px color-mix(in srgb, var(--glow) 40%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border));
}

.couple-photo-frame .invite-cinematic {
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.couple-photo-frame .invite-frame img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center center;
  transform: none;
  animation: none;
}

.couple-photo-caption {
  text-align: center;
  margin-top: 1.25rem;
}

.couple-photo-caption h1 {
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  line-height: 1.15;
  color: var(--text);
}

.couple-photo-caption h1 .amp {
  display: block;
  font-size: 0.55em;
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
  margin: 0.12em 0;
}

.hashtag {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

.guest-greeting {
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.countdown-unit {
  min-width: 4.2rem;
  padding: 0.55rem 0.4rem;
  background: var(--accent-soft);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.countdown-unit strong {
  display: block;
  font-size: 1.25rem;
  font-family: "Cinzel", serif;
  color: var(--text);
  line-height: 1.1;
}

.countdown-unit span {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-date {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* —— Buttons —— */
.btn {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 80%, #5c4a24));
  color: #fffcf8;
  font-weight: 600;
  box-shadow: 0 4px 20px var(--glow);
}

[data-theme="dark"] .btn-primary {
  color: #0c0e12;
}

.btn-secondary {
  background: color-mix(in srgb, var(--surface) 90%, var(--bg));
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent);
}

.btn-sm {
  padding: 0.45rem 0.75rem;
  font-size: 0.7rem;
}

/* —— Cards —— */
.card,
.timeline article,
.menu-list li {
  background: color-mix(in srgb, var(--surface) 95%, var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.timeline,
.card-grid,
.events-grid,
.couple-grid {
  display: grid;
  gap: 0.75rem;
}

.timeline article,
.card,
.events-grid article {
  padding: 1rem;
}

/* Story timeline */
.timeline article {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.timeline article h3 {
  font-size: 0.85rem;
  color: var(--primary);
  margin: 0;
}

.timeline article p {
  font-size: 0.88rem;
}

/* Couple */
.couple-grid {
  grid-template-columns: 1fr;
}

.couple-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.couple-grid h3 {
  font-size: 1rem;
}

/* Events (iWed vertical cards) */
.events-grid article {
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid var(--primary);
  background: linear-gradient(90deg, var(--primary-soft), transparent 40%);
}

.events-grid article h3 {
  font-size: 1rem;
  color: var(--text);
}

.events-grid article .event-muhurtham {
  display: inline;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
  white-space: nowrap;
}

.events-grid article .event-day {
  margin: 0.2rem 0 0.15rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.events-grid article .event-meta {
  font-size: 0.82rem;
  margin: 0.25rem 0 0.75rem;
}

.events-grid .calendar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.events-toolbar {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.venue-tips {
  margin: 0.35rem 0 0.5rem;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.venue-tips li + li {
  margin-top: 0.2rem;
}

.rsvp-deadline {
  text-align: center;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin: 0 0 0.85rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
}

.contact-phone-line {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.livestream-card {
  text-align: center;
}

.livestream-card p {
  margin-bottom: 0.85rem;
}

/* Locations */
.locations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.location-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  height: 100%;
}

.location-block .card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.45rem;
  min-height: 11.5rem;
}

.location-block .card h3 {
  margin: 0;
}

.location-block .card p {
  margin: 0;
}

.location-block .card .venue-hall {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.location-block .card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.location-map {
  width: 100%;
  height: clamp(180px, 42vw, 220px);
  min-height: 180px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: block;
  flex-shrink: 0;
}

/* RSVP */
#rsvp {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  max-width: none;
  padding-inline: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#rsvp .section-inner {
  max-width: min(100%, 640px);
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

.rsvp-form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.google-form-container {
  padding: 0;
  overflow: hidden;
}

.google-form-container iframe {
  width: 100%;
  min-height: 520px;
  border: 0;
  display: block;
  background: var(--surface);
}

.google-form-open {
  display: inline-flex;
  margin: 0.75rem auto 0;
  width: 100%;
  max-width: 280px;
}

#rsvp .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rsvp-setup-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 1rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.hidden {
  display: none !important;
}

form label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
}

input,
select,
button {
  font: inherit;
}

input,
select {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  width: 100%;
}

.rsvp-status {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Menu */
.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.menu-list li {
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
  color: var(--text);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid var(--border);
}

.gallery-grid img:first-child {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

/* Floating & bottom bar */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 110;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
  padding: 0.5rem 0.65rem calc(0.5rem + env(safe-area-inset-bottom));
}

.mobile-bar a {
  text-decoration: none;
  text-align: center;
  padding: 0.65rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.mobile-bar a.primary {
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 80%, #5c4a24));
  color: #fffcf8;
}

[data-theme="dark"] .mobile-bar a.primary {
  color: #0c0e12;
}

.whatsapp-float {
  position: fixed;
  right: 0.75rem;
  bottom: 4.5rem;
  z-index: 99;
  background: #25d366;
  color: #fff;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  font-size: 0;
}

.whatsapp-float::after {
  content: "💬";
  font-size: 1.1rem;
}

.music-toggle,
.save-date {
  display: none;
}

.youtube-music-host {
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 95vw;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

#lightboxImage {
  max-width: min(92vw, 720px);
  max-height: 85vh;
  border-radius: var(--radius);
}

/* —— Animations —— */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gentleZoom {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes dividerGrow {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes waPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
  }
}

.animations-ready .top-nav {
  animation: navSlide 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Invitation uses .invite-cinematic reveal instead of gentleZoom */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.fade-in.visible > .section-kicker,
.fade-in.visible > h2,
.fade-in.visible .section-inner > .section-kicker,
.fade-in.visible .section-inner > h2 {
  animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fade-in.visible .section-divider,
.fade-in.visible .section-inner .section-divider {
  animation: dividerGrow 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
  transform-origin: center;
}

.couple-photo-section.couple-revealed .couple-photo-caption > * {
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.couple-photo-section.couple-revealed .couple-photo-caption > *:nth-child(1) {
  animation-delay: 0.15s;
}
.couple-photo-section.couple-revealed .couple-photo-caption > *:nth-child(2) {
  animation-delay: 0.22s;
}
.couple-photo-section.couple-revealed .couple-photo-caption > *:nth-child(3) {
  animation-delay: 0.29s;
}
.couple-photo-section.couple-revealed .couple-photo-caption > *:nth-child(4) {
  animation-delay: 0.36s;
}
.couple-photo-section.couple-revealed .couple-photo-caption > *:nth-child(5) {
  animation-delay: 0.43s;
}
.couple-photo-section.couple-revealed .couple-photo-caption > *:nth-child(6) {
  animation-delay: 0.5s;
}
.couple-photo-section.couple-revealed .couple-photo-caption > *:nth-child(7) {
  animation-delay: 0.57s;
}

.fade-in.visible .events-grid > article,
.fade-in.visible .card-grid > article,
.fade-in.visible .location-block,
.fade-in.visible #rsvpForm {
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fade-in.visible .events-grid > article:nth-child(1),
.fade-in.visible .card-grid > article:nth-child(1),
.fade-in.visible .location-block:nth-child(1) {
  animation-delay: 0.08s;
}
.fade-in.visible .events-grid > article:nth-child(2),
.fade-in.visible .card-grid > article:nth-child(2),
.fade-in.visible .location-block:nth-child(2) {
  animation-delay: 0.14s;
}
.fade-in.visible .events-grid > article:nth-child(3),
.fade-in.visible .card-grid > article:nth-child(3) {
  animation-delay: 0.2s;
}
.fade-in.visible .events-grid > article:nth-child(4),
.fade-in.visible .card-grid > article:nth-child(4) {
  animation-delay: 0.26s;
}
.fade-in.visible .events-grid > article:nth-child(5),
.fade-in.visible .card-grid > article:nth-child(5) {
  animation-delay: 0.32s;
}
.fade-in.visible .events-grid > article:nth-child(6),
.fade-in.visible .card-grid > article:nth-child(6) {
  animation-delay: 0.38s;
}
.fade-in.visible .events-grid > article:nth-child(7) {
  animation-delay: 0.44s;
}
.fade-in.visible .events-grid > article:nth-child(8) {
  animation-delay: 0.5s;
}

.fade-in.visible #rsvpForm {
  animation-delay: 0.18s;
}

.card,
.events-grid article {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover,
.events-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--text) 12%, transparent);
}

.btn {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

#quickNav a {
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.animations-ready .whatsapp-float {
  animation: waPulse 2.5s ease-in-out 1.2s infinite;
}

.site-footer {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .fade-in.visible > *,
  .fade-in.visible .events-grid > article,
  .fade-in.visible .card-grid > article,
  .animations-ready .top-nav,
  .animations-ready .whatsapp-float,
  .site-footer,
  .invite-frame img,
  .invite-shimmer,
  .invite-sparkles,
  .invite-generate-scan,
  .invite-generate-bars span {
    animation: none !important;
  }

  .invite-generate.is-done,
  .invite-cinematic.is-ready .invite-frame {
    opacity: 1;
    clip-path: inset(0);
  }

  .invite-cinematic.is-ready .invite-music-btn {
    opacity: 1;
    transform: none;
  }

  .card:hover,
  .events-grid article:hover,
  .btn:hover {
    transform: none;
  }
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1rem 1rem;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  font-family: "Cinzel", Georgia, serif;
}

/* Desktop enhancements */
@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  #quickNav {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    justify-content: center;
  }

  #quickNav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.72rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
  }

  #quickNav a.active {
    background: var(--primary-soft);
    color: var(--primary);
  }

  .top-nav {
    grid-template-columns: auto 1fr auto auto;
    padding-inline: 1.25rem;
  }

  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }

  .couple-photo-frame .invite-frame img {
    max-height: 480px;
  }

  #venue.section {
    max-width: 920px;
  }

  .locations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
  }

  .location-block .card {
    min-height: 12.5rem;
  }

  .location-map {
    height: 220px;
    min-height: 220px;
  }

  .mobile-bar {
    display: none;
  }

  .whatsapp-float {
    bottom: 1.25rem;
  }

  .section {
    padding: 3.5rem 1.5rem;
  }
}
