/* ============================================================
   FONTS
   ============================================================ */
@font-face {
  font-family: 'ItaliannoLocal';
  src: url('assets/italianno/Italianno-Regular.woff') format('woff'),
    url('assets/italianno/Italianno-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Palette */
  --bg:        #fdf5e6;   /* warm off-white */
  --bg-alt:    #f5e6d3;   /* slightly deeper cream */
  --fg:        #7a1723;   /* deep dark red */
  --fg-light:  #a03040;   /* lighter dark red for hover */
  --gold:      #c9a84c;   /* rich gold */
  --gold-light:#e4c97e;   /* pale gold */
  --text:      #3a1a1e;   /* near-black body copy */
  --muted:     #9b7e5a;   /* warm muted brown */
  --border:    #e2d0b8;   /* soft border */

  /* Type */
  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'Anek Armenian', system-ui, sans-serif;
  --script:   'Pinyon Script', cursive;
  --italic:   'ItaliannoLocal', cursive;
  --arabic:   'Aref Ruqaa', 'Amiri', serif;

  /* Shadows */
  --shadow:   0 24px 64px -20px rgba(122, 23, 35, .14);
  --shadow-sm:0 8px 24px -8px rgba(122, 23, 35, .12);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }

html { scroll-behavior: smooth }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100% }

a { color: inherit; text-decoration: none }

:lang(ar), [lang="ar"], [dir="rtl"] { font-family: var(--arabic) }

/* Arabic letters must connect: never add letter spacing to Arabic text */
:lang(ar), [lang="ar"], [dir="rtl"],
:lang(ar) *, [lang="ar"] *, [dir="rtl"] * { letter-spacing: 0 !important }


/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.1s cubic-bezier(.2,.8,.2,1), transform 1.1s cubic-bezier(.2,.8,.2,1);
}
.fade-up.in-view { opacity: 1; transform: translateY(0) }


/* ============================================================
   SHARED UTILITIES
   ============================================================ */
.section-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
/* Same gold for every section title ("The Big Day" used to be lighter) */
.section-tag.light { color: var(--gold) }

/* Thin ornamental rule */
.ornament-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin: 2rem auto;
  color: var(--gold);
}
.ornament-rule span { font-size: .8rem }
.ornament-rule::before,
.ornament-rule::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}



/* ============================================================
   PRELOADER (Mobile Only - iOS & Android Optimized)
   ============================================================ */
body.preloader-active {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  position: fixed;
  width: 100%;
  touch-action: none;
}

.preloader,
#preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 10000;
  /* First frame of the preloader video shows instantly, even before the video element paints */
  background: var(--bg) url('assets/preloader-poster.webp') center / cover no-repeat;
  cursor: pointer;
  transition: opacity .75s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.preloader.closing,
.preloader.fade-out,
#preloader.closing,
#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.preloader video,
#preloader video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  background-color: transparent;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.preloader-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 2;
  pointer-events: none;
}

.preloader-text,
#preloader-click-prompt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(10vh + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  padding: 0 1.5rem;
  pointer-events: none;
  z-index: 3;
  -webkit-user-select: none;
  user-select: none;
  /* Hidden until the preloader video is ready (script.js adds .ready) */
  opacity: 0;
  transition: opacity .5s ease;
}

.preloader.ready .preloader-text,
.preloader.ready #preloader-click-prompt {
  opacity: 1;
}

.preloader.started .preloader-text,
.preloader.started #preloader-click-prompt,
#preloader.started .preloader-text,
#preloader.started #preloader-click-prompt,
.preloader-text.fade-out,
#preloader-click-prompt.fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
  transition: none !important;
}

.preloader-prompt {
  font-family: 'ItaliannoLocal', 'Italianno', cursive;
  font-size: 2.6rem;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.9);
  animation: gentleBob 2.6s ease-in-out infinite;
  margin: 0;
}

.preloader-prompt-ar {
  font-family: 'Aref Ruqaa', 'Amiri', serif;
  font-size: 1.6rem;
  color: #fff;
  line-height: 1.3;
  margin: 0.2rem 0 0 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.9);
  animation: gentleBob 2.6s ease-in-out infinite;
  animation-delay: 0.15s;
}

/* Shown only if the guest taps before the preloader video has finished downloading */
.preloader-wait {
  position: absolute;
  left: 50%;
  bottom: calc(12vh + env(safe-area-inset-bottom, 0px));
  width: 28px;
  height: 28px;
  margin-left: -14px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  animation: preloaderSpin .9s linear infinite;
}

.preloader.waiting .preloader-wait {
  opacity: 1;
}

@keyframes preloaderSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes gentleBob {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.85;
  }

  50% {
    transform: translateY(-7px);
    opacity: 1;
  }
}


/* ============================================================
   HERO
   ============================================================ */
.hero-video-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 2, 4, .45) 0%,
    rgba(12, 2, 4, .30) 50%,
    rgba(12, 2, 4, .60) 100%
  );
  z-index: 1;
}

.hero-video-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 0 1.5rem;
  opacity: 0;
}
/* Hero text appears when the preloader ends (script.js adds .show) */
.hero-video-content.show {
  animation: heroFade 1.4s ease-out both;
}

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

.hero-eyebrow {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: .5rem;
}

.hero-couple-names {
  font-family: var(--italic);
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 400;
  line-height: 1;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .3em;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-amp {
  font-family: var(--script);
  font-size: .55em;
  color: var(--gold-light);
  line-height: 1;
  margin-top: .1em;
}

.hero-rule {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: .75rem 0;
  color: var(--gold-light);
}
.hero-rule-line {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light));
}
.hero-rule-line:last-child {
  background: linear-gradient(90deg, var(--gold-light), transparent);
}
.hero-rule-diamond { font-size: .75rem }

.hero-date {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.6);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  animation: scrollBounce 2.2s ease-in-out infinite;
}
.scroll-cue .icon { font-size: .9rem }
.icon { display: inline-block; vertical-align: -0.125em }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0) }
  50%       { transform: translateX(-50%) translateY(8px) }
}


/* ============================================================
   WELCOME
   ============================================================ */
.section-welcome {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.welcome-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.welcome-heading {
  font-family: var(--italic);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.welcome-divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.25rem auto 1.75rem;
}
.welcome-body {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.9;
  max-width: 420px;
  margin: 0 auto;
}


/* ============================================================
   COUPLE PHOTO
   ============================================================ */
.section-photo {
  padding: 3rem 1.5rem;
  background: var(--bg);
}
.photo-frame {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}
.photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}


/* ============================================================
   COUNTDOWN
   ============================================================ */
.section-countdown {
  padding: 3rem 1.5rem;
  background: var(--bg);
  text-align: center;
  position: relative;
}

.countdown-wrapper { position: relative; z-index: 1 }

.countdown-heading {
  font-family: var(--italic);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  color: var(--fg);
  margin-bottom: .4rem;
}
.countdown-sub {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4rem;
}
.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  direction: ltr;
}
.cd-cell {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  padding: 2rem 1.25rem;
  min-width: 110px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.cd-cell:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.cd-num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--fg);
  line-height: 1;
}
.cd-label {
  font-style: normal;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.cd-sep {
  display: none;
}


/* ============================================================
   PROGRAM / TIME
   ============================================================ */
.section-program {
  padding: 3rem 1.5rem 3rem;
  background: var(--bg-alt);
  text-align: center;
}
.program-inner { max-width: 480px; margin: 0 auto }

.program-heading {
  font-family: var(--italic);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 3rem;
}

.program-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--fg);
  border-radius: 2px;
  padding: 3rem 2rem 2.5rem;
  box-shadow: var(--shadow);
  position: relative;
}
.program-card::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--border);
  pointer-events: none;
  opacity: .5;
}
.program-icon {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.program-time-big {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 14vw, 8rem);
  font-weight: 300;
  color: var(--fg);
  line-height: 1;
}
.program-colon { color: var(--gold) }
.program-pm {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: .4rem;
}
.program-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--muted);
  margin-top: .75rem;
}


/* ============================================================
   VENUE
   ============================================================ */
.section-venue {
  padding: 3rem 1.5rem;
  background: var(--bg);
}
.venue-split {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 680px) {
  .venue-split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .btn-venue { margin: 0 auto }
}

.venue-heading {
  font-family: var(--italic);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1;
  margin-bottom: .75rem;
}
.venue-name {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--fg);
  margin-bottom: .4rem;
}
.venue-sub {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .15em;
  color: var(--muted);
}
.venue-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.btn-venue {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1.5px solid var(--fg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .9rem 2rem;
  transition: background .3s, color .3s;
}
.btn-venue:hover {
  background: var(--fg);
  color: var(--bg);
}
.venue-sketch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-alt);
  max-width: fit-content;
  margin: 0 auto;
}
.venue-sketch::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--gold);
  border-radius: 8px;
  pointer-events: none;
  opacity: .5;
}
.venue-sketch img {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 6px;
  filter: sepia(.2);
  mix-blend-mode: multiply;
  display: block;
}


/* ============================================================
   FEATURED PHOTO
   ============================================================ */
.section-featured {
  padding: 3.5rem 1.5rem 3.5rem;
  background: var(--fg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-featured::before {
  content: '\2661';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30vw;
  color: rgba(255,255,255,.04);
  pointer-events: none;
}
.featured-quote {
  font-family: var(--italic);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 400;
  color: var(--gold-light);
  max-width: 580px;
  margin: 0 auto 3rem;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}
.featured-frame {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}
.featured-frame::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(212,175,55,.35);
  border-radius: 2px;
  pointer-events: none;
}
.featured-frame img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  display: block;
}


/* ============================================================
   CLOSING
   ============================================================ */
.section-closing {
  padding: 3rem 1.5rem 3rem;
  background: var(--bg-alt);
  text-align: center;
  position: relative;
}
.closing-inner {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--border);
  padding: 5rem 2rem;
  border-radius: 8px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.closing-inner::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--gold);
  border-radius: 4px;
  pointer-events: none;
  opacity: .5;
}

.closing-ornament {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 2rem;
  animation: rotateSpin 12s linear infinite;
  display: inline-block;
}
@keyframes rotateSpin {
  to { transform: rotate(360deg) }
}

.closing-quote {
  font-family: var(--italic);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.4;
  margin-bottom: 0;
}
.closing-names {
  font-family: var(--script);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--fg);
  margin-bottom: .5rem;
}
.closing-date {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 3rem 1.5rem 2.5rem;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.footer-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.corner {
  position: absolute;
  top: 0;
  height: 100%;
  object-fit: contain;
  opacity: .4;
}
.corner-tr { right: 0 }
.corner-tl { left: 0; transform: scaleX(-1) }

.footer-inner { position: relative; z-index: 1 }

.footer-brand {
  font-family: var(--serif);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.footer-brand span { font-family: var(--arabic); letter-spacing: 0 }

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.footer-socials a {
  font-size: 1.3rem;
  color: var(--muted);
  transition: color .25s, transform .25s;
}
.footer-socials a:hover {
  color: var(--fg);
  transform: translateY(-3px);
}


/* ============================================================
   MUSIC TOGGLE
   ============================================================ */
.music-toggle {
  position: fixed;
  left: 1.1rem;
  bottom: 1.1rem;
  width: 3rem;
  height: 3rem;
  border: 1.5px solid rgba(122, 23, 35, .25);
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 120;
  box-shadow: 0 6px 20px -6px rgba(122, 23, 35, .25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .5s ease, visibility .5s ease, background .25s, color .25s, border-color .25s, transform .3s ease;
}
.music-toggle.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.music-toggle:hover,
.music-toggle.is-playing {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}


/* ============================================================
   GUIDELINES
   ============================================================ */
.section-guidelines {
  padding: 3.5rem 1.5rem 3.5rem;
  background: var(--bg-alt);
  text-align: center;
}

.guidelines-header {
  max-width: 560px;
  margin: 0 auto 4rem;
}
.guidelines-heading {
  font-family: var(--italic);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.1;
  margin-bottom: .6rem;
}
.guidelines-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
}

/* Grid of cards */
.guidelines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

/* Individual card â€” matches the reference image style */
.guideline-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.4rem 2.2rem 2.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}
.guideline-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fg), var(--gold));
  border-radius: 14px 14px 0 0;
}
.guideline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Gold tag at top â€” like "FORMAL ATTIRE" in the image */
.guide-tag {
  font-family: var(--sans);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .85rem;
  display: block;
}

/* Large serif title â€” like "Dress Code" in the image */
.guide-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0;
  font-variant: small-caps;
  letter-spacing: .02em;
}

/* Short gold underline rule */
.guide-rule {
  width: 38px;
  height: 2px;
  background: var(--gold);
  margin: 1rem auto 1.5rem;
  border-radius: 2px;
}

/* Body paragraph */
.guide-body {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* Italic note â€” like "Kindly avoid wearing whiteâ€¦" */
.guide-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Arabic dress code note */
.guide-note-ar {
  direction: rtl;
  text-align: center;
  font-family: 'Aref Ruqaa', serif;
  font-style: normal;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 2;
  letter-spacing: 0;
  margin-top: .75rem;
  border-top: 1px dashed var(--border);
  padding-top: .85rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.guide-note-ar span {
  margin: 0;
  display: block;
}

/* Uppercase stamp â€” like "BE SEATED BY 3:50 PM" */
.guide-stamp {
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg);
  margin-top: .25rem;
  padding: .6rem .85rem;
  border: 1px solid var(--border);
  display: inline-block;
  align-self: center;
  border-radius: 4px;
}


/* ============================================================
   RSVP
   ============================================================ */
.section-rsvp {
  padding: 3.5rem 1.5rem 3.5rem;
  background: var(--bg);
  text-align: center;
}
.rsvp-inner {
  max-width: 580px;
  margin: 0 auto;
}
.rsvp-heading {
  font-family: var(--italic);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.1;
  margin-bottom: 2rem;
}
.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}
.rsvp-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.rsvp-label {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .03em;
}
.rsvp-input,
.rsvp-textarea {
  width: 100%;
  max-width: 500px;
  padding: .9rem 1.25rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--text);
  text-align: center;
  outline: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.rsvp-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}
.rsvp-input::placeholder,
.rsvp-textarea::placeholder {
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  opacity: .85;
}
.rsvp-input:focus,
.rsvp-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, .18);
  background: var(--bg);
}
.btn-rsvp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 2.5rem;
  background: var(--fg);
  color: var(--bg);
  border: 1.5px solid var(--fg);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: .5rem;
  transition: background .3s, color .3s, transform .25s, box-shadow .3s;
  box-shadow: var(--shadow-sm);
}
.btn-rsvp:hover {
  background: var(--fg-light);
  border-color: var(--fg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.rsvp-thanks {
  padding: 2.5rem 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 1rem;
}
.rsvp-thanks-icon {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: .5rem;
}
.rsvp-thanks h3 {
  font-family: var(--italic);
  font-size: 2.5rem;
  color: var(--fg);
  margin-bottom: .5rem;
}
.rsvp-thanks p {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 1.1rem;
}
.hidden {
  display: none !important;
}


/* ============================================================
   QURAN VERSE (same as Adam-Rahma)
   ============================================================ */
.section-quran {
  padding: 3rem 1.5rem;
  text-align: center;
}
.quran-inner {
  max-width: 44rem;
  margin: 0 auto;
}
.quran-music-notice {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  letter-spacing: .08em;
  color: var(--muted);
  font-style: italic;
  display: inline-block;
  margin: 0 auto;
  opacity: 0.75;
  line-height: 1.5;
  cursor: pointer;
}
.quran-verse-text {
  font-family: "Aref Ruqaa", "Amiri", serif;
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  line-height: 2.1;
  color: var(--text);
  margin: 1.25rem auto 0;
}


/* ============================================================
   SECTION BACKGROUNDS â€” alternate #fdf5e6 / #f5e6d3 (no dividers)
   ============================================================ */
.sec-a { background: var(--bg) }      /* #fdf5e6 */
.sec-b { background: var(--bg-alt) }  /* #f5e6d3 */

/* Cards keep the opposite color of their section, like the original design */
.sec-a .program-card,
.sec-a .guideline-card,
.sec-a .closing-inner { background: var(--bg-alt) }
.sec-b .venue-sketch,
.sec-b .rsvp-input,
.sec-b .rsvp-textarea,
.sec-b .rsvp-thanks { background: var(--bg) }


/* ============================================================
   GOLD DIVIDER UNDER EVERY SECTION HEADING
   (same divider and spacing as "Dear Family and Friends")
   ============================================================ */
.countdown-heading,
.program-heading,
.venue-heading,
.guidelines-heading,
.rsvp-heading { margin-bottom: 1.5rem }

.program-inner .welcome-divider { margin-bottom: 3rem }   /* keeps the original space above the time card */

@media (min-width: 681px) {
  .venue-text .welcome-divider { margin-left: 0 }        /* venue text is left-aligned on large screens */
}

/* RSVP "from extras" note â€” same font, size and layout as Adam-Rahma */
.rsvp-extras-note {
  text-align: center;
  margin-top: 1.25rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
}

.rsvp-extras-note .note-sep {
  opacity: 0.5;
}

.rsvp-extras-note [lang="ar"] {
  letter-spacing: normal !important;
  font-family: Arial, sans-serif;
}

/* ============================================================
   PRELOADER WEDDING CARD (red card shown before the guest taps)
   ============================================================ */
#preloader {
  background:
    radial-gradient(ellipse at 50% 38%, #a3222f 0%, #7a1723 55%, #570e18 100%);
}

.preloader-card {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2.2rem 14vh;
  text-align: center;
  color: #fdf5e6;
  transition: opacity .4s ease, visibility .4s ease;
}
/* when the guest taps, the card steps aside so the preloader video is visible */
#preloader.started .preloader-card {
  opacity: 0;
  visibility: hidden;
}

.pc-frame {
  position: absolute;
  border: 1px solid var(--gold);
}
.pc-frame-outer { inset: 16px; border-width: 2px }
.pc-frame-inner { inset: 26px; border-style: dashed; opacity: .55 }

.pc-corner {
  position: absolute;
  font-size: 1rem;
  color: var(--gold-light);
  line-height: 1;
}
.pc-tl { top: 33px; left: 33px }
.pc-tr { top: 33px; right: 33px }
.pc-bl { bottom: 33px; left: 33px }
.pc-br { bottom: 33px; right: 33px }

.pc-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  animation: pcFade 1.2s ease-out both;
}
@keyframes pcFade {
  from { opacity: 0; transform: translateY(14px) }
  to   { opacity: 1; transform: translateY(0) }
}

.pc-eyebrow {
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.pc-names {
  font-family: var(--italic);
  font-size: clamp(3.6rem, 17vw, 6.5rem);
  font-weight: 400;
  line-height: 1;
  color: #fdf5e6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .05em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.pc-amp {
  font-family: var(--script);
  font-size: .5em;
  color: var(--gold-light);
  line-height: 1;
}
.pc-rule {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--gold-light);
  margin: .3rem 0;
}
.pc-rule span {
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light));
}
.pc-rule span:last-child {
  background: linear-gradient(90deg, var(--gold-light), transparent);
}
.pc-rule i { font-style: normal; font-size: .75rem }
.pc-date {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(253, 245, 230, .9);
}
.pc-invite {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-top: .4rem;
}
