/* --- CSS VARIABLES: Modern Minimalist Autumn --- */
:root {
    /* Backgrounds */
    --bg-body: #FAF9F6;
    /* "Off White" / Stone */
    --bg-accent: #EBE9E4;
    /* Slightly darker stone for visible contrast */
    --bg-white: #FFFFFF;
    /* Pure white for cards */

    /* Text */
    --text-main: #333333;
    /* Soft Black */
    --text-light: #666666;
    /* Grey */

    /* Accents */
    --accent-rust: #B06548;
    /* Muted Terracotta */
    --accent-olive: #8A9A5B;
    /* Sage/Olive Green */
    --accent-gold: #D4A373;
    /* Soft Gold */
    --line-color: #DDD;
}

/* --- GLOBAL RESET & TYPOGRAPHY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-snap-type: y proximity; /* 'proximity' is the safe/gentle version */
}

section, header {
    scroll-snap-align: start;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.8;
    font-weight: 300;
    font-size: 16px;
    position: relative;
}

h1,
h2,
h3,
h4 {
    font-family: 'Cinzel', serif;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 400;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    /* Increased slightly for better separation from content */
    position: relative;
    display: inline-block;
    z-index: 2;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-rust);
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    position: relative;
    z-index: 2;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--text-main);
}

/* --- UTILITIES --- */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.text-center {
    text-align: center;
}

.section-spacer {
    padding: 3rem 0;
    /* Reduced from 6rem for tighter sections */
    position: relative;
}

/* --- ALTERNATING SECTIONS --- */
section:nth-of-type(odd) {
    background-color: var(--bg-body);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

section:nth-of-type(even) {
    background-color: var(--bg-accent);
}


.divider {
    width: 40px;
    height: 1px;
    background: var(--accent-rust);
    margin: 0 auto 2rem auto;
}

/* --- WELCOME IMAGE GRID --- */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.welcome-content {
    text-align: left;
}

.welcome-img {
    width: 80%;
    height: auto;
    border-radius: 20px;
    /* Rounded edges to match buttons */
    border: 8px solid #fff;
    /* White "photo print" border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft lift shadow */
    object-fit: cover;
}

.decor-corner {
    position: absolute;
    color: var(--accent-rust);
    width: auto;
    height: 100%;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.decor-corner-top {
    position: absolute;
    width: auto;
    height: 100%;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.decor-corner-bottom {
    position: absolute;
    width: auto;
    height: 60%;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}


.corner-tl {
    top: -20px;
    right: 20px;
}

.corner-br {
    bottom: -20px;
    left: -20px
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 16px 42px;
    background-color: var(--accent-rust);
    color: white;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 50px;
    /* Modern Pill Shape */
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(176, 101, 72, 0.4);
    /* Modern glowing shadow */
}

.btn:hover {
    background-color: #a05a41;
    /* Slight darken on hover */
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(176, 101, 72, 0.5);
    /* Shadow grows */
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
    padding: 12px 30px;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    /* Rounded corners match primary button */
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- FALLING LEAVES ANIMATION --- */
.leaf-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.falling-leaf {
    position: absolute;
    top: -10%;
    width: 20px;
    height: 20px;
    color: var(--accent-rust);
    opacity: 0.6;
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-10vh) rotate(0deg) translateX(0); opacity: 0; }
    10% { opacity: 0.8; }
    100% { transform: translateY(110vh) rotate(360deg) translateX(20px); opacity: 0; }
}

/* --- HERO SECTION --- */
header {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #FAF9F6, #F2F0EB);
}

.hero-pretitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-rust);
    margin-bottom: 1.5rem;
    font-family: 'Lato', sans-serif;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-rust);
    margin-top: 0.5rem;
    position: relative;
    z-index: 2;
}

.hero-details {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-light);
    margin-bottom: 3rem;
    border-top: 1px solid var(--accent-gold);
    border-bottom: 1px solid var(--accent-gold);
    padding: 1rem 3rem;
    position: relative;
    z-index: 2;
}

/* --- NAVIGATION --- */
nav {
    background-color: #fff;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eee;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2.5rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav a:hover {
    color: var(--accent-rust);
}

nav a.active {
    color: var(--accent-rust);
    border-bottom: 2px solid var(--accent-rust);
}

/* --- SECTIONS --- */

section {
    scroll-margin-top: 65px;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    margin-top: 2rem;
}

.location-block {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border: 1px solid #eee;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.location-block .btn-outline {
    margin-top: auto;
}

.time {
    display: block;
    font-family: 'Cinzel', serif;
    color: var(--accent-rust);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* TIMELINE */
.timeline {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    padding-bottom: 3rem;
    border-left: 1px solid var(--accent-rust);
    padding-left: 2rem;
    position: relative;
}

.timeline-item:last-child {
    border-left: 1px solid transparent;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    width: 9px;
    height: 9px;
    background-color: var(--accent-rust);
    border-radius: 50%;
}

.timeline-time {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: block;
}

/* MENU */
.menu-container {
    background-color: var(--bg-white);
    padding: 4rem;
    border: 1px solid #eee;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.menu-item {
    /* margin-bottom: 2.5rem; */
}

.menu-item strong {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    /* margin-bottom: 0.5rem; */
    color: var(--text-main);
}

/* DETAILS GRID */
.details-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    text-align: center;
}

.details-grid>div {
    flex: 1 1 300px;
    max-width: 400px;
}

/* GIFTING */
.menu-box {
    background-color: var(--bg-white);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #eee;
}

/* GIFTING */
.gift-box {
    background-color: var(--bg-white);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #eee;
}

.rsvp-box {
    background-color: var(--bg-white);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #eee;
}

/* FOOTER */
footer {
    background-color: #fff;
    color: var(--text-main);
    text-align: center;
    padding: 1rem 1rem;
    border-top: 1px solid #eee;
}

/* --- ANIMATIONS --- */
/* Base state: invisible and pushed down */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

/* Active state: visible and in place */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Active state: visible and in place */
.reveal-background.active {
    opacity: 0.4;
}

/* Stagger delays (optional) */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}



/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .welcome-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .welcome-content {
        text-align: center;
    }

    .hero-details {
        padding: 1rem;
        font-size: 0.9rem;
    }

    nav ul {
        gap: 1.5rem;
    }

    .menu-container {
        padding: 2rem;
    }


    .decor-corner-top {
        height: 70%;
    }

    .decor-corner-bottom {
        height: 45%;
    }
}