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

:root {
    --primary: #c5a059;
    --primary-dark: #a6854a;
    --secondary: #5d6d5e;
    --bg-light: #fdfbf7;
    --bg-alt: #f4f1ea;
    --white: #ffffff;
    --text-main: #333333;
    --text-muted: #7f8c8d;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.serif {
    font-family: 'Cormorant Garamond', serif;
}

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

/* --- NAVIGATION --- */
#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 6rem;
    z-index: 1000;
    transition: var(--transition);
}

#main-nav.scrolled {
    background: var(--white);
    padding: 1rem 4rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--primary);
    flex: 0 0 100px;
}

#nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

#nav-links li a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

#nav-links li a:hover {
    color: var(--primary);
}

.lang-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    transition: 0.3s;
    opacity: 0.5;
}

.lang-btn.active {
    opacity: 1;
    border-color: var(--primary);
}

.lang-btn img {
    width: 24px;
    height: auto;
    display: block;
}

.desktop-only {
    display: flex;
}

.desktop-only.lang-switcher {
    flex: 0 0 100px;
    justify-content: flex-end;
}

.mobile-only {
    display: none;
}

.menu-close-btn {
    display: none;
}

.rsvp-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 0;
}

.step-dot {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #eee;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    border: 2px solid #eee;
    transition: 0.3s;
}

.step-dot.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.step-dot.completed {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.step-line {
    width: 60px;
    height: 2px;
    background: #eee;
}

.step-dot.completed+.step-line,
.step-dot.active+.step-line {
    background: #e0e0e0;
}

.btn-back {
    display: block;
    margin: 1.5rem auto 0;
    background: none;
    border: none;
    text-decoration: underline;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-back:hover {
    color: var(--primary);
}

.guest-detail-card h4 {
    margin-bottom: 1rem;
    color: var(--primary);
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

@media (max-width: 992px) {
    .menu-close-btn {
        display: block !important;
    }
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.5rem;
}

/* --- HERO --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../assets/images/2b7f7c81bd0bbef8ad765efaf98160f4.jpeg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 0 1rem;
}

.main-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 300;
    margin: 0.5rem 0;
}

.sub-title {
    font-size: 1.2rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 300;
}

.date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    letter-spacing: 3px;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary);
    color: var(--white) !important;
    text-decoration: none;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--primary);
    margin-top: 2rem;
    cursor: pointer;
}

.cta-button:hover {
    background: transparent;
    color: var(--primary) !important;
    transform: translateY(-3px);
}

/* --- SECTIONS WITH FLORAL BACKGROUND --- */
#event.alt-bg,
#registry.alt-bg {
    background-image: url('../assets/images/floral_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

#event.alt-bg::before,
#registry.alt-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(253, 251, 247, 0.92);
    z-index: 0;
}

#event .container,
#registry .container {
    position: relative;
    z-index: 1;
}

/* --- COUNTDOWN --- */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.time-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1.2rem;
    min-width: 90px;
    border-radius: 12px;
    color: var(--white);
}

.time-box span {
    display: block;
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1;
}

.time-box label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* --- SECTIONS --- */
.section {
    padding: 8rem 0;
    overflow: visible;
}

.container {
    overflow: visible;
}

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


.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary);
}

/* --- EVENT SECTION --- */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.event-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(197, 160, 89, 0.1);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.event-card i {
    width: 60px;
    height: 60px;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

.event-card p {
    margin: 0.5rem 0;
    color: var(--text-muted);
}

.map-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.map-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* --- STORY --- */
.story-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.story-text {
    flex: 1;
}

.story-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.story-image {
    flex: 1;
}

.story-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 15px 15px 0 var(--primary);
}

/* --- EVENT --- */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.event-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.event-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* --- RSVP FORM --- */
.glass-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
    overflow: visible;
}

#rsvp {
    overflow: visible;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.rsvp-step {
    overflow: visible !important;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

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

/* --- REGISTRY SECTION --- */
.registry-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.registry-card-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.registry-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(197, 160, 89, 0.2);
    border-radius: 20px;
    padding: 4rem 3rem;
    max-width: 450px;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.registry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(197, 160, 89, 0.2);
    border-color: var(--primary);
}

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

.registry-card:hover .registry-icon {
    transform: scale(1.1) rotate(5deg);
}

.registry-icon i {
    width: 40px;
    height: 40px;
    color: white;
}

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

.registry-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* --- GIFT MODAL --- */
.modal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.modal-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #ff6b9d, #c5a059);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon i {
    width: 35px;
    height: 35px;
    color: white;
}

.modal-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

.gift-method {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(197, 160, 89, 0.1);
}

.gift-method-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.gift-method-header i {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.gift-method-header h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin: 0;
}

.gift-method-content {
    text-align: center;
}

.gift-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.gift-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin: 1rem 0;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.gift-owner {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.gift-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.gift-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(197, 160, 89, 0.2);
}

.gift-divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 3rem;
    border-radius: 25px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    z-index: 10;
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* --- SUGGESTIONS --- */
.suggestions-list {
    list-style: none;
    background: white;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 12px;
    position: absolute;
    width: 100%;
    z-index: 10000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: none;
    margin-top: 8px;
    max-height: calc(3 * 48px);
    /* Exactly 3 items */
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar for suggestions */
.suggestions-list::-webkit-scrollbar {
    width: 6px;
}

.suggestions-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 12px 12px 0;
}

.suggestions-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.suggestions-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.suggestions-list li {
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    font-size: 0.95rem;
    color: var(--text-main);
    height: 48px;
    display: flex;
    align-items: center;
}

.suggestions-list li:last-child {
    border-bottom: none;
}

.suggestions-list li:hover {
    background: linear-gradient(to right, rgba(197, 160, 89, 0.08), transparent);
    padding-left: 20px;
    color: var(--primary);
}

.suggestions-list li:active {
    background: rgba(197, 160, 89, 0.15);
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    margin: 10vh auto;
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

/* --- FOOTER --- */
footer {
    padding: 4rem 0;
    text-align: center;
    background: var(--secondary);
    color: var(--white);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    #main-nav {
        padding: 1rem 2rem;
        background: var(--white);
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    #nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
        z-index: 2000;
    }

    #nav-links.active {
        right: 0;
    }

    .menu-close-btn {
        display: block;
    }

    #nav-links li {
        margin: 1rem 0;
    }

    #nav-links li a {
        font-size: 1.2rem;
    }

    .story-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

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

    .countdown {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        max-width: 250px;
        margin: 2rem auto;
    }

    /* Push hero content down on mobile */
    header.hero {
        padding-top: 30vh !important;
        align-items: flex-start !important;
        justify-content: center !important;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .modal-content {
        width: 95%;
        padding: 2rem 1.5rem;
        margin: 5% auto;
        max-height: 85vh;
    }

    .modal-header {
        margin-bottom: 2rem;
    }

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

    .gift-method {
        padding: 1.5rem;
    }

    .gift-value {
        font-size: 1.2rem;
        word-break: break-all;
    }

    .registry-card {
        padding: 3rem 2rem;
    }

    .registry-icon {
        width: 60px;
        height: 60px;
    }

    .registry-icon i {
        width: 30px;
        height: 30px;
    }
}