/* ==========================================
   UNIFIED DESIGN SYSTEM - CUSTOM GE HILI FONT & ANIMATIONS
   ========================================== */
@font-face {
    font-family: 'GE Hili';
    src: url('assets/fonts/GE_Hili_Book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'GE Hili Light';
    src: url('assets/fonts/GE-Hili-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

:root {
    --bg-paper: #ffffff;
    --bg-page: #f4f1ea;
    --text-dark: #1a1a1a;
    --text-muted: #555555;
    --color-taupe: #c5b39b;
    --color-taupe-light: #e8dfd3;
    --color-taupe-bg: #d3c7b7;
    --border-card: #efeae1;
    --accent-red: #9e7d33; /* maroon removed — now deep gold (readable on white) */

    /* Refined real-gold accent system */
    --gold: #c8a951;
    --gold-deep: #9e7d33;
    --gold-light: #e9d8a6;
    --gradient-gold: linear-gradient(135deg, #e9d8a6 0%, #c8a951 45%, #9e7d33 100%);
    --shadow-warm: 0 10px 30px rgba(120, 95, 40, 0.07);
    --shadow-warm-lg: 0 18px 45px rgba(120, 95, 40, 0.12);
    
    --card-max-width: 580px;
    --card-padding: 40px 30px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --section-gap: 32px;
    
    --font-heading: 'GE Hili', 'Amiri', serif;
    --font-body: 'Cairo', sans-serif;
    --font-arabic-names: 'GE Hili', 'Amiri', serif;
    --font-script: 'Alex Brush', cursive;
    --font-english-serif: 'Playfair Display', 'Times New Roman', Georgia, serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-page);
    background-image: radial-gradient(#e2dad0 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Text & Element Entrance Animations */
.main-container:not(.hidden) .anim-stagger-1 { animation: fadeInDown 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.main-container:not(.hidden) .anim-stagger-2 { animation: zoomInSoft 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
.main-container:not(.hidden) .anim-stagger-3 { animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both; }
.main-container:not(.hidden) .anim-stagger-4 { animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both; }
.main-container:not(.hidden) .anim-stagger-5 { animation: popIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.9s both; }
.main-container:not(.hidden) .anim-stagger-6 { animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both; }
.main-container:not(.hidden) .anim-stagger-7 { animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.3s both; }

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

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

@keyframes zoomInSoft {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Latin Numerals Styling */
.latin-num {
    font-family: var(--font-english-serif), serif !important;
    font-feature-settings: "lnum", "tnum" !important;
    font-variant-numeric: lining-nums tabular-nums !important;
    unicode-bidi: isolate !important;
    display: inline-block !important;
    direction: ltr !important;
}

/* Background Canvas */
#petals-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.hidden { display: none !important; }

/* Envelope Overlay Modal */
.envelope-overlay {
    position: fixed;
    inset: 0;
    background: rgba(244, 241, 234, 0.98);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.envelope-realistic-container {
    position: relative;
    width: 100%;
    max-width: 440px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    transition: transform 0.5s ease;
}

.envelope-bg-img {
    width: 100%;
    height: auto;
    display: block;
}

.wax-seal-interactive {
    position: absolute;
    top: 55.0%;
    left: 50.8%;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal-ripple {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.75);
    animation: sealGlow 2s infinite ease-in-out;
}

@keyframes sealGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6); }
    70% { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.envelope-text-overlay {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    text-align: center;
    pointer-events: none;
}

.envelope-text-overlay .pocket-english {
    font-family: var(--font-script);
    font-size: 2.4rem;
    color: var(--text-dark);
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(255,255,255,0.8);
}

.envelope-text-overlay .pocket-arabic {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 2px;
    background: rgba(255,255,255,0.85);
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
}

/* Main Container Layout */
.main-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 20px 80px 20px;
    position: relative;
    z-index: 2;
    transition: opacity 1s ease, transform 1s ease;
}

.main-container.hidden {
    opacity: 0;
    transform: translateY(20px);
}

/* ==========================================
   PAPER CARD REPLICA STYLING
   ========================================== */
.paper-card-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: var(--section-gap);
    width: 100%;
}

.paper-card {
    background: var(--bg-paper);
    width: 100% !important;
    max-width: var(--card-max-width) !important;
    padding: 40px 40px 60px 40px !important;
    border-radius: 6px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-card);
    position: relative;
    text-align: center;
    margin: 0 auto !important;
    overflow: hidden;
    font-family: var(--font-arabic-names) !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.paper-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Curved Verse SVG */
.curved-verse-container {
    width: 100%;
    margin-top: -10px;
    margin-bottom: 0px;
}

.curved-svg {
    width: 100%;
    height: 125px;
    overflow: visible;
}

.curved-text {
    font-family: var(--font-arabic-names) !important;
    font-size: 32px !important;
    fill: var(--text-dark);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Date & Custom SVG Artwork Section */
.date-names-overlay-section {
    position: relative;
    margin: -35px 0 20px 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.overlay-svg-artwork {
    width: 100%;
    max-width: 260px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Inviting Families Section */
.inviting-families-section {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.family-col h2 {
    font-family: var(--font-arabic-names) !important;
    font-size: 1.35rem !important;
    font-weight: 400 !important;
    color: var(--text-dark);
    line-height: 1.3;
}

.family-col p {
    font-family: var(--font-arabic-names) !important;
    font-size: 1.2rem !important;
    font-weight: 400 !important;
    color: var(--text-dark);
}

.botanical-divider {
    display: flex;
    justify-content: center;
    align-items: center;
}

.botanical-svg-img {
    height: 65px;
    width: auto;
    display: block;
}

/* Honor Sentence */
.honor-sentence {
    font-family: var(--font-arabic-names) !important;
    font-size: 1.3rem !important;
    font-weight: 400 !important;
    color: var(--text-dark);
    margin-bottom: 25px;
}

/* Embedded Photo Frame directly inside Paper Card Design */
.card-embedded-photo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
}

.photo-frame-inner {
    position: relative;
    padding: 7px;
    background: var(--gradient-gold);
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(120, 95, 40, 0.18), 0 0 0 1px rgba(255,255,255,0.6) inset;
    width: 152px;
    height: 152px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.photo-frame-inner::after {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    pointer-events: none;
    z-index: 2;
}

.photo-frame-inner:hover {
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 16px 34px rgba(120, 95, 40, 0.26);
}

.embedded-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Large Main Couple Names using Custom GE Hili Font */
.main-couple-names {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 20px;
    margin-bottom: 35px;
}

.name-ar {
    font-family: var(--font-arabic-names) !important;
    font-size: 4rem !important;
    font-weight: 400 !important;
    color: var(--text-dark) !important;
    letter-spacing: 0;
    line-height: 1;
}

.ampersand-ar {
    font-family: var(--font-english-serif), var(--font-heading);
    font-size: 3.4rem;
    font-weight: 400;
    line-height: 1;
    font-style: italic;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold);
}

/* Ceremony Details with GE Hili Custom Font */
.ceremony-details {
    margin-bottom: 40px;
}

.poetic-line, .time-line, .date-line, .place-line {
    font-family: var(--font-arabic-names) !important;
    font-size: 1.3rem !important;
    color: var(--text-dark) !important;
    margin-bottom: 6px;
    line-height: 1.5;
}

.ceremony-details strong {
    font-family: var(--font-arabic-names) !important;
    font-weight: 700;
}

/* Card Footer Signature */
.card-footer-signature {
    margin-top: 20px;
}

.line-with-circles {
    height: 1px;
    background: var(--color-taupe-light);
    position: relative;
    margin: 0 auto 15px auto;
    width: 80%;
}

.line-with-circles::before, .line-with-circles::after {
    content: '';
    position: absolute;
    top: -4px;
    width: 8px;
    height: 8px;
    border: 1px solid var(--color-taupe);
    border-radius: 50%;
    background: #ffffff;
}

.line-with-circles::before { left: 0; }
.line-with-circles::after { right: 0; }

.english-signature {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--text-dark);
}

/* ==========================================
   UNIFIED INTERACTIVE EXTENSIONS STYLING
   ========================================== */
.interactive-extensions {
    width: 100%;
}

.section-card {
    background: #ffffff !important;
    border: 1px solid var(--border-card) !important;
    border-radius: 12px !important;
    padding: var(--card-padding) !important;
    margin-bottom: var(--section-gap) !important;
    box-shadow: var(--card-shadow) !important;
    text-align: center !important;
    width: 100% !important;
    max-width: var(--card-max-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.section-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

.section-title {
    font-family: var(--font-arabic-names) !important;
    font-size: 1.8rem !important;
    color: var(--text-dark) !important;
    margin-bottom: 8px !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
}

.section-subtitle {
    color: var(--text-muted) !important;
    font-size: 0.95rem !important;
    margin-bottom: 25px !important;
    text-align: center !important;
    width: 100% !important;
}

.calendar-container {
    max-width: 380px;
    margin: 0 auto;
    border: 1px solid var(--color-taupe-light);
    border-radius: 12px;
    padding: 20px;
    background: radial-gradient(circle at top left, #ffffff, #fdfbf8);
    box-shadow: 0 4px 15px rgba(197, 179, 155, 0.04);
}

.calendar-header-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-deep);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--color-taupe-light);
    padding-bottom: 10px;
    text-align: center;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px 0;
    font-family: var(--font-english-serif), serif;
    font-size: 1.15rem;
    color: var(--text-dark);
    text-align: center;
}

.calendar-days-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    width: 38px;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.calendar-day {
    cursor: pointer;
}

.calendar-day:hover {
    background: rgba(200, 169, 81, 0.1);
    color: var(--gold-deep);
    transform: translateY(-2px) scale(1.05);
}

.wedding-day-highlight {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--gold-deep) !important;
    text-shadow: 0 0 10px rgba(200, 169, 81, 0.25);
}

.heart-svg {
    position: absolute;
    inset: -5px;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    pointer-events: none;
    animation: heartPulse 2.5s ease-in-out infinite;
}

.heart-svg path {
    fill: rgba(200, 169, 81, 0.12);
    stroke: var(--gold);
    stroke-width: 4px;
}

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

/* Save Date Button & Dropdown */
.calendar-save-date {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    position: relative;
}

.btn-save-date {
    background: #ffffff;
    border: 1px solid var(--color-taupe-light);
    color: var(--text-dark);
    padding: 10px 24px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-save-date:hover {
    border-color: var(--gold);
    color: var(--gold-deep);
    background: #fdfbf7;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(200, 169, 81, 0.12);
}

.save-date-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    border: 1px solid var(--color-taupe-light);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(120, 95, 40, 0.1);
    display: none;
    flex-direction: column;
    z-index: 100;
    overflow: hidden;
    min-width: 190px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.save-date-dropdown.show {
    display: flex;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.save-date-option {
    padding: 12px 18px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
    transition: background 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid #f9f6f0;
}

.save-date-option:last-child {
    border-bottom: none;
}

.save-date-option:hover {
    background: #fdfbf7;
    color: var(--gold-deep);
}

.save-date-option i {
    font-size: 1rem;
    color: var(--gold);
}

/* 2. Timeline List */
.timeline-list {
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.timeline-list::before {
    content: '';
    position: absolute;
    right: 24px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: var(--color-taupe-light);
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: right;
    position: relative;
    z-index: 1;
}

.timeline-icon-box {
    width: 50px;
    height: 50px;
    background: #ffffff;
    border: 2px solid var(--color-taupe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.timeline-time {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-red);
    width: 90px;
    flex-shrink: 0;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* 3. Timer Grid */
.timer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.timer-box {
    background: #fdfbf7;
    border: 1px solid var(--color-taupe-light);
    border-radius: 8px;
    padding: 15px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-number {
    font-family: var(--font-english-serif), serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.timer-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.contact-names {
    font-family: var(--font-arabic-names) !important;
    font-size: 2.8rem !important;
    font-weight: 400 !important;
    color: var(--text-dark) !important;
    margin: 10px 0 15px 0 !important;
    text-align: center !important;
}

.contact-buttons-wrapper {
    display: flex !important;
    justify-content: center !important;
    margin-top: 15px !important;
}

.btn-contact-whatsapp {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: var(--text-dark) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 14px 32px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    border: 1px solid var(--color-taupe) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
}

.btn-contact-whatsapp:hover {
    background: var(--color-taupe) !important;
    color: var(--text-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12) !important;
}

/* Buttons */
.btn-dark {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background: var(--text-dark) !important;
    color: #ffffff !important;
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 14px 28px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.btn-dark:hover {
    background: var(--color-taupe) !important;
    color: var(--text-dark) !important;
}

.block-btn {
    width: 100% !important;
}

.text-center { text-align: center !important; }

/* Footer & Inline Audio Button */
.main-footer {
    text-align: center !important;
    color: var(--text-muted) !important;
    font-size: 0.9rem !important;
    margin-top: 30px !important;
    padding-top: 20px !important;
    border-top: 1px solid var(--border-card) !important;
}

.footer-love-english {
    font-family: var(--font-script) !important;
    font-size: 1.8rem !important;
    color: var(--text-dark) !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

.footer-sub {
    font-size: 0.8rem !important;
    margin-top: 4px !important;
}

.footer-audio-wrapper {
    margin-top: 15px !important;
    display: flex !important;
    justify-content: center !important;
}

.footer-audio-btn {
    background: var(--bg-paper) !important;
    border: 1px solid var(--color-taupe) !important;
    color: var(--text-dark) !important;
    padding: 8px 20px !important;
    border-radius: 30px !important;
    font-family: var(--font-body) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s ease !important;
}

.footer-audio-btn:hover {
    background: var(--text-dark) !important;
    color: #ffffff !important;
}

.footer-audio-btn.playing {
    border-color: var(--accent-red) !important;
    color: var(--accent-red) !important;
}

.footer-audio-btn.playing:hover {
    background: var(--accent-red) !important;
    color: #ffffff !important;
}

/* ==========================================
   DESIGN REFINEMENTS v2.8
   Gold stationery frame · cohesive gold accents
   · embedded couple photos · ornamental flourishes
   ========================================== */

/* Warm, softer elevation on the main surfaces */
.paper-card { box-shadow: var(--shadow-warm); }
.paper-card:hover { box-shadow: var(--shadow-warm-lg); }
.section-card { box-shadow: var(--shadow-warm) !important; }
.section-card:hover { box-shadow: var(--shadow-warm-lg) !important; }

/* Fine inset gold frame — the classic stationery border */
.card-frame {
    position: absolute;
    inset: 14px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    pointer-events: none;
    z-index: 0;
}

/* Twin cartouche diamonds centred on the top & bottom rules */
.card-frame::before,
.card-frame::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 9px;
    height: 9px;
    background: var(--gradient-gold);
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 0 0 0 4px var(--bg-paper);
}
.card-frame::before { top: -5px; }
.card-frame::after { bottom: -5px; }

.paper-card {
    /* lift real content above the decorative frame */
    z-index: 1;
}
.paper-card > *:not(.card-frame) { position: relative; z-index: 1; }

/* Entrance animation for the embedded portrait */
.main-container:not(.hidden) .anim-photo {
    animation: popIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.8s both;
}

/* Ornamental gold flourish beneath every section subtitle */
.section-subtitle::after {
    content: '';
    display: block;
    width: 84px;
    height: 7px;
    margin: 14px auto 0;
    background:
        radial-gradient(circle at center, var(--gold) 0 3px, transparent 3.5px) center / 7px 7px no-repeat,
        linear-gradient(90deg, transparent, var(--gold) 28%, var(--gold) 72%, transparent) center / 100% 1px no-repeat;
}

/* Section title icons in gold */
.section-title i { color: var(--gold-deep) !important; }

/* Timeline · gold rail and rings */
.timeline-list::before {
    background: linear-gradient(180deg, transparent, var(--gold-light) 12%, var(--gold-light) 88%, transparent) !important;
}
.timeline-icon-box {
    border-color: var(--gold) !important;
    color: var(--gold-deep) !important;
    background: #fffdf7 !important;
}

/* Countdown boxes · subtle gold top accent */
.timer-box {
    border-top: 2px solid var(--gold) !important;
    box-shadow: var(--shadow-warm);
}

/* Footer divider line warmed to gold */
.line-with-circles { background: var(--gold-light); }
.line-with-circles::before,
.line-with-circles::after { border-color: var(--gold); }

/* Wax seal ripple in true gold */
.seal-ripple { border-color: rgba(200, 169, 81, 0.85); }

/* Arched couple photo that bookends the invitation */
.contact-photo {
    width: 100%;
    max-width: 290px;
    aspect-ratio: 3 / 4;
    margin: 4px auto 20px;
    padding: 8px;
    background: var(--gradient-gold);
    border-radius: 150px 150px 16px 16px;
    box-shadow: 0 16px 34px rgba(120, 95, 40, 0.18);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-photo:hover { transform: translateY(-4px); }
.contact-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 144px 144px 10px 10px;
    border: 2px solid #ffffff;
}

@media (max-width: 576px) {
    .paper-card {
        padding: 30px 20px 40px 20px !important;
    }
    .card-frame { inset: 10px; }
    .photo-frame-inner { width: 132px; height: 132px; }
    .contact-photo { max-width: 240px; }
    .curved-text {
        font-size: 24px !important;
    }
    .overlay-svg-artwork {
        max-width: 220px;
    }
    .name-ar {
        font-size: 3rem !important;
    }
    .inviting-families-section {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .botanical-divider {
        transform: rotate(90deg);
        margin: 5px 0;
    }
}
