/* ═══════════════════════════════════════════════════════════
   Mohsin & Maha — Walima Reception Invitation
   Design system: beige / gold / charcoal / ivory
   ═══════════════════════════════════════════════════════════ */

:root {
    --beige: #F5EDE0;
    --beige-dark: #EDE0CC;
    --gold: #C9A961;
    --gold-dark: #B8860B;
    --gold-light: #E6C97A;
    --gold-deep: #8C6F2A;
    --charcoal: #3A3A3A;
    --charcoal-soft: #5a5552;
    --ivory: #FAF7F2;
    --black-overlay: rgba(20, 16, 10, 0.55);

    --font-heading: 'Playfair Display', 'Cormorant Garamond', serif;
    --font-script: 'Great Vibes', 'Allura', cursive;
    --font-body: 'Poppins', 'Lora', sans-serif;
    --font-arabic: 'Amiri', 'Scheherazade New', serif;

    --section-gap: clamp(2.25rem, 5vw, 4.5rem);
    --container-max: 1200px;
    --container-narrow: 760px;

    --shadow-soft: 0 10px 40px rgba(58, 58, 58, 0.08);
    --shadow-card: 0 20px 60px rgba(58, 58, 58, 0.12);
    --gold-gradient: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-deep) 100%);
}

/* ─────────── Reset & base ─────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--beige);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image:
        radial-gradient(at 20% 10%, rgba(201, 169, 97, 0.06), transparent 50%),
        radial-gradient(at 80% 90%, rgba(184, 134, 11, 0.04), transparent 50%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.8 0 0 0 0 0.7 0 0 0 0 0.5 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; display: block; }

/* ─────────── Typography ─────────── */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--charcoal); font-weight: 500; line-height: 1.2; }

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    text-align: center;
    color: var(--gold-deep);
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}
.section-subtitle {
    text-align: center;
    font-style: italic;
    color: var(--charcoal-soft);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

[lang="ar"] {
    font-family: var(--font-arabic);
    direction: rtl;
    line-height: 2;
}
.arabic-large {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    color: var(--gold-deep);
    text-align: center;
    margin: 0.5rem 0 1.25rem;
}
.arabic-medium {
    font-size: clamp(1.25rem, 2.4vw, 1.8rem);
    color: var(--gold-deep);
    text-align: center;
    margin: 1.25rem 0;
}

/* ─────────── Container & layout ─────────── */
.section { padding: var(--section-gap) 1.25rem; position: relative; }
.container { max-width: var(--container-max); margin: 0 auto; }
.container.narrow { max-width: var(--container-narrow); }

/* ─────────── Reveal-on-scroll ─────────── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ═══════════════ INTRO LOADER (envelope → bismillah) ═══════════════ */
.intro-loader {
    position: fixed; inset: 0; z-index: 9999;
    background:
        radial-gradient(circle at center, #2a2620 0%, #14110d 70%, #0a0805 100%);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: opacity 1.1s ease, visibility 1.1s ease;
}
.intro-loader:focus-visible { outline: 3px solid var(--gold-light); outline-offset: -6px; }
.intro-loader.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-stage {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 1.5rem;
    opacity: 0; visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    pointer-events: none;
}
.intro-stage.active { opacity: 1; visibility: visible; pointer-events: auto; }

/* ─── Stage 1: Opening Video ─── */
.video-stage {
    padding: 0;
    background: #000;
}

/* Mobile-tuned vignette (lighter so the video stays visible). The intro video
   itself plays on mobile via a tap-to-play gesture; its poster attribute shows
   the still image until the user starts playback. */
@media (max-width: 768px) {
    .video-stage .video-vignette { background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.45) 100%); }
}

.intro-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    background: #000;
}

.video-vignette {
    position: absolute; inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.5) 100%);
    transition: opacity 0.4s ease;
}
.video-stage.playing .video-vignette { opacity: 0.4; }

/* Centered play overlay (paused state) */
.video-play-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1.25rem;
    background: radial-gradient(circle at center, rgba(0,0,0,0.25), rgba(0,0,0,0.55));
    transition: opacity 0.5s ease, visibility 0.5s ease;
    cursor: pointer;
    z-index: 3;
}
.video-stage.playing .video-play-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-play-btn {
    width: clamp(72px, 12vw, 110px);
    height: clamp(72px, 12vw, 110px);
    background: transparent;
    border: none;
    color: var(--gold-light);
    cursor: pointer;
    padding: 0;
    filter: drop-shadow(0 4px 18px rgba(230, 201, 122, 0.45));
    transition: transform 0.3s ease;
    animation: playPulse 2.4s ease-in-out infinite;
}
.video-play-btn:hover { transform: scale(1.08); }
.video-play-btn:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 6px; border-radius: 50%; }
.video-play-btn svg { width: 100%; height: 100%; display: block; }

.video-play-caption {
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(0.9rem, 1.7vw, 1.15rem);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    user-select: none;
}

@keyframes playPulse {
    0%, 100% { filter: drop-shadow(0 4px 14px rgba(230, 201, 122, 0.35)); transform: scale(1); }
    50%      { filter: drop-shadow(0 4px 28px rgba(230, 201, 122, 0.7));  transform: scale(1.04); }
}

/* Skip button (visible only while video is playing) */
.video-skip-btn {
    position: absolute;
    top: clamp(1rem, 2.5vh, 1.75rem);
    right: clamp(1rem, 2.5vw, 1.75rem);
    z-index: 4;
    padding: 0.55rem 1.2rem;
    background: rgba(0, 0, 0, 0.45);
    color: var(--gold-light);
    border: 1px solid rgba(230, 201, 122, 0.55);
    border-radius: 999px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.3s ease, transform 0.3s ease, opacity 0.4s ease;
    opacity: 0;
    animation: skipFadeIn 0.6s ease 0.5s forwards;
}
.video-skip-btn:hover {
    background: rgba(140, 111, 42, 0.6);
    transform: translateY(-1px);
}
.video-skip-btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.video-skip-btn[hidden] { display: none; }
.video-skip-btn span { display: inline-block; margin-left: 0.25em; transform: translateY(-1px); font-size: 1.1em; }
@keyframes skipFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ─── Stage 2: Bismillah typewriter ─── */
.bismillah-stage {
    background: linear-gradient(180deg, var(--ivory) 0%, var(--beige) 100%);
}
.bismillah-stage::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400' fill='none' stroke='%23C9A961' stroke-width='0.6' opacity='0.18'><circle cx='300' cy='200' r='160'/><circle cx='300' cy='200' r='130'/><path d='M300 40 Q380 120 300 200 Q220 120 300 40 Z'/><path d='M300 360 Q380 280 300 200 Q220 280 300 360 Z'/><path d='M140 200 Q220 120 300 200 Q220 280 140 200 Z'/><path d='M460 200 Q380 120 300 200 Q380 280 460 200 Z'/></svg>");
    background-position: center;
    background-repeat: no-repeat;
    background-size: min(640px, 90vw);
    pointer-events: none;
}

.bismillah-frame {
    position: relative;
    text-align: center;
    max-width: 800px;
    padding: 1rem;
}
.bismillah-ornament-top, .bismillah-ornament-bottom {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; margin: 1.25rem 0;
}
.bismillah-ornament-top .line, .bismillah-ornament-bottom .line {
    flex: 1; height: 1px; max-width: 120px;
    background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}
.bismillah-ornament-top .motif, .bismillah-ornament-bottom .motif { color: var(--gold); }

.bismillah-text {
    font-family: var(--font-arabic);
    color: var(--gold-deep);
    font-size: clamp(1.6rem, 5vw, 3rem);
    line-height: 1.8;
    direction: rtl;
    min-height: 2.5em;
    text-shadow: 0 1px 0 rgba(255, 220, 160, 0.5);
    font-weight: 400;
}
.bismillah-text::after {
    content: '|';
    display: inline-block;
    color: var(--gold);
    margin-right: 0.15em;
    animation: caretBlink 1s steps(1) infinite;
    opacity: 0;
}
.bismillah-text.typing::after { opacity: 1; }
@keyframes caretBlink { 50% { opacity: 0; } }

.bismillah-translation {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--charcoal-soft);
    font-size: clamp(0.9rem, 1.6vw, 1.15rem);
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.bismillah-stage.translation-in .bismillah-translation { opacity: 1; }

/* ═══════════════ MUSIC TOGGLE ═══════════════ */
.music-toggle {
    position: fixed; bottom: 1.25rem; right: 1.25rem;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--gold-gradient);
    border: 2px solid var(--gold-light);
    color: var(--ivory);
    cursor: pointer;
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.music-toggle:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(201, 169, 97, 0.6); }
.music-toggle:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.music-icon { width: 24px; height: 24px; }
.music-toggle .music-on { display: none; }
.music-toggle .music-off { display: block; }
.music-toggle.playing .music-on { display: block; }
.music-toggle.playing .music-off { display: none; }
.music-toggle.playing { animation: musicPulse 2.5s ease-in-out infinite; }
@keyframes musicPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(201, 169, 97, 0.45); }
    50% { box-shadow: 0 6px 28px rgba(201, 169, 97, 0.8); }
}

/* ═══════════════ FLOATING HERO SCROLL BUTTON ═══════════════ */
.hero-scroll-float {
    position: fixed;
    bottom: clamp(1rem, 3vh, 1.5rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 48px;
    height: 48px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-deep);
    text-decoration: none;
    background: var(--ivory);
    border: 1px solid var(--gold);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(140, 111, 42, 0.22);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}
.hero-scroll-float:hover {
    box-shadow: 0 10px 24px rgba(140, 111, 42, 0.35);
}
.hero-scroll-float .chevron {
    display: inline-block;
    width: 11px; height: 11px;
    border-right: 2px solid var(--gold-deep);
    border-bottom: 2px solid var(--gold-deep);
    transform: rotate(45deg);
    margin-top: -3px;
    animation: floatChevronBounce 1.8s ease-in-out infinite;
}
@keyframes floatChevronBounce {
    0%, 100% { transform: rotate(45deg) translate(-3px, -3px); opacity: 0.75; }
    50%      { transform: rotate(45deg) translate(2px, 2px);   opacity: 1; }
}
.hero-scroll-float.hidden {
    opacity: 0;
    transform: translate(-50%, 18px);
    pointer-events: none;
}

/* ═══════════════ FLOATING PARTICLES ═══════════════ */
.particles { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.particle {
    position: absolute;
    width: 4px; height: 4px; border-radius: 50%;
    background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
    opacity: 0;
    animation: floatUp linear infinite;
}
@keyframes floatUp {
    0% { transform: translateY(110vh) translateX(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-10vh) translateX(20px); opacity: 0; }
}

/* ═══════════════ CUSTOM CURSOR ═══════════════ */
.cursor-sparkle {
    position: fixed; width: 14px; height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-light) 0%, rgba(201, 169, 97, 0.3) 50%, transparent 80%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.1s ease;
    mix-blend-mode: screen;
}
@media (hover: hover) and (pointer: fine) {
    .cursor-sparkle.active { opacity: 1; }
}

/* ═══════════════ HERO (themed background, no video) ═══════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    padding: 2.5rem 1.25rem 2rem;
    color: var(--charcoal);
    background:
        radial-gradient(ellipse at 50% 0%, var(--ivory) 0%, var(--beige) 55%, var(--beige-dark) 100%);
}

/* Centered Mughal arabesque pattern behind everything */
.hero-pattern {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800' fill='none' stroke='%23C9A961' stroke-width='0.6' opacity='0.25'><circle cx='400' cy='400' r='280'/><circle cx='400' cy='400' r='220'/><circle cx='400' cy='400' r='160'/><path d='M400 120 Q500 260 400 400 Q300 260 400 120 Z'/><path d='M400 680 Q500 540 400 400 Q300 540 400 680 Z'/><path d='M120 400 Q260 500 400 400 Q260 300 120 400 Z'/><path d='M680 400 Q540 500 400 400 Q540 300 680 400 Z'/><path d='M200 200 Q320 320 400 400 Q320 280 200 200 Z'/><path d='M600 200 Q480 320 400 400 Q480 280 600 200 Z'/><path d='M200 600 Q320 480 400 400 Q320 520 200 600 Z'/><path d='M600 600 Q480 480 400 400 Q480 520 600 600 Z'/></svg>");
    background-position: center;
    background-repeat: no-repeat;
    background-size: min(880px, 95vw);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

/* Floral corner ornaments */
.hero-corner {
    position: absolute;
    color: var(--gold);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    opacity: 0.45;
    z-index: 1;
    line-height: 1;
}
.hero-corner.tl { top: 1.25rem; left: 1.25rem; }
.hero-corner.tr { top: 1.25rem; right: 1.25rem; transform: scaleX(-1); }
.hero-corner.bl { bottom: 1.25rem; left: 1.25rem; transform: scaleY(-1); }
.hero-corner.br { bottom: 1.25rem; right: 1.25rem; transform: scale(-1, -1); }

.hero-content {
    position: relative; z-index: 2;
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.hero-arch {
    position: relative;
    width: clamp(200px, 30vw, 280px);
    aspect-ratio: 3 / 4;
    margin: 0 auto 1rem;
}
.arch-frame {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    filter: drop-shadow(0 6px 24px rgba(140, 111, 42, 0.35));
    pointer-events: none;
    z-index: 2;
}
.hero-image {
    position: absolute;
    inset: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    object-fit: cover;
    border-radius: 50% 50% 8px 8px / 45% 45% 8px 8px;
    z-index: 1;
}

.hero-names {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    color: var(--gold-deep);
    letter-spacing: 0.02em;
    margin: 1.25rem 0 0.5rem;
    text-shadow: 0 2px 0 rgba(255, 220, 160, 0.5);
    position: relative;
}
.name-amp {
    font-size: 0.5em;
    color: var(--gold);
    margin: 0 0.3em;
    vertical-align: 0.15em;
    font-family: var(--font-heading);
    font-style: italic;
}

.hero-divider { margin: 0.5rem 0 0.75rem; }
.divider-ornament {
    color: var(--gold);
    letter-spacing: 0.5em;
    font-size: 0.95rem;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.4rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 1.25rem;
}

.countdown {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: clamp(0.6rem, 2vw, 1.5rem);
    margin: 1rem auto 1.25rem;
    perspective: 600px;
}
.countdown-block {
    position: relative;
    width: clamp(82px, 13vw, 120px);
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background:
        linear-gradient(180deg, #ffffff 0%, var(--ivory) 55%, #f4e8d2 100%);
    border: 1px solid rgba(201, 169, 97, 0.55);
    border-radius: 10px;
    box-shadow:
        0 10px 24px rgba(140, 111, 42, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(140, 111, 42, 0.12);
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), box-shadow 0.45s ease;
    animation: cdRise 0.9s cubic-bezier(.2, .8, .2, 1) both;
}
.countdown-block:nth-child(1) { animation-delay: 0.05s; }
.countdown-block:nth-child(2) { animation-delay: 0.15s; }
.countdown-block:nth-child(3) { animation-delay: 0.25s; }
.countdown-block:nth-child(4) { animation-delay: 0.35s; }

.countdown-block:hover {
    transform: translateY(-5px);
    box-shadow:
        0 16px 36px rgba(140, 111, 42, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Continuous gold shimmer sweep — staggered per block */
.countdown-block::before {
    content: '';
    position: absolute;
    top: -10%; left: -60%;
    width: 45%; height: 120%;
    background: linear-gradient(100deg,
        transparent 0%,
        rgba(255, 235, 180, 0.0) 30%,
        rgba(255, 235, 180, 0.55) 50%,
        rgba(255, 235, 180, 0.0) 70%,
        transparent 100%);
    transform: skewX(-22deg);
    animation: cdShimmer 5.5s ease-in-out infinite;
    pointer-events: none;
}
.countdown-block:nth-child(1)::before { animation-delay: 0s;   }
.countdown-block:nth-child(2)::before { animation-delay: 1.2s; }
.countdown-block:nth-child(3)::before { animation-delay: 2.4s; }
.countdown-block:nth-child(4)::before { animation-delay: 3.6s; }

/* Inner double-line frame */
.countdown-block::after {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(201, 169, 97, 0.35);
    border-radius: 6px;
    pointer-events: none;
}

/* Filigree corner accents */
.cd-corner {
    position: absolute;
    width: 10px; height: 10px;
    border: 1.5px solid var(--gold);
    pointer-events: none;
    opacity: 0.85;
}
.cd-corner.tl { top: 3px;    left: 3px;   border-right: none;  border-bottom: none; border-top-left-radius: 4px; }
.cd-corner.tr { top: 3px;    right: 3px;  border-left: none;   border-bottom: none; border-top-right-radius: 4px; }
.cd-corner.bl { bottom: 3px; left: 3px;   border-right: none;  border-top: none;    border-bottom-left-radius: 4px; }
.cd-corner.br { bottom: 3px; right: 3px;  border-left: none;   border-top: none;    border-bottom-right-radius: 4px; }

.countdown-value {
    display: block;
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    font-weight: 600;
    color: var(--gold-deep);
    line-height: 1;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 0 rgba(255, 235, 180, 0.6);
    transform-origin: center center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
}
.countdown-value.flip { animation: cdCoinFlip 0.65s cubic-bezier(.45, 1.4, .55, 1); }

.cd-ornament {
    display: block;
    color: var(--gold);
    font-size: 0.55rem;
    margin: 0.35rem 0 0.25rem;
    letter-spacing: 0.4em;
    opacity: 0.8;
}

.countdown-label {
    display: block;
    position: relative; z-index: 1;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--gold-deep);
    opacity: 0.85;
}

@keyframes cdShimmer {
    0%   { left: -60%; }
    60%  { left: 130%; }
    100% { left: 130%; }
}
@keyframes cdCoinFlip {
    0%   { transform: rotateX(0deg)   scale(1);    filter: brightness(1); }
    35%  { transform: rotateX(90deg)  scale(0.92); filter: brightness(1.4); opacity: 0.4; }
    65%  { transform: rotateX(-12deg) scale(1.04); filter: brightness(1.15); opacity: 1; }
    100% { transform: rotateX(0deg)   scale(1);    filter: brightness(1); }
}
@keyframes cdRise {
    from { opacity: 0; transform: translateY(24px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.scroll-indicator {
    display: inline-block;
    margin-top: 1rem;
    color: var(--gold-deep);
    text-decoration: none;
    animation: scrollBounce 2s ease-in-out infinite;
}
.chevron {
    display: inline-block;
    width: 14px; height: 14px;
    border-right: 2px solid var(--gold-deep);
    border-bottom: 2px solid var(--gold-deep);
    transform: rotate(45deg);
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ═══════════════ ORNAMENT DIVIDERS ═══════════════ */
.ornament-divider {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 1.25rem;
}
.ornament-divider.bottom { margin: 1.25rem auto 0; }
.ornament-divider .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
    max-width: 200px;
}
.ornament-divider .motif {
    color: var(--gold);
    font-size: 1.2rem;
}
.ornament-mini {
    text-align: center;
    color: var(--gold);
    letter-spacing: 0.5em;
    margin: 0.5rem 0 1.25rem;
    font-size: 1rem;
}

/* ═══════════════ INVITATION ═══════════════ */
.invitation {
    background: var(--ivory);
    text-align: center;
    position: relative;
}
.invitation::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200' fill='none' stroke='%23C9A961' stroke-width='0.4' opacity='0.06'><path d='M200 30 L210 60 L240 60 L218 80 L228 110 L200 92 L172 110 L182 80 L160 60 L190 60 Z'/><path d='M200 100 Q220 130 200 170 Q180 130 200 100'/></svg>");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 600px;
    pointer-events: none;
}
.invitation .container { position: relative; }

.quran-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--charcoal-soft);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.quran-arabic {
    display: block;
    font-family: var(--font-arabic);
    font-style: normal;
    font-size: clamp(1.3rem, 2.6vw, 1.8rem);
    color: var(--gold-deep);
    line-height: 1.9;
    margin-bottom: 0.85rem;
    direction: rtl;
}
.quran-ref { font-size: 0.85em; color: var(--gold-deep); font-style: normal; letter-spacing: 0.05em; }

.invitation-body {
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    color: var(--charcoal);
    margin: 0.75rem 0;
    line-height: 1.7;
}
.invitation-body em { color: var(--gold-deep); font-weight: 500; }
.invitation-body.italic { font-style: italic; color: var(--charcoal-soft); }
.swt { font-size: 0.85em; color: var(--gold-deep); }

.couple-names {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.couple-block { flex: 1; min-width: 220px; }
.couple-name {
    font-family: var(--font-script);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--gold-deep);
    line-height: 1.1;
    font-weight: 400;
}
.couple-parent {
    font-style: italic;
    color: var(--charcoal-soft);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}
.couple-amp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    width: 100%;
    margin: 0.25rem 0;
}
.couple-amp .amp-line {
    flex: 1;
    height: 1px;
    max-width: 90px;
    background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}
.couple-amp .amp-glyph {
    font-family: var(--font-script);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gold-deep);
    line-height: 1;
}

/* SVG icons used in place of emoji where consistent rendering matters
   (calendar / clock / pin). Sized via the parent's font-size so existing
   font-size rules on .detail-icon and .reveal-emoji keep working. */
.emoji-svg {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.12em;
    color: var(--gold-deep);
}

/* Inline ornamental separator used between blocks in the invitation */
.invite-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    max-width: 320px;
    margin: 1rem auto;
    opacity: 0.85;
}
.invite-sep .line {
    flex: 1;
    height: 1px;
    max-width: 110px;
    background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}
.invite-sep .motif {
    color: var(--gold);
    font-size: 0.95rem;
    line-height: 1;
    letter-spacing: 0;
}

/* ═══════════════ SCRATCH CARD (3 royal circles + cherub) ═══════════════ */
.scratch-section {
    background: linear-gradient(180deg, var(--beige) 0%, var(--beige-dark) 100%);
    text-align: center;
    overflow: hidden;
}

.scratch-header {
    position: relative;
    margin-bottom: 1rem;
    padding-top: 2.5rem;
}
.scratch-title {
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

/* Cherub — extra-slow vertical float above the heading */
.cherub {
    position: absolute;
    top: -0.5rem;
    left: 50%;
    width: clamp(72px, 11vw, 110px);
    height: auto;
    transform: translateX(-50%);
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 6px 14px rgba(140, 111, 42, 0.35));
    animation: cherubFloat 8s ease-in-out infinite;
    z-index: 2;
    will-change: transform;
}
@keyframes cherubFloat {
    0%, 100% { transform: translate(-50%, 0)     rotate(-2deg); }
    50%      { transform: translate(-50%, -22px) rotate(2deg);  }
}
@media (prefers-reduced-motion: reduce) {
    .cherub { animation: none !important; }
}

/* Date card — scratch directly on the card */
.date-card-wrap {
    max-width: 540px;
    margin: 2rem auto 1.5rem;
}
.date-card {
    position: relative;
    background: linear-gradient(180deg, #fffaf0 0%, var(--ivory) 50%, #f4e8d2 100%);
    border: 1px solid rgba(201, 169, 97, 0.55);
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 18px 38px rgba(140, 111, 42, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    animation: cardRise 0.95s cubic-bezier(.2, .8, .2, 1) both;
    transition: box-shadow 0.6s ease;
}
.date-card.revealed {
    animation: revealCelebrate 0.8s cubic-bezier(.2, .8, .2, 1);
    box-shadow:
        0 24px 50px rgba(140, 111, 42, 0.4),
        0 0 0 2px var(--gold),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
@keyframes revealCelebrate {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.04); }
    100% { transform: scale(1); }
}

/* Inner double-line frame — always visible (z-index above the canvas) */
.date-card::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(201, 169, 97, 0.32);
    border-radius: 9px;
    pointer-events: none;
    z-index: 3;
}

/* Filigree corners on top of the canvas */
.date-card .card-corner {
    position: absolute;
    width: 18px; height: 18px;
    border: 1.5px solid var(--gold);
    pointer-events: none;
    opacity: 0.9;
    z-index: 4;
}
.date-card .card-corner.tl { top: 5px;    left: 5px;   border-right: none; border-bottom: none; border-top-left-radius: 4px; }
.date-card .card-corner.tr { top: 5px;    right: 5px;  border-left: none;  border-bottom: none; border-top-right-radius: 4px; }
.date-card .card-corner.bl { bottom: 5px; left: 5px;   border-right: none; border-top: none;    border-bottom-left-radius: 4px; }
.date-card .card-corner.br { bottom: 5px; right: 5px;  border-left: none;  border-top: none;    border-bottom-right-radius: 4px; }

/* Card content (date / time / message) — sits beneath the gold foil canvas */
.date-content {
    position: relative;
    z-index: 1;
    padding: 2.5rem clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
}
.date-content .reveal-emoji {
    font-size: 1.8rem;
    line-height: 1;
    margin: 0.5rem 0 0.25rem;
}
.date-content .reveal-date {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 600;
    color: var(--gold-deep);
    margin-bottom: 0.5rem;
}
.date-content .reveal-time {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4vw, 1.95rem);
    color: var(--charcoal);
    font-style: italic;
}
.date-content .reveal-celebrate {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--gold-deep);
    font-size: 1rem;
    letter-spacing: 0.08em;
    margin-top: 0.85rem;
}

/* The scratch canvas — the gold foil overlay */
.date-scratch-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
    z-index: 2;
    border-radius: 14px;
    transition: opacity 0.7s ease;
}
.date-scratch-canvas:active { cursor: grabbing; }
.date-scratch-canvas.scratched {
    opacity: 0;
    pointer-events: none;
}

.scratch-instruction {
    color: var(--charcoal-soft);
    font-style: italic;
    font-size: 0.95rem;
    margin: 0.75rem 0 0;
    transition: opacity 0.5s ease;
}
.scratch-instruction .hand {
    display: inline-block;
    animation: handWave 1.6s ease-in-out infinite;
    margin-right: 0.25rem;
}
@keyframes handWave {
    0%, 100% { transform: rotate(-10deg); }
    50%      { transform: rotate(10deg); }
}
.scratch-instruction.hidden { opacity: 0; pointer-events: none; }

.reveal-divider {
    display: flex; align-items: center; justify-content: center;
    gap: 0.75rem;
    margin: 0.5rem auto;
}
.reveal-divider .line {
    flex: 1; max-width: 100px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}
.reveal-divider .motif { color: var(--gold); }

.reveal-fallback {
    margin-top: 1.25rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold-deep);
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-style: italic;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s ease, color 0.3s ease;
}
.reveal-fallback:hover { background: var(--gold); color: var(--ivory); }
.reveal-fallback.hidden { display: none; }

/* ═══════════════ GOLD LIGHTS GARLAND ═══════════════ */
.garland {
    width: 100%;
    background: var(--ivory);
    overflow: hidden;
    margin: 0;
    padding: 1rem 0 0;
}
.garland-svg {
    display: block;
    width: 100%;
    height: clamp(80px, 12vw, 140px);
}
.garland-bulb {
    transform-origin: 0px 6px;
    animation: bulbTwinkle 2.4s ease-in-out infinite;
}
.garland-bulb:nth-child(2n)   { animation-delay: 0.4s; }
.garland-bulb:nth-child(3n)   { animation-delay: 0.8s; }
.garland-bulb:nth-child(5n)   { animation-delay: 1.2s; }
.garland-bulb:nth-child(7n)   { animation-delay: 1.6s; }
@keyframes bulbTwinkle {
    0%, 100% { opacity: 0.85; filter: brightness(1); }
    50%      { opacity: 1;    filter: brightness(1.45); }
}

/* ═══════════════ EVENT DETAILS (royal animation set) ═══════════════ */
.details { background: var(--ivory); }
.detail-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    perspective: 1000px;
}
.detail-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, var(--ivory) 55%, #f4e8d2 100%);
    border: 1px solid rgba(201, 169, 97, 0.45);
    border-radius: 12px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    overflow: hidden;
    box-shadow:
        0 10px 24px rgba(140, 111, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition:
        transform 0.5s cubic-bezier(.2, .8, .2, 1),
        box-shadow 0.5s ease;
    animation: cardRise 0.95s cubic-bezier(.2, .8, .2, 1) both;
}
.detail-card:nth-child(1) { animation-delay: 0.05s; }
.detail-card:nth-child(2) { animation-delay: 0.20s; }
.detail-card:nth-child(3) { animation-delay: 0.35s; }

@keyframes cardRise {
    from { opacity: 0; transform: translateY(28px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Continuous gold shimmer sweep — staggered per card */
.detail-card::before {
    content: '';
    position: absolute;
    top: -10%; left: -60%;
    width: 45%; height: 120%;
    background: linear-gradient(100deg,
        transparent 0%,
        rgba(255, 235, 180, 0.0) 30%,
        rgba(255, 235, 180, 0.55) 50%,
        rgba(255, 235, 180, 0.0) 70%,
        transparent 100%);
    transform: skewX(-22deg);
    animation: cardShimmer 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
.detail-card:nth-child(1)::before { animation-delay: 0s;   }
.detail-card:nth-child(2)::before { animation-delay: 2s;   }
.detail-card:nth-child(3)::before { animation-delay: 4s;   }

/* Inner double-line frame */
.detail-card::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 8px;
    pointer-events: none;
    z-index: 0;
}

/* Filigree gold corners */
.card-corner {
    position: absolute;
    width: 14px; height: 14px;
    border: 1.5px solid var(--gold);
    pointer-events: none;
    opacity: 0.85;
    z-index: 1;
}
.card-corner.tl { top: 5px;    left: 5px;   border-right: none; border-bottom: none; border-top-left-radius: 4px; }
.card-corner.tr { top: 5px;    right: 5px;  border-left: none;  border-bottom: none; border-top-right-radius: 4px; }
.card-corner.bl { bottom: 5px; left: 5px;   border-right: none; border-top: none;    border-bottom-left-radius: 4px; }
.card-corner.br { bottom: 5px; right: 5px;  border-left: none;  border-top: none;    border-bottom-right-radius: 4px; }

/* Hover lift + brighter gold halo */
.detail-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px rgba(140, 111, 42, 0.32),
        0 0 0 2px var(--gold),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.detail-card:hover .card-corner { opacity: 1; }

/* Icon: continuous gentle float, staggered, plus dance on hover */
.detail-icon {
    position: relative;
    z-index: 1;
    font-size: 2.6rem;
    margin-bottom: 0.85rem;
    display: inline-block;
    line-height: 1;
    transform-origin: center bottom;
    animation: iconFloat 3.4s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(140, 111, 42, 0.20));
}
.detail-card:nth-child(2) .detail-icon { animation-delay: 0.6s; }
.detail-card:nth-child(3) .detail-icon { animation-delay: 1.2s; }
.detail-card:hover .detail-icon { animation: iconDance 0.9s ease-in-out; }

@keyframes iconFloat {
    0%, 100% { transform: translateY(0)    rotate(0deg); }
    25%      { transform: translateY(-5px) rotate(-4deg); }
    75%      { transform: translateY(-5px) rotate(4deg); }
}
@keyframes iconDance {
    0%, 100% { transform: translateY(0) scale(1)    rotate(0deg); }
    25%      { transform: translateY(-8px) scale(1.15) rotate(-8deg); }
    50%      { transform: translateY(-4px) scale(1.10) rotate(0deg); }
    75%      { transform: translateY(-8px) scale(1.15) rotate(8deg); }
}

.detail-label {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--gold-deep);
    font-size: 1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.7rem;
}
/* Animated gold underline beneath the label — grows on hover */
.detail-label::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 0;
    width: 36px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
    transform: translateX(-50%);
    transition: width 0.55s cubic-bezier(.2, .8, .2, 1);
}
.detail-card:hover .detail-label::after { width: 90px; }

.detail-value {
    position: relative; z-index: 1;
    font-family: var(--font-heading);
    font-size: 1.65rem;
    color: var(--charcoal);
    font-weight: 600;
    transition: color 0.4s ease;
}
.detail-card:hover .detail-value { color: var(--gold-deep); }

.detail-sub {
    position: relative; z-index: 1;
    color: var(--charcoal-soft);
    font-style: italic;
    margin-top: 0.35rem;
    font-size: 0.95rem;
}

@keyframes cardShimmer {
    0%   { left: -60%; }
    60%  { left: 130%; }
    100% { left: 130%; }
}

/* ═══════════════ VENUE (showcase + map merged) ═══════════════ */
.venue {
    background: linear-gradient(180deg, var(--beige) 0%, var(--beige-dark) 100%);
    text-align: center;
}
.venue-tagline {
    font-family: var(--font-heading);
    color: var(--gold-deep);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-style: italic;
    margin: 0.5rem 0 2.5rem;
}

/* Shared card chrome — used for both the video and the map */
.venue-card {
    position: relative;
    max-width: 980px;
    margin: 0 auto 2rem;
    background: var(--ivory);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(201, 169, 97, 0.55);
    box-shadow:
        0 18px 36px rgba(140, 111, 42, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: transform 0.5s cubic-bezier(.2, .8, .2, 1), box-shadow 0.5s ease;
    animation: cardRise 0.95s cubic-bezier(.2, .8, .2, 1) both;
}
.venue-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 24px 50px rgba(140, 111, 42, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Continuous gold shimmer sweep across the card chrome */
.venue-card::before {
    content: '';
    position: absolute;
    top: -10%; left: -50%;
    width: 35%; height: 120%;
    background: linear-gradient(100deg,
        transparent 0%,
        rgba(255, 235, 180, 0.0) 30%,
        rgba(255, 235, 180, 0.45) 50%,
        rgba(255, 235, 180, 0.0) 70%,
        transparent 100%);
    transform: skewX(-22deg);
    animation: cardShimmer 7s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}
.venue-card.map-card::before { animation-delay: 3.5s; }

/* Inner double-line frame */
.venue-card::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
}

/* Reuse the gold filigree corners from the detail/scratch system */
.venue-card .card-corner {
    position: absolute;
    width: 16px; height: 16px;
    border: 1.5px solid var(--gold);
    pointer-events: none;
    opacity: 0.85;
    z-index: 3;
}
.venue-card .card-corner.tl { top: 5px;    left: 5px;   border-right: none; border-bottom: none; border-top-left-radius: 4px; }
.venue-card .card-corner.tr { top: 5px;    right: 5px;  border-left: none;  border-bottom: none; border-top-right-radius: 4px; }
.venue-card .card-corner.bl { bottom: 5px; left: 5px;   border-right: none; border-top: none;    border-bottom-left-radius: 4px; }
.venue-card .card-corner.br { bottom: 5px; right: 5px;  border-left: none;  border-top: none;    border-bottom-right-radius: 4px; }
.venue-card:hover .card-corner { opacity: 1; }

.venue-video {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    background: #000;
    position: relative;
    z-index: 0;
}
.venue-map {
    display: block;
    width: 100%;
    height: clamp(320px, 50vw, 460px);
    position: relative;
    z-index: 0;
}

/* Decorative divider between the video and the map */
.venue-divider {
    display: flex; align-items: center; justify-content: center;
    gap: 1.25rem;
    margin: 2.5rem auto 1.75rem;
    max-width: 600px;
}
.venue-divider .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}
.venue-divider .motif {
    color: var(--gold-deep);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.25rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
}

.venue-address {
    color: var(--charcoal);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    margin: 1rem 0 1.5rem;
    letter-spacing: 0.03em;
}

.venue-actions {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5em;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    white-space: nowrap;
}
.btn-gold {
    background: var(--gold-gradient);
    color: var(--ivory);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(201, 169, 97, 0.5); }
.btn-outline {
    background: transparent;
    color: var(--gold-deep);
    border: 2px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--ivory); transform: translateY(-2px); }

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(18, 140, 126, 0.35);
    min-height: 52px;
    padding: 0.85rem 1.75rem;
    line-height: 1.2;
}
.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(18, 140, 126, 0.55);
    background: linear-gradient(135deg, #2FE072 0%, #149A8B 100%);
}
.btn-whatsapp .wa-icon {
    width: 22px; height: 22px;
    flex-shrink: 0;
}
.btn-whatsapp .hudoor {
    font-family: var(--font-arabic);
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
    margin: 0 0.15em;
}

/* ═══════════════ EVENT SCHEDULE (royal timeline card) ═══════════════ */
.schedule { background: linear-gradient(180deg, var(--beige) 0%, var(--beige-dark) 100%); }

.schedule-card {
    position: relative;
    background:
        linear-gradient(180deg, #fffaf0 0%, var(--ivory) 50%, #f4e8d2 100%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.7 0 0 0 0 0.55 0 0 0 0 0.3 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-blend-mode: multiply;
    border: 1px solid rgba(201, 169, 97, 0.55);
    border-radius: 14px;
    padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 1.75rem;
    box-shadow:
        0 18px 38px rgba(140, 111, 42, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    margin-top: 1.5rem;
    overflow: hidden;
    text-align: center;
}

.schedule-card::before {
    content: '';
    position: absolute;
    top: -10%; left: -55%;
    width: 35%; height: 120%;
    background: linear-gradient(100deg,
        transparent 0%,
        rgba(255, 235, 180, 0.0) 30%,
        rgba(255, 235, 180, 0.45) 50%,
        rgba(255, 235, 180, 0.0) 70%,
        transparent 100%);
    transform: skewX(-22deg);
    animation: cardShimmer 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}
.schedule-card::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(201, 169, 97, 0.32);
    border-radius: 9px;
    pointer-events: none;
    z-index: 0;
}

.schedule-card .card-corner {
    position: absolute;
    width: 22px; height: 22px;
    border: 1.5px solid var(--gold);
    pointer-events: none;
    opacity: 0.85;
    z-index: 2;
}
.schedule-card .card-corner.tl { top: 6px;    left: 6px;   border-right: none; border-bottom: none; border-top-left-radius: 4px; }
.schedule-card .card-corner.tr { top: 6px;    right: 6px;  border-left: none;  border-bottom: none; border-top-right-radius: 4px; }
.schedule-card .card-corner.bl { bottom: 6px; left: 6px;   border-right: none; border-top: none;    border-bottom-left-radius: 4px; }
.schedule-card .card-corner.br { bottom: 6px; right: 6px;  border-left: none;  border-top: none;    border-bottom-right-radius: 4px; }

/* Decorative top/bottom flourishes (also used by other royal cards) */
.menu-flourish {
    position: relative; z-index: 2;
    color: var(--gold);
    font-size: 1.6rem;
    line-height: 1;
    opacity: 0.85;
}
.menu-flourish.top    { margin-bottom: 0.5rem; }
.menu-flourish.bottom { margin-top: 1.25rem; margin-bottom: 0.25rem; }

.menu-eyebrow {
    position: relative; z-index: 2;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--gold-deep);
    font-size: 0.85rem;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* ─── Vertical timeline: circular icon + connecting line + content ─── */
.schedule-list {
    position: relative;
    z-index: 2;
    list-style: none;
    margin: 1rem 0 0.5rem;
    padding: 0;
    text-align: left;
}

/* The thin gold line that runs through the centre of all icons */
.schedule-list::before {
    content: '';
    position: absolute;
    left: clamp(22px, 6vw, 32px);
    top: clamp(45px, 10vw, 60px);
    bottom: clamp(45px, 10vw, 60px);
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(201, 169, 97, 0.55) 8%, rgba(201, 169, 97, 0.55) 92%, transparent);
    z-index: 0;
}

.schedule-item {
    list-style: none;
    display: grid;
    grid-template-columns: clamp(46px, 12vw, 64px) 1fr;
    gap: clamp(1rem, 3vw, 1.5rem);
    padding: 1rem 0;
    align-items: start;
    position: relative;
    opacity: 0;
    transform: translateY(14px);
    animation: scheduleIn 0.7s cubic-bezier(.2, .8, .2, 1) both;
}
.schedule-item:nth-of-type(1) { animation-delay: 0.05s; }
.schedule-item:nth-of-type(2) { animation-delay: 0.15s; }
.schedule-item:nth-of-type(3) { animation-delay: 0.25s; }
.schedule-item:nth-of-type(4) { animation-delay: 0.35s; }
.schedule-item:nth-of-type(5) { animation-delay: 0.45s; }

@keyframes scheduleIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Circular icon bubble */
.schedule-icon {
    position: relative;
    z-index: 2;
    width: clamp(46px, 12vw, 64px);
    height: clamp(46px, 12vw, 64px);
    border-radius: 50%;
    background: linear-gradient(180deg, #fffaf0, #f4e8d2);
    border: 1px solid rgba(201, 169, 97, 0.6);
    color: var(--gold-deep);
    display: flex; align-items: center; justify-content: center;
    box-shadow:
        0 4px 12px rgba(140, 111, 42, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.schedule-icon svg {
    width: 56%;
    height: 56%;
    display: block;
}

.schedule-content {
    padding-top: 0.15rem;
    min-width: 0;     /* allow text wrap inside grid cell */
}

/* Gold hairline divider beneath each row except the last */
.schedule-item:not(:last-child) .schedule-content::after {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.5) 30%, rgba(201, 169, 97, 0.5) 70%, transparent);
    margin-top: 1.1rem;
}

/* Heading — script (Great Vibes), shown first */
.schedule-heading {
    font-family: var(--font-script);
    font-weight: 400;
    color: var(--gold-deep);
    font-size: clamp(1.55rem, 5.2vw, 2.1rem);
    line-height: 1.15;
    letter-spacing: 0.01em;
    margin: 0 0 0.35rem;
    text-shadow: none;
}

/* Time — italic gold accent line under the heading (matches detail-sub / couple-parent pattern) */
.schedule-time {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 500;
    color: var(--gold-deep);
    font-size: clamp(0.85rem, 1.4vw, 0.98rem);
    letter-spacing: 0.04em;
    text-transform: none;
    margin: 0 0 0.45rem;
}

/* Description */
.schedule-desc {
    color: var(--charcoal-soft);
    font-family: var(--font-body);
    font-size: clamp(0.92rem, 1.4vw, 1rem);
    line-height: 1.55;
    margin: 0;
    max-width: 480px;
}

/* ═══════════════ RSVP ═══════════════ */
.rsvp { background: var(--ivory); }
.rsvp-deadline {
    text-align: center;
    color: var(--charcoal-soft);
    font-style: italic;
    margin-bottom: 1.25rem;
}
.rsvp-deadline strong { color: var(--gold-deep); }

.rsvp-form {
    background: var(--beige);
    border: 2px solid var(--gold);
    border-radius: 14px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-card);
}
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.form-group label, .form-group legend {
    display: block;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--gold-deep);
    font-size: 1rem;
    margin-bottom: 0.4rem;
    letter-spacing: 0.05em;
}
.req { color: #b15a3d; font-style: normal; }
.opt { color: var(--charcoal-soft); font-size: 0.85em; font-style: normal; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--ivory);
    border: 1px solid rgba(201, 169, 97, 0.5);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--charcoal);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group select {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%238C6F2A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='1,1.5 6,6.5 11,1.5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px 8px;
    cursor: pointer;
}
.form-group select:invalid { color: var(--charcoal-soft); }    /* "Select…" placeholder dimmer */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2);
}
.form-group textarea { resize: vertical; min-height: 100px; }

fieldset { border: none; padding: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.radio-label {
    flex: 1;
    min-width: 160px;
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--ivory);
    border: 1px solid rgba(201, 169, 97, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
    font-style: normal;
    color: var(--charcoal);
}
.radio-label:hover { border-color: var(--gold); }
.radio-label input { width: auto; accent-color: var(--gold-deep); }
.radio-label input:checked + span { color: var(--gold-deep); font-weight: 500; }

.btn-submit { width: 100%; margin-top: 0.5rem; padding: 1rem 2rem; font-size: 1.05rem; }

.form-error {
    color: #b15a3d;
    text-align: center;
    margin-top: 0.75rem;
    font-style: italic;
    min-height: 1.4em;
}

/* RSVP WhatsApp alternative */
.rsvp-whatsapp {
    margin-top: 1.5rem;
    text-align: center;
}
.rsvp-or {
    display: flex; align-items: center; justify-content: center;
    gap: 0.75rem;
    max-width: 320px;
    margin: 0 auto 1rem;
    color: var(--charcoal-soft);
}
.rsvp-or .line {
    flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}
.rsvp-or .or-text {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--gold-deep);
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.rsvp-whatsapp-note {
    margin-top: 0.6rem;
    color: var(--charcoal-soft);
    font-style: italic;
    font-size: 0.85rem;
}

/* ═══════════════ DUA ═══════════════ */
.dua {
    background: linear-gradient(180deg, var(--beige) 0%, var(--beige-dark) 100%);
    text-align: center;
}
.dua-emoji { font-size: 3rem; margin-bottom: 1rem; }
.dua-urdu {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--gold-deep);
    margin-bottom: 1rem;
}
.dua-english {
    color: var(--charcoal);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
    background: var(--charcoal);
    color: var(--ivory);
    text-align: center;
    padding: 2.5rem 1.25rem 1.5rem;
    position: relative;
}
.footer-corners { position: absolute; inset: 1rem; pointer-events: none; }
.footer-corners .corner {
    position: absolute;
    color: var(--gold);
    font-size: 1.5rem;
    opacity: 0.5;
}
.footer-corners .tl { top: 0; left: 0; }
.footer-corners .tr { top: 0; right: 0; }
.footer-corners .bl { bottom: 0; left: 0; }
.footer-corners .br { bottom: 0; right: 0; }

.footer-monogram {
    font-family: var(--font-script);
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 1rem;
}
.footer-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.footer-text em { color: var(--gold-light); }
.footer-copy {
    color: rgba(250, 247, 242, 0.5);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

/* ═══════════════ MODAL ═══════════════ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(20, 16, 10, 0.75);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    z-index: 9999;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(4px);
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
    background: var(--ivory);
    border: 2px solid var(--gold);
    border-radius: 14px;
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    max-width: 460px;
    width: 100%;
    position: relative;
    transform: scale(0.92);
    transition: transform 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-close {
    position: absolute; top: 0.5rem; right: 0.75rem;
    background: none; border: none;
    font-size: 2rem; line-height: 1;
    color: var(--charcoal-soft);
    cursor: pointer;
    transition: color 0.3s ease;
}
.modal-close:hover { color: var(--gold-deep); }
.modal-emoji { font-size: 3.5rem; margin-bottom: 1rem; }
.modal-title {
    font-family: var(--font-heading);
    color: var(--gold-deep);
    font-size: 2rem;
    margin-bottom: 0.75rem;
}
.modal-body {
    color: var(--charcoal);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ═══════════════ CONFETTI ═══════════════ */
.confetti {
    position: fixed; pointer-events: none;
    width: 8px; height: 12px;
    z-index: 9997;
    animation: confettiFall 2.5s ease-out forwards;
}
@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ═══════════════ RESPONSIVE TWEAKS ═══════════════ */
@media (max-width: 768px) {
    /* Drop full-viewport hero height on phones — content + padding sets the height instead */
    .hero { min-height: auto; padding: 2rem 1rem 1.75rem; }
    .hero-content { width: 100%; }

    /* Lift the bouncing chevron up off the section edge on mobile */
    .scroll-indicator { margin-top: 0.25rem; margin-bottom: 1.75rem; }

    /* Keep things classy on mobile — disable the heavier ambient animations */
    .particles                 { display: none; }
    .cursor-sparkle            { display: none; }
    .cherub                    { animation: none; }
    .garland-bulb              { animation: none; }
    .countdown-block::before,
    .detail-card::before,
    .menu-card::before,
    .schedule-card::before,
    .venue-card::before        { display: none; }            /* shimmer sweep off */
    .countdown-value.flip      { animation: none; }          /* coin flip → instant */
    .scroll-indicator          { animation: none; }
}

@media (max-width: 640px) {
    .section { padding: 2rem 1rem; }
    .countdown-block { min-width: 60px; padding: 0.5rem 0.75rem; }
    .map-actions     { flex-direction: column; align-items: center; }
    .venue-actions   { flex-direction: column; align-items: center; }
    .btn             { width: 100%; max-width: 340px; min-height: 48px; }
    .btn-whatsapp    { font-size: 0.9rem; padding: 0.85rem 1.25rem; }
    .couple-amp      { width: 100%; }
    .hero-arch       { width: clamp(160px, 55vw, 240px); }
    .invitation-body br { display: none; }

    /* Larger tap targets / readable type on phones */
    body                          { font-size: 16px; }
    .reveal-fallback              { padding: 0.75rem 1.5rem; min-height: 44px; }
    .music-toggle                 { width: 56px; height: 56px; bottom: 1rem; right: 1rem; }
    .modal                        { padding: 2.5rem 1.5rem 2rem; }
    .form-group input,
    .form-group select,
    .form-group textarea          { padding: 0.85rem 1rem; font-size: 16px; }    /* font-size:16px stops iOS zooming on focus */
    .radio-label                  { padding: 0.95rem 1rem; }
}

/* ═══════════════ PRINT ═══════════════ */
@media print {
    .intro-loader, .music-toggle, .particles, .cursor-sparkle, .scroll-indicator,
    .hero-video, .hero-overlay, .scratch-canvas, .reveal-fallback, .modal-overlay { display: none !important; }
    body { background: white; color: black; }
    .reveal { opacity: 1 !important; transform: none !important; }
}
