/* Reset & Variables */
:root {
    --sage-green: #8DA399;
    --sage-dark: #6B8278;
    --gold: #D4AF37;
    --cream: #F9F9F7;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--cream);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.narrow {
    max-width: 600px;
}

.text-center { text-align: center; }
.mt-large { margin-top: 4rem; }
.mb-medium { margin-bottom: 2rem; }

.section {
    padding: 5rem 0;
}

.bg-light { background-color: var(--white); }
.bg-sage { background-color: var(--sage-green); }
.text-white { color: var(--white); }

.divider {
    height: 2px;
    width: 60px;
    background-color: var(--gold);
    margin: 1rem 0 2rem 0;
}

.divider.center { margin: 1rem auto 2rem auto; }
.divider.white { background-color: var(--white); }

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sage-dark);
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
}

nav a:hover {
    color: var(--gold);
}

.mobile-menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-icon span {
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--white);
    padding-top: 5rem;
    transition: 0.4s ease;
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    flex-direction: column;
    align-items: center;
}

.mobile-nav .mobile-link {
    font-size: 1.2rem;
    padding: 1rem;
    display: block;
}

/* Hero */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero.png') center/cover no-repeat;
    filter: brightness(0.7);
    z-index: -1;
    transform: scale(1.1); /* Initial state for potential animation */
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero .date {
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.hero .location {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
}

#countdown {
    margin-top: 2rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-size: 2rem;
    font-weight: 700;
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-family: var(--font-sans);
    letter-spacing: 1px;
}

/* Our Story */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-col h2 { font-size: 2.5rem; color: var(--sage-dark); }
.text-col p { margin-bottom: 1.5rem; color: var(--text-light); }

.image-col img {
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Details */
.venue-block {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.venue-image { flex: 1; }
.venue-image img {
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.venue-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.venue-info h3 { font-size: 2rem; color: var(--sage-dark); margin-bottom: 0.5rem; }
.venue-name { font-weight: 700; font-size: 1.2rem; margin-bottom: 1rem; }
.venue-info .time { margin: 1rem 0; font-style: italic; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.card:hover { transform: translateY(-5px); }

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body { padding: 1.5rem; }
.card-body h4 { color: var(--sage-dark); margin-bottom: 0.5rem; font-size: 1.2rem; }
.card-body p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1rem; }
.link { color: var(--gold); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.5px; }

/* Gallery */
.gallery-carousel {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
}

.carousel-track-container {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
}

.carousel-slide img {
    width: 100%;
    display: block;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--sage-dark);
    z-index: 10;
    transition: var(--transition);
}

.nav-btn:hover { background: var(--white); color: var(--gold); }
.prev { left: -20px; }
.next { right: -20px; }

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
}

.carousel-indicator.current-slide { background: var(--sage-green); }

/* RSVP */
.btn-solid {
    display: inline-block;
    background-color: var(--gold);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
}

.btn-solid:hover { background-color: #c19b2e; }

.btn-outline {
    display: inline-block;
    border: 2px solid var(--sage-green);
    color: var(--sage-green);
    padding: 10px 25px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.btn-outline:hover { background-color: var(--sage-green); color: var(--white); }

form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; letter-spacing: 0.5px; }

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(255,255,255,0.9);
    font-family: var(--font-sans);
    color: var(--text-dark);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
}

/* Footer */
footer {
    background-color: var(--sage-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* Animations */
.fade-in, .fade-in-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible, .fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    nav ul { display: none; }
    .mobile-menu-icon { display: flex; }
    
    .two-col { grid-template-columns: 1fr; gap: 2rem; }
    .venue-block { flex-direction: column; }
    .venue-image img { height: 250px; }
    
    .nav-btn { width: 30px; height: 30px; font-size: 1rem; }
    .prev { left: -10px; }
    .next { right: -10px; }
}
