/* ===========================
   WEDDING WEBSITE CSS
   Parker & Rachel von Kalben
   =========================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* White & Sage Green Colorado Color Palette */
    --color-primary: #87A96B; /* Sage green */
    --color-secondary: #6B8E5F; /* Darker sage */
    --color-accent: #A8B89B; /* Light sage */
    --color-dark: #3D4F3D; /* Deep forest */
    --color-light: #F5F7F5; /* Off-white/cream */
    --color-white: #FFFFFF; /* Pure white */
    --color-sage-light: #C8D5C0; /* Very light sage */
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 20px;
    --container-width: 1200px;
}

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

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

/* ===========================
   NAVIGATION
   =========================== */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    transition: all 0.3s ease;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(135, 169, 107, 0.3) 0%, rgba(107, 142, 95, 0.3) 100%);
    background-image: url('../images/hero-background.jpg'); /* Add your mountain/barn image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-dark);
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 80px;
    box-shadow: 0 10px 40px rgba(135, 169, 107, 0.2);
}

.couple-names {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-primary);
    text-shadow: 2px 2px 4px rgba(135, 169, 107, 0.1);
    animation: fadeInUp 1s ease;
}

.wedding-date {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 10px;
    color: var(--color-secondary);
    animation: fadeInUp 1.2s ease;
}

.wedding-location {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--color-dark);
    animation: fadeInUp 1.4s ease;
}

.countdown {
    font-size: 1.2rem;
    margin-top: 30px;
    padding: 20px;
    background: rgba(135, 169, 107, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    display: inline-block;
    animation: fadeInUp 1.6s ease;
    color: var(--color-dark);
    border: 2px solid var(--color-sage-light);
}

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

/* ===========================
   SECTIONS
   =========================== */
.section {
    padding: var(--section-padding);
}

.section.bg-light {
    background: var(--color-light);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--color-sage-light), var(--color-primary), var(--color-sage-light));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ===========================
   OUR STORY
   =========================== */
.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.story-content p {
    margin-bottom: 20px;
}

/* ===========================
   WEDDING PARTY
   =========================== */
.party-group {
    margin-bottom: 60px;
}

.party-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-secondary);
}

.party-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.party-member {
    text-align: center;
}

.party-photo-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-sage-light) 0%, var(--color-accent) 100%);
    margin: 0 auto 15px;
    border: 4px solid var(--color-white);
    box-shadow: 0 5px 20px rgba(135, 169, 107, 0.2);
}

.party-member h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--color-dark);
}

.party-member p {
    color: var(--color-primary);
    font-style: italic;
}

/* ===========================
   SCHEDULE
   =========================== */
.schedule-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-sage-light), var(--color-primary));
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-time {
    flex-shrink: 0;
    width: 100px;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.timeline-time::after {
    content: '';
    position: absolute;
    left: 95px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    border: 3px solid var(--color-white);
    box-shadow: 0 0 0 3px var(--color-sage-light);
}

.timeline-content {
    flex: 1;
    background: var(--color-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline-content h3 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    margin-bottom: 10px;
}

/* ===========================
   FORMS (RSVP, Contact, etc.)
   =========================== */
.rsvp-form,
.contact-form,
.access-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.rsvp-intro,
.contact-intro,
.gallery-intro,
.livestream-intro,
.registry-intro {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-message {
    margin: 20px 0;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Buttons */
.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

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

.btn-primary:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: var(--color-sage-light);
    color: var(--color-dark);
}

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

/* ===========================
   GALLERY
   =========================== */
.gallery-access {
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
}

.access-form {
    display: flex;
    gap: 10px;
    padding: 20px;
}

.access-form input {
    flex: 1;
}

.gallery-upload {
    background: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gallery-upload h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 20px;
}

.upload-form {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    aspect-ratio: 1;
}

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

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

/* ===========================
   LIVESTREAM
   =========================== */
.livestream-container {
    max-width: 900px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.livestream-note {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: var(--color-primary);
}

/* ===========================
   REGISTRY
   =========================== */
.registry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.registry-card {
    text-decoration: none;
    background: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.registry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.registry-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.registry-card h3 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    margin-bottom: 10px;
}

.registry-card p {
    color: var(--color-primary);
}

.honeymoon-fund {
    max-width: 600px;
    margin: 50px auto;
    text-align: center;
    background: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.honeymoon-fund h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.honeymoon-fund p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    text-align: center;
    padding: 40px 20px;
}

.footer p {
    margin: 5px 0;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--color-white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
        padding: 30px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .couple-names {
        font-size: 3rem;
    }
    
    .wedding-date {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .schedule-timeline::before {
        left: 20px;
    }
    
    .timeline-time {
        width: auto;
        position: absolute;
        left: 40px;
        top: 0;
    }
    
    .timeline-time::after {
        left: 15px;
    }
    
    .timeline-content {
        margin-left: 50px;
    }
    
    .party-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}