/* ==========================================================
   ROYAL LUXURY DIGITAL WEDDING INVITATION - STYLESHEET (W2)
   Theme: Sunset Neoclassical Rotunda, Warm Marble & Blush Gold
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Aref+Ruqaa:wght@400;700&family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Great+Vibes&family=Montserrat:wght@300;400;500;600&family=Pinyon+Script&family=Reem+Kufi:wght@400;500;600;700&display=swap');

:root {
  /* Warm Sunset & Alabaster Marble Palette */
  --bg-page: #fbf7f2;
  --bg-page-soft: #f4ecdf;
  --bg-card: #fffdfa;
  --card-white: #ffffff;
  
  /* Royal Champagne & Warm Sunset Gold */
  --gold-primary: #c29953;
  --gold-light: #f5e4bd;
  --gold-dark: #8c6a2e;
  --gold-accent: #9f7b3a;
  --gold-border: #d6b46f;
  --gold-border-light: #ede0bf;
  
  /* Romantic Blush & Rose Floral Accents (from Video's Stairway Florals) */
  --blush-soft: #f9ede7;
  --blush-accent: #d8a499;
  --blush-glow: rgba(216, 164, 153, 0.22);
  
  /* Text Tones (Deep Warm Bronze & Espresso) */
  --text-main: #2a221b;
  --text-muted: #706050;
  --text-sub: #8a7968;
  
  /* Fonts */
  --font-calligraphy: 'Great Vibes', 'Pinyon Script', cursive;
  --font-arabic-heading: 'Amiri', 'Aref Ruqaa', serif;
  --font-arabic-sub: 'Reem Kufi', 'Amiri', sans-serif;
  --font-arabic-body: 'Amiri', serif;
  --font-serif-en: 'Cormorant Garamond', 'Cinzel', serif;
  --font-sans: 'Montserrat', sans-serif;
  
  /* Shadows with Warm Sunset Ambiance */
  --shadow-soft: 0 10px 30px rgba(110, 80, 45, 0.06);
  --shadow-card: 0 16px 45px rgba(95, 70, 35, 0.09);
  --shadow-button: 0 6px 20px rgba(165, 125, 60, 0.28);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: auto;
  background-color: var(--bg-page);
}

body {
  font-family: var(--font-arabic-body);
  background: radial-gradient(circle at 50% 15%, #fffaf5 0%, #f6eee2 55%, #ede0cf 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Floating Fullscreen Background Petals/Sparkles Canvas */
#globalPetalsCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
}

/* ==========================================================
   APP MAIN WRAPPER
   ========================================================== */
.app-container {
  width: 100%;
  max-width: 540px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  min-height: 100vh;
}

/* ==========================================================
   SECTION 1: HERO VIDEO SECTION (Edge-to-Edge Full Width Video)
   ========================================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 580px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding-top: calc(max(62px, 8.5vh) + env(safe-area-inset-top, 0px));
}

/* On mobile / full width viewport */
@media screen and (max-width: 768px) {
  .app-container {
    max-width: 100%;
  }
  
  .hero-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    height: 100vh;
    height: 100dvh;
    height: 100svh;
    min-height: 100vh;
    max-height: none;
    padding-top: calc(max(56px, 7.5vh) + env(safe-area-inset-top, 0px));
  }
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center 20%, rgba(255, 255, 255, 0.12) 0%, rgba(35, 24, 15, 0.22) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-overlay-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  background: linear-gradient(to top, var(--bg-page) 0%, rgba(251, 247, 242, 0) 100%);
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  margin-top: 0;
  padding-top: 4px;
  overflow: visible;
  animation: fadeInHero 1.8s ease-out;
}

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

.hero-names-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 4px 0;
}

.hero-name {
  font-family: var(--font-calligraphy);
  font-size: clamp(2.3rem, 7.2vw, 3.3rem);
  font-weight: 400;
  color: #5c4118;
  background: linear-gradient(180deg, #6c4b18 0%, #3e2808 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.28;
  padding: 6px 14px;
  overflow: visible;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.9)) drop-shadow(0 1px 3px rgba(80, 50, 20, 0.35));
}

.hero-separator {
  font-family: var(--font-calligraphy);
  font-size: clamp(1.7rem, 5.2vw, 2.3rem);
  color: #6e4e1a;
  background: linear-gradient(180deg, #7a531e 0%, #4a310c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: -8px 0;
  line-height: 1.1;
  padding: 2px 8px;
  overflow: visible;
  filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.85));
}

.hero-date {
  font-family: var(--font-serif-en);
  font-size: clamp(1.15rem, 3.6vw, 1.45rem);
  font-weight: 600;
  color: #4a3310;
  letter-spacing: 3.5px;
  margin-top: 4px;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.95), 0 2px 8px rgba(255, 248, 235, 0.85);
}

.hero-scroll-cue {
  position: absolute;
  bottom: 24px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  animation: bounceSoft 2.2s infinite ease-in-out;
}

.hero-scroll-text {
  font-family: var(--font-arabic-sub);
  font-size: 0.85rem;
  color: #6b4d1b;
  font-weight: 500;
}

.hero-scroll-icon {
  width: 20px;
  height: 20px;
  fill: #6b4d1b;
}

@keyframes bounceSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ==========================================================
   SECTION 2: ROYAL ARCH INVITATION CARD (Marble & Gold Arch)
   ========================================================== */
.card-section {
  width: 100%;
  padding: 32px 18px 52px 18px;
  display: flex;
  justify-content: center;
}

.royal-invitation-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border-radius: 195px 195px 26px 26px;
  padding: 50px 24px 38px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(214, 180, 111, 0.38);
  text-align: center;
  overflow: hidden;
  background-image: radial-gradient(circle at 50% 0%, rgba(255, 250, 242, 0.95), rgba(255, 253, 250, 0.98));
}

.card-border-arch-outer {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1.5px solid var(--gold-border);
  border-radius: 187px 187px 20px 20px;
  pointer-events: none;
}

.card-border-arch-inner {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border: 0.75px solid var(--gold-border-light);
  border-radius: 183px 183px 16px 16px;
  pointer-events: none;
}

.top-crest-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
  margin-bottom: 16px;
}

.top-crest-svg {
  width: 74px;
  height: 49px;
  fill: var(--gold-primary);
}

.corner-flourish {
  position: absolute;
  width: 112px;
  height: auto;
  pointer-events: none;
  opacity: 0.88;
  z-index: 1;
}

.corner-flourish.bottom-left {
  bottom: 10px;
  left: 8px;
}

.corner-flourish.bottom-right {
  bottom: 10px;
  right: 8px;
  transform: scaleX(-1);
}

.card-inner-content {
  position: relative;
  z-index: 2;
  padding: 0 4px;
}

.card-basmalah {
  font-family: var(--font-arabic-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: #1e1914;
  margin-bottom: 12px;
  line-height: 1.35;
}

.card-ayah-container {
  margin-bottom: 22px;
}

.card-ayah-text {
  font-family: var(--font-arabic-heading);
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.75;
  color: #241c15;
  direction: rtl;
}

.card-surah-info {
  font-family: var(--font-arabic-body);
  font-size: 0.92rem;
  color: #6c5a45;
  margin-top: 4px;
  display: block;
}

.card-arabic-body {
  direction: rtl;
  margin-bottom: 22px;
}

.card-invitation-lead {
  font-family: var(--font-arabic-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #1a1510;
  line-height: 1.6;
}

.card-invitation-sublead {
  font-family: var(--font-arabic-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #241c15;
  line-height: 1.6;
}

.card-bride-name {
  font-family: var(--font-arabic-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #1a1510;
  line-height: 1.6;
  margin-bottom: 6px;
}

.card-event-date-ar {
  font-family: var(--font-arabic-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1510;
  line-height: 1.6;
}

.card-venue-ar {
  font-family: var(--font-arabic-heading);
  font-size: 1.32rem;
  font-weight: 700;
  color: #241c15;
  line-height: 1.5;
  margin-top: 4px;
}

.card-venue-hall-ar {
  font-family: var(--font-arabic-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1510;
}

.card-arrival-time-ar {
  font-family: var(--font-arabic-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1510;
  margin-top: 6px;
}

.card-divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px auto 20px auto;
  width: 80%;
}

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

.divider-diamond {
  width: 7px;
  height: 7px;
  background: var(--gold-border);
  transform: rotate(45deg);
  margin: 0 10px;
}

.card-english-body {
  direction: ltr;
  text-align: center;
  font-family: var(--font-serif-en);
  padding: 0 6px;
}

.card-basmalah-en {
  font-size: 0.92rem;
  font-weight: 600;
  color: #3b2f23;
  line-height: 1.3;
  margin-bottom: 5px;
}

.card-ayah-en {
  font-size: 0.88rem;
  font-style: italic;
  color: #483b2e;
  line-height: 1.45;
}

.card-surah-info-en {
  font-size: 0.8rem;
  font-style: italic;
  color: #786650;
  margin-bottom: 12px;
  display: block;
}

.card-invitation-lead-en {
  font-size: 0.95rem;
  color: #281f17;
  line-height: 1.45;
}

.card-arrival-time-en {
  font-size: 0.9rem;
  font-weight: 600;
  color: #382c20;
  margin-top: 8px;
}

/* ==========================================================
   SECTION 3: SAVE THE DATE / CALENDAR
   ========================================================== */
.section-wrapper {
  width: 100%;
  padding: 22px 18px 48px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.classical-section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 380px;
  margin-bottom: 22px;
}

.classical-section-header .header-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c29953, #c29953, transparent);
  opacity: 0.7;
}

.classical-section-header .header-title {
  font-family: var(--font-serif-en);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 4px;
  color: #8f6e35;
  text-transform: uppercase;
  white-space: nowrap;
}

.calendar-card {
  width: 100%;
  max-width: 380px;
  background: #fffdfa;
  border-radius: 20px;
  padding: 24px 20px 22px 20px;
  box-shadow: 0 10px 30px rgba(125, 95, 55, 0.08);
  border: 1px solid rgba(220, 195, 145, 0.42);
  text-align: center;
  position: relative;
}

.calendar-ornament-top,
.calendar-ornament-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.calendar-ornament-top {
  margin-bottom: 12px;
}

.calendar-ornament-bottom {
  margin-top: 14px;
}

.calendar-ornament-svg {
  width: 160px;
  height: 20px;
  fill: #bda061;
}

.calendar-month-title {
  font-family: var(--font-serif-en);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 5px;
  color: #403327;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-serif-en);
  direction: ltr;
}

.calendar-table th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #786857;
  padding-bottom: 10px;
  text-transform: uppercase;
}

.calendar-table td {
  font-size: 0.95rem;
  font-weight: 500;
  color: #4f4133;
  padding: 6px 0;
  text-align: center;
  width: 14.28%;
  height: 36px;
  vertical-align: middle;
  position: relative;
}

.calendar-table td.highlight-day {
  color: #271c10;
  font-weight: 700;
}

.highlight-ring-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-ring-svg {
  width: 100%;
  height: 100%;
  animation: pulseSubtle 3s infinite ease-in-out;
}

@keyframes pulseSubtle {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.06); opacity: 1; }
}

.calendar-sub-date-ar {
  font-family: var(--font-arabic-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #47382a;
  margin-top: 16px;
  direction: rtl;
  text-align: center;
}

.calendar-actions-row {
  display: flex;
  width: 100%;
  max-width: 380px;
  margin-top: 16px;
}

.btn-gold-sm {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: #f5ebe0;
  color: #74551d;
  border: 1.5px solid #d9c394;
  border-radius: 12px;
  font-family: var(--font-arabic-sub);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(115, 85, 35, 0.08);
  transition: all 0.25s ease;
}

.btn-gold-sm:hover {
  background: #ebdcce;
  border-color: #c2a366;
  transform: translateY(-1px);
}

.btn-icon-fa {
  font-size: 1.1rem;
  color: #8c6a2e;
  transition: transform 0.25s ease;
}

.btn-gold-sm:hover .btn-icon-fa {
  transform: scale(1.12);
  color: #694b1a;
}

/* ==========================================================
   SECTION 4: COUNTDOWN SECTION (Royal Wedding Countdown)
   ========================================================== */
.countdown-main-title {
  font-family: var(--font-arabic-heading);
  font-size: 1.95rem;
  font-weight: 700;
  color: #211a14;
  margin-bottom: 6px;
  direction: rtl;
  text-align: center;
}

.countdown-description {
  font-family: var(--font-arabic-body);
  font-size: 0.95rem;
  color: #6a5b4c;
  margin-bottom: 24px;
  direction: rtl;
  text-align: center;
  max-width: 380px;
  line-height: 1.5;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 18px auto;
  direction: rtl;
}

.countdown-card {
  background: radial-gradient(circle at 50% 0%, #ffffff 0%, #fffdfa 60%, #faf3e8 100%);
  border: 1.5px solid rgba(214, 180, 111, 0.45);
  border-radius: 16px;
  padding: 14px 4px 10px 4px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(130, 95, 45, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.countdown-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  box-shadow: 0 10px 28px rgba(194, 153, 83, 0.2);
}

.countdown-card.highlight-seconds {
  border-color: rgba(194, 153, 83, 0.7);
  box-shadow: 0 8px 25px rgba(194, 153, 83, 0.15);
}

.countdown-num-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

.countdown-num {
  font-family: var(--font-serif-en);
  font-size: clamp(1.6rem, 5.2vw, 2.15rem);
  font-weight: 700;
  color: #3b280e;
  background: linear-gradient(180deg, #6e4e1a 0%, #3a250b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: 0.5px;
}

.countdown-label {
  font-family: var(--font-arabic-sub);
  font-size: 0.85rem;
  font-weight: 600;
  color: #725832;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.countdown-en-label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: #9a856e;
  text-transform: uppercase;
}

.countdown-bottom-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 18px;
  background: rgba(245, 235, 224, 0.6);
  border: 1px dashed rgba(214, 180, 111, 0.4);
  border-radius: 20px;
}

.countdown-heart-icon {
  font-size: 1.05rem;
  color: #bda061;
  animation: pulseHeart 2s infinite ease-in-out;
}

.countdown-note-text {
  font-family: var(--font-arabic-sub);
  font-size: 0.88rem;
  color: #6f5838;
  font-weight: 500;
}

@keyframes pulseHeart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

/* ==========================================================
   SECTION 5: RSVP SECTION
   ========================================================== */
.rsvp-section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 380px;
  margin-bottom: 12px;
}

.rsvp-section-header .header-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c29953, #c29953, transparent);
  opacity: 0.7;
}

.rsvp-section-header .header-title {
  font-family: var(--font-serif-en);
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: 3px;
  color: #8f6e35;
}

.rsvp-main-title {
  font-family: var(--font-arabic-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #211a14;
  margin-bottom: 6px;
  direction: rtl;
  text-align: center;
}

.rsvp-description {
  font-family: var(--font-arabic-body);
  font-size: 0.95rem;
  color: #6a5b4c;
  margin-bottom: 22px;
  direction: rtl;
  text-align: center;
  max-width: 360px;
  line-height: 1.5;
}

.rsvp-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 20px;
  padding: 26px 20px 24px 20px;
  box-shadow: 0 12px 35px rgba(115, 85, 45, 0.08);
  border: 1px solid rgba(220, 195, 145, 0.45);
  direction: rtl;
  text-align: right;
}

.rsvp-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.rsvp-form-label {
  font-family: var(--font-arabic-sub);
  font-size: 0.88rem;
  color: #6f5f4e;
}

.rsvp-input,
.rsvp-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2d1b8;
  background-color: #faf7f2;
  font-family: var(--font-arabic-body);
  font-size: 0.98rem;
  color: #281f17;
  outline: none;
  transition: all 0.3s ease;
}

.rsvp-input::placeholder,
.rsvp-textarea::placeholder {
  color: #a59481;
  font-size: 0.92rem;
}

.rsvp-input:focus,
.rsvp-textarea:focus {
  border-color: #bda061;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(189, 160, 97, 0.18);
}

.rsvp-textarea {
  min-height: 85px;
  resize: vertical;
}

.btn-brass-submit {
  width: 100%;
  padding: 13px 18px;
  background: linear-gradient(180deg, #b09156 0%, #8b6e39 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-arabic-sub);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(139, 110, 57, 0.3);
  transition: all 0.3s ease;
}

.btn-brass-submit:hover {
  background: linear-gradient(180deg, #bb9b5d 0%, #94773e 100%);
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(139, 110, 57, 0.4);
}

/* ==========================================================
   FOOTER
   ========================================================== */
.invitation-footer {
  width: 100%;
  padding: 40px 20px 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-monogram {
  font-family: var(--font-calligraphy);
  font-size: 2.8rem;
  color: #8f6e35;
  line-height: 1;
}

.footer-message {
  font-family: var(--font-arabic-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #281f17;
  direction: rtl;
}

.footer-sub {
  font-size: 0.9rem;
  color: #786958;
}

/* ==========================================================
   ADVANCED MOBILE-FIRST RESPONSIVE MEDIA QUERIES
   ========================================================== */

/* للهواتف والشاشات اللوحية الصغيرة (أقل من 600px) */
@media screen and (max-width: 600px) {
  .app-container {
    padding: 0;
  }

  .card-section,
  .section-wrapper {
    padding-left: 14px;
    padding-right: 14px;
  }

  .royal-invitation-card {
    max-width: 100%;
  }

  .calendar-card,
  .rsvp-card,
  .countdown-grid {
    max-width: 100%;
  }

  .countdown-grid {
    gap: 8px;
  }

  /* تفادي التقريب التلقائي المزعج في متصفحات الآيفون Safari */
  .rsvp-input,
  .rsvp-textarea {
    font-size: 16px;
  }
}

/* للهواتف المتوسطة (أقل من 420px مثل iPhone 13/14/15/16) */
@media screen and (max-width: 420px) {
  .hero-name {
    font-size: 2.3rem;
  }

  .hero-separator {
    font-size: 1.6rem;
  }

  .hero-date {
    font-size: 1.15rem;
    letter-spacing: 2px;
  }

  .royal-invitation-card {
    border-radius: 155px 155px 22px 22px;
    padding: 40px 16px 30px 16px;
  }

  .card-border-arch-outer {
    border-radius: 147px 147px 18px 18px;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .card-border-arch-inner {
    border-radius: 143px 143px 14px 14px;
    top: 11px;
    left: 11px;
    right: 11px;
    bottom: 11px;
  }

  .card-basmalah {
    font-size: 1.45rem;
  }

  .card-ayah-text {
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .card-invitation-lead,
  .card-bride-name {
    font-size: 1.3rem;
  }

  .card-invitation-sublead,
  .card-event-date-ar,
  .card-venue-hall-ar {
    font-size: 1.2rem;
  }

  .card-venue-ar,
  .card-arrival-time-ar {
    font-size: 1.15rem;
  }

  .corner-flourish {
    width: 85px;
  }

  .calendar-card,
  .rsvp-card {
    padding: 20px 16px;
  }

  .calendar-month-title {
    font-size: 1.2rem;
    letter-spacing: 3px;
  }

  .calendar-table td {
    height: 32px;
    font-size: 0.88rem;
  }

  .highlight-ring-container {
    width: 30px;
    height: 30px;
  }

  .countdown-main-title {
    font-size: 1.65rem;
  }

  .countdown-card {
    padding: 10px 2px 8px 2px;
    border-radius: 12px;
  }

  .countdown-num {
    font-size: 1.55rem;
  }

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

  .countdown-en-label {
    font-size: 0.58rem;
  }

  .rsvp-main-title {
    font-size: 1.75rem;
  }
}

/* للهواتف الصغيرة جداً (أقل من 360px مثل iPhone SE) */
@media screen and (max-width: 360px) {
  .hero-name {
    font-size: 2rem;
  }

  .hero-separator {
    font-size: 1.5rem;
  }

  .hero-date {
    font-size: 1.05rem;
    letter-spacing: 1.5px;
  }

  .royal-invitation-card {
    border-radius: 125px 125px 18px 18px;
    padding: 34px 12px 24px 12px;
  }

  .card-border-arch-outer {
    border-radius: 119px 119px 14px 14px;
  }

  .card-border-arch-inner {
    border-radius: 115px 115px 12px 12px;
  }

  .card-basmalah {
    font-size: 1.3rem;
  }

  .card-ayah-text {
    font-size: 0.98rem;
  }

  .card-invitation-lead,
  .card-bride-name {
    font-size: 1.18rem;
  }

  .corner-flourish {
    width: 70px;
  }

  .calendar-month-title {
    font-size: 1.1rem;
    letter-spacing: 2px;
  }

  .calendar-table th {
    font-size: 0.68rem;
  }

  .calendar-table td {
    height: 28px;
    font-size: 0.82rem;
  }

  .highlight-ring-container {
    width: 26px;
    height: 26px;
  }

  .countdown-grid {
    gap: 5px;
  }

  .countdown-num {
    font-size: 1.3rem;
  }

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

  .rsvp-main-title {
    font-size: 1.55rem;
  }
}
