/* ===================================
   CSS Variables & Global Styles
   =================================== */

:root {
    /* Colors - Elegant Wedding Palette */
    --primary-color: #8b7355;
    --secondary-color: #d4af89;
    --accent-rose: #d4a5a5;
    --accent-sage: #a8b5a0;
    --accent-champagne: #f5e6d3;
    --accent-navy: #2c3e50;

    --text-primary: #2c2c2c;
    --text-secondary: #666;
    --text-light: #999;
    --background: #ffffff;
    --background-alt: #fdfbf7;
    --border-color: #e8e4df;

    /* Fonts */
    --font-serif: "Cormorant Garamond", serif;
    --font-sans: "Montserrat", sans-serif;

    /* Spacing */
    --section-padding: 80px 20px;
    --container-max: 1200px;
}

/* ===================================
   Reset & Base Styles
   =================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Typography
   =================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4rem;
    font-weight: 300;
}

h2 {
    font-size: 3rem;
    font-weight: 400;
}

h3 {
    font-size: 2rem;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* ===================================
   Layout Components
   =================================== */

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

.section {
    padding: var(--section-padding);
}

.section:nth-child(even) {
    background-color: var(--background-alt);
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 300;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    background: var(--secondary-color);
    margin: 20px auto 0;
}

/* ===================================
   Navigation
   =================================== */

.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 1rem 0;
}

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

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

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-primary);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* ===================================
   Hero Section
   =================================== */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(
        135deg,
        var(--background-alt) 0%,
        var(--background) 100%
    );
    padding: 60px 20px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-image-placeholder {
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
    background: var(--accent-champagne);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-secondary);
    border: 3px solid var(--border-color);
}

.couple-names {
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.wedding-date {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.wedding-location {
    font-size: 1.3rem;
    color: var(--text-light);
    font-weight: 300;
}

/* ===================================
   About Section
   =================================== */

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 1.5rem;
}

.about-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ===================================
   Photo Gallery Section
   =================================== */

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item.large {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-caption {
    padding: 1rem;
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-secondary);
    background: var(--background);
    margin: 0;
}

/* ===================================
   Timeline Section
   =================================== */

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

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--background-alt);
    z-index: 1;
}

.timeline-time {
    text-align: right;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--primary-color);
    padding-right: 2rem;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.timeline-location {
    font-size: 0.95rem !important;
    font-style: italic;
    color: var(--text-light) !important;
}

/* ===================================
   Travel Section
   =================================== */

.travel-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.travel-card {
    background: var(--background);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.travel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.travel-card.full-width {
    grid-column: 1 / -1;
}

.travel-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.hotel-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.hotel-details {
    margin: 1rem 0;
    color: var(--text-secondary);
}

/* ===================================
   Attire Section
   =================================== */

.attire-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.attire-description h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.attire-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.attire-item {
    background: var(--background);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.attire-item h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.attire-note {
    background: var(--accent-champagne);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    font-size: 1rem;
}

.color-palette {
    margin-top: 2rem;
}

.color-palette h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.color-swatches {
    display: flex;
    gap: 1rem;
}

.swatch {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    transition: transform 0.3s ease;
}

.swatch:hover {
    transform: scale(1.1);
}

.swatch-1 {
    background: var(--accent-rose);
}

.swatch-2 {
    background: var(--accent-sage);
}

.swatch-3 {
    background: var(--accent-champagne);
}

.swatch-4 {
    background: var(--accent-navy);
}

/* ===================================
   RSVP Section
   =================================== */

.rsvp-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.rsvp-intro {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.rsvp-form {
    background: var(--background);
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--background);
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.form-group input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
    cursor: pointer;
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    display: none;
    text-align: center;
}

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

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

#submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===================================
   Registry Section
   =================================== */

.registry-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.registry-intro {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.registry-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.registry-card {
    background: var(--background);
    padding: 3rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.registry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.registry-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-champagne);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.registry-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* ===================================
   FAQ Section
   =================================== */

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--background);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.faq-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ===================================
   Buttons
   =================================== */

.button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: var(--background);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 1rem;
}

.button:hover {
    background: transparent;
    color: var(--primary-color);
}

.button-primary {
    background: var(--accent-navy);
    border-color: var(--accent-navy);
    font-size: 1.1rem;
    padding: 1rem 3rem;
}

.button-primary:hover {
    background: transparent;
    color: var(--accent-navy);
}

/* ===================================
   Image Placeholders
   =================================== */

.image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--accent-champagne);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.image-placeholder.tall {
    aspect-ratio: 3 / 4;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--accent-navy);
    color: var(--background);
    text-align: center;
    padding: 3rem 20px;
    margin-top: 2rem;
}

.footer p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-names {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--background) !important;
    margin-top: 0.5rem;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
    :root {
        --section-padding: 60px 20px;
    }

    .couple-names {
        font-size: 4rem;
    }

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

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .hero {
        min-height: 70vh;
    }

    .couple-names {
        font-size: 3rem;
    }

    .wedding-date {
        font-size: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 50px;
    }

    .timeline-item::before {
        left: 20px;
    }

    .timeline-time {
        text-align: left;
        padding-right: 0;
        font-size: 1.5rem;
    }

    .travel-content {
        grid-template-columns: 1fr;
    }

    .attire-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .attire-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .registry-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .couple-names {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

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

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-image-placeholder {
        width: 200px;
        height: 200px;
    }

    .about-images {
        grid-template-columns: 1fr;
    }

    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .gallery-item.large {
        grid-column: span 2;
    }

    .color-swatches {
        flex-wrap: wrap;
    }

    .photo-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item.large {
        grid-column: span 1;
    }
}
