/* ========================================= */
/* 1. CONFIGURATION & RESET                  */
/* ========================================= */
:root {
    --bg-color: #FFFBF7;      
    --card-bg: #FFFBF7;       
    --primary: #C55A37;       
    --primary-dark: #8F3E22;
    --gold-accent: #CD853F;
    --gold-darker: #9E6B3F; 
    --text-dark: #4A4A4A;     
    --text-light: #666666;    
    --border-color: #E6DCCA;
    --radius: 16px;           
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* --- STRICT BROWSER DEFAULT RESETS --- */
*:focus, *:active {
    outline: none !important;
    box-shadow: none;
}
button, a, input, textarea, select {
    -webkit-tap-highlight-color: transparent !important;
}

/* Lenis Smooth Scroll Setup for Home Page */
html.lenis, html.lenis body { height: auto; width: 100%; overflow-x: hidden; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html:not(.lenis) { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    display: flex; flex-direction: column; min-height: 100vh;
    overflow-x: hidden; 
    width: 100%; 
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: #2c2c2c; font-weight: 700; }
.text-center { text-align: center; }

/* --- SECTION TITLES & DIVIDERS --- */
.section-title {
    font-size: 3.5rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.2;
}

.custom-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
}

.custom-divider::before,
.custom-divider::after {
    content: '';
    width: 80px;
    height: 1px;
    /* Elegant fading gold lines */
    background: linear-gradient(90deg, transparent, var(--gold-accent));
    margin: 0 15px;
}

.custom-divider::after {
    background: linear-gradient(270deg, transparent, var(--gold-accent));
}

.divider-icon-center {
    color: var(--gold-accent);
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(205, 133, 63, 0.4));
}

/* --- PAGE TRANSITION CURTAIN --- */
.page-transition-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #0a0a0a; /* Deep luxury black */
    z-index: 99999;
    pointer-events: none;
}

/* ========================================= */
/* 2. NAVIGATION                             */
/* ========================================= */
nav {
    position: sticky; top: 0; z-index: 1000; text-align: center;
    background: #FFFBF7; padding: 1rem; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); 
    transition: transform 0.3s ease-in-out;
}
nav a {
    margin: 0 15px; text-decoration: none; color: var(--text-dark);
    font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1.5px;
}
nav.nav-hidden { transform: translateY(-100%); }

.transparent-nav {
    position: fixed; top: 0; left: 0; width: 100%; 
    background-color: transparent; 
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 30px; z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: none; 
    box-shadow: none; 
}

.nav-white { 
    background-color: #FFFBF7; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}

.btn {
    display: inline-block; padding: 12px 28px; 
    text-decoration: none; border-radius: 50px;
    font-family: 'Lato', sans-serif; font-weight: 600; cursor: pointer; 
    transition: all 0.3s ease; text-align: center; font-size: 0.9rem;
    letter-spacing: 0.5px; border: 2px solid transparent;
}
.btn.primary { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 4px 15px rgba(197, 90, 55, 0.3); }
.btn.primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn.outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn.outline:hover { background: var(--primary); color: white; }
.btn.outline-cancel { background: white; color: #C55A37; border: 2px solid #C55A37; }
.btn.outline-cancel:hover { background: #FFF0E8; }
.full-width { width: 100%; margin-top: 10px; }


/* ========================================= */
/* 3. HERO SECTION (OLD DEFAULT)             */
/* ========================================= */
.hero {
    height: 100vh; width: 100%; margin: 0; border-radius: 0; 
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; 
    padding-top: 30vh; 
    text-align: center; color: white; position: relative; 
    background-size: cover; background-position: bottom 10% ;
}
.hero-bg-home { 
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('../images/hero.webp'); 
}
.hero h1 { 
    font-size: 5rem; 
    margin: 0 0 10px; 
    color: var(--gold-darker); 
    text-shadow: 0 2px 20px rgba(0,0,0,0.2); 
    line-height: 1.1;
}
.date { 
    font-size: 1.5rem; 
    margin-top: 5px; 
    color: var(--gold-darker); 
    font-weight: 600; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.2); 
}

/* Base Footer */
footer { background-color: #221B17; color: #888; padding: 40px 20px; text-align: center; border-top: 1px solid #333; width: 100%; position: relative; z-index: 5; }

/* Responsive Adjustments for Old Code */
@media (max-width: 600px) {
    .section { padding: 50px 20px; }
    .hero { padding-top: 8vh; height: 100vh; justify-content: flex-start; } 
    .hero h1 { font-size: 2.1rem; }
    .date { font-size: 1.4rem; }
    .transparent-nav .btn { padding: 8px 12px; font-size: 0.75rem; }
    .itinerary-card { flex-direction: column; text-align: center; gap: 20px; padding: 25px 15px; align-items: center; }
    .links-row, .meta-row { justify-content: center; margin-left: 0; }
    .custom-icon-png { width: 70px; height: 70px; }
    .date-line { display: none; } 
    .stay-locations-wrapper { flex-direction: column; align-items: center; }
    .stay-col { width: 100%; }
}


/* ========================================================================= */
/* ========================================================================= */
/* ==================== NEW ROYAL THEME STYLES BELOW ======================= */
/* ========================================================================= */
/* ========================================================================= */

/* Royal Button Extras */
.btn.outline.gold-btn { border-color: var(--gold-accent); color: var(--gold-accent); }
.btn.outline.gold-btn:hover { background: var(--gold-accent); color: white; }
.btn.outline.white-btn { border-color: white; color: white; }
.btn.outline.white-btn:hover { background: white; color: var(--text-dark); }

/* --- BUTTON SHIMMER --- */
.shimmer-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #D4AF37 0%, #E8C372 50%, #D4AF37 100%);
    color: #000;
    border: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* The sweeping glare effect */
.shimmer-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    /* Sweeps every 4 seconds continuously */
    animation: shimmerSweep 4s infinite;
}

@keyframes shimmerSweep {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* Enhances the button when hovered */
.shimmer-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
}

/* A. PARALLAX HERO */
.parallax-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding-top: 0; }
.hero-bg {
    position: absolute; top: -10%; left: -10%; width: 120%; height: 120%;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.4)), url('../images/hero.webp');
    background-size: cover; background-position: center; z-index: 1; will-change: transform;
}
.particles-container { position: absolute; top:0; left:0; width:100%; height:100%; z-index: 2; pointer-events: none; background: radial-gradient(circle, rgba(197,154,92,0.1) 0%, transparent 70%); }
.parallax-hero .hero-content { position: relative; z-index: 3; text-align: center; overflow: hidden; }
.parallax-hero .hero-title { 
    font-size: 6rem; 
    line-height: 1.2; 
    margin-bottom: 20px; 
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4)); 
}
.hero-word { 
    display: inline-block; 
    transform: translateY(100%); 
    opacity: 0; 
    background: linear-gradient(to bottom, #F4DFB6 0%, #D4AF37 50%, #AA771C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 0.15em; 
}
.parallax-hero .hero-date { font-size: 1.5rem; color: var(--gold-accent); letter-spacing: 4px; text-transform: uppercase; font-weight: 700; opacity: 0; }

/* --- SCROLL INDICATOR --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    animation: subtleBob 2s ease-in-out infinite;
    opacity: 0;
    animation-delay: 1.5s; 
    animation-fill-mode: forwards;
}

@keyframes subtleBob {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
    50% { transform: translate(-50%, 8px); opacity: 0.8; }
}

/* B. SILK WARDROBE TEASER */
.wardrobe-teaser { position: relative; padding: 120px 20px; text-align: center; color: white; overflow: hidden; }
.wardrobe-teaser .custom-divider i.fa-gem { color: var(--gold-accent); font-size: 1.5rem; filter: drop-shadow(0 0 8px rgba(205, 133, 63, 0.4)); }
.wardrobe-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 150%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('../images/bg-silk-drape.webp');
    background-size: cover; background-position: center; z-index: 1; will-change: transform;
}
.wardrobe-content { position: relative; z-index: 2; max-width: 600px; margin: 0 auto; }
.wardrobe-title { color: var(--gold-accent); font-size: 3rem; margin-bottom: 10px; }
.wardrobe-content p { color: #E8DFD5; margin-bottom: 30px; font-size: 1.1rem; }

/* C. ASYMMETRICAL TIMELINE */
.timeline-section { padding: 120px 20px; max-width: 1150px; margin: 0 auto; overflow: visible; } 
.timeline-container { position: relative; margin-top: 60px; }
.timeline-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(197,154,92,0.3); transform: translateX(-50%); z-index: 1; }

.timeline-item { position: relative; width: 50%; padding: 20px; z-index: 2; display: flex; flex-direction: column; }
.timeline-item.left { left: 0; align-items: flex-end; text-align: right; }
.timeline-item.right { left: 50%; align-items: flex-start; text-align: left; }

.timeline-dot {
    position: absolute; top: 50%; width: 40px; height: 40px; background: var(--bg-color); border: 2px solid var(--gold-accent);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary);
    transform: translateY(-50%); z-index: 3; font-size: 1.2rem; transition: all 0.5s ease;
}
.timeline-item.left .timeline-dot { right: -20px; }
.timeline-item.right .timeline-dot { left: -20px; }

.timeline-card {
    background: #FFF; 
    padding: 40px; 
    border-radius: var(--radius); 
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
    
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    
    width: 420px; 
    height: 420px; 
    flex-shrink: 0; 
    
    text-align: left; 
    transition: box-shadow 0.4s ease, border-color 0.4s ease; 
    will-change: transform;
    box-sizing: border-box;
}

.timeline-icon-img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 20px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.08)); flex-shrink: 0; }
.timeline-card h3 { font-size: 1.8rem; color: var(--primary-dark); margin-bottom: 12px; line-height: 1.3; width: 100%; }

.timeline-meta { font-size: 1rem; color: #555; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; justify-content: flex-start; width: 100%; }
.timeline-item.left .timeline-meta { justify-content: flex-start; }
.timeline-item.right .timeline-meta { justify-content: flex-start; }

.timeline-item .links-row { margin-top: 20px; display: flex; gap: 15px; flex-wrap: wrap; justify-content: flex-start; width: 100%; }
.timeline-item.left .links-row { justify-content: flex-start; }
.timeline-item .action-link { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; color: var(--text-light); text-decoration: none; border-bottom: 1px solid var(--border-color); transition: color 0.3s; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.timeline-item .action-link.gold-link { color: var(--gold-darker); border-color: var(--gold-darker); }
.timeline-item .action-link:hover { color: var(--primary); border-color: var(--primary); }

@media (hover: hover) {
    .timeline-card:hover { border-color: var(--gold-accent); box-shadow: 0 20px 40px rgba(197,154,92,0.1); }
}

/* D. GLASSMORPHISM TABS (ASSISTANCE) */
.assistance-section { position: relative; padding: 120px 20px; min-height: 80vh; display: flex; align-items: center; justify-content: center; }
.assistance-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('../images/bg-lobby-blur.webp') no-repeat center center/cover; z-index: 1;
}
.assistance-container {
    position: relative; z-index: 2; width: 100%; max-width: 900px;
    background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.4); border-radius: 30px; padding: 60px 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1); text-align: center;
}
.glass-title { font-size: 3rem; color: #FFF; text-shadow: 0 2px 10px rgba(0,0,0,0.2); margin-bottom: 10px; }
.glass-sub { color: #EEE; font-size: 1.1rem; margin-bottom: 40px; }

/* --- ENHANCED TAB BUTTONS --- */
.tabs-header { 
    display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; 
    position: relative;
}
.tab-btn {
    background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #FFF;
    padding: 10px 25px; border-radius: 50px; font-size: 1rem; font-family: 'Lato', sans-serif;
    cursor: pointer; 
    opacity: 0.55; 
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0; 
    position: relative;
    overflow: hidden;
}

@media (hover: hover) {
    .tab-btn:hover:not(.active) { background: rgba(255,255,255,0.15); opacity: 0.8; transform: scale(0.98); }
}

.tab-btn.active { 
    background: rgba(212, 175, 55, 0.15); /* Subtle gold tint */
    border-color: #D4AF37; /* Gold accent */
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.1);
    color: #D4AF37;
    font-weight: bold; 
    opacity: 1; 
    transform: scale(1.08); 
}

.tabs-body { position: relative; min-height: 200px; }
.tab-content { display: none; opacity: 0; transform: translateY(20px); transition: all 0.5s ease; animation: fadeInSlideUp 0.5s ease forwards; }
.tab-content.active { display: block; opacity: 1; transform: translateY(0); }

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

.tab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.tab-card { background: rgba(255,255,255,0.9); padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: left; }
.tab-icon { font-size: 2rem; color: var(--gold-accent); margin-bottom: 15px; }
.tab-card h3 { font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 10px; }
.tab-card p { color: #555; font-size: 0.95rem; margin-bottom: 5px; }
.tab-highlight { font-weight: bold; color: var(--primary); font-size: 1.1rem !important; margin-top: 10px; }
.tab-link { display: inline-block; margin-top: 15px; color: var(--gold-darker); text-transform: uppercase; font-size: 0.85rem; font-weight: bold; text-decoration: none; border-bottom: 1px solid var(--gold-darker); }

/* E. EXPLORE MASK REVEAL */
.explore-teaser-section { 
    position: relative; 
    height: 80vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    background-color: #1C1C1C; 
}
.explore-mask-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 120%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('../images/explore-teaser.webp') center center/cover;
    will-change: transform; clip-path: inset(100% 0 0 0);
}
.explore-teaser-content { position: relative; z-index: 2; text-align: center; color: white; opacity: 0; transform: translateY(30px); }
.cinematic-title { font-size: 4rem; margin-bottom: 30px; font-weight: 400; letter-spacing: 2px; color: white;}

/* F. RSVP FINALE (REDUCED HEIGHT) */
.rsvp-finale-section {
    position: relative; 
    height: 50vh; 
    min-height: 400px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; z-index: 1;
}
.rsvp-finale-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('../images/bg-charcoal-rsvp.webp') center center/cover; z-index: 1;
}
.finale-content { position: relative; z-index: 2; text-align: center; color: var(--gold-accent); }
.finale-content .rsvp-cta-text { font-family: 'Playfair Display', serif; font-size: 3rem; margin-bottom: 40px; color: #FFF; text-shadow: 0 5px 20px rgba(0,0,0,0.5); }

/* Royal Responsive Tweaks */
@media (max-width: 768px) {
    .parallax-hero .hero-title { font-size: 3.5rem; }
    .parallax-hero .hero-date { font-size: 1.1rem; }
    
    .timeline-line { left: 30px; }
    .timeline-item { width: 100%; padding: 20px 0 20px 70px; text-align: left !important; display: block; }
    .timeline-item.left, .timeline-item.right { left: 0; text-align: left; }
    .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot { left: 10px; right: auto; }
    .timeline-card { 
        max-width: 100%; width: 100%; 
        display: flex; 
        aspect-ratio: auto; 
        height: auto; 
        padding: 30px 20px; 
    }
    
    .glass-title { font-size: 2.2rem; }
    .assistance-container { padding: 40px 20px; border-radius: 20px; }
    
    .tabs-header { 
        position: relative;
        height: 55px; 
        display: flex; 
        justify-content: center; 
        align-items: center;
        width: 100%;
        overflow: hidden; 
        padding: 0;
        margin-bottom: 40px;
    }
    
    .tab-btn { 
        position: absolute;
        padding: 10px 22px; 
        font-size: 0.95rem; 
        white-space: nowrap;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
        left: 50% !important; 
    }
    
    .tab-btn.pos-center {
        transform: translate(-50%, 0) scale(1.08) !important;
        opacity: 1 !important;
        z-index: 3 !important;
    }
    
    .tab-btn.pos-left {
        transform: translate(calc(-50% - 125px), 0) scale(0.85) !important;
        opacity: 0.4 !important;
        z-index: 1 !important;
    }
    
    .tab-btn.pos-right {
        transform: translate(calc(-50% + 125px), 0) scale(0.85) !important;
        opacity: 0.4 !important;
        z-index: 1 !important;
    }
    
    .cinematic-title { font-size: 2.5rem; }
    .finale-content .rsvp-cta-text { font-size: 2.2rem; }
}

/* --- COUNTDOWN BANNER --- */
.countdown-banner {
    background: var(--primary-dark);
    color: var(--gold-accent);
    padding: 30px 20px;
    display: flex; justify-content: center;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}
.countdown-container { display: flex; align-items: center; gap: 15px; }
.time-block { display: flex; flex-direction: column; align-items: center; min-width: 60px; }
.time-val { font-family: 'Playfair Display', serif; font-size: 2.5rem; line-height: 1; color: #FFF; }
.time-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; margin-top: 5px; color: var(--gold-accent); }
.time-colon { font-size: 2rem; color: rgba(255,255,255,0.3); margin-bottom: 15px; }

/* --- AUDIO TOGGLE --- */
.audio-toggle {
    position: fixed; bottom: 30px; left: 30px; /* Kept left to not clash with scrollbars */
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
    border: 1px solid var(--gold-accent); color: var(--primary-dark);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); cursor: pointer; z-index: 999;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    transition: transform 0.3s ease;
}
.audio-toggle:hover { transform: scale(1.1); }