:root {
    /* Color Palette - Classic Minimalist */
    --primary-color: #556B2F; /* Olive Green */
    --secondary-color: #A4C8E1; /* Baby Blue Accent */
    --bg-color: #FFFFFF; /* White */
    --bg-alt-color: #F9FAF9; /* Very light off-white/green tint for sections */
    --text-color: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background: linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.4)), url('wedding-background.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

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

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

h2.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--secondary-color);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 2px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

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

.rsvp-btn {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 2px;
    transition: background-color 0.3s;
}

.rsvp-btn:hover {
    background-color: #445525;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
    background: transparent; /* Background is now on body */
}

.hero-content {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 3rem;
    border: 1px solid var(--secondary-color);
    max-width: 800px;
    animation: fadeIn 1.5s ease-out;
}

.subtitle {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.date {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-top: 1rem;
}

.location {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Countdown */
#countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-box span:first-child {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    line-height: 1;
}

.time-box .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

/* Sections */
.section {
    padding: 6rem 2rem;
    background-color: rgba(255, 255, 255, 0.7); /* Light overlay for readability */
}

.alt-bg {
    background-color: rgba(249, 250, 249, 0.85); /* Slightly more opaque for details */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Story */
.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.story-image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: #ccc;
    border-radius: 4px;
}

/* Details */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: center;
}

.detail-card {
    background: var(--white);
    padding: 2rem;
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    height: 250px;
    background-color: #ddd;
    transition: opacity 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    opacity: 0.8;
}

/* Registry */
.registry-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.registry-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.registry-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.registry-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* RSVP Form */
#rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-alt-color);
    padding: 3rem;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 1.5rem;
}

input, select, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    background: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--secondary-color);
}

textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #445525;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.9rem;
}

/* Mobile Responsive */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        width: 100%;
        padding-top: 2rem;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }
    
    .hero-content {
        margin: 1rem;
        padding: 2rem 1rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
