/* ==========================================================================
   WEDDING / ENGAGEMENT INVITATION STYLESHEET
   Names: المهندس علي & الانسه ياسمين
   Date: 9 October 2026
   Theme: Saraya Gold / Arabian Luxury Palace (Full Width & Native Palette)
   ========================================================================== */

/* --- ROOT VARIABLES --- */
:root {
    --primary-gold: #9e753c;
    --primary-gold-dark: #80571e;
    --primary-gold-light: #b88e52;
    --secondary-brown: #6d512a;
    --accent-champagne: #cdb587;
    --accent-sand: #dcc79a;
    --bg-cream: #f9f1e6;
    --border-gold: rgba(158, 117, 60, 0.25);
    --border-gold-solid: #9e753c;
    --soft-line: rgba(158, 117, 60, 0.22);
    --shadow-gold: rgba(158, 117, 60, 0.35);
    
    /* Fonts */
    --font-couple: 'The Nautigal', cursive;
    --font-ampersand: 'Alex Brush', cursive;
    --font-calligraphy: 'Aref Ruqaa', 'Amiri', serif;
    --font-heading: 'Amiri', serif;
    --font-body: 'Cairo', 'El Messiri', sans-serif;
    --font-serif: 'Lora', 'Times New Roman', serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

/* Page background matches the images color (#f9f1e6) across the entire screen */
body {
    direction: rtl;
    text-align: right;
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--secondary-brown);
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

/* Seamless Full-Screen Background Texture Layers */
.global-bg-fixed {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.global-pattern-1 {
    position: absolute;
    inset: 0;
    background-image: url('arab-pattern.webp');
    background-size: 440px 440px;
    background-repeat: repeat;
    opacity: 0.45;
}

.global-pattern-2 {
    position: absolute;
    inset: 0;
    background-image: url('arab-pattern2.webp');
    background-size: 600px 600px;
    background-repeat: repeat;
    opacity: 0.35;
    mix-blend-mode: darken;
}

.global-castle-top {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    max-width: 1200px;
    opacity: 0.13;
    pointer-events: none;
}

.global-castle-bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    max-width: 1200px;
    opacity: 0.13;
    pointer-events: none;
}

/* Ambient Canvas for Floating Petals */
.petals-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
}

/* --- FLOATING MUSIC CONTROLLER --- */
.music-controller {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.music-controller.hidden {
    display: none;
}

.music-controller:hover {
    transform: scale(1.08);
}

.disc-wrapper {
    position: relative;
    width: 52px;
    height: 52px;
}

.vinyl-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #2a2015 35%, #18120c 70%, #0d0906 100%);
    border: 2px solid var(--accent-sand);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 10px var(--shadow-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 4s linear infinite;
    animation-play-state: paused;
}

.music-controller.playing .vinyl-disc {
    animation-play-state: running;
}

.vinyl-grooves {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.15);
}

.disc-center {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.disc-heart {
    width: 11px;
    height: 11px;
    object-fit: contain;
}

.sound-waves {
    position: absolute;
    top: -12px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.music-controller.playing .sound-waves {
    opacity: 1;
}

.sound-waves .bar {
    width: 2.5px;
    background: var(--accent-champagne);
    border-radius: 2px;
    animation: soundWave 1.2s ease-in-out infinite alternate;
}

.sound-waves .bar-1 { height: 4px; animation-delay: 0.1s; }
.sound-waves .bar-2 { height: 10px; animation-delay: 0.3s; }
.sound-waves .bar-3 { height: 7px; animation-delay: 0.5s; }
.sound-waves .bar-4 { height: 12px; animation-delay: 0.2s; }

.music-tooltip {
    background: rgba(26, 18, 9, 0.85);
    color: var(--bg-cream);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    border: 1px solid var(--accent-sand);
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.music-controller:hover .music-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes soundWave {
    0% { height: 3px; }
    100% { height: 14px; }
}


/* --- POPUP ENVELOPE OVERLAY --- */
.envelope-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(165, 125, 68, 0.95), rgba(120, 85, 38, 0.98));
    backdrop-filter: blur(6px);
    overflow: hidden;
    padding: 20px;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s ease;
}

.envelope-overlay.hide-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.envelope-petals-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.ambient-petal {
    position: absolute;
    top: -40px;
    pointer-events: none;
    animation: ambientPetalFall linear infinite;
}

@keyframes ambientPetalFall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% {
        transform: translateY(105vh) rotate(360deg) translateX(var(--sway-x, 25px));
        opacity: 0;
    }
}

/* Card Popup Container */
.card-popup-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    z-index: 10;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.75s ease;
}

.card-popup-container.opening {
    transform: scale(1.08) translateY(-25px);
    opacity: 0;
}

/* Wax Seal Stamp */
.wax-seal {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #b68748, #825820 65%, #59390f 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 25px var(--shadow-gold), inset 0 2px 5px rgba(255, 255, 255, 0.4);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: sealPulse 2.4s ease-in-out infinite;
    transition: transform 0.5s ease;
}

.wax-seal:hover {
    transform: translateX(-50%) scale(1.08);
}

.seal-ring {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal-heart-icon {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes sealPulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 20px var(--shadow-gold);
    }
    50% {
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.45), 0 0 35px rgba(184, 134, 11, 0.65);
    }
}

.card-popup-body {
    position: relative;
    background: rgba(249, 241, 230, 0.98);
    border: 1px solid rgba(158, 117, 60, 0.25);
    border-radius: 18px;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 40px rgba(158, 117, 60, 0.25);
    overflow: hidden;
    padding: 72px 28px 42px 28px;
    text-align: center;
}

.card-flower-tr {
    position: absolute;
    top: 0;
    right: 0;
    width: 44%;
    max-width: 220px;
    transform: translate(12%, -12%);
    pointer-events: none;
    opacity: 0.95;
    z-index: 2;
}

.card-flower-tl {
    position: absolute;
    top: 0;
    left: 0;
    width: 44%;
    max-width: 220px;
    transform: translate(-12%, -12%) scaleX(-1);
    pointer-events: none;
    opacity: 0.95;
    z-index: 2;
}

.card-flower-b {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 90%;
    max-width: 420px;
    transform: translateX(-50%) translateY(34%);
    pointer-events: none;
    opacity: 0.95;
    z-index: 2;
}

.card-popup-content {
    position: relative;
    z-index: 10;
}

.card-couple-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
    margin-bottom: 12px;
}

.card-couple-names .name-part {
    font-family: var(--font-couple);
    color: var(--primary-gold);
    font-size: clamp(38px, 10vw, 54px);
    font-weight: 700;
    display: block;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(158, 117, 60, 0.15);
}

.card-couple-names .ampersand-sign {
    font-family: var(--font-ampersand);
    color: var(--secondary-brown);
    font-size: clamp(22px, 6vw, 30px);
    margin: -4px 0;
}

.ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 6px 0 18px 0;
}

.ornament-divider .line-wing {
    width: 48px;
    height: 1px;
}

.ornament-divider .line-wing.left {
    background: linear-gradient(to right, transparent, var(--primary-gold));
}

.ornament-divider .line-wing.right {
    background: linear-gradient(to left, transparent, var(--primary-gold));
}

.ornament-flourish {
    color: var(--primary-gold);
    font-size: 16px;
    opacity: 0.8;
}

.card-event-date {
    font-family: var(--font-serif);
    color: var(--secondary-brown);
    font-size: clamp(17px, 4.5vw, 21px);
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.card-invitation-note p {
    font-family: var(--font-body);
    color: rgba(109, 81, 42, 0.9);
    font-size: clamp(16px, 4vw, 19px);
    font-weight: 500;
    margin-bottom: 24px;
}

.open-invitation-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a77e45 0%, #906631 100%);
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    padding: 11px 48px;
    border-radius: 50px;
    border: none;
    outline: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(158, 117, 60, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.35);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.open-invitation-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 26px rgba(158, 117, 60, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.open-invitation-btn:active {
    transform: translateY(1px) scale(0.98);
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-25deg);
    animation: btnShine 3s infinite;
    pointer-events: none;
}

@keyframes btnShine {
    0% { left: -100%; }
    30%, 100% { left: 160%; }
}


/* --- MAIN INVITATION PAGE (FULL-SCREEN FLUID LAYOUT) --- */
.main-page-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 0 0 60px 0;
    z-index: 5;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-page-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Invitation Container: seamlessly blends with full width of viewport */
.invitation-card {
    position: relative;
    width: 100%;
    max-width: 760px;
    background: transparent;
    overflow: visible;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .invitation-card {
        max-width: 820px;
    }
}


/* --- SECTION 1: HERO ARCH (FULL-WIDTH SCALED TO SCREEN) --- */
.section-hero {
    position: relative;
    z-index: 10;
    padding: 10px 0 20px 0;
    width: 100%;
    overflow: visible;
}

.hero-arch-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 588 / 688;
    margin: 0 auto;
}

/* Golden Arch Frame */
.arch-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

/* Hanging Lanterns */
.hero-lantern {
    position: absolute;
    top: 2.5%;
    width: 6.8%;
    height: auto;
    object-fit: contain;
    z-index: 3;
    animation: gentleSway 4s ease-in-out infinite alternate;
    transform-origin: top center;
}

.hero-lantern.left {
    left: 20%;
    animation-delay: 0.4s;
}

.hero-lantern.right {
    right: 20%;
    animation-delay: 1.2s;
}

/* Calligraphy Box (Bismillah) */
.hero-calligraphy-box {
    position: absolute;
    top: 15.5%;
    left: 50%;
    transform: translateX(-50%);
    width: 38%;
    z-index: 4;
}

.hero-calligraphy {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(158, 117, 60, 0.3));
}

/* Floral framing corners spanning to edges */
.hero-flower-tl {
    position: absolute;
    top: -8%;
    left: -5%;
    width: 40%;
    max-width: 340px;
    height: auto;
    object-fit: contain;
    transform: scaleX(-1);
    z-index: 5;
    pointer-events: none;
}

.hero-flower-tr {
    position: absolute;
    top: -8%;
    right: -5%;
    width: 40%;
    max-width: 340px;
    height: auto;
    object-fit: contain;
    z-index: 5;
    pointer-events: none;
}

.hero-flower-bl {
    position: absolute;
    bottom: -4%;
    left: -6%;
    width: 50%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    z-index: 5;
    pointer-events: none;
}

.hero-flower-br {
    position: absolute;
    bottom: -4%;
    right: -6%;
    width: 50%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    transform: scaleX(-1);
    z-index: 5;
    pointer-events: none;
}

/* Couple Names inside Arch */
.hero-names-container {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 80%;
}

.hero-groom-name, .hero-bride-name {
    font-family: var(--font-couple);
    font-size: clamp(42px, 8vw, 68px);
    font-weight: 700;
    color: var(--primary-gold);
    line-height: 1.1;
    margin: 0;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #8a5a22 0%, #b8860b 45%, #d4af37 60%, #8a5a22 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 2px rgba(158, 117, 60, 0.25));
}

.hero-ampersand {
    font-family: var(--font-ampersand);
    font-size: clamp(26px, 5vw, 42px);
    color: var(--secondary-brown);
    margin: -6px 0;
    line-height: 1;
}


/* --- SECTION 2: COUPLE DETAILS & POETIC VERSE --- */
.section-couple-details {
    position: relative;
    z-index: 10;
    padding: 30px 16px 20px 16px;
    text-align: center;
    overflow: visible;
}

.crest-frame-wrapper {
    position: relative;
    width: 95%;
    max-width: 600px;
    margin: 0 auto 18px auto;
}

.golden-crest-frame {
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0.95;
}

/* Floating side decorations */
.side-flower-left {
    position: absolute;
    top: 20%;
    left: -18%;
    width: 45%;
    max-width: 300px;
    height: auto;
    pointer-events: none;
    z-index: 2;
    opacity: 0.85;
}

.side-leaf-right {
    position: absolute;
    top: 48%;
    right: -10%;
    width: 28%;
    max-width: 200px;
    height: auto;
    pointer-events: none;
    z-index: 2;
    opacity: 0.85;
}

.side-lantern {
    position: absolute;
    width: 7%;
    max-width: 44px;
    height: auto;
    pointer-events: none;
    z-index: 2;
    opacity: 0.9;
    transform-origin: top center;
}

.side-lantern.left {
    top: 55%;
    left: 4%;
}

.side-lantern.right {
    top: 68%;
    right: 3%;
}

/* Poetic Verse */
.poetic-announcement {
    position: relative;
    z-index: 10;
    margin-bottom: 26px;
}

.poetic-announcement .verse-line {
    font-family: var(--font-calligraphy);
    color: var(--secondary-brown);
    font-size: clamp(20px, 3.5vw, 27px);
    line-height: 1.8;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Full Names Block */
.full-names-section {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
}

.person-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.person-full-name {
    font-family: var(--font-heading);
    font-size: clamp(26px, 4.5vw, 38px);
    font-weight: 700;
    color: var(--primary-gold);
    line-height: 1.25;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #7c4c1a 0%, #b8860b 50%, #7c4c1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 1px rgba(158, 117, 60, 0.2));
}

.person-role {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--secondary-brown);
    opacity: 0.85;
    font-weight: 500;
}

.names-separator-amp {
    font-family: var(--font-ampersand);
    font-size: 34px;
    color: var(--primary-gold);
    margin: -4px 0;
}

.golden-line-container {
    width: 85%;
    max-width: 420px;
    margin: 24px auto 12px auto;
}

.golden-line-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}


/* --- SECTION 3: EVENT INFO & COUNTDOWN --- */
.section-event-info {
    position: relative;
    z-index: 10;
    padding: 10px 16px 30px 16px;
    text-align: center;
}

.event-header-box {
    margin-bottom: 18px;
}

.info-title {
    font-family: var(--font-calligraphy);
    color: var(--primary-gold);
    font-size: clamp(24px, 4.2vw, 30px);
    font-weight: 700;
    margin-bottom: 6px;
}

.info-subtitle {
    font-family: var(--font-body);
    color: var(--secondary-brown);
    font-size: clamp(16px, 2.8vw, 19px);
    font-weight: 500;
}

.time-and-date-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 34px;
}

.time-display {
    font-family: var(--font-serif);
    font-size: clamp(26px, 4.8vw, 36px);
    font-weight: 700;
    color: var(--primary-gold);
    letter-spacing: 1px;
}

.date-display-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: var(--font-serif);
    font-size: clamp(20px, 3.6vw, 28px);
    color: var(--secondary-brown);
}

.date-display-row .day-num {
    font-size: clamp(28px, 5.2vw, 40px);
    font-weight: 700;
    color: var(--primary-gold);
}

.date-col-sep {
    opacity: 0.45;
    color: var(--primary-gold);
}

.year-display {
    font-family: var(--font-serif);
    font-size: clamp(20px, 3.6vw, 26px);
    font-weight: 600;
    color: var(--secondary-brown);
    letter-spacing: 2px;
}

/* Countdown */
.countdown-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 18px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 18px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 6px 20px rgba(158, 117, 60, 0.1);
}

.countdown-title {
    font-family: var(--font-calligraphy);
    color: var(--primary-gold);
    font-size: clamp(20px, 3.5vw, 24px);
    font-weight: 700;
    margin-bottom: 10px;
}

.countdown-summary {
    font-family: var(--font-serif);
    color: var(--secondary-brown);
    font-size: clamp(15px, 2.8vw, 18px);
    font-weight: 600;
    margin-bottom: 16px;
    direction: rtl;
}

.countdown-boxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.countdown-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 3px 10px rgba(158, 117, 60, 0.12);
}

.card-num {
    font-family: var(--font-serif);
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 700;
    color: var(--primary-gold);
    line-height: 1.1;
}

.card-lbl {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--secondary-brown);
    margin-top: 4px;
    font-weight: 500;
}


/* --- SECTION 4: CALENDAR ARCH WIDGET --- */
.section-calendar {
    position: relative;
    z-index: 10;
    padding: 24px 16px 34px 16px;
    text-align: center;
}

.calendar-arch-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 403 / 364;
    margin: 0 auto;
}

.calendar-frame-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    z-index: 1;
}

.calendar-inner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 16% 11% 9% 11%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calendar-header-title {
    font-family: var(--font-heading);
    font-size: clamp(17px, 3vw, 22px);
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 8px;
}

.calendar-week-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(158, 117, 60, 0.3);
    padding-bottom: 4px;
}

.weekday {
    font-family: var(--font-body);
    font-size: clamp(12px, 2.2vw, 15px);
    font-weight: 600;
    color: var(--secondary-brown);
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    row-gap: 3px;
    column-gap: 2px;
}

.day-cell {
    font-family: var(--font-serif);
    font-size: clamp(12px, 2.4vw, 16px);
    color: var(--secondary-brown);
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.day-cell.event-highlight {
    font-weight: 700;
    color: #ffffff;
}

.highlight-heart-badge {
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-heart-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: var(--primary-gold);
    filter: drop-shadow(0 2px 4px rgba(158, 117, 60, 0.45));
    animation: heartGlow 2.5s ease-in-out infinite;
}

.day-number-on-heart {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    margin-top: -1px;
}

@keyframes heartGlow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 2px 4px rgba(158, 117, 60, 0.45));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 2px 8px rgba(184, 134, 11, 0.7));
    }
}

.calendar-action-box {
    margin-top: 16px;
}

.add-to-calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-brown);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: all 0.25s ease;
}

.add-to-calendar-btn:hover {
    color: var(--primary-gold);
    transform: translateY(-1px);
}

.cal-btn-icon {
    width: 19px;
    height: 19px;
}


/* --- SECTION 5: VENUE & GOOGLE MAPS --- */
.section-location {
    position: relative;
    z-index: 10;
    padding: 24px 16px 34px 16px;
    text-align: center;
}

.location-header {
    margin-bottom: 20px;
}

.location-title {
    font-family: var(--font-calligraphy);
    color: var(--primary-gold);
    font-size: clamp(24px, 4.2vw, 30px);
    font-weight: 700;
    margin-bottom: 6px;
}

.location-address {
    font-family: var(--font-body);
    font-size: clamp(18px, 3.2vw, 22px);
    font-weight: 600;
    color: var(--secondary-brown);
}

/* Map Card: Spans wide across screen */
.map-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-gold);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12), 0 0 25px rgba(158, 117, 60, 0.08);
    background: #ffffff;
}

.map-info-pill {
    position: absolute;
    top: 14px;
    right: 14px;
    left: 14px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.pill-icon-box {
    flex-shrink: 0;
}

.pill-marker-icon {
    width: 26px;
    height: 26px;
}

.pill-text-box {
    flex: 1;
    text-align: right;
    min-width: 0;
}

.pill-place-name {
    font-size: 14px;
    font-weight: 700;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pill-place-code {
    font-size: 12px;
    color: #5f6368;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pill-external-link {
    color: #1a73e8;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.pill-external-link:hover {
    transform: scale(1.15);
}

.pill-external-link svg {
    width: 19px;
    height: 19px;
}

.map-iframe-container {
    width: 100%;
    height: 300px;
}

@media (min-width: 768px) {
    .map-iframe-container {
        height: 380px;
    }
}

.map-iframe-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    filter: saturate(1.05) contrast(1.02);
}

.directions-btn-box {
    padding: 16px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 36px;
    border-radius: 50px;
    background: var(--primary-gold);
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 4px 14px var(--shadow-gold);
    transition: all 0.3s ease;
}

.directions-btn:hover {
    background: var(--primary-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(158, 117, 60, 0.5);
}

.directions-icon {
    width: 19px;
    height: 19px;
    transform: rotate(45deg);
}


/* --- SECTION 6: FOOTER (FULL WIDTH BOTTOM FLOWER) --- */
.section-footer {
    position: relative;
    z-index: 10;
    padding: 24px 0 0 0;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.footer-wishes {
    margin-bottom: 24px;
    padding: 0 16px;
}

.wishes-quote {
    font-family: var(--font-calligraphy);
    color: var(--primary-gold);
    font-size: clamp(22px, 3.8vw, 28px);
    font-weight: 700;
    margin-bottom: 8px;
}

.wishes-sub {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--secondary-brown);
    opacity: 0.85;
}

/* Full Width Garland across the screen */
.bottom-flower-wrapper {
    position: relative;
    width: 100%;
    max-width: 100vw;
    margin-top: 10px;
    pointer-events: none;
    display: flex;
    justify-content: center;
}

.flower-bottom-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transform: translateY(18%);
}


/* --- CALENDAR MODAL STYLES --- */
.calendar-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.calendar-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.calendar-modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: rgba(249, 241, 230, 0.99);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.calendar-modal-backdrop.active .calendar-modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: var(--secondary-brown);
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--primary-gold);
}

.modal-title {
    font-family: var(--font-calligraphy);
    color: var(--primary-gold);
    font-size: 23px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 15px;
    color: var(--secondary-brown);
    margin-bottom: 22px;
    line-height: 1.5;
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cal-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-gold);
    cursor: pointer;
    transition: all 0.25s ease;
}

.cal-option-btn.google-cal {
    background: #ffffff;
    color: #1a73e8;
}

.cal-option-btn.google-cal:hover {
    background: #f1f6fd;
    border-color: #1a73e8;
    transform: translateY(-2px);
}

.cal-option-btn.apple-cal {
    background: var(--primary-gold);
    color: #ffffff;
    border: none;
}

.cal-option-btn.apple-cal:hover {
    background: var(--primary-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px var(--shadow-gold);
}

.cal-opt-icon {
    width: 20px;
    height: 20px;
}


/* --- ANIMATIONS --- */
@keyframes gentleSway {
    0% { transform: rotate(-3deg); }
    100% { transform: rotate(3deg); }
}

.swaying-lantern {
    animation: gentleSway 3.6s ease-in-out infinite alternate;
}

.swaying-lantern-delay {
    animation: gentleSway 4.2s ease-in-out infinite alternate-reverse;
}

.floating-soft {
    animation: floatSoft 5s ease-in-out infinite alternate;
}

.floating-soft-rev {
    animation: floatSoft 5.5s ease-in-out infinite alternate-reverse;
}

@keyframes floatSoft {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-12px) rotate(1.5deg); }
}
