:root {
  /* Scene / video hero variables */
  --ivory: #d9d3c6;
  --ink-brown: #5a3a22;
  --ink-brown-soft: #6b4a30;
  --rose: #b48370;
  --gold: #b6975d;
}

/* ── RESET & BASE ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: 'Noto Naskh Arabic', serif;
  background: #1a0f12;
  color: #3d2020;
  overscroll-behavior: none;
}

/* ══════════════════════════════════════════════════
   SCROLL CONTAINER (replaces envelope-section + #wedding-content)
══════════════════════════════════════════════════ */
.wedding-scroll-container {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.wedding-scroll-container::-webkit-scrollbar {
  display: none;
}
/* Scroll is blocked until the intro video ends */
.wedding-scroll-container.locked{
  overflow-y:hidden;
  touch-action:none;
  overscroll-behavior:none;
}
/* ══════════════════════════════════════════════════
   SCENE / VIDEO HERO
══════════════════════════════════════════════════ */
.scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  flex-shrink: 0;
}
.scene,
.w-section{
  scroll-snap-stop: always;
}
.film {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--ivory);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
/* ══════════════════════════════════════════════════
   VEIL (loading screen + invisible tap-to-play)
══════════════════════════════════════════════════ */
.veil {
  position: absolute;
  inset: 0;
  background: var(--ivory);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .7s ease;
  pointer-events: auto;  /* always clickable */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* ── Loading spinner (visible until video starts playing) ── */
.veil-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 1;
  transition: opacity .4s ease;
}

/* Hide spinner when video is ready (loaded) OR playing */
.scene.is-ready .veil-spinner,
.scene.is-playing .veil-spinner {
  opacity: 0;
  pointer-events: none;
}

/* When ready: veil transparent, still clickable for play */
.scene.is-ready:not(.is-playing):not(.is-finished) .veil {
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
}

.spinner-ring {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(0,0,0,.08);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: veilSpin 1s linear infinite;   /* ✅ rotates continuously */
}

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

/* Keep the gentle pulse for extra visual feedback */
.scene:not(.is-ready):not(.is-playing):not(.is-finished) .veil-spinner {
  animation: pulseHint 2s ease-in-out infinite;
}

.spinner-text {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 14px;
  color: var(--ink-brown);
  opacity: 0.7;
}



/* ── Veil visibility: only hide when video is playing or finished ── */
.scene.is-playing .veil {
  opacity: 0;
  pointer-events: none;
}

.scene.is-finished .veil {
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
}

/* Optional: subtle pulse hint after 3 seconds (mobile users might wonder what to do) */
.scene:not(.is-playing):not(.is-finished) .veil-spinner {
  animation: pulseHint 2s ease-in-out infinite;
}
@keyframes pulseHint {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner-ring { animation: none !important; }
  .scene:not(.is-playing):not(.is-finished) .veil-spinner { animation: none !important; }
}

/* ══════════════════════════════════════════════════
   TAP HINT — "اضغط لفتح الدعوة" over the poster
   (dusty-rose like the wax seal, Aref Ruqaa calligraphy)
══════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════
   TAP HINT — static, Amiri, positioned higher
══════════════════════════════════════════════════ */
.tap-hint{
  position:absolute;
  top:3.5%;                 /* ← moved higher (was 6.5%) */
  left:0; right:0;
  z-index:3;
  text-align:center;
  font-family:'Amiri', serif;   /* ← new font */
  font-weight:700;
  font-size:clamp(15px, 4.6vw, 21px);
  color:#a67f88;                /* dusty rose = wax seal tone */
  text-shadow:0 1px 0 rgba(255,255,255,.65);
  letter-spacing:.02em;
  opacity:0;
  transition:opacity .8s ease .4s;   /* simple fade only */
  pointer-events:none;
}

/* Visible when loaded & waiting for the click */
.scene.is-ready:not(.is-playing):not(.is-finished) .tap-hint{
  opacity:1;
}

/* Disappears when the user clicks / video plays */
.scene.is-playing .tap-hint,
.scene.is-finished .tap-hint{
  opacity:0;
  transition:opacity .35s ease;
}

/* TEXT OVERLAY — appears on the video's own last frame */
.invite {
  position: absolute;
  top: 23%;
  bottom: 10%;
  left: 10.5%;
  right: 10.5%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}
.scene.is-finished .invite {
  opacity: 1;
  pointer-events: auto;
}

.invite > * {
  opacity: 0;
  transform: translateY(16px);
  width: 100%;
}
.scene.is-finished .invite.is-visible > * {
  animation-name: riseIn;
  animation-duration: .9s;
  animation-timing-function: cubic-bezier(.16,.8,.24,1);
  animation-fill-mode: forwards;
}
@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

.invite.is-visible .verse        { animation-delay: .05s; }
.invite.is-visible .divider-1    { animation-delay: .55s; }
.invite.is-visible .eyebrow      { animation-delay: .70s; }
.invite.is-visible .families     { animation-delay: .90s; }
.invite.is-visible .invite-line  { animation-delay: 1.35s; }
.invite.is-visible .divider-2    { animation-delay: 1.60s; }
.invite.is-visible .couple-names { animation-delay: 1.85s; animation-duration: 1.1s; }
.invite.is-visible .divider-3    { animation-delay: 2.35s; }
.invite.is-visible .scroll-hint  { animation-delay: 2.55s; }

/* verse */
.verse {
  margin: 0;
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: clamp(11.5px, 3.05vw, 16px);
  line-height: 1.9;
  color: var(--ink-brown);
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.verse .ornament { color: var(--rose); font-size: .85em; margin: 0 .2em; }

/* ornamental dividers */
.swirl {
  width: 56%;
  max-width: 180px;
  height: 14px;
  color: var(--rose);
  opacity: .9;
}
.swirl svg { width: 100%; height: 100%; display: block; }

/* eyebrow */
.eyebrow {
  margin: 0;
  font-family: 'Amiri', serif;
  font-size: clamp(12px, 3.1vw, 15px);
  color: var(--gold);
}

/* two-column families */
.families {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 10px;
}
.family-col { display: flex; flex-direction: column; gap: 1px; }
.family-col .title {
  margin: 0;
  font-family: 'Jost', sans-serif;
  font-size: clamp(8.5px, 2.15vw, 10.5px);
  letter-spacing: .1em;
  color: var(--gold);
}
.family-col .title.second { margin-top: 6px; }
.family-col .name {
  margin: 1px 0 0;
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: clamp(13px, 3.5vw, 16.5px);
  color: var(--ink-brown);
}

.family-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}
.family-divider .tick {
  width: 1px;
  height: 20px;
  background: linear-gradient(to bottom, transparent, var(--rose));
}
.family-divider .tick.down {
  background: linear-gradient(to top, transparent, var(--rose));
}
.family-divider .waw {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: clamp(15px, 4vw, 19px);
  color: var(--ink-brown);
}

/* invitation line */
.invite-line {
  margin: 0;
  font-family: 'Amiri', serif;
  font-size: clamp(12.5px, 3.3vw, 15.5px);
  line-height: 1.7;
  color: var(--ink-brown);
}

/* couple names */
.couple-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.couple-name {
  font-family: 'Aref Ruqaa', serif;
  font-weight: 700;
  font-size: clamp(38px, 12.5vw, 58px);
  line-height: 1.05;
  color: var(--ink-brown-soft);
}
.amp {
  font-family: 'Aref Ruqaa', serif;
  font-size: clamp(16px, 4.6vw, 21px);
  color: var(--rose);
  margin: -2px 0;
}

/* scroll hint */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.scroll-hint span {
  font-family: 'Jost', sans-serif;
  font-size: clamp(10px, 2.6vw, 12px);
  letter-spacing: .18em;
  color: var(--ink-brown-soft);
}
.chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--rose);
}
.chevrons svg {
  width: 18px;
  height: 10px;
  display: block;
  margin-top: -3px;
  animation: bob 1.7s ease-in-out infinite;
}
.chevrons svg:nth-child(2) { animation-delay: .15s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(5px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .veil, .invite, .chevrons svg { transition: none !important; animation: none !important; }
  .invite > * { animation-duration: .4s !important; }
}

/* ══════════════════════════════════════════════════
   WEDDING SECTIONS (inside .wedding-scroll-container)
══════════════════════════════════════════════════ */
.w-section {
  min-height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   SOFT FOLD SHADOW — hides the color jump between pages
══════════════════════════════════════════════════ */

/* Bottom of page 1 (scene) */
.scene::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:0;
  height:110px;
  background:linear-gradient(to bottom,
    rgba(90,58,34,0)    0%,
    rgba(90,58,34,.16)  55%,
    rgba(90,58,34,.34)  100%);
  pointer-events:none;
  z-index:1;   /* above the video, below veil (2) and invite text (3) */
}

/* Top of page 2 (countdown) */
#countdown-section::before{
  content:'';
  position:absolute;
  left:0; right:0; top:0;
  height:110px;
  background:linear-gradient(to top,
    rgba(90,58,34,0)    0%,
    rgba(90,58,34,.16)  55%,
    rgba(90,58,34,.34)  100%);
  pointer-events:none;
  z-index:1;   /* above bg video/image, below the text content (2) */
}

/* ── PAGE 2 COUNTDOWN (themed like page 1) ── */
#countdown-section{background:var(--ivory);position:relative;overflow:hidden;}

#countdown-bg-image{
  position:absolute;inset:0;width:100%;height:100%;
  background-size:cover;background-position:center;z-index:0;
}



.countdown-content{position:relative;z-index:2;width:100%;padding:60px 24px 90px;display:flex;flex-direction:column;align-items:center;}

/* Title → same font/color as the couple names on page 1 */
.section-title{
  font-family:'Aref Ruqaa',serif;
  font-size:clamp(24px,7vw,32px);
  color:var(--ink-brown-soft);
  margin-bottom:6px;
  text-align:center;
  line-height:1.25;
}
/* Subtitle → same style as the gold "eyebrow" on page 1 */
.section-subtitle{
  font-family:'Amiri',serif;
  font-size:clamp(12px,3.5vw,15px);
  color:var(--gold);
  letter-spacing:.08em;
  margin-bottom:32px;
  font-weight:600;
}

.countdown-grid{display:flex;gap:10px;justify-content:center;margin-bottom:36px;}
.cd-unit{display:flex;flex-direction:column;align-items:center;gap:4px;}

/* Boxes → ivory glass with gold border */
.cd-box{
  width:clamp(68px,20vw,82px);
  height:clamp(68px,20vw,82px);
  background:rgba(217,211,198,.92);
  border-radius:16px;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 20px rgba(90,58,34,.22);
  border:1px solid rgba(182,151,93,.55);
  position:relative;overflow:hidden;
}
.cd-box::before{
  content:'';position:absolute;inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,.5) 0%,transparent 60%);
}
/* bottom bar → rose↔gold gradient */
.cd-box::after{
  content:'';position:absolute;bottom:0;left:0;right:0;height:2px;
  background:linear-gradient(90deg,var(--rose),var(--gold),var(--rose));
}
.cd-number{
  font-family:'Amiri',serif;
  font-size:clamp(28px,8vw,36px);
  font-weight:700;
  color:var(--ink-brown);
  line-height:1;position:relative;z-index:1;
}
.cd-number.flip{animation:flipNum .4s ease;}
.cd-label{
  font-family:'Amiri',serif;
  font-size:clamp(12px,3.5vw,15px);
  color:var(--ink-brown-soft);
  font-weight:600;margin-top:6px;
}

/* ── Heart clock re-themed (CSS overrides the SVG colors) ── */
#hcTicks line{stroke:var(--rose);}
#hcDots circle{fill:var(--gold);}
#hcMHand{stroke:var(--gold);}
#hcHHand{stroke:var(--ink-brown);}
#hcSHand{stroke:var(--rose);}
#heartClockSvg > circle:first-of-type{fill:var(--ink-brown);}
#heartClockSvg > circle:last-of-type{fill:var(--ivory);}

.heart-clock-container{position:relative;width:clamp(240px,70vw,300px);height:clamp(240px,70vw,300px);margin:0 auto;}
.heart-svg{position:relative;width:100%;height:100%;overflow:visible;}

/* Scroll hint → rose arrows, ink-brown text */
.scroll-hint-2{position:absolute;bottom:28px;left:0;right:0;z-index:10;display:flex;flex-direction:column;align-items:center;gap:6px;}
.scroll-hint-2 span{font-family:'Jost','Noto Naskh Arabic',serif;font-size:11px;letter-spacing:.18em;color:var(--ink-brown-soft);}
.scroll-arrow-2{
  width:20px;height:20px;
  border-right:1.5px solid var(--rose);
  border-bottom:1.5px solid var(--rose);
  transform:rotate(45deg);
  animation:bounce 1.8s ease infinite;
}
/* ══════════════════════════════════════════════════
   SOFT FOLD SHADOW — page 2 ↔ page 3 seam
══════════════════════════════════════════════════ */

/* Bottom of page 2 (countdown) */
#countdown-section::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:0;
  height:110px;
  background:linear-gradient(to bottom,
    rgba(90,58,34,0)    0%,
    rgba(90,58,34,.16)  55%,
    rgba(90,58,34,.34)  100%);
  pointer-events:none;
  z-index:1;   /* above bg video/image, below content (2) */
}

/* Top of page 3 (program) */
#program-section::before{
  content:'';
  position:absolute;
  left:0; right:0; top:0;
  height:110px;
  background:linear-gradient(to top,
    rgba(90,58,34,0)    0%,
    rgba(90,58,34,.16)  55%,
    rgba(90,58,34,.34)  100%);
  pointer-events:none;
  z-index:1;   /* above program-bg, below program-content (2) */
}
/* ── PAGE 3 PROGRAMME (themed like page 1) ── */
#program-section{
  background:var(--ivory);
  position:relative;
  min-height:100%;
  justify-content:flex-start;
  padding-bottom:60px;
}
.program-bg{position:absolute;inset:0;z-index:0;overflow:hidden;}
.program-bg img{width:100%;height:100%;object-fit:cover;object-position:top center;}
/* ✂️ .program-bg::after overlay REMOVED — clean background, no filter */

.program-content{position:relative;z-index:2;width:100%;padding:52px 0 40px;}
.program-header{text-align:center;margin-bottom:44px;padding:0 24px;}

/* Title → ink-brown, soft light shadow (like page 1 verse) */
.program-title-script{
  font-family:'Aref Ruqaa',serif;
  font-size:clamp(24px,7vw,32px);
  color:var(--ink-brown-soft);
  font-weight:700;
  line-height:1.25;
  margin-bottom:12px;
  text-shadow:0 1px 0 rgba(255,255,255,.35);
}
.program-ornament{margin:14px auto 0;width:60px;height:1px;background:var(--rose);}

/* ── Timeline ─ */
.timeline{position:relative;max-width:360px;margin:0 auto;padding:0 8px;}
.timeline::before{
  content:'';
  position:absolute;left:50%;top:0;bottom:0;width:1px;
  background:linear-gradient(to bottom,
    rgba(180,131,112,0) 0%,
    rgba(180,131,112,.55) 8%,
    rgba(180,131,112,.55) 92%,
    rgba(180,131,112,0) 100%);
  transform:translateX(-50%);
}
.timeline-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr);
  align-items:start;
  margin-bottom:50px;
  opacity:0;transform:translateY(20px);
  transition:opacity .6s ease,transform .6s ease;
}
.timeline-item.visible{opacity:1;transform:translateY(0);}
.tl-left-cell{text-align:right;padding-right:10px;}
.tl-right-cell{text-align:left;padding-left:10px;}
.tl-dot-wrapper{display:flex;justify-content:center;align-items:center;z-index:2;}
.tl-dot{
  width:10px;height:10px;border-radius:50%;
  background:var(--ivory);
  border:2px solid var(--rose);
  box-shadow:0 0 0 3px rgba(180,131,112,.15);
  flex-shrink:0;
}

/* Time & date → Jost with letter-spacing (like page 1 micro-labels) */
.tl-time{
  display:block;               /* ← own line + obeys text-align */
  font-family:'Jost',sans-serif;
  font-size:clamp(14px,4vw,17px);
  font-weight:500;
  color:var(--ink-brown);
  letter-spacing:.05em;
  line-height:1;
}
.tl-ampm{
  font-family:'Jost',sans-serif;
  font-size:clamp(10px,3vw,12px);
  color:var(--rose);
  font-weight:500;
  letter-spacing:.08em;
  margin-inline-start:6px;     /* space between 16:30 and PM */
}
.tl-date{
  font-family:'Jost',sans-serif;
  font-size:clamp(10px,2.5vw,12px);
  color:var(--gold);
  letter-spacing:.15em;
  margin-bottom:3px;
  display:block;
  font-weight:500;
}

/* Event & location → Amiri ink-brown (like page 1 names) */
.tl-event{
  font-family:'Amiri',serif;
  font-size:clamp(18px,5vw,24px);
  font-weight:700;
  color:var(--ink-brown);
  line-height:1.2;
  margin-top:3px;
  text-shadow:0 1px 0 rgba(255,255,255,.35);
}
.tl-location{
  font-family:'Amiri',serif;
  font-size:clamp(12px,3.5vw,15px);
  color:var(--ink-brown-soft);
  font-weight:600;
  line-height:1.4;
  margin-top:4px;
}
.tl-icon{width:clamp(48px,13vw,64px);height:clamp(48px,13vw,64px);margin-bottom:4px;}

/* Location button → gold-tinted pill */
.tl-location-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  margin-top:8px;margin-left:auto;
  background:rgba(182,151,93,.12);
  border:1px solid rgba(182,151,93,.45);
  border-radius:20px;
  padding:6px 14px;
  font-family:'Noto Naskh Arabic',serif;
  font-size:clamp(12px,3.2vw,14px);
  font-weight:700;
  color:var(--ink-brown-soft);
  cursor:pointer;
  transition:all .2s ease;
  white-space:nowrap;
  box-shadow:0 2px 8px rgba(90,58,34,.08);
}
.tl-location-btn:active{background:rgba(182,151,93,.2);transform:scale(.96);}
.tl-location-btn .loc-icon{width:16px;height:16px;object-fit:contain;flex-shrink:0;}

/* ── PAGE 4 DRESS CODE ── */
#dresscode-section {
  position: relative;
  overflow: hidden;
  background: #d9c89b;
}
.dresscode-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.dresscode-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.dresscode-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 56px 28px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.dresscode-title {
  font-family: 'Great Vibes', cursive;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(30px, 8vw, 40px);
  color: #5a4a2a;
  margin-bottom: 14px;
}
.dresscode-ornament {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.dresscode-ornament .line { width: 50px; height: 1px; background: #c9a84c; }
.dresscode-ornament .diamond { width: 6px; height: 6px; background: #c9a84c; transform: rotate(45deg); }
.dresscode-illustration {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin-bottom: 30px;
}
.dresscode-intro {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: clamp(14px, 4vw, 16px);
  color: #5a4a2a;
  line-height: 1.8;
  max-width: 320px;
  margin-bottom: 36px;
}
.dresscode-intro-image {
  width: 100%;
  max-width: 260px;
  height: auto;
  object-fit: contain;
  margin-bottom: 32px;
}
.dresscode-group { margin-bottom: 34px; width: 100%; max-width: 320px; }
.dresscode-group-title {
  font-family: 'Great Vibes', cursive;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(22px, 6vw, 28px);
  color: #7a4a0a;
  margin-bottom: 10px;
}
.dresscode-group-text {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: clamp(13px, 3.6vw, 15px);
  color: #6a5a3a;
  line-height: 1.7;
  margin-bottom: 18px;
}
.dresscode-swatches { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.dresscode-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(90,74,42,0.25);
  border: 2px solid rgba(255,255,255,0.85);
}

/* ── CLOSING (themed like page 1) ── */
#closing-section{
  min-height:40%;
  background:#DED2C2;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:40px 28px;gap:10px;
  scroll-snap-align:start;
}
.closing-names{
  font-family:'Aref Ruqaa',serif;
  font-size:clamp(30px,10vw,48px);
  color:var(--ink-brown-soft);
  text-align:center;
  line-height:1.2;
  text-shadow:0 1px 0 rgba(255,255,255,.35);
}
.closing-tagline{
  font-family:'Amiri',serif;
  font-size:clamp(12px,3.2vw,15px);
  color:var(--gold);
  text-align:center;
}
.closing-shimmer{
  width:80px;height:1px;
  background:linear-gradient(90deg,transparent,var(--rose),transparent);
  margin:4px auto;
  opacity:.7;
}
/* ── FOOTER (deep ink-brown, gold/rose accents) ── */
.site-footer{
  background:linear-gradient(135deg,#2b1a0e 0%,#4a2f1b 100%);
  padding:40px 24px 32px;
  text-align:center;
  border-top:1px solid rgba(182,151,93,.35);
  margin-top:auto;
}
.footer-content{max-width:400px;margin:0 auto;}
.footer-brand{
  margin-bottom:24px;
  display:flex;align-items:center;justify-content:center;
  gap:8px;flex-wrap:wrap;
}
.footer-text{
  font-family:'Noto Naskh Arabic',serif;
  font-size:14px;
  color:rgba(217,211,198,.65);
}
.footer-brand-link{
  font-family:'Playfair Display',serif;
  font-size:18px;font-weight:700;
  color:var(--gold);
  text-decoration:none;letter-spacing:.5px;
  transition:all .3s ease;
}
.footer-brand-link:hover{opacity:.8;transform:scale(1.05);}
.footer-social{display:flex;justify-content:center;gap:16px;}
.social-link{
  width:44px;height:44px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(182,151,93,.12);
  border:1px solid rgba(182,151,93,.35);
  border-radius:50%;
  color:var(--gold);
  transition:all .3s cubic-bezier(.4,0,.2,1);
  text-decoration:none;
}
.social-link:hover{
  background:rgba(180,131,112,.28);
  transform:translateY(-4px);
  box-shadow:0 6px 16px rgba(180,131,112,.25);
}
.social-link svg{width:20px;height:20px;fill:currentColor;}

/* ── MAP MODAL (ivory sheet, rose/gold accents) ── */
#map-modal{position:fixed;inset:0;z-index:9999;display:none;align-items:flex-end;justify-content:center;}
#map-modal.open{display:flex;}
.map-backdrop{
  position:absolute;inset:0;
  background:rgba(43,26,14,.45);
  backdrop-filter:blur(4px);
}
.map-sheet{
  position:relative;z-index:1;
  width:100%;max-width:480px;
  background:#f4efe6;
  border-radius:28px 28px 0 0;
  padding:20px 20px 32px;
  animation:slideUp .4s cubic-bezier(.34,1.4,.64,1);
  max-height:90svh;overflow:hidden;
  display:flex;flex-direction:column;gap:12px;
  border-top:1px solid rgba(182,151,93,.4);
}
.map-sheet-handle{
  width:40px;height:4px;border-radius:2px;
  background:rgba(180,131,112,.55);
  margin:0 auto;
}
.map-sheet-title{
  font-family:'Aref Ruqaa',serif;
  font-size:clamp(18px,5vw,24px);
  color:var(--ink-brown-soft);
  text-align:center;
  line-height:1.3;
}
.map-sheet-address{
  font-family:'Amiri',serif;
  font-size:clamp(12px,3.2vw,14px);
  color:var(--ink-brown-soft);
  opacity:.85;
  text-align:center;
}
#leaflet-map{
  width:100%;height:260px;border-radius:16px;
  z-index:1;flex-shrink:0;
  border:1px solid rgba(182,151,93,.35);
}
.map-no-coords{
  width:100%;height:180px;border-radius:16px;
  background:rgba(180,131,112,.12);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:10px;flex-shrink:0;
}
.map-no-coords .pin{font-size:36px;}
.map-no-coords p{
  font-family:'Amiri',serif;
  font-size:13px;color:var(--rose);
  text-align:center;padding:0 20px;line-height:1.6;
}
.open-maps-btn{
  display:block;width:100%;padding:15px;
  background:linear-gradient(135deg,var(--rose) 0%,var(--gold) 100%);
  color:#ffffff;border:none;border-radius:16px;
  font-family:'Noto Naskh Arabic',serif;
  font-size:clamp(13px,3.5vw,16px);font-weight:700;
  cursor:pointer;flex-shrink:0;
  box-shadow:0 4px 12px rgba(180,131,112,.35);
  transition:opacity .2s;
}
.open-maps-btn:active{opacity:.9;}
.map-close-btn{
  position:absolute;top:20px;left:20px;
  width:32px;height:32px;border-radius:50%;
  background:rgba(180,131,112,.15);
  border:none;cursor:pointer;font-size:16px;
  color:var(--rose);
  display:flex;align-items:center;justify-content:center;
  transition:all .2s;
}
.map-close-btn:active{background:rgba(180,131,112,.3);}
.leaflet-container{font-family:sans-serif;}

/* ══════════════════════════════════════════════════
   DESKTOP PHONE FRAME
══════════════════════════════════════════════════ */
@media (min-width: 900px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 40%, #E6E0D4 0%, #DDD7CB 60%, #D2CCBF 100%);
  }
  .wedding-scroll-container {
    width: 330px;
    max-width: calc(100vw - 60px);
    height: calc(100vh - 60px);
    border-radius: 36px;
    box-shadow:
      0 40px 100px rgba(0,0,0,.45),
      0 0 0 10px rgba(0,0,0,.12);
  }
  .scene {
    min-height: 0;
  }
  .map-sheet {
    max-width: 330px;
  }
}
