/* VINTAGE GARDEN - Wedding Template
   Palette: Sage Green (#8A9A5B), Cream (#F5F1E8), Antique Brown (#6B5844)
   Level: Medium brizbriz */

:root {
    --sage: #8A9A5B;
    --cream: #F5F1E8;
    --brown: #6B5844;
    --dark: #3A3A3A;
    --light: #FFFFFF;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(245, 241, 232, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(107, 88, 68, 0.1);
    transition: all 0.3s ease;
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-circle {
    width: 60px;
    height: 60px;
    border: 2px solid var(--sage);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    position: relative;
}

.logo-circle::before {
    content: '';
    position: absolute;
    width: 68px;
    height: 68px;
    border: 1px solid var(--brown);
    border-radius: 50%;
    opacity: 0.4;
}

.initials {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--sage);
    font-style: italic;
}

.nav {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: lowercase;
    position: relative;
    transition: all 0.3s ease;
}

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

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

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

.menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--sage);
    transition: all 0.3s ease;
}

/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #F5F1E8 0%, #E8E4D8 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.65;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(245,241,232,0.8), rgba(245,241,232,0.95));
    z-index: 2;
}

/* Falling Leaves */
.falling-leaves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.leaf {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--sage);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    opacity: 0.6;
    animation: fall 10s infinite;
}

.leaf:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 8s; }
.leaf:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 10s; }
.leaf:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 9s; }
.leaf:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 11s; }
.leaf:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 8.5s; }
.leaf:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 10.5s; }
.leaf:nth-child(7) { left: 70%; animation-delay: 2.5s; animation-duration: 9.5s; }
.leaf:nth-child(8) { left: 80%; animation-delay: 4.5s; animation-duration: 11.5s; }
.leaf:nth-child(9) { left: 15%; animation-delay: 6s; animation-duration: 10s; }
.leaf:nth-child(10) { left: 85%; animation-delay: 7s; animation-duration: 9s; }

@keyframes fall {
    0% {
        top: -50px;
        transform: rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        top: 110vh;
        transform: rotate(360deg) translateX(100px);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    padding: 60px 30px;
    max-width: 800px;
}

.vine-ornament {
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sage), transparent);
    margin: 0 auto 30px;
    position: relative;
}

.vine-ornament::before {
    content: '❦';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--sage);
    font-size: 1.5rem;
    background: var(--cream);
    padding: 0 10px;
}

.vine-ornament.bottom {
    margin: 30px auto 0;
}

.date-badge {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid var(--sage);
    background: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    letter-spacing: 2px;
    color: var(--brown);
    margin-bottom: 30px;
}

.couple-names {
    font-family: var(--font-serif);
    font-size: 5.5rem;
    color: var(--sage);
    margin-bottom: 20px;
    font-style: italic;
    font-weight: 400;
}

.amp {
    font-size: 4rem;
    color: var(--brown);
    margin: 0 20px;
}

.tagline {
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 25px;
    font-style: italic;
}

.location-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--brown);
    margin-bottom: 40px;
}

.location-tag i {
    color: var(--sage);
}

.countdown-wrapper {
    margin-bottom: 50px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.count-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 25px;
    background: rgba(255,255,255,0.9);
    border: 2px solid var(--sage);
    border-radius: 10px;
    min-width: 90px;
}

.num {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--sage);
    line-height: 1;
}

.label {
    font-size: 0.85rem;
    color: var(--brown);
    text-transform: lowercase;
    margin-top: 8px;
}

.godparents {
    padding: 25px 40px;
    background: rgba(255,255,255,0.8);
    border: 1px solid var(--sage);
    display: inline-block;
}

.god-label {
    font-size: 0.9rem;
    color: var(--brown);
    margin-bottom: 8px;
}

.god-names {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--sage);
    font-style: italic;
}

/* SECTIONS */
section {
    padding: 100px 0;
}

.section-intro {
    text-align: center;
    margin-bottom: 60px;
}

.pre-title {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--brown);
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    color: var(--sage);
    font-style: italic;
    font-weight: 400;
}

.title-ornament {
    margin-top: 20px;
}

.leaf-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 1px solid var(--sage);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sage);
}

/* STORY */
.story {
    background: var(--light);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.vintage-frame {
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, rgba(138,154,91,0.1), rgba(107,88,68,0.1));
    border: 1px solid var(--sage);
}

.vintage-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid var(--brown);
    opacity: 0.3;
}

.vintage-frame img {
    width: 100%;
    display: block;
    position: relative;
}

.story-text p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--dark);
    margin-bottom: 20px;
}

/* COUPLE */
.couple {
    background: var(--cream);
}

.couple-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.person-card {
    background: var(--light);
    padding: 40px;
    border: 1px solid var(--sage);
    transition: all 0.3s ease;
}

.person-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(107,88,68,0.15);
}

.person-img-wrap {
    position: relative;
    margin-bottom: 30px;
}

.vintage-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid var(--brown);
    z-index: 1;
    opacity: 0.3;
}

.person-img-wrap img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.corner-leaf {
    position: absolute;
    width: 25px;
    height: 25px;
    background: var(--sage);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    z-index: 3;
}

.corner-leaf.tl { top: -5px; left: -5px; }
.corner-leaf.tr { top: -5px; right: -5px; transform: rotate(90deg); }
.corner-leaf.bl { bottom: -5px; left: -5px; transform: rotate(-90deg); }
.corner-leaf.br { bottom: -5px; right: -5px; transform: rotate(180deg); }

.person-info {
    text-align: center;
}

.person-name {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--sage);
    margin-bottom: 8px;
    font-style: italic;
}

.person-title {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brown);
    margin-bottom: 20px;
}

.person-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark);
}

/* EVENTS */
.events {
    background: var(--light);
}

.events-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.event-block {
    background: var(--cream);
    border: 1px solid var(--sage);
    overflow: hidden;
    transition: all 0.3s ease;
}

.event-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(107,88,68,0.15);
}

.event-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.event-block:hover .event-img img {
    transform: scale(1.1);
}

.event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: var(--cream);
    border: 2px solid var(--sage);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-badge i {
    font-size: 1.5rem;
    color: var(--sage);
}

.event-info {
    padding: 30px;
}

.event-name {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--sage);
    margin-bottom: 20px;
    font-style: italic;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--dark);
}

.event-detail i {
    color: var(--brown);
    width: 20px;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--sage);
    color: var(--light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.map-link:hover {
    background: var(--brown);
}

/* RSVP */
.rsvp {
    background: var(--cream);
}

.rsvp-intro {
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 50px;
}

.rsvp-form {
    background: var(--light);
    padding: 50px;
    border: 1px solid var(--sage);
}

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

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

.form-group label {
    display: block;
    font-size: 0.95rem;
    color: var(--brown);
    margin-bottom: 10px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--sage);
    background: var(--cream);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brown);
    background: var(--light);
}

.radio-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-item input {
    width: auto;
    margin-right: 10px;
    accent-color: var(--sage);
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: var(--sage);
    color: var(--light);
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--brown);
}

.form-response {
    margin-top: 20px;
    padding: 15px;
    text-align: center;
    display: none;
}

.form-response.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-response.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* FOOTER */
.footer {
    background: var(--dark);
    color: var(--cream);
    padding: 60px 0 30px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-names {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--sage);
    margin-bottom: 10px;
    font-style: italic;
}

.footer-date {
    font-size: 1rem;
    margin-bottom: 30px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
}

.footer-nav a {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.footer-tagline {
    font-size: 0.95rem;
    font-style: italic;
    color: #999;
    padding-top: 25px;
    border-top: 1px solid rgba(138,154,91,0.3);
}

/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* RESPONSIVE */
@media (max-width: 968px) {
    .nav {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        background: var(--cream);
        padding: 30px;
        flex-direction: column;
        gap: 20px;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .nav.active {
        left: 0;
    }

    .menu-btn {
        display: flex;
    }

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

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

    .couple-cards {
        grid-template-columns: 1fr;
    }

    .events-list {
        grid-template-columns: 1fr;
    }

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

    .rsvp-form {
        padding: 35px;
    }
}

@media (max-width: 600px) {
    .couple-names {
        font-size: 3rem;
    }

    .amp {
        font-size: 2.5rem;
    }

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

    .countdown {
        gap: 15px;
        flex-wrap: nowrap;
    }

    .count-box {
        min-width: 70px;
        padding: 15px 18px;
    }

    .num {
        font-size: 2rem;
    }

    .rsvp-form {
        padding: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



