/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;600;700&family=Amiri:ital,wght@0,400;0,700;1,400&family=EB+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Viaoda+Libre&family=Cinzel:wght@400;600;700&display=swap');

:root {
  --primary: #544E27;
  --primary-dark: #3a3518;
  --secondary: #2F3716;
  --accent-gold: #c5a059;
  --bg-color: #F9F1E6;
  --card-bg: rgba(249, 241, 230, 0.97);
  --soft-line: rgba(84, 78, 39, 0.22);
  --font-serif: "Viaoda Libre", "EB Garamond", "Times New Roman", serif;
  --font-body: "Lora", "EB Garamond", Georgia, serif;
  --font-arabic: "Amiri", "Alexandria", "Traditional Arabic", serif;
  --font-display: "Cinzel", "Viaoda Libre", "Times New Roman", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #e5ddd0;
  color: var(--secondary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Envelope Overlay (Intro Screen)
   ========================================================================== */
#envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom right, rgba(110, 100, 51, 0.88), rgba(84, 78, 39, 0.90), rgba(58, 53, 32, 0.94)),
              url('../assets/images/background.webp') center / cover;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
  overflow: hidden;
}

#envelope-overlay.opened {
  opacity: 0;
  transform: scale(1.08) translateY(-20px);
  pointer-events: none;
  visibility: hidden;
}

.petals-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.petal {
  position: absolute;
  color: #cdbf99;
  pointer-events: none;
  animation: ambient-fall linear infinite;
  opacity: 0.75;
}

@keyframes ambient-fall {
  0% {
    transform: translateY(-50px) translateX(0) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  85% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(105vh) translateX(var(--sway, 25px)) rotate(360deg);
    opacity: 0;
  }
}

.envelope-card {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 420px;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 60px 28px 36px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 40px rgba(84, 78, 39, 0.25);
  border: 1px solid rgba(84, 78, 39, 0.25);
  text-align: center;
  overflow: hidden;
  animation: card-appear 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes card-appear {
  0% {
    transform: translateY(30px) scale(0.94);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.envelope-card .dec-bush-left {
  position: absolute;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  width: 140px;
  opacity: 0.65;
  pointer-events: none;
}

.envelope-card .dec-bush-right {
  position: absolute;
  top: 40%;
  right: -25px;
  transform: translateY(-50%);
  width: 180px;
  opacity: 0.65;
  pointer-events: none;
}

.envelope-card .dec-bush-bottom {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  opacity: 0.6;
  pointer-events: none;
}

.wax-seal {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6a6332, #383413);
  box-shadow: 0 6px 22px rgba(84, 78, 39, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  animation: seal-pulse 2.2s ease-in-out infinite;
  cursor: pointer;
}

.wax-seal svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

@keyframes seal-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 6px 22px rgba(84, 78, 39, 0.6);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 8px 30px rgba(197, 160, 89, 0.85);
  }
}

.envelope-title {
  color: var(--primary);
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
  margin-top: 15px;
  margin-bottom: 8px;
}

.envelope-title .amp {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 24px;
  display: block;
  margin: 2px 0;
  color: var(--accent-gold);
}

.envelope-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 14px;
}

.envelope-divider .line {
  height: 1px;
  width: 45px;
  background: linear-gradient(to right, transparent, var(--primary));
}

.envelope-divider .line.rev {
  background: linear-gradient(to left, transparent, var(--primary));
}

.envelope-divider span {
  color: var(--primary);
  opacity: 0.8;
  font-size: 15px;
}

.envelope-date {
  color: rgba(84, 78, 39, 0.85);
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.open-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 12px 42px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(84, 78, 39, 0.4);
  transition: all 0.3s ease;
  overflow: hidden;
}

.open-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(84, 78, 39, 0.55);
}

.open-btn .shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: shine 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {
  0% { left: -100%; }
  40%, 100% { left: 150%; }
}

/* ==========================================================================
   Main Invitation Container (Mobile-first Frame)
   ========================================================================== */
.invitation-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--bg-color);
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

@media (min-width: 768px) {
  .invitation-container {
    max-width: 540px;
    margin: 30px auto;
    border-radius: 20px;
    border: 1px solid rgba(84, 78, 39, 0.2);
  }
}

.bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/background.webp');
  background-size: 100% auto;
  background-repeat: repeat-y;
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}

/* Floating Audio Control */
.audio-control-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(84, 78, 39, 0.45);
  cursor: pointer;
  z-index: 1000;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.audio-control-btn:hover {
  transform: scale(1.08);
}

.audio-control-btn.playing {
  animation: rotate-music 4s linear infinite;
}

@keyframes rotate-music {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Section 1: Hero & Family Invitation (Image 1)
   ========================================================================== */
.hero-section {
  position: relative;
  z-index: 2;
  padding: 45px 24px 30px;
  text-align: center;
  overflow: hidden;
}

.arabic-header {
  font-family: var(--font-arabic);
  color: var(--primary);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
  line-height: 1.5;
}

.hosts-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 15px auto 25px;
  max-width: 380px;
}

.host-col {
  text-align: center;
}

.host-prefix {
  font-family: var(--font-arabic);
  font-size: 15px;
  color: var(--secondary);
  opacity: 0.85;
  margin-bottom: 4px;
}

.host-name {
  font-family: var(--font-arabic);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
}

.hosts-divider {
  width: 1px;
  height: 55px;
  background-color: var(--primary);
  opacity: 0.35;
}

.arabic-subtext {
  font-family: var(--font-arabic);
  color: var(--secondary);
  font-size: 18px;
  margin: 15px 0 24px;
  line-height: 1.5;
}

.couple-names-wrapper {
  margin: 20px 0 35px;
}

.groom-name, .bride-name {
  font-family: var(--font-serif);
  font-size: 42px;
  color: var(--primary);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.names-amp {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 32px;
  color: var(--primary);
  margin: 8px 0;
  display: block;
}

/* Botanical and Arch Illustrations */
.hero-art-container {
  position: relative;
  width: 100%;
  height: 140px;
  margin-top: 10px;
  pointer-events: none;
}

.art-castle-left {
  position: absolute;
  bottom: 0;
  left: -15px;
  width: 130px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(84, 78, 39, 0.15));
}

.art-palm-right {
  position: absolute;
  bottom: 10px;
  right: -10px;
  width: 145px;
  object-fit: contain;
  opacity: 0.9;
}

.golden-divider-img {
  display: block;
  width: 78%;
  max-width: 320px;
  margin: 25px auto;
  object-fit: contain;
  opacity: 0.9;
}

/* ==========================================================================
   Section 2: Reception Info, Countdown & Calendar (Image 2)
   ========================================================================== */
.reception-section {
  position: relative;
  z-index: 2;
  padding: 20px 20px 35px;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  text-transform: uppercase;
  opacity: 0.9;
}

.reception-time {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.reception-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.reception-date-row .pipe {
  color: var(--primary);
  opacity: 0.5;
  font-weight: 300;
}

.reception-date-row .big-day {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
}

.reception-year {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}

/* Countdown */
.countdown-container {
  margin: 10px auto 30px;
}

.countdown-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.countdown-box {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(84, 78, 39, 0.2);
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 60px;
  box-shadow: 0 2px 8px rgba(84, 78, 39, 0.08);
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.countdown-label {
  font-size: 11px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Calendar Card with Ornate Frame */
.calendar-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 20px auto 10px;
  padding: 45px 32px 35px;
}

.calendar-frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 1;
}

.calendar-inner {
  position: relative;
  z-index: 2;
}

.cal-month-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.cal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.cal-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(84, 78, 39, 0.3);
}

.cal-table td {
  font-size: 13px;
  color: var(--primary);
  padding: 6px 2px;
  position: relative;
  font-weight: 500;
}

.cal-table td.wedding-day {
  font-weight: 700;
}

.cal-heart-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 auto;
}

.cal-heart-badge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--primary);
  filter: drop-shadow(0 2px 4px rgba(84, 78, 39, 0.35));
}

.cal-heart-badge span {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.add-calendar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.2s;
  background: none;
  border: none;
}

.add-calendar-btn:hover {
  opacity: 0.7;
}

/* ==========================================================================
   Section 3: Venue & Map (Image 3)
   ========================================================================== */
.venue-section {
  position: relative;
  z-index: 2;
  padding: 25px 20px 30px;
  text-align: center;
}

.venue-name {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}

.venue-arabic-name {
  font-family: var(--font-arabic);
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 18px;
  font-weight: 700;
}

.map-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(84, 78, 39, 0.22);
  box-shadow: 0 4px 20px rgba(84, 78, 39, 0.1);
  overflow: hidden;
}

.map-header-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fdfaf6;
  border-bottom: 1px solid rgba(84, 78, 39, 0.12);
}

.map-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.open-maps-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #1a73e8;
  border: 1px solid #dadce0;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: background 0.2s;
}

.open-maps-link:hover {
  background: #f8f9fa;
  border-color: #1a73e8;
}

.map-frame-container {
  width: 100%;
  height: 240px;
  position: relative;
}

.map-frame-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Section 4: Guestbook & Wishes List (Image 4 + User Request)
   ========================================================================== */
.guestbook-section {
  position: relative;
  z-index: 2;
  padding: 25px 20px 50px;
  text-align: center;
}

.guestbook-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(84, 78, 39, 0.25);
  box-shadow: 0 6px 24px rgba(84, 78, 39, 0.08);
  padding: 28px 22px;
  text-align: left;
}

.guestbook-card[dir="rtl"] {
  text-align: right;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 6px;
}

.form-input, .form-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(84, 78, 39, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(84, 78, 39, 0.15);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: #9e9786;
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.send-wishes-btn {
  display: block;
  margin-left: auto;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 10px 24px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(84, 78, 39, 0.3);
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.send-wishes-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(84, 78, 39, 0.4);
}

/* Success Toast */
.wishes-alert {
  display: none;
  background: #edf5eb;
  border: 1px solid #b7deb3;
  color: #2b6127;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

/* Live Display of Congratulations & Wishes (المباركات) */
.wishes-feed-section {
  width: 100%;
  max-width: 400px;
  margin: 30px auto 10px;
  text-align: right;
}

.wishes-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--soft-line);
}

.wishes-feed-title {
  font-family: var(--font-arabic);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wishes-count-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.wishes-list::-webkit-scrollbar {
  width: 5px;
}
.wishes-list::-webkit-scrollbar-track {
  background: rgba(84, 78, 39, 0.05);
  border-radius: 10px;
}
.wishes-list::-webkit-scrollbar-thumb {
  background: rgba(84, 78, 39, 0.25);
  border-radius: 10px;
}

.wish-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(84, 78, 39, 0.18);
  box-shadow: 0 2px 10px rgba(84, 78, 39, 0.06);
  padding: 14px 16px;
  transition: transform 0.2s ease;
  animation: wishSlideIn 0.5s ease both;
}

.wish-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(84, 78, 39, 0.1);
}

@keyframes wishSlideIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wish-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.wish-author {
  font-family: var(--font-arabic);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.wish-time {
  font-size: 11px;
  color: #8c867a;
}

.wish-content {
  font-family: var(--font-arabic);
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.6;
  white-space: pre-wrap;
}

.wish-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
}

.like-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #9e9786;
  transition: color 0.2s;
}

.like-btn.liked {
  color: #d9383a;
}

.like-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Footer Section */
.footer-section {
  position: relative;
  z-index: 2;
  padding: 30px 20px 60px;
  text-align: center;
  background: linear-gradient(to top, rgba(84, 78, 39, 0.08), transparent);
}

.footer-names {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 4px;
}

.footer-date {
  font-size: 13px;
  color: var(--secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Confetti effect */
.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
}

/* Hero Palace and Couple Composition (Exact ChungDoi Qasr Gold Layout) */
.hero-intro-section {
  position: relative;
  width: 100%;
  padding-top: 50px;
  padding-bottom: 120px;
  text-align: center;
  overflow: visible;
  z-index: 5;
}

@media (min-width: 768px) {
  .hero-intro-section {
    padding-top: 70px;
    padding-bottom: 160px;
  }
}

.hero-names-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--primary);
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 500;
  margin-bottom: 15px;
  position: relative;
  z-index: 20;
}

.hero-names-top .amp {
  font-family: "Alex Brush", "EB Garamond", cursive;
  font-size: 28px;
  opacity: 0.85;
}

.castle-couple-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  overflow: visible;
}

.castle-art-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 15px rgba(84, 78, 39, 0.12));
}

.couple-art-img {
  position: absolute;
  left: 50%;
  bottom: -40px;
  transform: translateX(-50%);
  width: 54%;
  height: auto;
  object-fit: contain;
  z-index: 10;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.18));
}

@media (min-width: 768px) {
  .couple-art-img {
    bottom: -60px;
    width: 52%;
  }
}

.hero-invitation-body {
  position: relative;
  z-index: 15;
  padding: 10px 24px 20px;
  text-align: center;
}

/* Hero Composite Artwork */
.hero-artwork-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto 20px;
  padding: 0 10px;
}

.hero-artwork-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 6px 20px rgba(84, 78, 39, 0.15));
  animation: fadeInArt 1.2s ease-out both;
}

@keyframes fadeInArt {
  0% {
    opacity: 0;
    transform: translateY(15px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Section 1.2: Family Invitation & Couple Names with Side Background Artwork (Matching Screenshot) */
.family-invitation-section {
  position: relative;
  z-index: 15;
  padding: 20px 20px 30px;
  text-align: center;
  overflow: hidden;
}

.flank-bush-left {
  position: absolute;
  bottom: 45px;
  left: -8%;
  width: 35%;
  max-width: 170px;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
  filter: drop-shadow(0 4px 10px rgba(84, 78, 39, 0.12));
}

.flank-bush-right {
  position: absolute;
  top: 38%;
  right: -10%;
  width: 42%;
  max-width: 210px;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

.names-center-wrapper {
  position: relative;
  z-index: 2;
  margin: 25px auto 20px;
}

.names-center-wrapper .groom-name,
.names-center-wrapper .bride-name {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.names-center-wrapper .names-amp {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 28px;
  color: var(--primary);
  margin: 6px 0;
  display: block;
}

@media (min-width: 768px) {
  .names-center-wrapper .groom-name,
  .names-center-wrapper .bride-name {
    font-size: 48px;
  }
  .flank-bush-left {
    left: -4%;
    width: 30%;
  }
  .flank-bush-right {
    right: -5%;
    width: 36%;
  }
}

/* Empty Wishes State */
.empty-wishes {
  text-align: center;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(84, 78, 39, 0.3);
  border-radius: 12px;
  color: var(--primary);
  font-family: var(--font-arabic);
  font-size: 15px;
  font-weight: 600;
}

/* Wedding Notes Section */
.wedding-notes-section {
  position: relative;
  z-index: 2;
  padding: 10px 20px 30px;
  text-align: center;
}

.wedding-notes-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  border: 1px solid rgba(84, 78, 39, 0.25);
  box-shadow: 0 4px 18px rgba(84, 78, 39, 0.07);
  padding: 22px 20px;
  text-align: center;
  backdrop-filter: blur(4px);
}

.wedding-note-badge {
  display: inline-block;
  font-family: var(--font-arabic);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.wedding-note-item {
  font-family: var(--font-arabic);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin: 8px 0;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.wedding-note-item svg {
  flex-shrink: 0;
  opacity: 0.8;
}
