/* =========================================
   VARIABLES & SETUP
========================================= */
:root {
    /* Colors */
    --c-burgundy: #6b1527;
    --c-burgundy-dark: #4a0d19;
    
    --c-gold: #D4AF37;
    --c-gold-hover: #F3E5AB;
    
    --c-navy: #0F172A;
    --c-navy-light: #1E293B;
    
    --c-black: #050505;
    
    --c-cream: #FDFBF7;
    --c-cream-muted: #E2E0D8;
    
    --c-text-dark: #1A1A1A;
    --c-text-muted: #6B7280;
    
    --c-success: #10B981;
    --c-danger: #EF4444;
    
    /* Typography */
    --f-heading: 'Cormorant Garamond', serif;
    --f-body: 'Mulish', sans-serif;
    
    /* UI */
    --t-base: 0.3s ease;
    --radius: 4px;
    --radius-lg: 8px;
    --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--f-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--c-navy);
}

/* =========================================
   TYPOGRAPHY & UTILITIES
========================================= */
h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--f-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--c-gold);
    transition: var(--t-base);
}

ul { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container-medium { max-width: 800px; }

.section { padding: 6rem 0; }

/* Colors */
.bg-cream { background-color: var(--c-cream); }
.bg-navy { background-color: var(--c-navy); }
.bg-burgundy { background-color: var(--c-burgundy); }
.bg-black { background-color: var(--c-black); }

.text-cream { color: var(--c-cream); }
.text-cream-muted { color: var(--c-cream-muted); }
.text-navy { color: var(--c-navy); }
.text-burgundy { color: var(--c-burgundy); }
.text-gold { color: var(--c-gold); }
.text-muted { color: var(--c-text-muted); }
.text-success { color: var(--c-success); }
.text-danger { color: var(--c-danger); }

/* Spacing & Alignment */
.text-center { text-align: center; }
.italic { font-style: italic; }
.text-uppercase { text-transform: uppercase; }
.letter-spacing-2 { letter-spacing: 2px; }

.text-lg { font-size: 1.1rem; }
.text-xl { font-size: 1.5rem; }
.text-2xl { font-size: 2.5rem; }
.font-size-sm { font-size: 0.9rem; }
.fw-600 { font-weight: 600; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.ml-3 { margin-left: 1rem; }

.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.pt-5 { padding-top: 4rem; }
.pb-0 { padding-bottom: 0; }
.w-100 { width: 100%; }

.align-center { align-items: center; }
.justify-center { justify-content: center; }

/* Grids */
.grid-2-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 2rem; }
.gap-5 { gap: 4rem; }

/* Borders & Shadows */
.border-gold { border: 1px solid rgba(212, 175, 55, 0.3); }
.border-top-gray { border-top: 1px solid rgba(255,255,255,0.05); }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.box-shadow-xl { box-shadow: var(--shadow-xl); }

/* Common UI */
.section-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--c-navy);
    color: var(--c-navy);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}
.section-badge.badge-light {
    border-color: var(--c-gold);
    color: var(--c-gold);
}
.section-title { font-size: 3rem; line-height: 1.1; }

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-flex; justify-content: center; align-items: center;
    font-family: var(--f-body); font-weight: 600; font-size: 0.95rem;
    padding: 0.8rem 2rem; text-transform: uppercase; letter-spacing: 1px;
    border: 1px solid transparent; border-radius: var(--radius);
    cursor: pointer; transition: var(--t-base);
}
.btn-gold {
    background-color: transparent; color: var(--c-gold); border-color: var(--c-gold);
}
.btn-gold:hover {
    background-color: var(--c-gold); color: var(--c-navy);
}
.btn-gold-solid {
    background-color: var(--c-gold); color: var(--c-navy);
}
.btn-gold-solid:hover {
    background-color: var(--c-gold-hover);
}
.btn-outline-cream {
    background-color: transparent; color: var(--c-cream); border-color: var(--c-cream);
}
.btn-outline-cream:hover {
    background-color: var(--c-cream); color: var(--c-navy);
}

/* =========================================
   BACKGROUND SPARKLE (JS Generated)
========================================= */
.sparkle-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 100; pointer-events: none; overflow: hidden; mix-blend-mode: screen;
}
.sparkle {
    position: absolute; width: 3px; height: 3px; background: var(--c-gold); border-radius: 50%;
    filter: blur(1px); animation: twinkle linear infinite; opacity: 0;
}
@keyframes twinkle { 0% { opacity: 0; transform: scale(0.5) translateY(0); } 50% { opacity: 0.8; transform: scale(1) translateY(-20px); } 100% { opacity: 0; transform: scale(0.5) translateY(-40px); } }

/* =========================================
   NAVIGATION
========================================= */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 1.5rem 0; z-index: 999; transition: var(--t-base);
    background: linear-gradient(to bottom, rgba(15,23,42,0.9) 0%, transparent 100%);
}
.navbar.scrolled {
    padding: 1rem 0; background: rgba(5, 5, 5, 0.95); backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-icon { color: var(--c-gold); font-size: 1.5rem; }
.logo-text { font-family: var(--f-heading); color: var(--c-cream); line-height: 1; font-size: 1.3rem; letter-spacing: 1px; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-item { color: var(--c-cream); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-item:hover { color: var(--c-gold); }

.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--c-gold); cursor: pointer; }

/* Mobile Menu */
.mobile-menu {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background: var(--c-black); z-index: 1001; transition: 0.4s ease-in-out;
    display: flex; align-items: center; justify-content: center;
}
.mobile-menu.active { right: 0; }
.mobile-menu-inner { display: flex; flex-direction: column; width: 80%; text-align: center; gap: 1.5rem; }
.close-mobile { position: absolute; top: 2rem; right: 2rem; background: none; border: none; color: var(--c-gold); font-size: 2rem; cursor: pointer; }
.mobile-nav-item { font-family: var(--f-heading); font-size: 1.5rem; color: var(--c-cream); text-transform: uppercase; letter-spacing: 2px; }
.mobile-nav-item:hover { color: var(--c-gold); font-style: italic; }

/* =========================================
   HERO
========================================= */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--c-black); }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
    background: url('https://images.unsplash.com/photo-1517260739337-6799d239ce83?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.4;
}

/* Curtain effect */
.hero-curtain { position: absolute; top: 0; width: 50%; height: 100%; background: var(--c-burgundy); z-index: 3; transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1); }
.hero-left { left: 0; transform-origin: left; }
.hero-right { right: 0; transform-origin: right; }
.hero.loaded .hero-left { transform: scaleX(0); }
.hero.loaded .hero-right { transform: scaleX(0); }

.hero-container { position: relative; z-index: 10; padding-top: 80px; }
.subtitle { font-family: var(--f-body); color: var(--c-gold); text-transform: uppercase; letter-spacing: 3px; font-size: 0.9rem; margin-bottom: 1.5rem; font-weight: 600; }
.hero-title { font-size: clamp(3.5rem, 6vw, 5rem); color: var(--c-cream); margin-bottom: 2rem; }

.hero-details { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; }
.detail-item { color: var(--c-cream); font-size: 1rem; font-weight: 500; display: flex; align-items: center; gap: 0.5rem; }
.detail-line { color: rgba(255,255,255,0.2); }

/* =========================================
   THEME SECTION
========================================= */
.theme-highlights li { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; font-weight: 600; font-size: 1.1rem; }

.theme-visual { display: flex; justify-content: center; }
.img-frame-gold { position: relative; padding: 1rem; }
.img-frame-gold::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border: 2px solid var(--c-gold); border-radius: var(--radius); transform: rotate(-3deg); z-index: 0; transition: var(--t-base);
}
.img-frame-gold:hover::before { transform: rotate(0); }
.img-fluid { width: 100%; max-width: 400px; height: auto; position: relative; z-index: 1; box-shadow: var(--shadow-xl); filter: contrast(1.1); }

/* =========================================
   ITINERARY
========================================= */
.itinerary-timeline { position: relative; padding: 2rem 0; text-align: left; max-width: 600px; margin: 0 auto; }
.itinerary-timeline::before {
    content: ''; position: absolute; top: 0; left: 90px; height: 100%; width: 1px;
    background: rgba(212, 175, 55, 0.3);
}

.itinerary-item { display: flex; gap: 3rem; margin-bottom: 2.5rem; position: relative; }
.itinerary-item::before {
    content: ''; position: absolute; left: 86px; top: 5px; width: 9px; height: 9px;
    background: var(--c-gold); border-radius: 50%; box-shadow: 0 0 10px rgba(212,175,55,0.8);
}
.time-stamp { width: 60px; font-family: var(--f-heading); color: var(--c-gold); font-size: 1.1rem; font-weight: 600; text-align: right; }
.event-details h4 { color: var(--c-cream); font-size: 1.3rem; margin-bottom: 0.3rem; }
.event-details p { color: var(--c-cream-muted); font-size: 0.95rem; }

/* =========================================
   HIGHLIGHTS (Specials)
========================================= */
.highlight-card {
    background: rgba(0,0,0,0.15); border: 1px solid rgba(212,175,55,0.2);
    padding: 2rem; border-radius: var(--radius); text-align: center; transition: var(--t-base);
}
.highlight-card:hover { transform: translateY(-5px); background: rgba(0,0,0,0.3); border-color: var(--c-gold); }
.hc-icon { font-size: 2rem; margin-bottom: 1rem; }
.highlight-card h3 { font-size: 1.5rem; }

/* =========================================
   INFO (Dress Code & Tables)
========================================= */
.dc-list li { margin-bottom: 0.8rem; font-size: 0.95rem; display: flex; gap: 0.8rem; align-items: flex-start; }
.dc-list i { margin-top: 0.3rem; }

/* =========================================
   SCROLLING GALLERY
========================================= */
.gallery-scroll-wrapper { width: 100vw; margin-left: calc(-50vw + 50%); overflow: hidden; position: relative; display: flex; }
.gallery-track { display: flex; gap: 1rem; animation: scrollTrack 30s linear infinite; width: fit-content; padding-bottom: 2rem; }
.gallery-track:hover { animation-play-state: paused; }
.gallery-track img { width: 300px; height: 200px; object-fit: cover; opacity: 0.6; transition: var(--t-base); border-radius: 2px; }
.gallery-track img:hover { opacity: 1; transform: scale(1.05); }

@keyframes scrollTrack { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 0.5rem)); } }

/* =========================================
   SPONSORS
========================================= */
.sponsor-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; align-items: center; }
.sponsor-item { font-family: var(--f-heading); font-size: 1.25rem; letter-spacing: 2px; opacity: 0.5; transition: var(--t-base); }
.sponsor-item:hover { opacity: 1; color: var(--c-gold); }

/* =========================================
   RSVP FORM
========================================= */
.rsvp-section { position: relative; background: url('https://images.unsplash.com/photo-1519671482749-fd09be7ccebf?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed; }
.rsvp-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,23,42,0.85); }
.rsvp-wrapper { position: relative; z-index: 2; }

.form-group label { display: block; font-size: 0.85rem; color: var(--c-cream); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 1px; }
.form-control {
    width: 100%; padding: 0.8rem 1rem; border: 1px solid rgba(255,255,255,0.2); border-radius: 2px;
    background: rgba(0,0,0,0.2); color: var(--c-cream); font-family: var(--f-body); transition: var(--t-base);
}
.form-control:focus { outline: none; border-color: var(--c-gold); background: rgba(0,0,0,0.4); }
.form-control option { background: var(--c-burgundy); color: var(--c-cream); }

/* =========================================
   FOOTER
========================================= */
.social-links a { color: var(--c-gold); margin: 0 1rem; font-size: 1.1rem; }
.social-links a:hover { color: var(--c-cream); }

/* =========================================
   MEDIA QUERIES
========================================= */
@media (max-width: 991px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .grid-2-cols { grid-template-columns: 1fr; }
    .theme-visual { order: -1; margin-bottom: 2rem; }
}
@media (max-width: 576px) {
    .hero-title { font-size: 2.5rem; }
    .hero-actions { display: flex; flex-direction: column; gap: 1rem; }
    .hero-actions .ml-3 { margin-left: 0; }
    .itinerary-timeline::before { left: 0; }
    .itinerary-item::before { left: -4px; }
    .time-stamp { width: auto; text-align: left; }
    .itinerary-item { flex-direction: column; gap: 0.5rem; padding-left: 1.5rem; }
    .rsvp-wrapper { padding: 1.5rem !important; }
}
