/* Root color variables */
:root {
    --bg-light: #f7f4ef;
    --bg-section: #f0ebe3;
    --text-dark: #3f2b21;
    --accent: #c0784b;
    --accent-dark: #8a5230;
    --white: #ffffff;
    --max-width: 1000px;
}

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

body {
    font-family: 'Century Gothic', 'Nunito', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Hide default audio element */
audio {
    display: none;
}

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    color: var(--accent-dark);
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--bg-light);
    border-bottom: 1px solid #e0d9d0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar .logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-dark);
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
.nav-links li {
    position: relative;
}
.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}
.nav-links a.active {
    color: var(--accent-dark);
    border-bottom: 2px solid var(--accent);
}

/* Audio toggle button */
#audio-toggle {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease;
}
#audio-toggle:hover {
    background-color: var(--accent-dark);
}

/* Hero section */
.hero {
    position: relative;
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}
.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(2px);
}
.hero-content {
    position: relative;
    max-width: 700px;
    padding: 2rem;
}
.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.hero-content .tagline {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}
.hero-content .subhead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.cta-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.cta-button:hover {
    background-color: var(--accent-dark);
}

/* Sections */
.content-section {
    padding: 4rem 2rem;
    background-color: var(--bg-section);
    max-width: var(--max-width);
    margin: 0 auto;
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Visible state for scroll reveal */
.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}
.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-dark);
}
.content-section p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Forms */
.rsvp-form,
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}
.rsvp-form label,
.newsletter-form label {
    font-weight: 600;
    font-size: 0.9rem;
}
.rsvp-form input,
.newsletter-form input {
    padding: 0.5rem;
    border: 1px solid #d3c7bd;
    border-radius: 4px;
    font-size: 0.9rem;
}
.hidden {
    position: absolute;
    left: -10000px;
}

/* Gallery page */
.gallery-page {
    padding: 4rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}
.gallery-page h1 {
    font-size: 2rem;
    color: var(--accent-dark);
    margin-bottom: 0.5rem;
    text-align: center;
}
.gallery-page p {
    text-align: center;
    margin-bottom: 2rem;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.gallery-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1rem;
    z-index: 2000;
}
.lightbox.show {
    display: flex;
}
.lightbox-img {
    max-width: 90%;
    max-height: 70vh;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.lightbox-caption {
    color: var(--white);
    font-size: 1rem;
    text-align: center;
}
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin-top: 3rem;
    border-top: 1px solid #e0d9d0;
}
.site-footer p {
    font-size: 0.8rem;
}

/* Thank you page */
.thankyou-content {
    max-width: var(--max-width);
    margin: 5rem auto;
    text-align: center;
}
.thankyou-content h1 {
    font-size: 2.2rem;
    color: var(--accent-dark);
    margin-bottom: 1rem;
}
.thankyou-content p {
    margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 0.5rem;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .content-section {
        padding: 3rem 1.5rem;
    }
}