/* --- Global Reset & Variables --- */
:root {
    --bg-cream: #f6f2eb;
    --text-dark: #2A2421;
    --primary-rose: #B83B5E; /* Theme Rose / Magenta Accent */
    --accent-gold: #D4AF37;
    --card-bg: rgba(255, 255, 255, 0.7);
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', sans-serif;
}


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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Upgraded Monogram Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4%;
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(42, 36, 33, 0.05);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.0px solid var(--primary-rose);
    /*padding: 0.35rem 1.2rem;*/
    padding:8px 10px;
    border-radius: 50% 0 50% 0; /* Elegant structural abstract frame */
    background: rgba(184, 59, 94, 0.03);
    text-decoration:none;
    color:inherit;
    overflow: hidden;
    box-sizing: border-box;
    min-width:75px;
}

.logo-link {
	text-decoration:none;
	color:inherit;
	display: flex;
	width: 100%;
	justify-content: center;
	align-items: center;
}


/*--.logo-link span {
    background: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px; /* Breathing room between letters screams premium
} */

.monogram-letter {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--text-dark);
	max-width:90px;
	white-space:nowrap;
	align-items:center;

}

.monogram-amp {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--primary-rose);
    margin: 0 4px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 2rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-rose);
}

.nav-rsvp-btn {
    background-color: var(--primary-rose);
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
}

/* --- Layout Layout Structures --- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
}

.content-narrow {
    max-width: 700px;
}

.grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}

/* New Three Column Layout for Celebration */
.grid-three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    color: var(--primary-rose);
    margin-bottom: 1.5rem;
}

/* --- Button Frameworks --- */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-rose);
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    margin-top: 1.5rem;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #912A47;
}

.btn-secondary {
    display: inline-block;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: var(--text-dark);
    color: var(--bg-cream);
}

/* --- Section 1: Hero Frame --- */
.hero-section {
    min-height: 100vh;      /* Fallback */
    min-height: 100svh;     /* Perfect height for mobile screens */
    display: flex;
    flex-direction: column; /* Switches alignment to vertical stack control */
    justify-content: center; /* Centers everything vertically safely */
    align-items: center;
    padding-top: 90px;      /* Gives breathing room below your sticky menu */
    padding-bottom: 20px;   /* CRITICAL: Forces a safety gap at the very bottom */
    box-sizing: border-box; /* Ensures the padding doesn't stretch the page container */
	margin-bottom: 0 !important
}

.hero-container {
    /* 1. Shatter any rigid height limits causing the overflow */
    height: auto !important; 
    
    /* 2. Force it to take up the available vertical space safely */
    min-height: 100%; 
    
    /* 3. Keep layout items centered and stacked cleanly */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* 4. The safety shield: force a 40px gap below the RSVP button */
    padding-bottom: 40px !important; 
    box-sizing: border-box;
}

.hero-image-block {
    flex: 1;
    padding: 2rem;
}

.hero-img {
    width: 100%;
    height: 75vh;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.hero-text-block {
    flex: 1;
    padding: 5rem;
    text-align: center;
    position: relative;
    background-color: #FDFBF7; /* Base cream */
    
    /* Creates a beautiful, soft arch silhouette in the center */
    background-image: radial-gradient(ellipse at bottom, #F4EFE6 0%, #F4EFE6 70%, transparent 70%);
    background-size: 140% 180%;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: var(--accent-gold);
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin: 1.5rem 0;
}

.ampersand {
    font-size: 3rem;
    font-style: italic;
    color: var(--primary-rose);
}

.hero-date {
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-top: 2rem;
}

.hero-date-detail {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--primary-rose);
	margin-bottom: 0.2rem;
}

/* --- Section 2: Story Styles --- */
.story-section {
    background-color:var(--bg-cream);
    padding-top: 0px !important;
    margin-top: 0 !important;
}

.story-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    color: #555;
    margin-bottom: 2rem;
}

.editorial-line {
    width: 60px;
    height: 1px;
    background-color: var(--accent-gold);
    margin: 0 auto;
}

/* --- Section 3: Upgraded Frosted Celebration Cards --- */
.schedule-section {
    background: linear-gradient(135deg, #FDFBF7 0%, #F5EFE6 100%);
}

/*
.event-card {

	position:relative;
	background:linear-gradient(rgba(246, 242, 235, 0.9), rgba(255, 255, 255, 0.65)), 
                url("Wedding.jpg") no-repeat center center !important;
	background-size: 50%;
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(42, 36, 33, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.4s ease;
}
*/

/*
.event-card {
    position: relative;
    /* Combine layers correctly: gradients first, then images. 
       The positioning, repeat, and !important apply to the final layer chain. */
/*
    background: linear-gradient(rgba(246, 242, 235, 0.5), rgba(255, 255, 255, 0.75)), 
                url("Wedding.jpg") center center / 100% no-repeat !important;
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 370px;
    padding: 3rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(42, 36, 33, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.4s ease;
}
*/

.event-card {
    position: relative;
    
    /* 
       Updated Gradient Combination:
       - Top (rgba(253, 250, 246, 0.45)): A soft, warm ivory/alabaster cream. 
         This keeps the top of the card bright and clean so your title and sparkles pop.
       - Bottom (rgba(255, 222, 226, 0.45)): A beautiful, delicate rose-blush pink.
       - Image (url("Wedding.jpg")): Sits right beneath the gradient layers.
       - Fallback (rgba(253, 250, 246, 0.8)): Matches the warm cream tone.
    */
    background: linear-gradient(
                    to bottom, 
                    rgba(253, 250, 246, 0.95), 
                    rgba(255, 222, 226, 0.65)
                ), 
                url("Wedding1.jpg") center center / 100% no-repeat,
                rgba(253, 250, 246, 0.8) !important;
                
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    min-height: 400px; 
    padding: 3rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(42, 36, 33, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.4s ease;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Ensure deep, high-contrast colors for crisp readability over the cream-to-pink gradient */
.event-card h3 {
    color: #1a110f !important; /* Velvet Dark Chocolate (much softer than pure black, looks premium) */
	font-weight:650 !important;
}

.event-card p {
    color: #4a4240 !important;
	font-weight:500;
	text-shadow:0 2px 2px rgba(255, 255, 255, 1.0);

}

/* This deeper rose hue will tie in beautifully with the pink gradient at the bottom */
.event-card .time {
    color: #7B3F00 !important; /* Rich, elegant berry-rose */
    font-weight: 600 !important;
        /* A precise, soft dark drop shadow that instantly separates the gold text 
       from both the light upper gradient and the dark lower clothing textures */
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8), 
                 -2px -2px -1px rgba(0, 0, 0, 0.5) !important;
                 
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(184, 59, 94, 0.08);
    border: 1px solid rgba(184, 59, 94, 0.15);
}

/*
.highlight-card {
    background: linear-gradient(rgba(246, 242, 235, 0.5), rgba(255, 255, 255, 0.75)), 
                url("Reception.jpg") center center / 100% no-repeat !important;
    border: 1px solid rgba(212, 175, 55, 0.3);
}
*/

.highlight-card {
    position: relative;
    
    /* Updated Gradient Combination for Evening Reception:
       - Top (rgba(253, 250, 246, 0.45)): The same warm ivory cream as the ceremony card.
         This maintains continuity across your site and keeps the top title area bright.
       - Bottom (rgba(20, 31, 54, 0.65)): A deep, rich midnight navy blue overlay.
         This darkens the bottom half of the card beautifully so details slice right through.
       - Image (url("Reception.jpg")): Sits beneath the gradient layers.
       - Fallback (rgba(20, 31, 54, 0.85)): A rich navy fallback color.
    */
    background: linear-gradient(
                    to bottom, 
                    rgba(253, 250, 246, 0.8), 
                    rgba(20, 31, 54, 0.8)
                ), 
                url("Reception.jpg") center center / 100% no-repeat,
                rgba(20, 31, 54, 0.85) !important;
                
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Matching the structural sizing and styles of your event card */
    min-height: 400px; 
    padding: 3rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(42, 36, 33, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.4s ease;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* --- Readability Rules Tailored for the Navy Card --- */

/* The title sits on the upper cream layer: keep it dark espresso */

.highlight-card h3 {
    color: #fdfaf6 !important;
    font-weight:600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important; 
}

/* The date sits in the middle transition: use a vibrant, bright gold 
   or deep rose that works beautifully against the incoming blue */

.highlight-card .time {
    /* A rich, deep antique gold that matches the image accents */
    color: #FFD700 !important; 
    
    /* Boost the font weight so the letters have enough physical thickness to be readable */
    font-weight: 600 !important;
    
    /* A precise, soft dark drop shadow that instantly separates the gold text 
       from both the light upper gradient and the dark lower clothing textures */
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8), 
                 -1px -1px 2px rgba(0, 0, 0, 0.5) !important;
                 
    /* Optional: Slight letter spacing makes elegant serif/sans-serif headers easier to read */
    letter-spacing: 0.5px; 
}

/* The details sit on the lower navy layer: use crisp, soft off-white 
   so the paragraph text reads effortlessly against the dark background */
.highlight-card p {
    color: #fdfaf6 !important; /* Alabaster off-white */
    font-weight: 500;          /* Slightly thicker weight for pristine clarity */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); /* Subtle dark shadow to isolate text from busy image parts */
}

.event-icon {
    font-size: 2.5rem;
    display: inline-block;
    margin-bottom: 1.2rem;
}

.event-card h3 {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}


.event-card .time {
/*
    color: var(--primary-rose);
*/
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;

}


.event-details {
    font-size: 0.9rem;
    color: #555;
}

/* --- Section 4: Venue Structure Upgrades --- */
.venue-card {
    background-color: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 5px 20px rgba(0,0,0,0.01);
}

.venue-tag {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.venue-name {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.venue-address {
    color: #666;
    font-size: 0.95rem;
}

/* --- Section 5: RSVP Split Framework --- */
.rsvp-section {
    background-color: #F7F3EC;
}

.rsvp-sub {
    margin-bottom: 1rem;
}

.rsvp-form-block h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-rose);
}

.form-wrapper {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.04);
}

/* --- Footer --- */
footer {
    padding: 3rem 0;
    background-color: var(--text-dark);
    color: var(--bg-cream);
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* --- Responsive Layout (Mobile View) --- */
@media (max-width: 900px) {
    .navbar {
        padding: 1rem 5%;
    }
    
    nav a {
        margin-left: 0.8rem;
        font-size: 0.75rem;
    }

    .hero-container {
        flex-direction: column;
    }

    .hero-image-block, .hero-text-block {
        flex: none;
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .hero-img {
        height: 45vh;
    }

    .hero-title {
        font-size: 3rem;
    }

    .grid-two-col, .grid-three-col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
}

/* --- Countdown Timer Styles --- */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.0rem;
    margin: 0rem 0 1.5rem 0; /* Changed from '2.5rem 0' to reduce top space */
    padding: 0.5rem; /* Slightly reduced padding */
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(184, 59, 94, 0.1);
    padding: 0.8rem 0.5rem;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.countdown-number {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--primary-rose);
    line-height: 1;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-top: 0.4rem;
}

/* Ensure font size scales smoothly on smaller mobile screens */
@media (max-width: 480px) {
    .countdown-container {
        gap: 0.8rem;
    }
    .countdown-box {
        min-width: 60px;
        padding: 0.6rem 0.3rem;
    }
    .countdown-number {
        font-size: 1.8rem;
    }
    .countdown-label {
        font-size: 0.65rem;
    }
}

/* Container holding the animation */
#petal-canvas {
    position: relative;
    background: linear-gradient(to bottom, #FDFBF7, #F5EFE6); /* Seamless background tint */
    overflow: hidden;
    height: 75vh;
}

/* Individual petal styles generated by code */
.falling-petal {
    position: absolute;
    top: -20px;
    pointer-events: none;
    animation: linear infinite;
}

/* Core gravity drop animation */
@keyframes fallAnimation {
    0% {
        top: -5%;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.9;
    }
    100% {
        top: 105%;
        transform: translateX(100px) rotate(360deg);
        opacity: 0;
    }
}


/* --- The Nuclear Mobile Overflow Reset --- */
html, body, .hero-section, .hero-container {
    height: auto !important;
    min-height: 100svh !important;
    max-height: none !important;
    overflow: visible !important;
}

.hero-text-block {
    height: auto !important;
    padding-bottom: 50px !important; /* Forces the buffer directly inside the text/button block */
    box-sizing: border-box !important;
}

/* --- Mobile Navbar Optimization --- */
@media (max-width: 600px) {
    /* 1. Force the master navigation bar to sit on one row */
    nav, .navbar, header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 2. Scale down the logo frame container */
    nav > :first-child, .brand-logo, [class*="logo"] {
		font-size: 11px !important;
		font-weight:600;
		overflow:hidden;
		max-width:90px;
		white-space: nowrap !important;
        max-width: 65px !important; /* Slightly smaller to give the links breathing room */
        height: auto !important;
    }

    /* 3. THE LINK LOCKER: Group all text links into a single-line row container */
    nav ul, .nav-links, nav div:not(:first-child):not(:last-child) {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important; /* Tight space between menu items */
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 4. UNIFY FONTS: Force ALL text elements inside the menu to look identical */
    nav a, nav span, .nav-links a, .nav-links span {
        font-family: inherit !important;
        font-size: 11px !important; /* Small, elegant typography for mobile screens */
        font-weight: 500 !important;
        text-transform: capitalize !important;
        margin: 0 !important;
        letter-spacing: 0px !important;
        white-space: nowrap !important; /* Absolute guarantee they stay on one line */
    }

    /* 5. Make the RSVP button perfectly proportional to the new row text */
    nav a[href*="rsvp"], nav button, header button, .rsvp-btn {
        font-size: 11px !important;
        padding: 5px 10px !important;
        margin-left: 4px !important;
        white-space: nowrap !important;
    }
}

