/* ==========================================
   1. COLOR PALETTE, FONTS & BASE RESETS
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #2b2b2b;
    line-height: 1.6;
    background-color: #faf9f6; /* Warm off-white */
}

/* ==========================================
   2. STICKY NAVIGATION BAR (DESKTOP DEFAULT)
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: #34495e; /* Premium deep blue-grey */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2); 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Strictly hide the checkbox mechanism on all devices */
.menu-checkbox {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    position: absolute;
}

/* Hide hamburger menu button on Desktop */
.hamburger-btn {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    z-index: 1100;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: #dfb76c; /* Elegant muted gold */
    transition: all 0.3s ease-in-out;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: #dfb76c;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-right: 25px;
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
    padding-bottom: 6px;
    transition: color 0.3s ease;
}

/* Premium Slider Hover Underline Effect */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background-color: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after, 
.nav-links a.active::after {
    width: 80%;
}

.nav-links a:hover, 
.nav-links a.active {
    color: #ffffff;
}

/* Centered Monogram Image Wrapper */
.nav-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.logo-image {
    max-height: 70px; 
    width: auto;      
    display: block;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.logo-image:hover {
    transform: scale(1.05);
}

/* Premium Gold RSVP Button */
.nav-rsvp {
    display: flex;
    align-items: center;
}

.rsvp-top-button {
    display: inline-block;
    padding: 10px 28px;
    background-color: #dfb76c;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(223, 183, 108, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.rsvp-top-button:hover {
    background-color: #c9a054;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(223, 183, 108, 0.4);
}

/* ==========================================
   3. HERO BACKGROUND LAYOUT & PARALLAX EFFECT
   ========================================== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 90px;
    background-color: #2c3e50;
}

.parallax-bg {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('hero-bg.jpg') no-repeat center center; 
    background-size: cover;
    z-index: 0;
    will-change: transform;
    animation: imageScale 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@media (pointer: coarse) {
    .parallax-bg {
        position: absolute;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.4); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 0 3px 15px rgba(0,0,0,0.3);
}

.hero-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: 8px;
    text-shadow: 0 3px 15px rgba(0,0,0,0.3);
}

/* ==========================================
   4. INTERACTIVE HOVER CARDS & GENERAL LAYOUT
   ========================================== */
.content-container {
    position: relative;
    z-index: 10;
    background-color: #faf9f6;
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 20px;
}

.info-section {
    text-align: center;
    margin-bottom: 140px;
}

h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: #34495e;
}

.subtitle {
    font-size: 1rem;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    color: #7f8c8d;
    margin-top: 6px;
    letter-spacing: 1px;
}

.divider {
    width: 60px;
    height: 1px;
    background-color: #dfb76c;
    border: none;
    margin: 30px auto;
    position: relative;
    transition: width 0.4s ease;
}

.info-section:hover .divider {
    width: 100px;
}

.section-text {
    font-size: 1.05rem;
    font-weight: 300;
    color: #555555;
    max-width: 650px;
    margin: 0 auto;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.event-card {
    background: #ffffff;
    padding: 40px 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #dfb76c;
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.event-card:hover::before {
    transform: scaleX(1);
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(52, 73, 94, 0.08);
    border-color: rgba(212, 175, 55, 0.15);
}

.event-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #34495e;
    margin-bottom: 12px;
}

.event-card .time {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #dfb76c;
    margin: 12px 0;
    font-weight: 400;
}

.event-card .venue {
    font-size: 0.95rem;
    color: #666666;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 14px 40px;
    background-color: transparent;
    color: #34495e;
    border: 1px solid #34495e;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button:hover {
    background-color: #34495e;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(52, 73, 94, 0.15);
    transform: translateY(-1px);
}

/* ==========================================
   5. KEYFRAME VELOCITY TRANSITIONS
   ========================================== */
.animate-fade-up {
    animation: fadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-fade-up-delay {
    animation: fadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

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

@keyframes imageScale {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

/* ==========================================
   6. RESPONSIVE GLOBAL MOBILE OVERRIDES
   ========================================== */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px !important;
        height: 90px !important;
        position: fixed !important;
    }
    
    /* Reveal Mobile Hamburger Button on Left */
    .hamburger-btn {
        display: flex !important;
    }

    /* Force Logo to stay strictly centered */
    .nav-logo {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .logo-image {
        max-height: 50px !important;
    }

    /* Target Right Positioning for RSVP */
    .nav-rsvp {
        position: relative !important;
    }
    
    .rsvp-top-button {
        padding: 8px 16px !important;
        font-size: 0.75rem !important;
    }

    /* Hide standard horizontal links and transform into hidden side drawer */
    .nav-links {
        position: fixed !important;
        top: 90px !important;
        left: -100% !important; /* Tucked cleanly off-screen left */
        width: 260px !important;
        height: calc(100vh - 90px) !important;
        background-color: #34495e !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 40px 25px !important;
        gap: 25px !important;
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2) !important;
    }

    .nav-links a {
        margin-right: 0 !important;
        font-size: 1rem !important;
        letter-spacing: 2px !important;
        width: 100% !important;
        color: #dfb76c !important;
    }
    
    .nav-links a::after {
        display: none !important; /* Remove line animation on mobile menu */
    }

    /* Slide drawer out when menu toggle checkbox state is activated */
    .menu-checkbox:checked ~ .nav-links {
        left: 0 !important;
    }

    /* Turn hamburger lines into an "X" close icon when active */
    .menu-checkbox:checked ~ .hamburger-btn .hamburger-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg) !important;
    }

    .menu-checkbox:checked ~ .hamburger-btn .hamburger-line:nth-child(2) {
        opacity: 0 !important;
    }

    .menu-checkbox:checked ~ .hamburger-btn .hamburger-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg) !important;
    }

    /* Hero Text Adjustments */
    .hero-title {
        font-size: 2.8rem !important;
    }
    
    .hero-date {
        font-size: 2.2rem !important;
        letter-spacing: 4px !important;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    .content-container {
        padding: 60px 20px !important;
    }
    
    .info-section {
        margin-bottom: 80px !important;
    }

    /* Mobile Only Background Focus Realignment:
       Using 85% center shifts the focus box framework to the right edge,
       re-centering Daryl perfectly on narrow phone screens!
    */
    .parallax-bg {
        background-position: 85% center !important;
    }
}
