/* ==================== CSS Variables ==================== */
:root {
    --sage: #9CAF88;
    --sage-dark: #7d9169;
    --sage-light: #b8c9a9;
    --rust: #B7472A;
    --rust-light: #d4624a;
    --teal: #367588;
    --teal-light: #4a8fa3;
    --blush: #E8B4B8;
    --blush-light: #f0cdd0;
    --cream: #FAF8F5;
    --cream-dark: #f5f0e8;
    --charcoal: #2C3E50;
    --charcoal-light: #4a5d6e;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

/* ==================== Reset & Base ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--cream);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    line-height: 1.3;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--sage-dark);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--sage);
}

/* ==================== Utility Classes ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--sage-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--sage-dark);
    border: 2px solid var(--sage);
}

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

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* ==================== Navigation ==================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow);
    z-index: 1000;
}

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

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--sage);
    font-weight: 600;
}

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

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

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

.nav-cta {
    background: var(--sage);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
}

.nav-cta:hover {
    background: var(--sage-dark);
}

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

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--charcoal);
    transition: all 0.3s;
}

/* ==================== Hero Section ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, var(--sage-light) 0%, var(--blush-light) 100%);
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    padding: 2rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-title {
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-and {
    display: block;
    font-size: 2rem;
    font-style: italic;
    margin: 0.5rem 0;
}

.hero-divider {
    width: 80px;
    height: 2px;
    background: var(--blush);
    margin: 1.5rem auto;
}

.hero-date {
    font-size: 1.75rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

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

.hero-cta {
    margin-top: 1rem;
}

/* ==================== Sections ==================== */
.section {
    padding: 6rem 0;
}

.section-cream {
    background: var(--cream-dark);
}

.section-sage {
    background: var(--sage);
}

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

.section-title-light {
    color: var(--white);
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--blush);
    margin: 0 auto 3rem;
}

.section-divider-light {
    background: rgba(255, 255, 255, 0.5);
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--charcoal-light);
}

.subsection-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--charcoal);
}

.coming-soon {
    text-align: center;
    color: var(--charcoal-light);
    font-style: italic;
    padding: 2rem;
}

/* ==================== Story Section ==================== */
.story-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.story-content h1, .story-content h2, .story-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.story-content p {
    margin-bottom: 1.5rem;
}

.story-content img {
    border-radius: 12px;
    margin: 2rem 0;
}

/* ==================== Timeline ==================== */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--sage-light);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 10px;
    top: 5px;
    width: 22px;
    height: 22px;
    background: var(--sage);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 8px var(--shadow);
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--sage);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-time {
    font-weight: 600;
    color: var(--rust);
    margin-bottom: 0.5rem;
}

.timeline-location {
    color: var(--charcoal-light);
    margin-bottom: 0.5rem;
}

.timeline-address {
    font-size: 0.9rem;
    color: #888;
}

.timeline-description {
    margin-top: 0.75rem;
    color: var(--charcoal-light);
}

/* ==================== Venue & Hotels ==================== */
.venue-info {
    margin-bottom: 4rem;
}

.venue-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.venue-card h4 {
    font-size: 1.5rem;
    color: var(--sage);
    margin-bottom: 0.5rem;
}

.venue-note {
    margin-top: 1rem;
    color: var(--charcoal-light);
    font-style: italic;
}

.hotels-section {
    margin-bottom: 2rem;
}

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

.hotel-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
}

.hotel-card h4 {
    font-size: 1.25rem;
    color: var(--sage);
    margin-bottom: 0.75rem;
}

.hotel-address, .hotel-distance, .hotel-code, .hotel-cutoff, .hotel-notes {
    font-size: 0.9rem;
    color: var(--charcoal-light);
    margin-bottom: 0.5rem;
}

.hotel-code strong {
    color: var(--rust);
}

.hotel-cutoff {
    color: var(--rust);
}

.hotel-card .btn {
    margin-top: 1rem;
}

.lodging-note {
    text-align: center;
    font-style: italic;
    color: var(--charcoal-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== Things to Do ==================== */
.activity-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.25rem;
    color: var(--teal);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--teal-light);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.activity-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--shadow-lg);
}

.activity-image {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.activity-content {
    padding: 1.25rem;
}

.activity-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.activity-content p {
    font-size: 0.9rem;
    color: var(--charcoal-light);
    margin-bottom: 0.5rem;
}

.activity-address {
    font-size: 0.85rem;
    color: #888;
}

.activity-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sage);
}

/* ==================== FAQ ==================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--charcoal);
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--cream);
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--sage);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    color: var(--charcoal-light);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ==================== Gallery ==================== */
.gallery-upload {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--cream);
    border-radius: 12px;
}

.gallery-upload form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.upload-name, .upload-caption {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

#files-selected {
    color: var(--charcoal-light);
}

#upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow);
}

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

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-size: 0.9rem;
}

.gallery-empty {
    text-align: center;
    color: var(--charcoal-light);
    padding: 3rem;
}

/* ==================== Lightbox ==================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.lightbox-close:hover {
    opacity: 1;
}

#lightbox-caption {
    color: white;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* ==================== RSVP Form ==================== */
.rsvp-deadline {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--shadow-lg);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s;
    font-family: inherit;
}

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

.radio-group {
    display: flex;
    gap: 1.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--sage);
}

.conditional-fields {
    padding: 1.5rem;
    background: var(--cream);
    border-radius: 8px;
    margin-top: 1rem;
}

.rsvp-form .btn {
    width: 100%;
    margin-top: 1rem;
}

.rsvp-success {
    text-align: center;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.rsvp-success h3 {
    font-size: 2rem;
    color: var(--sage);
    margin-bottom: 1rem;
}

.rsvp-error {
    text-align: center;
    background: #fef2f2;
    color: var(--rust);
    padding: 1rem;
    border-radius: 8px;
    max-width: 600px;
    margin: 1rem auto 0;
}

.rsvp-closed {
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
    color: var(--charcoal-light);
}

/* ==================== Announcements Banner ==================== */
.announcements-banner {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px var(--shadow);
}

.announcements-container {
    flex: 1;
    overflow: hidden;
}

.announcement-item {
    display: none;
    padding: 0.75rem 3rem 0.75rem 1.5rem;
    animation: slideDown 0.3s ease-out;
}

.announcement-item:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.announcement-info {
    background: var(--teal);
    color: var(--white);
}

.announcement-warning {
    background: #fbbf24;
    color: #78350f;
}

.announcement-success {
    background: var(--sage);
    color: var(--white);
}

.announcement-alert {
    background: var(--rust);
    color: var(--white);
}

.announcement-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.announcement-title {
    font-weight: 700;
}

.announcement-message {
    opacity: 0.95;
}

.announcement-nav {
    font-size: 0.85rem;
    opacity: 0.8;
}

.announcement-close {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    transition: opacity 0.2s;
}

.announcement-close:hover {
    opacity: 1;
}

/* Adjust hero when announcements are visible */
body.has-announcements .hero {
    padding-top: 50px;
}

/* ==================== Footer ==================== */
.footer {
    background: var(--charcoal);
    color: var(--white);
    text-align: center;
    padding: 3rem 1.5rem;
}

.footer-names {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.footer-date {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.6;
    font-style: italic;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 10px 20px var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

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

    .hero-and {
        font-size: 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-marker {
        left: 5px;
        width: 20px;
        height: 20px;
    }

    .hotels-grid {
        grid-template-columns: 1fr;
    }

    .gallery-upload form {
        flex-direction: column;
    }

    .upload-name, .upload-caption {
        width: 100%;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .rsvp-form {
        padding: 1.5rem;
    }

    .conditional-fields {
        padding: 1rem;
    }
}
