:root {
    --background: hsl(36, 33%, 96%);
    --foreground: hsl(30, 20%, 18%);
    --card: hsl(36, 30%, 93%);
    --card-foreground: hsl(30, 20%, 18%);
    --popover: hsl(36, 33%, 96%);
    --popover-foreground: hsl(30, 20%, 18%);
    --primary: hsl(38, 70%, 50%);
    --primary-foreground: hsl(36, 33%, 96%);
    --secondary: hsl(30, 25%, 88%);
    --secondary-foreground: hsl(30, 20%, 18%);
    --muted: hsl(36, 20%, 90%);
    --muted-foreground: hsl(30, 10%, 45%);
    --accent: hsl(350, 35%, 82%);
    --accent-foreground: hsl(30, 20%, 18%);
    --destructive: hsl(0, 84.2%, 60.2%);
    --destructive-foreground: hsl(210, 40%, 98%);
    --border: hsl(36, 25%, 85%);
    --input: hsl(36, 25%, 85%);
    --ring: hsl(38, 70%, 50%);
    --radius: 0.5rem;
    --gold: hsl(38, 70%, 50%);
    --gold-light: hsl(38, 60%, 70%);
    --gold-dark: hsl(38, 65%, 35%);
    --ivory: hsl(40, 40%, 95%);
    --blush: hsl(350, 35%, 88%);
    --champagne: hsl(35, 30%, 85%);
    --wine: hsl(350, 40%, 30%);

    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

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

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

/* Typography */
.font-script {
    font-family: var(--font-script);
}

.font-sans {
    font-family: var(--font-sans);
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 3rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Navigation */
.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
    transition: all 0.5s ease;
    background-color: transparent;
}

.fixed-nav.scrolled {
    background-color: rgba(246, 244, 239, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    width: 100%;
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--primary-foreground);
}

.scrolled .nav-logo {
    color: var(--gold);
}

.nav-desktop {
    display: flex;
    gap: 2rem;
}

.nav-desktop a {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(246, 244, 239, 0.8);
}

.scrolled .nav-desktop a {
    color: rgba(45, 41, 36, 0.7);
}

.scrolled .nav-desktop a:hover {
    color: var(--gold);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-foreground);
}

.scrolled .menu-toggle {
    color: var(--foreground);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background-color: currentColor;
    transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(246, 244, 239, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
    max-height: 400px;
}

.mobile-menu-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu-content a {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(45, 41, 36, 0.7);
    padding: 0.5rem 0;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            hsla(30, 20%, 10%, 0.3) 0%,
            hsla(30, 20%, 10%, 0.5) 50%,
            hsla(30, 20%, 10%, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1rem;
    max-width: 896px;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-script);
    font-size: 5.5rem;
    color: var(--primary-foreground);
    text-shadow: 0 2px 20px hsla(30, 20%, 10%, 0.5);
    margin-bottom: 1rem;
}

.hero-line {
    width: 96px;
    height: 1px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    margin: 1.5rem auto;
}

.hero-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-date .icon {
    width: 1rem;
    height: 1rem;
    color: var(--gold-light);
}

.date-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    color: rgba(246, 244, 239, 0.9);
}

.hero-quote {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: rgba(246, 244, 239, 0.8);
    max-width: 36rem;
    margin: 0 auto;
}

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

.btn-rsvp {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border: 1px solid var(--gold-light);
    color: rgba(246, 244, 239, 0.9);
    border-radius: 2px;
}

.btn-rsvp:hover {
    background-color: rgba(181, 142, 74, 0.2);
}

/* Our Story Section */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.story-content p {
    font-size: 1.125rem;
    color: rgba(45, 41, 36, 0.8);
    margin-bottom: 1.5rem;
}

.story-image-main .image-wrapper {
    position: relative;
}

.story-image-main img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.image-border {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    width: 8rem;
    height: 8rem;
    border: 2px solid var(--gold);
    z-index: -1;
}



/* Schedule Section */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(181, 142, 74, 0.3);
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    padding-left: 60px;
}

.timeline-content {
    flex: 1;
}

.timeline-time {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
}

.timeline-title {
    font-size: 1.875rem;
    margin: 0.5rem 0;
}

.timeline-desc {
    color: var(--muted-foreground);
    font-size: 1.125rem;
}

.timeline-icon {
    position: absolute;
    left: 24px;
    top: 0;
    transform: translateX(-50%);
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.timeline-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Church Section */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.church-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.info-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.info-text {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
}

.detail-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.detail-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.detail-value {
    color: var(--muted-foreground);
}

.map-placeholder {
    width: 100%;
    height: 12rem;
    background-color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    font-family: var(--font-sans);
    font-size: 0.875rem;
}

/* Venue Section */
.venue-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    text-align: center;
}

.venue-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.venue-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(26, 24, 22, 0.7);
}

.venue-content {
    position: relative;
    z-index: 10;
    max-width: 42rem;
    margin: 0 auto;
    color: var(--primary-foreground);
}

.venue-sparkle {
    width: 2rem;
    height: 2rem;
    color: var(--gold);
    margin: 0 auto 1rem;
}

.venue-subtitle {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.75rem;
}

.venue-title {
    font-family: var(--font-script);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.venue-line {
    width: 96px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 2rem;
}

.venue-name {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
}

.venue-desc {
    font-size: 1.125rem;
    color: rgba(246, 244, 239, 0.8);
    margin-bottom: 2rem;
}

.venue-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.venue-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(246, 244, 239, 0.8);
}

.venue-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gold);
}

.map-placeholder.glass {
    background-color: rgba(246, 244, 239, 0.1);
    backdrop-filter: blur(4px);
    border-color: rgba(246, 244, 239, 0.2);
    color: rgba(246, 244, 239, 0.6);
}

/* RSVP Section */
.rsvp-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.rsvp-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(26, 24, 22, 0.8);
    backdrop-filter: blur(4px);
}

.decorative-sparkle {
    position: absolute;
    top: 3rem;
    left: 2rem;
    opacity: 0.2;
    color: var(--gold);
}

.decorative-heart {
    position: absolute;
    bottom: 3rem;
    right: 2rem;
    opacity: 0.2;
    color: var(--gold);
}

.decorative-sparkle svg {
    width: 4rem;
    height: 4rem;
}

.decorative-heart svg {
    width: 5rem;
    height: 5rem;
}

.rsvp-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.pulse-heart {
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    10% {
        transform: scale(1.1);
    }

    20% {
        transform: scale(1);
    }
}

.heart-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--gold);
    margin: 0 auto 1rem;
    fill: rgba(181, 142, 74, 0.3);
}

.rsvp-subtitle {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.75rem;
}

.rsvp-title {
    font-family: var(--font-script);
    font-size: 4rem;
    color: var(--primary-foreground);
    margin-bottom: 1rem;
}

.rsvp-deadline {
    font-size: 1.25rem;
    color: rgba(246, 244, 239, 0.7);
    font-style: italic;
}

.rsvp-container {
    max-width: 42rem;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.rsvp-form {
    background-color: rgba(246, 244, 239, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 2px;
    border: 1px solid rgba(181, 142, 74, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

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

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(246, 244, 239, 0.7);
    margin-bottom: 0.5rem;
}

input,
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: rgba(246, 244, 239, 0.2);
    border: 1px solid rgba(246, 244, 239, 0.2);
    border-radius: 2px;
    color: var(--primary-foreground);
    font-family: var(--font-serif);
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
    background-color: rgba(246, 244, 239, 0.25);
}

.guest-selector {
    display: flex;
    gap: 0.75rem;
}

.guest-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid rgba(246, 244, 239, 0.2);
    background-color: rgba(246, 244, 239, 0.2);
    color: var(--primary-foreground);
    font-family: var(--font-serif);
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.guest-btn.active {
    background-color: var(--gold);
    border-color: var(--gold);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(181, 142, 74, 0.4);
}

.attend-selector {
    display: flex;
    gap: 1rem;
}

.attend-btn {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: 2px solid rgba(246, 244, 239, 0.2);
    border-radius: 2px;
    color: rgba(246, 244, 239, 0.6);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.attend-btn .emoji {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.attend-btn.active {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--primary-foreground);
    box-shadow: 0 4px 12px rgba(181, 142, 74, 0.4);
}

textarea {
    resize: none;
}

.btn-submit {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    border: none;
    border-radius: 2px;
    color: var(--primary-foreground);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.send-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.rsvp-success {
    text-align: center;
    padding: 5rem 2rem;
    background-color: rgba(246, 244, 239, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 2px;
    border: 1px solid rgba(181, 142, 74, 0.3);
}

.success-icon {
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.success-title {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--primary-foreground);
    margin-bottom: 1rem;
}

.success-text {
    font-size: 1.25rem;
    color: rgba(246, 244, 239, 0.8);
    max-width: 25rem;
    margin: 0 auto 2rem;
}

.btn-reset {
    background: none;
    border: none;
    color: var(--gold);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: underline;
    cursor: pointer;
    text-underline-offset: 4px;
}

.hidden {
    display: none;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background-color: var(--foreground);
    text-align: center;
    color: var(--primary-foreground);
}

.footer-logo {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-divider .line {
    width: 3rem;
    height: 1px;
    background-color: rgba(181, 142, 74, 0.3);
}

.footer-divider .heart {
    width: 1rem;
    height: 1rem;
    color: var(--gold);
}

.footer-info {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    color: rgba(246, 244, 239, 0.6);
}

.footer-credit {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(246, 244, 239, 0.4);
    margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }

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

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

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

    .story-grid,
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .story-content {
        order: 2;
    }

    .story-image-main {
        order: 1;
    }


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

    .rsvp-form {
        padding: 2rem;
    }

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

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

    .timeline-item.reverse {
        flex-direction: row;
    }

    .timeline-icon {
        left: 28px;
        width: 3rem;
        height: 3rem;
    }
}

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

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

    .attend-selector {
        flex-direction: column;
    }

    .guest-selector {
        flex-wrap: wrap;
    }
}