/* =========================================
   Variables & Reset
   ========================================= */
:root {
    --color-bg: #fcfbf9;
    --color-text: #2c3e2e;
    --color-accent: #788a70;
    /* Sage green */
    --color-accent-hover: #5d6d56;
    --color-light: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for sticky nav */
}

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

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.section-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
}

/* =========================================
   Components
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-light);
    box-shadow: 0 4px 15px rgba(120, 138, 112, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(120, 138, 112, 0.4);
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(252, 251, 249, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.8rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--color-text);
    font-style: italic;
    font-weight: 600;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-rsvp {
    background-color: var(--color-accent);
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
}

.nav-rsvp:hover {
    background-color: var(--color-accent-hover);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-light);
    padding: 0 20px;
}

.hero .subtitle {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

.hero .title {
    font-size: 5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero .title span {
    font-style: italic;
    font-family: var(--font-heading);
    color: #e0d0c1;
    /* Soft champagne gold */
}

.hero .date {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    font-style: italic;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.9s forwards;
    opacity: 0;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 80px;
}

.countdown-item span {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.countdown-item p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.hero-btn {
    animation: fadeInUp 1s ease 1.2s forwards;
    opacity: 0;
}

/* =========================================
   Story Section
   ========================================= */
.story {
    background-color: var(--color-light);
}

/* =========================================
   Details Section
   ========================================= */
.details {
    background-color: var(--color-bg);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.detail-card {
    background-color: var(--color-light);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    border-top: 4px solid var(--color-accent);
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.detail-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.detail-card p {
    margin-bottom: 0.5rem;
    color: #555;
}

/* =========================================
   Gallery Section
   ========================================= */
.gallery {
    background-color: var(--color-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/5;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* =========================================
   RSVP Section
   ========================================= */
.rsvp {
    background-color: var(--color-accent);
    color: var(--color-light);
    text-align: center;
}

.rsvp .section-title,
.rsvp .section-text {
    color: var(--color-light);
}

.rsvp .btn-primary {
    background-color: var(--color-light);
    color: var(--color-accent);
    margin-top: 2rem;
}

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

/* =========================================
   Location Section
   ========================================= */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: #1a251b;
    color: var(--color-light);
    text-align: center;
    padding: 4rem 20px;
}

.footer h2 {
    font-style: italic;
    margin-top: 0.5rem;
    font-size: 2rem;
}

/* =========================================
   Animations & Utilities
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Media Queries
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* In a real app, we'd add a hamburger menu */
    }

    .hero .title {
        font-size: 3.5rem;
    }

    .countdown {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .countdown-item {
        min-width: 70px;
        padding: 0.8rem;
    }

    .countdown-item span {
        font-size: 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8f5f2;
    color: #333;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
}

.story-block {
    display: flex;
    gap: 40px;
    margin: 60px 0;
    align-items: center;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.countdown-section {
    background: #e9dede;
    text-align: center;
    padding: 40px 0;
}