:root {
    /* Color Palette */
    --bg-primary: #B1A968;
    /* Sage/Olive Green */
    --text-primary: #F5F2E9;
    /* Warm Off-White/Cream */
    --accent-color: #DB3E1C;
    /* Terracotta/Rust Red */
    --text-secondary: rgba(245, 242, 233, 0.85);

    /* Typography */
    --font-primary: 'Nunito Sans', sans-serif;
    --font-accent: 'Playfair Display', serif;
    /* For Headings */

    /* Spacing */
    --section-padding: 8rem 2rem;
    --container-width: 1200px;

    /* Transitions */
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-accent);
    font-weight: 400;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-speed);
    text-decoration: none;
    cursor: pointer;
}

.primary-btn {
    background-color: var(--accent-color);
    color: var(--text-primary);
    border: 2px solid var(--accent-color);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.secondary-btn {
    background-color: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
}

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

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background-color var(--transition-speed);
}

#navbar.scrolled {
    background-color: rgba(177, 169, 104, 0.95);
    /* Slight transparency on scroll */
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links li a {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
}

.names {
    font-size: 2rem;
    font-family: var(--font-accent);
    margin-bottom: 2rem;
}

.date-venue {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.rsvp-text {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.hero-illustration {
    width: 500px;
    height: auto;
    margin: 0 auto -12rem auto;
    display: block;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 3px solid var(--text-primary);
    border-bottom: 3px solid var(--text-primary);
    transform: rotate(45deg);
    margin: 0 auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: rotate(45deg) translate(0, 0);
    }

    40% {
        transform: rotate(45deg) translate(-10px, -10px);
    }

    60% {
        transform: rotate(45deg) translate(-5px, -5px);
    }
}

/* Sections General */
.alternating-section,
.centered-section {
    padding: var(--section-padding);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.alternating-section.reverse .content-wrapper {
    direction: rtl;
    /* Quick hack for swapping columns, needs reset for internal text */
}

.alternating-section.reverse .content-wrapper>* {
    direction: ltr;
}

/* Media Placeholders */
.image-placeholder,
.map-placeholder {
    background-color: rgba(245, 242, 233, 0.1);
    border: 1px solid var(--text-primary);
    width: 100%;
    height: 400px;
    /* Placeholder height */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-accent);
    font-style: italic;
}

.section-image {
    width: 100%;
    height: 100%;
    max-height: 700px;
    object-fit: cover;
    display: block;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    border-left: 1px solid var(--text-primary);
    padding-left: 3rem;
}

.event-item {
    margin-bottom: 4rem;
    position: relative;
}

.event-item::before {
    content: '';
    position: absolute;
    left: -3.35rem;
    /* Adjust based on padding/border */
    top: 0.5rem;
    width: 10px;
    height: 10px;
    background-color: var(--text-primary);
    border-radius: 50%;
}

.event-date {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}



.schedule-note {
    text-align: center;
    margin-top: 2rem;
    font-style: italic;
}

/* Stay Section */
.stay-group {
    margin-bottom: 2rem;
}

.clean-list {
    list-style: none;
}

.clean-list li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Map Recommendation */
.map-container {
    width: 100%;
    margin-top: 4rem;
    height: 60vh;
    min-height: 500px;
    border: 1px solid rgba(245, 242, 233, 0.3);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Footer */
footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(245, 242, 233, 0.2);
}

.sign-off {
    font-family: var(--font-accent);
    font-size: 2rem;
    margin: 2rem 0;
}

/* Lang Switch */
#lang-toggle {
    background: none;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-family: var(--font-primary);
}

/* Animations Class placeholders */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

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

    h2 {
        font-size: 2rem;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr !important;
        /* Reset direction for mobile */
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background-color: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-speed) ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
        width: 30px;
        height: 25px;
        position: relative;
        z-index: 1001;
    }

    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--text-primary);
        position: absolute;
        transition: all var(--transition-speed);
    }

    .mobile-menu-btn span:nth-child(1) {
        top: 0;
    }

    .mobile-menu-btn span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .mobile-menu-btn span:nth-child(3) {
        bottom: 0;
    }

    .mobile-menu-btn.open span:nth-child(1) {
        top: 50%;
        transform: rotate(45deg);
    }

    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.open span:nth-child(3) {
        top: 50%;
        transform: rotate(-45deg);
        bottom: auto;
    }

    .hero-illustration {
        width: 300px;
        height: auto;
        margin-bottom: -9rem;
    }
}

/* Animation Classes */
.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}