/* --- THE UNIVERSAL BREATHE SYSTEM & GLOBALS --- */
:root {
    --sage-green: #58705B;      /* Deep, elegant forest/sage */
    --pink-peach: #E3B6B0;      /* Soft, dusty rose */
    --creamy-ivory: #F9F4E8;    /* Kept as the light 'paper' base for readability */
    --terracotta: #8A614A;      /* Rich mocha/warm brown for main text and accents */
    --champagne-gold: #DFBFA9;  /* Warm sand/beige for subtle metallic accents */
}

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

html {
    /* Fluid typography base */
    font-size: clamp(14px, 1vw + 10px, 18px); 
    scroll-behavior: smooth;
}

body {
    background-color: var(--creamy-ivory);
    font-family: 'Montserrat', sans-serif;
    
    /* Prevent horizontal scrolling/shaking */
    overflow-x: hidden; 
    
    /* Elegant, crisp font rendering on Apple devices */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; 
}

/* ==========================================================================
   HERO SECTION (LUXURY DESKTOP & MOBILE)
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; 
    background-image: url('https://firebasestorage.googleapis.com/v0/b/wedding-invite-91244.firebasestorage.app/o/Her-Update-Desktop.jpg?alt=media&token=7c622aa8-5ca7-4536-a56d-386b56434efb');
    background-size: 100% 100%; 
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: imageSettle 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@media (max-width: 768px) {
    .hero {
        background-image: url('https://firebasestorage.googleapis.com/v0/b/wedding-invite-91244.firebasestorage.app/o/Hero-Update-mobile.jpg?alt=media&token=9891a7c5-ebd9-4f20-9b2c-c1e2406b8a97') !important;
        aspect-ratio: auto !important; 
        height: 100dvh !important; 
        width: 100% !important;
        background-size: cover !important;
        background-position: center center !important;
        border: none !important;
        outline: none !important;
        padding-bottom: 0 !important;
    }
}

/* ==========================================================================
   THE FINE ART GALLERY WALL (MASONRY LAYOUT - NO CROPPING)
   ========================================================================== */
.framed-gallery-section {
    width: 100%;
    background-color: #F9F4E8; 
    /* Put the padding back to a normal size for the inside */
    padding: 0 5% 100px 5%; 
    /* Use MARGIN to push the next section completely away */
    margin-bottom: 180px !important; 
}

.framed-gallery-section .gallery-header {
    padding: 100px 20px 20px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 1. The Masonry Wall Engine */
.framed-grid {
    display: block; 
    column-count: 3; /* 3 columns of art on desktop */
    column-gap: 40px; 
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* 2. The Physical Frame Build */
.framed-item {
    position: relative;
    width: 100%;
    margin-bottom: 40px; /* Space below each frame */
    
    /* CRITICAL: Prevents frames from snapping in half across columns */
    display: inline-block; 
    
    background-color: #ffffff; 
    padding: 12px; 
    border: 1px solid rgba(225, 193, 110, 0.4); 
    border-radius: 3px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06); 
    
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.framed-item:hover {
    transform: translateY(-8px) scale(1.02); 
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

/* 3. The Uncropped Image */
.framed-item img {
    width: 100%;
    height: auto; /* THE MAGIC BULLET: Lets the photo decide its own height! */
    display: block;
    border: 1px solid rgba(166, 75, 42, 0.15); 
}

/* 4. Mobile Adjustments (Pixel 8 Pro Ready) */
@media (max-width: 768px) {
    .framed-gallery-section {
        padding: 0 15px 80px 15px; 
    }
    
    .framed-grid {
        column-count: 2; /* 2 columns on phones */
        column-gap: 15px;
    }
    
    .framed-item {
        margin-bottom: 15px;
        padding: 8px; /* Thinner matting for mobile */
    }
}
/* ==========================================================================
   THE INVITATION BLOCK (STATIONERY DESIGN)
   ========================================================================== */
.invitation-block {
    text-align: center;
    
    /* Pushes the block away from the gallery and RSVP sections */
    margin: 150px 5% 150px 5%; 
    
    /* The space between the dark edge and the thin inner line */
    padding: 60px; 
    
    /* The rich, earthy background color from your mockup */
    background-color: #8B6552; 
    
    /* Makes all default text in this box your creamy ivory color */
    color: #F9F4E8; 
    
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); /* Soft drop shadow */
}

.invitation-inner {
    max-width: 800px;
    margin: 0 auto;
    
    /* The delicate, faint inner frame */
    border: 1px solid rgba(249, 244, 232, 0.25); 
    
    /* The space inside the frame, around the text */
    padding: 80px 40px; 
}

/* The "With great joy and love" text */
.intro-text {
    font-family: 'Montserrat', sans-serif; 
    font-size: 0.85rem;
    color: #F9F4E8;
    letter-spacing: 5px; /* Widely spaced out */
    text-transform: uppercase;
    margin-bottom: 30px;
}

/* Gary & Sugar */
.couple-names-small {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem; /* Larger and more elegant */
    color: #FFFFFF;
    font-weight: 400;
    margin: 0 0 30px 0;
    line-height: 1;
}

.couple-names-small .ampersand {
    font-size: 3.5rem;
    color: #F9F4E8;
    font-style: italic;
    margin: 0 15px;
    font-weight: 300;
}

/* The "invite you to share..." text */
.main-invite {
    font-family: 'Cormorant Garamond', serif; /* Changed to match the elegant serif in the photo */
    font-size: 1.6rem;
    font-style: italic; /* Matches the photo */
    line-height: 1.8;
    color: #F9F4E8;
}

/* Those elegant little divider lines */
.accent-line {
    width: 60px;
    height: 1px;
}
.invitation-inner .accent-line.peach { 
    margin: 0 auto 30px auto; /* Pushed up */
    background-color: rgba(249, 244, 232, 0.7); /* Lightened so it pops on the dark background */
}
.invitation-inner .accent-line.sage { 
    margin: 40px auto 0 auto; /* Pushed down */
    background-color: #7A8E7E; /* Classic Sage */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .invitation-block {
        margin: 100px 15px; /* Smaller gaps on the outside for phones */
        padding: 25px; /* Thinner outer border */
    }
    .invitation-inner {
        padding: 50px 20px; /* Thinner inner frame */
    }
    .couple-names-small {
        font-size: 3rem;
    }
    .main-invite {
        font-size: 1.3rem;
    }
}

/* --- STORY SECTION --- */
.story-section {
    padding: 120px 5%; 
    background-color: var(--creamy-ivory);
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem; 
    text-align: center;
    color: var(--terracotta);
    margin-bottom: 100px; 
    letter-spacing: 3px;
    font-weight: 300; 
}

.story-timeline {
    max-width: 1100px;
    margin: 0 auto;
}

.story-row {
    display: flex;
    align-items: center;
    gap: 80px; 
    margin-bottom: 120px; 
}

.story-row.reverse {
    flex-direction: row-reverse;
}

.story-text {
    flex: 1;
    padding: 0 20px; 
}

/* The "Fine Art Matted Photograph" Effect */
.story-image {
    flex: 1;
    background-color: #ffffff; 
    padding: 15px; 
    border: 1px solid rgba(223, 191, 169, 0.4); /* Updated Sand/Beige */
    box-shadow: 0 25px 50px rgba(0,0,0,0.05); 
    position: relative;
}

.story-image::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 40px;
    width: 60px;
    height: 1px;
    background-color: var(--sage-green); 
}

.story-row.reverse .story-image::after {
    left: auto;
    right: 40px;
    background-color: var(--pink-peach); 
}

.story-image img {
    width: 100%;
    height: 500px; 
    object-fit: cover;
    display: block;
}

.story-year {
    font-family: 'Montserrat', sans-serif;
    color: var(--champagne-gold);
    font-size: 0.8rem; 
    font-weight: 400;
    letter-spacing: 6px; 
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(223, 191, 169, 0.3); /* Updated Sand/Beige */
    padding-bottom: 8px;
    display: inline-block;
}

.story-text h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: var(--terracotta); 
    font-weight: 300;
    font-style: italic; 
}

.story-text p {
    font-family: 'Montserrat', sans-serif;
    line-height: 2.2; 
    color: #555;
    font-weight: 300;
    font-size: 1.05rem;
}

.story-closing {
    margin-top: 40px;
    font-style: italic;
    font-weight: 400 !important;
    font-size: 1.5rem;
    font-family: 'Cormorant Garamond', serif !important;
    color: var(--champagne-gold) !important; 
}

/* --- MOBILE STORY OPTIMIZATION --- */
@media (max-width: 900px) {
    .story-section { padding: 80px 5%; }
    
    .story-row, .story-row.reverse {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
    }
    
    .story-image {
        width: 100%;
        padding: 10px; 
    }
    
    .story-image::after { display: none; } 
    
    .story-image img {
        height: 380px;
    }

    .section-title {
        font-size: 2.8rem;
        margin-bottom: 50px;
    }
    
    .story-text h3 { font-size: 2.4rem; }
    .story-year { letter-spacing: 4px; }
}

/* --- COUNTDOWN STRIP --- */
.countdown-strip {
    background-color: var(--sage-green); 
    color: var(--creamy-ivory); 
    padding: 120px 20px; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(223, 191, 169, 0.4); /* Updated Sand/Beige */
    border-bottom: 1px solid rgba(223, 191, 169, 0.4); /* Updated Sand/Beige */
}

.countdown-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem; 
    font-weight: 300;
    font-style: italic;
    margin-bottom: 60px;
    letter-spacing: 1px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px; 
    padding: 0 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.25); 
}

.time-box:last-child {
    border-right: none;
}

.time-box span {
    font-family: 'Cormorant Garamond', serif; 
    font-size: 5rem; 
    font-weight: 300;
    line-height: 1;
    margin-bottom: 15px;
    color: var(--creamy-ivory);
}

.time-box small {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem; 
    text-transform: uppercase;
    letter-spacing: 6px; 
    font-weight: 400;
    color: var(--champagne-gold); 
}

@media (max-width: 768px) {
    .countdown-strip { padding: 80px 15px; }
    .countdown-title { font-size: 2.5rem; margin-bottom: 40px; }
    .countdown-timer { flex-wrap: wrap; gap: 40px 0; }
    .time-box { min-width: 50%; padding: 0 10px; }
    .time-box:nth-child(2) { border-right: none; }
    .time-box span { font-size: 3.5rem; margin-bottom: 10px; }
    .time-box small { font-size: 0.85rem; letter-spacing: 3px; font-weight: 600; color: var(--creamy-ivory); }
}

/* --- OUR BIG DAY SECTION --- */
.big-day-section {
    background-color: var(--terracotta);
    background-image: radial-gradient(circle at center, rgba(255,255,255,0.06) 0%, transparent 75%);
    padding: 120px 5%;
    color: var(--creamy-ivory); 
}

.big-day-text {
    max-width: 750px;
    margin: 0 auto 80px auto; 
    text-align: center;
}

.big-day-section .section-title {
    color: var(--creamy-ivory);
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.big-day-intro {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 300;
    font-style: italic;
    color: var(--champagne-gold); 
}

.location-box {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 25px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #F9F7F1 100%);
    border: 1px solid rgba(223, 191, 169, 0.4); /* Updated Sand/Beige */
    margin-bottom: 50px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15); 
    border-radius: 2px;
}

.pin-icon {
    font-size: 1.8rem;
    opacity: 0.8;
}

.address {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem; 
    letter-spacing: 3px; 
    line-height: 1.8;
    text-align: left;
    color: #444; 
    text-transform: uppercase;
}

.big-day-details {
    font-family: 'Montserrat', sans-serif;
    line-height: 2.2; 
    font-size: 1.05rem;
    color: var(--creamy-ivory); 
    font-weight: 300;
    opacity: 0.95;
    padding: 0 20px;
}

/* --- BIG DAY GALLERY --- */
.big-day-gallery {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 80px; 
    width: 100%;
    max-width: 650px; 
    margin: 60px auto 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.venue-image-wrapper {
    position: relative; 
    width: 100%;
    display: block;
}

.venue-image-wrapper img {
    width: 100% !important; 
    aspect-ratio: 1 / 1; 
    object-fit: cover; 
    display: block;
    border: 12px solid var(--creamy-ivory); 
    box-sizing: border-box;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); 
}

.image-caption {
    position: absolute;
    bottom: -20px; 
    right: 8%; 
    background-color: var(--creamy-ivory);
    padding: 12px 30px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--terracotta);
    white-space: nowrap; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); 
    z-index: 2;
}

.sage-accent .image-caption::after,
.peach-accent .image-caption::after {
    display: none;
}

@media (min-width: 769px) {
    .big-day-gallery {
        flex-direction: row; 
        justify-content: center;
        max-width: 1100px; 
        gap: 60px; 
    }
    .venue-image-wrapper {
        width: 45%; 
    }
}

/* --- THE DAYS EVENTS --- */
.days-events {
    padding: 100px 40px;
    background-color: var(--sage-green); /* Updated to your rich custom sage */
    text-align: center;
    overflow: hidden; 
}

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%; 
}

.timeline-item {
    position: relative;
    flex: 1 1 0; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 10px;
    min-width: 0; 
}

.timeline-line {
    position: absolute;
    top: 61px; 
    left: 5%; 
    right: 5%;
    height: 2px;
    background: var(--champagne-gold);
    opacity: 0.3;
    z-index: 1;
}

.timeline-icon {
    position: relative;
    z-index: 5 !important; 
    
    /* THE FIX: Pushes the text down, away from the horizontal line */
    margin-bottom: 30px; 
    
    /* Styles the icons to match the luxury theme */
    font-size: 1.8rem;
    color: var(--champagne-gold);
}

/* THE FIX: Styles the time and spaces it nicely above the Event Name */
.event-time {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--champagne-gold);
    margin-bottom: 12px; 
    font-weight: 600;
}

.event-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--creamy-ivory);
    line-height: 1.1;
}

.event-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: var(--creamy-ivory);
    opacity: 0.8;
    margin-top: 15px; /* Slight bump down for better reading */
    max-width: 180px; 
}

/* --- MOBILE TIMELINE (VERTICAL) --- */
@media (max-width: 992px) {
    .days-events { padding: 80px 20px; }
    
    .timeline-container { 
        flex-direction: column; 
        align-items: flex-start; 
        
        /* THE FIX: Pushes the text further right, away from the vertical line */
        padding-left: 80px; 
        margin-top: 50px; 
    }
    
    .timeline-line { 
        top: 0; 
        bottom: 0; 
        left: 25px; /* Centers the vertical line perfectly */
        width: 2px; 
        height: 100%; 
        right: auto; 
    }
    
    .timeline-item { 
        flex: none; 
        width: 100%; 
        margin-bottom: 60px; /* More breathing room between events */
        align-items: flex-start; 
        text-align: left; 
        padding: 0; 
    }
    
    .timeline-icon { 
        position: absolute; 
        left: -55px; /* Aligns the icon over the vertical line */
        margin-bottom: 0; 
        width: 34px; 
        height: 34px; 
        background-color: var(--sage-green); /* Hides the line behind the icon */
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .event-name { font-size: 2rem; }
    .event-desc { max-width: 100%; margin-top: 8px;}
}

/* --- ENTOURAGE SECTION --- */
.entourage-section {
    background-color: var(--creamy-ivory); 
    padding: 120px 5%; 
    text-align: center;
    color: #333;
}

.entourage-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem; 
    color: var(--champagne-gold); 
    margin-bottom: 80px;
    letter-spacing: 6px; 
    text-transform: uppercase;
    font-weight: 400;
}

.entourage-block {
    margin-bottom: 80px; 
}

.role-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem; 
    color: var(--terracotta);
    margin-bottom: 10px;
    font-weight: 300; 
    font-style: italic; 
}

.role-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 40px;
    font-style: italic;
    letter-spacing: 1px;
}

.entourage-grid {
    display: flex;
    justify-content: center;
    gap: 80px; 
    max-width: 1000px;
    margin: 0 auto;
}

.entourage-grid.two-col .side, 
.entourage-grid.three-col .side {
    flex: 1;
}

.side h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem; 
    letter-spacing: 5px; 
    text-transform: uppercase;
    color: var(--champagne-gold);
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(223, 191, 169, 0.4); /* Updated Sand/Beige */
    padding-bottom: 15px;
    display: inline-block; 
}

.side p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem; 
    line-height: 2.2; 
    color: #444;
    font-weight: 300;
}

.sponsor-type {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    color: var(--terracotta) !important;
    margin-bottom: 5px;
    letter-spacing: 3px;
    opacity: 0.8;
}

.highlight-roles {
    margin: 50px auto;
}

.highlight-name {
    font-size: 2.2rem !important; 
    color: var(--terracotta) !important;
    font-weight: 300 !important;
    font-style: italic;
}

/* Updated Subtle Color Coding for Sides based on new hexes */
.peach-side h4 { color: #E3B6B0; border-color: rgba(227, 182, 176, 0.3); } 
.sage-side h4 { color: #58705B; border-color: rgba(88, 112, 91, 0.3); } 

.gold-divider {
    width: 60px; 
    height: 1px;
    background-color: var(--champagne-gold);
    margin: 80px auto;
    opacity: 0.4;
}

@media (max-width: 768px) {
    .entourage-section { padding: 80px 5%; }
    .entourage-subtitle { margin-bottom: 50px; }
    .entourage-grid { flex-direction: column; gap: 60px; }
    .role-title { font-size: 2.6rem; }
    .side p { font-size: 1.4rem; line-height: 2; }
    .gold-divider { margin: 50px auto; }
}

/* --- SPECIAL REQUEST SECTION --- */
.special-request-section {
    background-color: var(--pink-peach); 
    padding: 100px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.request-container {
    background-color: var(--creamy-ivory);
    max-width: 750px;
    width: 100%;
    padding: 70px 60px;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08); 
    border-top: 6px solid var(--terracotta); 
}

.request-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem;
    color: var(--terracotta);
    margin-bottom: 35px;
    font-style: italic;
    letter-spacing: 1px;
}

.request-content p {
    font-family: 'Montserrat', sans-serif;
    color: #444;
}

.highlight-seat {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.6rem !important;
    color: var(--terracotta) !important;
    margin-bottom: 25px;
}

.highlight-seat strong {
    font-style: italic;
    color: var(--sage-green); 
}

.request-body {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.rsvp-deadline {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid rgba(223, 191, 169, 0.4); /* Updated Sand/Beige */
    border-bottom: 1px solid rgba(223, 191, 169, 0.4); /* Updated Sand/Beige */
}

.rsvp-deadline p {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 10px;
}

.rsvp-deadline .date {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--sage-green); 
    font-weight: 600;
}

.request-thanks {
    font-size: 1.1rem;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif !important;
    color: #555 !important;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .special-request-section { padding: 60px 5%; }
    .request-container { padding: 50px 25px; }
    .request-title { font-size: 2.5rem; }
    .highlight-seat { font-size: 1.4rem !important; }
    .rsvp-deadline .date { font-size: 2rem; }
}

/* --- GUEST INFO & ATTIRE SECTION --- */
.attire-section {
    background-color: var(--creamy-ivory); 
    padding: 100px 5%;
    text-align: center;
    color: #333;
}

.guest-info-intro {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #555;
    max-width: 650px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

.info-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    flex: 1;
    background-color: #fff;
    padding: 40px 25px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-top: 3px solid var(--champagne-gold); 
}

.info-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 20px;
}

.info-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

.attire-intro {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

.palette-swatches {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.swatch {
    width: 45px;
    height: 45px;
    border-radius: 50%; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 2px solid #fff;
}

.swatch.sage { background-color: var(--sage-green); }
.swatch.peach { background-color: var(--pink-peach); }
.swatch.terracotta { background-color: var(--terracotta); }
.swatch.gold { background-color: var(--champagne-gold); }

.attire-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto 60px auto;
}

.attire-card {
    flex: 1;
    padding: 50px 40px;
    background-color: #fff; 
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.attire-card.peach-border {
    border-top: 4px solid var(--pink-peach);
}

.attire-card.sage-border {
    border-top: 4px solid var(--sage-green);
}

.attire-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: var(--terracotta);
    margin-bottom: 25px;
    font-style: italic;
}

.attire-card ul {
    list-style: none;
    padding: 0;
}

.attire-card li {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.animation-wrapper {
    height: 140px; 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.animation-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.8; 
}

.floating-anim {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.attire-thanks {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--terracotta);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .info-grid, .attire-grid { flex-direction: column; gap: 30px; }
    .attire-card { padding: 40px 20px; }
}

/* --- GIFTS SECTION --- */
.gifts-section {
    background-color: var(--sage-green); 
    padding: 100px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gifts-container {
    background-color: var(--creamy-ivory);
    max-width: 750px;
    width: 100%;
    padding: 70px 60px;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1); 
    border-top: 6px solid var(--champagne-gold); 
}

.gifts-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 20px;
    opacity: 0.8;
}

.gifts-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem;
    color: var(--terracotta);
    margin-bottom: 35px;
    font-style: italic;
    letter-spacing: 1px;
}

.gifts-content p {
    font-family: 'Montserrat', sans-serif;
    color: #444;
}

.highlight-gift {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.5rem !important;
    line-height: 1.6;
    color: var(--terracotta) !important;
    margin-bottom: 30px;
}

.gifts-divider {
    width: 60px;
    height: 1px;
    background-color: var(--champagne-gold);
    margin: 30px auto;
    opacity: 0.6;
}

.gifts-body {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
    padding: 0 20px;
}

.gifts-thanks {
    font-size: 1.1rem;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif !important;
    color: #555 !important;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .gifts-section { padding: 60px 5%; }
    .gifts-container { padding: 50px 25px; }
    .gifts-title { font-size: 2.5rem; }
    .highlight-gift { font-size: 1.3rem !important; }
    .gifts-body { padding: 0; }
}

/* --- VIDEOGRAPHY SECTION --- */
.videography-section {
    background-color: var(--creamy-ivory); 
    padding: 100px 5%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.video-container {
    max-width: 700px;
    width: 100%;
}

.video-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 20px;
    opacity: 0.8;
}

.video-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem;
    color: var(--terracotta);
    margin-bottom: 30px;
    font-style: italic;
    letter-spacing: 1px;
}

.video-body {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    padding: 0 15px;
}

.video-thanks {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--champagne-gold); 
    margin-top: 40px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .videography-section { padding: 70px 5%; }
    .video-title { font-size: 2.5rem; }
    .video-body { font-size: 0.95rem; }
}

/* --- RSVP SECTION --- */
.rsvp-section {
    background-color: var(--terracotta); 
    padding: 100px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rsvp-container {
    background-color: var(--creamy-ivory);
    max-width: 650px;
    width: 100%;
    padding: 70px 60px;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.rsvp-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    color: var(--terracotta);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.rsvp-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label, .radio-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--champagne-gold); 
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: #333;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    background-color: transparent;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-bottom: 2px solid var(--terracotta);
}

.form-group input::placeholder {
    color: #bbb;
    font-style: italic;
}

.attendance-group {
    margin-top: 10px;
}

.radio-container {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: #444;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
}

.radio-container input {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    accent-color: var(--terracotta); 
}

.submit-btn {
    background-color: var(--sage-green);
    color: var(--creamy-ivory);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 20px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: #4a5e4c; /* Slightly darker custom sage on hover */
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .rsvp-container { padding: 50px 25px; }
    .rsvp-title { font-size: 3rem; }
    .form-group input[type="text"], .form-group input[type="email"] { font-size: 1.1rem; }
    .radio-container { font-size: 1.2rem; }
}

/* ==========================================================================
   1. ANIMATION: THE HERO IMAGE SETTLE
   ========================================================================== */
@keyframes imageSettle {
    0% { 
        opacity: 0; 
        transform: scale(1.04); /* Starts slightly zoomed in */
    }
    100% { 
        opacity: 1; 
        transform: scale(1);    /* Breathes out to normal size */
    }
}

/* ==========================================================================
   2. ANIMATION: THE POLAROID GALLERY (KEEPSAKE SNAP)
   ========================================================================== */

.fine-art-frame {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.6s ease !important;
}

.fine-art-frame img {
    transition: filter 0.6s ease !important;
}

.fine-art-frame:hover {
    z-index: 20 !important; 
    transform: scale(1.12) rotate(0deg) translateY(-10px) !important; 
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25) !important;
}

.fine-art-frame:hover img {
    filter: sepia(0%) grayscale(0%) contrast(105%) !important;
}

/* ==========================================================================
   3. ANIMATION: THE CAPIZ SHELL SHIMMER (INFO CARDS)
   ========================================================================== */

@keyframes capizShimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.location-box, 
.request-container, 
.gifts-container, 
.rsvp-container, 
.info-card, 
.attire-card {
    background: linear-gradient(135deg, #ffffff 20%, #F9F4E8 40%, #ffffff 60%) !important;
    background-size: 200% auto !important; 
    animation: capizShimmer 8s linear infinite !important; 
}

/* ==========================================================================
   4. ANIMATION: THE ENTOURAGE (ROYAL SWEEP)
   ========================================================================== */

.entourage-grid .side p,
.highlight-name {
    display: inline-block !important; 
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.4s ease !important;
    cursor: default;
}

.entourage-grid .side p:hover {
    transform: translateX(10px) !important; 
    color: var(--terracotta) !important; 
}

.highlight-name:hover {
    transform: translateX(10px) !important;
    color: var(--champagne-gold) !important; 
}

/* ==========================================================================
   5. ANIMATION: THE CONCIERGE (RSVP BUTTON PULSE)
   ========================================================================== */

@keyframes conciergePulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(88, 112, 91, 0.4); /* Updated to new dark sage */
        transform: scale(1); 
    }
    50% { 
        box-shadow: 0 0 20px 10px rgba(88, 112, 91, 0); 
        transform: scale(1.02); 
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(88, 112, 91, 0); 
        transform: scale(1); 
    }
}

.submit-btn {
    animation: conciergePulse 4s ease-in-out infinite !important;
}

.submit-btn:hover {
    animation-play-state: paused !important;
}

/* ==========================================================================
   6. ANIMATION: METALLIC FOIL STAMPING (THE SPARKLE) - BULLETPROOF
   ========================================================================== */

@keyframes foilSparkle {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.section-title, 
.role-title {
    background-image: linear-gradient(120deg, var(--terracotta) 35%, var(--champagne-gold) 50%, var(--terracotta) 65%) !important;
    background-size: 200% auto !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    animation: foilSparkle 6s linear infinite !important;
}

.big-day-section .section-title, 
.rsvp-title,
.countdown-title {
    background-image: linear-gradient(120deg, var(--creamy-ivory) 35%, #ffffff 50%, var(--creamy-ivory) 65%) !important;
    background-size: 200% auto !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    animation: foilSparkle 6s linear infinite !important;
}

@media (max-width: 768px) {
    .hero .couple-names {
        background-image: linear-gradient(120deg, var(--terracotta) 35%, var(--champagne-gold) 50%, var(--terracotta) 65%) !important;
        animation: cinematicLift 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards, foilSparkle 6s linear infinite !important;
    }
}
@media (max-width: 768px) {
    /* This tells the browser to hide anything with this tag on phones */
    .mobile-hide {
        display: none !important;
    }
    
    /* ... your other existing mobile rules ... */
}