@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

@font-face {
    font-family: 'Hobbiton Brushhand';
    src: url('fonts/hobbitonbrushhand.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --primary-color: #3d5a3d;
    --secondary-color: #5a7a5a;
    --accent-gold: #a89968;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --bg-cream: #f5f2e8;
    --bg-light: #faf8f5;
    --white: #ffffff;
    --border-green: #3d5a3d;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--bg-cream);
    font-size: 16px;
}

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

/* Header & Navigation - Mobile First */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 15px 20px;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 1001;
}

.menu-toggle:focus {
    outline: none;
}

nav {
    position: relative;
}

nav ul {
    display: none;
    flex-direction: column;
    list-style: none;
    padding: 15px 0;
    gap: 0;
    background: var(--white);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: var(--shadow);
}

nav ul.active {
    display: flex;
}

nav ul li {
    margin: 0;
    border-bottom: 1px solid var(--bg-light);
}

nav ul li:last-child {
    border-bottom: none;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s, background 0.3s;
    font-size: 1.1rem;
    font-family: 'Hobbiton Brushhand', cursive;
    letter-spacing: 1px;
    padding: 15px 20px;
    display: block;
}

nav ul li a:hover {
    color: var(--secondary-color);
    background: var(--bg-light);
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
    
    nav ul {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        position: static;
        padding: 20px 0;
        gap: 0;
        box-shadow: none;
        background: transparent;
    }
    
    nav ul li {
        margin: 0 25px;
        border-bottom: none;
    }
    
    nav ul li a {
        font-size: 1.1rem;
        padding: 0;
    }
    
    nav ul li a:hover {
        background: transparent;
    }
}

/* Hero Section - Mobile First */
.hero {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    padding: 30px 15px 20px;
    text-align: center;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    max-width: 100%;
    background: var(--white);
    padding: 25px 15px;
    border: 3px solid var(--border-green);
    border-radius: 2px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-content::before,
.hero-content::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
}

.hero-content::before {
    top: 8px;
    left: 8px;
    border-right: none;
    border-bottom: none;
}

.hero-content::after {
    bottom: 8px;
    right: 8px;
    border-left: none;
    border-top: none;
}

.rings-icon {
    width: 60px;
    height: auto;
    margin-bottom: 20px;
    opacity: 0.7;
}

.couple-photo {
    max-width: 100%;
    width: 280px;
    height: auto;
    margin: 20px auto;
    display: block;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.hero-content h1 {
    font-family: 'Hobbiton Brushhand', cursive;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.hero-content .date {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-style: italic;
    color: var(--text-light);
}

.decorative-line {
    width: 150px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 20px auto;
}

.personalized-invite {
    background: var(--bg-light);
    padding: 25px 15px;
    border-radius: 5px;
    max-width: 100%;
    margin: 20px auto 0;
    border: 1px solid var(--primary-color);
}

.personalized-invite-lf {
    background: var(--bg-light);
    padding: 25px 15px;
    border-radius: 5px;
    max-width: 100%;
    margin: 20px auto 0;
    border: 0px solid var(--primary-color);
}


.personalized-invite h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.personalized-invite p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.plus-one {
    margin-top: 15px;
    font-style: italic;
    opacity: 0.9;
}

.quote {
    font-style: italic;
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--primary-color);
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .hero {
        padding: 40px 20px 30px;
        min-height: calc(100vh - 100px);
    }
    
    footer {
        height: 100px;
        padding: 30px 20px;
    }
    
    footer p {
        font-size: 1rem;
    }
    
    .hero-content {
        max-width: 800px;
        padding: 60px 40px;
    }
    
    .hero-content::before,
    .hero-content::after {
        width: 40px;
        height: 40px;
    }
    
    .hero-content::before {
        top: 10px;
        left: 10px;
    }
    
    .hero-content::after {
        bottom: 10px;
        right: 10px;
    }
    
    .rings-icon {
        width: 80px;
        margin-bottom: 30px;
    }
    
    .couple-photo {
        width: 450px;
        margin: 30px auto;
    }
    
    .hero-content h1 {
        font-size: 4rem;
        margin-bottom: 20px;
        letter-spacing: 3px;
    }
    
    .hero-content .date {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }
    
    .decorative-line {
        width: 200px;
        margin: 30px auto;
    }
    
    .personalized-invite {
        padding: 40px;
        max-width: 600px;
    }
    
    .personalized-invite h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .personalized-invite p {
        font-size: 1.2rem;
    }
    
    .quote {
        font-size: 1.1rem;
        margin-top: 30px;
        padding-top: 30px;
    }
}

/* Sections - Mobile First */
section {
    padding: 50px 15px;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

@media (min-width: 768px) {
    section {
        padding: 80px 20px;
    }
    
    section h2 {
        font-size: 3rem;
        margin-bottom: 50px;
        letter-spacing: 2px;
    }
    
    section h2::after {
        width: 150px;
        margin: 20px auto 0;
    }
}

/* Details Section */
.details {
    background-color: var(--white);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    text-align: center;
    padding: 30px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
    background: var(--white);
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(61, 90, 61, 0.2);
}

.timeline-item h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
}

.timeline-item .time {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.timeline-item p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Map Section */
.map-section {
    background-color: var(--bg-light);
}

.locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.location-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.location-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
}

.location-card p {
    margin-bottom: 10px;
    color: var(--text-light);
}

#map {
    height: 500px;
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Gift List Section */
.gift-list {
    background-color: var(--white);
}

.gift-list .intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.category-title {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin: 40px 0 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.category-gifts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.gift-card {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.gift-card:hover {
    transform: translateY(-5px);
}

.gift-card.reserved {
    opacity: 0.6;
}

.gift-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gift-card h4 {
    padding: 15px 20px 10px;
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.gift-card .description {
    padding: 0 20px;
    color: var(--text-light);
    font-size: 0.95rem;
    flex-grow: 1;
}

.gift-card .price {
    padding: 15px 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.gift-card .status {
    padding: 10px 20px;
    text-align: center;
}

.reserved-badge {
    background-color: var(--text-light);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.btn-reserve {
    display: block;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 12px;
    text-decoration: none;
    transition: background-color 0.3s;
    font-weight: 500;
}

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

.bank-transfer {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    margin-top: 60px;
    text-align: center;
    box-shadow: var(--shadow);
}

.bank-transfer h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.bank-transfer p {
    margin: 15px 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* RSVP Section */
.rsvp {
    background-color: var(--bg-light);
}

.confirmation-message {
    background-color: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
}

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

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

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

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.radio-group label:hover {
    background-color: #f0ede8;
}

.radio-group input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

select, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.login-required {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    padding: 40px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.already-confirmed {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
    font-style: italic;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer p {
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .date {
        font-size: 1.3rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .timeline {
        grid-template-columns: 1fr;
    }
    
    .category-gifts {
        grid-template-columns: 1fr;
    }
    
    .rsvp-form {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 20px 15px 15px;
        min-height: calc(100vh - 70px);
    }
    
    .hero-content {
        padding: 20px 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .personalized-invite {
        padding: 20px 15px;
    }
    
    .personalized-invite h2 {
        font-size: 1.3rem;
    }
    
    footer {
        height: 70px;
        padding: 15px;
    }
    
    footer p {
        font-size: 0.85rem;
    }
}

/* Mobile intermediate size */
@media (min-width: 480px) {
    .couple-photo {
        width: 350px;
    }
}

/* Large desktop */
@media (min-width: 1024px) {
    .couple-photo {
        width: 500px;
    }
}
