/* Natural Earthy Wedding Color Palette */
:root {
    --color-terracotta: #d4806f;
    --color-terracotta-light: #e09b8d;
    --color-sage: #7a9d96;
    --color-sage-dark: #5f7e78;
    --color-cream: #f5f1e8;
    --color-sand: #e8dcc8;
    --color-gold: #d4a574;
    --color-brown: #8b7355;
    --color-tan: #c9b393;
    --color-text-dark: #4a3f35;
    --color-text-medium: #6b5d4f;
    --color-white: #ffffff;
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Lora', serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 20px rgba(139, 115, 85, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-cream);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Subtle organic background effects */
body::before {
    content: '';
    position: fixed;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 128, 111, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: float 25s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, 40px); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(245, 241, 232, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(139, 115, 85, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--color-text-dark);
    text-decoration: none;
    letter-spacing: 0.05em;
    position: relative;
}

.logo::after {
    content: '♥';
    position: absolute;
    top: -8px;
    right: -20px;
    font-size: 0.7rem;
    color: var(--color-terracotta);
}

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

.nav-menu a {
    color: var(--color-text-medium);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.03em;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--color-terracotta);
    transition: var(--transition);
}

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

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

.nav-rsvp {
    background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-light) 100%);
    color: var(--color-white) !important;
    padding: 0.7rem 1.8rem;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.nav-rsvp::after {
    display: none;
}

.nav-rsvp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 128, 111, 0.3);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--color-text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section with Couple Photo */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--color-cream) 0%, var(--color-sand) 100%);
}

/* Placeholder for couple image */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0.75;
    filter: sepia(0.3) brightness(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(245, 241, 232, 0.7) 0%,
        rgba(245, 241, 232, 0.85) 50%,
        rgba(245, 241, 232, 0.9) 100%);
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s ease-out;
}

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

.hero-ornament {
    font-size: 2rem;
    color: var(--color-sage);
    margin-bottom: .5rem;
    animation: fadeInUp 1.2s ease-out 0.2s both;
}

.hero-ornament img {
    width: 7rem;
    height: 7rem;
}


.hero-names {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    color: var(--color-text-dark);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

.hero-date {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--color-terracotta);
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

.hero-location {
    font-size: 1.1rem;
    color: var(--color-text-medium);
    margin-bottom: 3rem;
    animation: fadeInUp 1.2s ease-out 0.8s both;
}

.hero-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-gold), transparent);
    margin: 2rem auto;
    animation: fadeInUp 1.2s ease-out 1s both;
}

.countdown {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
    animation: fadeInUp 1.2s ease-out 1.2s both;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-sage);
    display: block;
}

.countdown-label {
    font-size: 0.85rem;
    color: var(--color-text-medium);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.3rem;
}

/* Section Styles */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-ornament {
    font-size: 1.5rem;
    color: var(--color-sage);
    margin-bottom: 1rem;
}

.section-ornament img {
    width: 5rem;
    height: 5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.section-subtitle {
    color: var(--color-text-medium);
    font-size: 1.1rem;
    font-style: italic;
}

/* Our Story Section */
.story-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 3.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(212, 165, 116, 0.15);
}

.story-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--color-text-dark);
    text-align: justify;
}

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

.story-text p:last-child {
    margin-bottom: 0;
}

/* Event Details Cards */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.event-card {
    background: var(--color-white);
    padding: 3rem 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--color-sage);
}

.event-card:nth-child(2) {
    border-top-color: var(--color-terracotta);
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(139, 115, 85, 0.2);
}

.event-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.event-icon img {
    width: 5rem;
    height: 5rem;
}

.event-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    font-weight: 500;
}

.event-time {
    color: var(--color-terracotta);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.event-location {
    color: var(--color-text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.event-details {
    color: var(--color-text-medium);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Registry Section */
.registry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.registry-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.registry-card:hover {
    border-color: var(--color-sage);
    transform: translateY(-5px);
}

.registry-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-sage-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.registry-icon img {
    width: 3rem;
    height: 3rem;
}

.registry-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    font-weight: 500;
}

.registry-btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-light) 100%);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    letter-spacing: 0.05em;
    margin-top: 1rem;
}

.registry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 128, 111, 0.3);
}

/* RSVP Section */
.rsvp-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 3.5rem 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-text-dark);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    padding: 1rem;
    border: 2px solid var(--color-sand);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    background: var(--color-cream);
    transition: var(--transition);
}

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

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

.form-submit {
    padding: 1.1rem 2.5rem;
    background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-light) 100%);
    color: var(--color-white);
    border: none;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.05em;
    margin-top: 1rem;
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 128, 111, 0.3);
}

/* Travel & Accommodations */
.travel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.travel-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.travel-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.travel-card p {
    color: var(--color-text-medium);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.travel-link {
    color: var(--color-sage);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--color-sage);
    transition: var(--transition);
}

.travel-link:hover {
    color: var(--color-sage-dark);
    border-bottom-color: var(--color-sage-dark);
}

/* Footer */
.footer {
    background: linear-gradient(to bottom, var(--color-sand) 0%, var(--color-tan) 100%);
    padding: 4rem 2rem 2rem;
    text-align: center;
    margin-top: 5rem;
    border-top: 1px solid rgba(139, 115, 85, 0.2);
}

.footer-ornament {
    font-size: 2rem;
    color: var(--color-sage);
    margin-bottom: 1.5rem;
}

.footer-ornament img {
    width: 5rem;
    height: 5rem;
}

.footer-names {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.footer-tagline {
    color: var(--color-text-medium);
    font-style: italic;
    margin-bottom: 2rem;
}

.footer-copyright {
    color: var(--color-text-medium);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 115, 85, 0.2);
}

/* Mobile Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 63, 53, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 350px;
        height: 100vh;
        background: var(--color-cream);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 2rem;
        box-shadow: -5px 0 20px rgba(139, 115, 85, 0.2);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        align-items: flex-start;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.2rem;
        width: 100%;
    }

    .nav-rsvp {
        width: 100%;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 5rem 1.5rem 3rem;
    }

    .countdown {
        gap: 1.5rem;
    }

    .countdown-number {
        font-size: 2.5rem;
    }

    .section {
        padding: 3.5rem 1.5rem;
    }

    .story-content,
    .rsvp-container {
        padding: 2.5rem 2rem;
    }

    .events-grid,
    .registry-grid,
    .travel-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
