@font-face {
    font-family: 'Melancholia';
    src: url('Melancholia.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Recoleta';
    src: url('Recoleta.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NewYork';
    src: url('NewYork.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Relationship';
    src: url('Relationshipof mélodrame.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ChristmasTwinkle';
    src: url('christmas-twinkle-personal-use.regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Handgone';
    src: url('handgone.regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

:root {
    --rose-gold: #B76E79;
    --rose-gold-light: #D4A5A5;
    --salmon-pink: #FFA07A;
    --salmon-pink-light: #FFB89A;
    --cream: #FFF8F0;
    --white: #FFFFFF;
    --text-dark: #4A4A4A;
    --text-light: #6B6B6B;
}

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

body {
    font-family: 'Recoleta', serif;
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fade in overlay */
.fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 9999;
    pointer-events: none;
    opacity: 1;
    will-change: opacity;
}

/* Fade out is triggered by JS once critical fonts are ready */
.fade-overlay.fade-out {
    animation: fadeOut 1.5s ease-out 0.3s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-top: 4rem;
    padding-bottom: 3rem;
}

.hero-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.celebration-text {
    font-family: 'Recoleta', serif;
    font-size: 0.45rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
}

.celebration-text.animate {
    visibility: visible;
    animation: fadeInUp 1s ease-out forwards;
}

.names {
    font-family: 'Melancholia', cursive;
    font-size: 6rem;
    font-weight: 300;
    color: var(--white);
    margin: 0;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5),
                 -1px -1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    opacity: 0;
    visibility: hidden;
}

.names.animate {
    visibility: visible;
    animation: fadeInUp 1.2s ease-out forwards;
}

/* Names container for animated layout */
.names-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
	    visibility: visible;
	    opacity: 0;
    overflow: visible;
	    /* Start fully clipped with extra overscan (incl. px) so flourishes like the leading "C" never get clipped */
	    clip-path: inset(calc(-15% - 24px) 100% calc(-15% - 24px) calc(-10% - 24px));
	    transition: clip-path 3.2s linear, opacity 0.3s ease-out;
    width: 100%;
    max-width: 100vw;
    flex-wrap: nowrap;
    padding: 0 5%;
}

	.names-container.sweep-reveal {
	    /* Sweep fully across with left/right overscan and fade the whole group in */
	    clip-path: inset(calc(-15% - 24px) calc(-10% - 24px) calc(-15% - 24px) calc(-10% - 24px));
	    opacity: 1;
	}

.name-calvin,
.name-julia {
    font-family: 'Handgone', cursive;
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
    letter-spacing: 1px;
    display: inline-flex;
}

.name-julia {
    margin-left: -1px;
}

/* Individual letter – visible by default (sweep handles reveal) */
.name-letter {
    display: inline-block;
}

/* Ampersand – sizing & layout (sweep handles reveal) */
.ampersand {
    display: inline-block;
    flex-shrink: 0;
    width: 90px;
    aspect-ratio: 545 / 612;
    margin: 0;
    overflow: visible;
    vertical-align: middle;
    --ampersand-optical-x: calc(5% + 5px);
    --ampersand-optical-y: 6%;
}

.ampersand img {
    width: 100%;
    height: 100%;
    transform: translate(var(--ampersand-optical-x), var(--ampersand-optical-y));
    display: block;
}

/* Desktop - scale up Calvin & Julia */
@media (min-width: 769px) {
    .names-container {
        gap: 1.1rem;
    }

    .name-calvin,
    .name-julia {
        font-size: 3rem;
    }

    .name-julia {
        font-size: 3.15rem;
        margin-left: calc(-1% - 10px);
    }

    .ampersand {
        --ampersand-optical-x: calc(4% + 5px);
        width: 150px;
        margin: 0;
        filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.15));
    }
}

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

/* Hero Bottom */
.hero-bottom {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.wedding-date {
    font-family: 'Recoleta', serif;
    font-size: 1.8rem;
    color: var(--white);
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    opacity: 0;
    visibility: hidden;
}

.wedding-date.animate {
    visibility: visible;
    animation: fadeInUp 1s ease-out forwards;
}

/* Hero Navigation */
.hero-nav {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    font-family: 'Recoleta', serif;
    font-size: 0.9rem;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link.animate {
    visibility: visible;
    animation: fadeInUp 0.8s ease-out forwards;
}

.nav-link:nth-child(1).animate { animation-delay: 0s; }
.nav-link:nth-child(2).animate { animation-delay: 0.15s; }
.nav-link:nth-child(3).animate { animation-delay: 0.3s; }
.nav-link:nth-child(4).animate { animation-delay: 0.45s; }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--white);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    transform: translateY(-2px);
}

/* Bokeh Container */
.bokeh-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

#bokehCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Content Sections */
.content-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 2rem;
    background-color: #FEEDE9;
}


/* Photo Collage */
.photo-collage-section {
    background-color: #FEEDE9;
    padding: 4rem 2rem 4rem;
    display: flex;
    justify-content: center;
}

.photo-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
    max-width: 900px;
    aspect-ratio: auto;
}

.collage-large {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.collage-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.collage-small-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.75rem;
}

.collage-small-grid .collage-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.collage-small-grid .collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

/* Reduce spacing adjacent to photo collage */
#event-details {
    padding-bottom: 0;
    min-height: 30vh;
}

#faq {
    padding-top: 2rem;
}

@media (max-width: 600px) {
    .photo-collage-section {
        padding: 3rem 1rem;
    }

    .photo-collage {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .collage-large {
        aspect-ratio: 4 / 3;
    }

    .collage-small-grid {
        gap: 0.5rem;
    }
}
.section-title {
    font-family: 'Recoleta', serif;
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--text-dark);
    text-align: center;
    margin: 0 0 1.5rem 0;
    letter-spacing: 3px;
}

/* Rose Gold Divider with Reflective Material Effect */
.rose-gold-divider {
    width: 120px;
    height: 3px;
    margin: 0 auto 3rem auto;
    border-radius: 2px;
    background: linear-gradient(
        90deg,
        #b76e79 0%,
        #e8b4b8 20%,
        #f5d5d8 35%,
        #ffffff 50%,
        #f5d5d8 65%,
        #e8b4b8 80%,
        #b76e79 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    box-shadow:
        0 2px 8px rgba(183, 110, 121, 0.4),
        0 0 20px rgba(183, 110, 121, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
    position: relative;
}

.rose-gold-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    border-radius: 2px 2px 0 0;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.section-content {
    max-width: 800px;
    text-align: center;
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Ceremony Details */
.ceremony-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.ceremony-time {
    font-family: 'Recoleta', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--rose-gold);
    letter-spacing: 2px;
    margin: 0;
}

.ceremony-attire {
    font-family: 'Recoleta', serif;
    font-size: 1.15rem;
    font-weight: 300;
    font-style: normal;
    color: var(--text-dark);
    margin: 0;
}

.ceremony-venue {
    margin: 0.2rem 0;
}

.ceremony-venue .venue-name {
    font-family: 'Recoleta', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.25rem;
}

.ceremony-venue .venue-address {
    font-size: 1rem;
    color: var(--text-dark);
    opacity: 0.8;
    margin: 0 0 0.25rem;
}

.ceremony-venue .venue-room {
    font-family: 'Recoleta', serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--rose-gold);
    margin: 0;
}

.ceremony-notes {
    max-width: 600px;
    margin-top: 0.5rem;
}

.ceremony-notes p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    opacity: 0.85;
    margin: 0 0 1rem;
    font-variant-ligatures: none;
    -webkit-font-variant-ligatures: none;
}

.ceremony-notes p:last-child {
    margin-bottom: 0;
}

.ceremony-divider {
    width: 60px;
    height: 1px;
    background: var(--rose-gold);
    opacity: 0.4;
    margin: 2.5rem auto;
}

.ceremony-subtitle {
    font-family: 'Recoleta', serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-dark);
    letter-spacing: 2px;
    margin: 0 0 1rem;
}

.ceremony-tagline {
    font-size: 1.1rem;
    font-style: normal;
    color: var(--text-dark);
    opacity: 0.85;
    margin: 0;
}

/* FAQ Accordion */
.faq-accordion {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid var(--rose-gold-light);
    overflow: hidden;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 1.2rem 2.5rem 1.2rem 0;
    background: none;
    border: none;
    font-family: 'Recoleta', serif;
    font-size: 1.05rem;
    color: var(--text-dark);
    text-align: left;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--rose-gold);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--rose-gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0 0 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 0 1.2rem 0;
}

.faq-answer p {
    margin: 0 0 0.5rem 0;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    font-variant-ligatures: none;
    -webkit-font-variant-ligatures: none;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-note {
    margin-top: 2rem;
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    opacity: 0.85;
}

/* RSVP Form */
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 450px;
}

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

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group label .optional {
    font-weight: 400;
    color: #999;
    font-size: 0.85rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    padding: 0.9rem 1rem;
    border: 1.5px solid var(--rose-gold);
    border-radius: 10px;
    font-family: 'Recoleta', serif;
	    font-size: 16px;
    font-variant-ligatures: none;
    -webkit-font-variant-ligatures: none;
    color: var(--text-dark);
    background-color: var(--white);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--rose-gold);
    box-shadow: 0 0 0 4px rgba(183, 110, 121, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bbb;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23B76E79' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

/* Name Rows - Multiple Guest Names */
.name-rows {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.name-row input[type="text"] {
    flex: 1;
}

.remove-guest-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(192, 57, 43, 0.1);
    color: #c0392b;
    font-size: 1.2rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.remove-guest-btn:hover {
    background: rgba(192, 57, 43, 0.2);
    transform: scale(1.1);
}

.add-guest-btn {
    align-self: flex-start;
    background: none;
    border: 1.5px dashed var(--rose-gold-light);
    border-radius: 10px;
    padding: 0.55rem 1.2rem;
    font-family: 'Recoleta', serif;
    font-size: 0.88rem;
    color: var(--rose-gold);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.4rem;
}

.add-guest-btn:hover {
    border-color: var(--rose-gold);
    background: rgba(183, 110, 121, 0.06);
}

.add-guest-btn.hidden {
    display: none;
}

/* Counter Input - Modern Stepper */
.counter-input {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.counter-input input[type="number"] {
    width: 55px;
    text-align: center;
    padding: 0.5rem 0.25rem;
    border: 1.5px solid var(--rose-gold);
    border-radius: 20px;
    font-family: 'Recoleta', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--rose-gold);
    background-color: var(--white);
    -moz-appearance: textfield;
    appearance: textfield;
}

.counter-input input[type="number"]::-webkit-outer-spin-button,
.counter-input input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.counter-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        #b76e79 0%,
        #e8b4b8 40%,
        #f5d5d8 60%,
        #e8b4b8 80%,
        #b76e79 100%
    );
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(183, 110, 121, 0.3);
}

.counter-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 18px rgba(183, 110, 121, 0.4);
}

.counter-btn:active {
    transform: scale(0.95);
}

/* Dinner Selection - Side by Side Cards */
.dinner-radio-hidden {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.dinner-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.dinner-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.2rem 1rem;
    border: 1.5px solid var(--rose-gold-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
}

.dinner-option:hover {
    border-color: var(--rose-gold);
    box-shadow: 0 4px 16px rgba(183, 110, 121, 0.15);
    transform: translateY(-2px);
}

input[type="radio"]:checked + .dinner-option {
    border-color: var(--rose-gold);
    background: linear-gradient(135deg, rgba(183, 110, 121, 0.08), rgba(212, 165, 165, 0.12));
    box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.2), 0 4px 16px rgba(183, 110, 121, 0.12);
}

.dinner-title {
    font-family: 'Recoleta', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.45rem;
}

.dinner-desc {
    font-family: 'Recoleta', serif;
    font-size: 0.82rem;
    color: var(--text-dark);
    line-height: 1.35;
    font-weight: 600;
    font-variant-ligatures: none;
    -webkit-font-variant-ligatures: none;
}

.dietary-tags {
    font-weight: 400;
    color: #999;
    font-size: 0.78rem;
}

.dinner-cooking {
    font-family: 'Recoleta', serif;
    font-size: 0.72rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.15rem;
    font-variant-ligatures: none;
    -webkit-font-variant-ligatures: none;
}

.dinner-details {
    font-family: 'Recoleta', serif;
    font-size: 0.62rem;
    color: #999;
    line-height: 1.35;
    margin-top: 0.3rem;
    font-variant-ligatures: none;
    -webkit-font-variant-ligatures: none;
}

.guest-dinner-name {
    font-family: 'Recoleta', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.2rem;
    text-align: left;
}

.guest-dinner-name:empty {
    display: none;
}

.dinner-notes {
    width: 100%;
    margin-top: 0.8rem;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--rose-gold);
    border-radius: 10px;
    font-family: 'Recoleta', serif;
    font-size: 0.85rem;
    color: var(--text-dark);
    background-color: var(--white);
    resize: vertical;
    transition: all 0.3s ease;
}

.dinner-notes:focus {
    outline: none;
    border-color: var(--rose-gold);
    box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.15);
}

/* Guest Dinner Sections (dynamically added) */
.guest-dinner-group {
    animation: fadeInGuest 0.35s ease-out forwards;
}

@keyframes fadeInGuest {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.guest-dinner-group > label {
    color: var(--rose-gold);
    font-size: 0.88rem;
    font-style: italic;
}

/* Submit Button - Rose Gold Oval */
.submit-btn {
    background: linear-gradient(
        135deg,
        #8b4d57 0%,
        #b76e79 30%,
        #c9848e 50%,
        #b76e79 70%,
        #8b4d57 100%
    );
    background-size: 200% 100%;
    color: var(--white);
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-family: 'Recoleta', serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 1rem;
    box-shadow:
        0 4px 20px rgba(139, 77, 87, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.submit-btn:hover {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(139, 77, 87, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Form Error */
.form-error {
    color: #c0392b;
    font-size: 0.88rem;
    margin: 0.4rem 0 0;
    line-height: 1.4;
    font-variant-ligatures: no-common-ligatures;
    font-family: 'Recoleta', serif;
}

.input-error {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15) !important;
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    color: #155724;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
    font-size: 1rem;
}

.success-message p {
    margin: 0;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 14px 28px;
    border-radius: 12px;
    font-family: 'Recoleta', serif;
    font-size: 1rem;
    color: var(--white);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    background: var(--rose-gold);
}

.toast-error {
    background: #c0392b;
}

/* Footer */
footer {
    background: var(--rose-gold);
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

footer p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.footer-names {
    font-family: 'Melancholia', cursive;
    font-size: 2rem;
    margin-top: 1rem;
}

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

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-family: 'Recoleta', serif;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
    opacity: 0.9;
}

/* Gallery */
.gallery-grid {
	    /* Grid gallery (non-masonry) */
	    display: grid;
	    grid-template-columns: repeat(3, 1fr);
	    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 900px;
}

.gallery-actions {
    width: 100%;
    max-width: 900px;
    margin: 1.75rem auto 0;
    display: flex;
    justify-content: center;
}

.gallery-load-more {
    appearance: none;
    border: 1.5px solid var(--rose-gold);
    background: var(--white);
    color: var(--rose-gold);
    border-radius: 999px;
    padding: 0.765rem 2.16rem; /* ~10% smaller */
    font-family: 'Recoleta', serif;
    font-size: 0.945rem; /* ~10% smaller */
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 220ms ease, color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
    box-shadow: 0 8px 18px rgba(183, 110, 121, 0.12);
}

.gallery-load-more:hover {
    background: var(--rose-gold);
    color: var(--white);
}

.gallery-load-more:active {
    box-shadow: 0 8px 18px rgba(183, 110, 121, 0.12);
}

.gallery-load-more:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(183, 110, 121, 0.22), 0 10px 18px rgba(183, 110, 121, 0.16);
}

@media (max-width: 480px) {
    .names-container {
        gap: 0.55rem;
    }

    .gallery-load-more {
        padding: 0.72rem 1.62rem; /* ~10% smaller */
        width: min(320px, 90%);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
	    border-radius: 0;
    cursor: pointer;
	    aspect-ratio: 1;
	    box-shadow: 0 4px 15px rgba(183, 110, 121, 0.15);
	    transition: all 0.4s ease;
}

.gallery-item::after {
	    content: '';
	    position: absolute;
	    inset: 0;
	    background: linear-gradient(
	        135deg,
	        rgba(183, 110, 121, 0) 0%,
	        rgba(183, 110, 121, 0.1) 100%
	    );
	    opacity: 0;
	    transition: opacity 0.3s ease;
}

.gallery-item:hover {
	    transform: translateY(-5px);
	    box-shadow: 0 12px 30px rgba(183, 110, 121, 0.25);
}

.gallery-item:hover::after {
	    opacity: 1;
}

.gallery-item img {
    width: 100%;
	    height: 100%;
	    object-fit: cover;
	    display: block;
	    border-radius: 0;
	    transition: transform 0.5s ease;
}

.gallery-item:hover img {
	    transform: scale(1.08);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
	    padding: 2rem 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}


.lightbox-content {
	    width: min(1400px, 96%);
	    display: flex;
	    flex-direction: column;
	    align-items: center;
	    gap: 0.95rem;
}

.lightbox-main {
	    position: relative;
	    width: 100%;
	    display: flex;
	    align-items: center;
	    justify-content: center;
}

.lightbox #lightbox-img {
	    width: 100%;
	    max-width: 100%;
	    max-height: 88vh;
	    object-fit: contain;
	    border-radius: 10px;
	    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
	    animation: lightboxZoom 0.3s ease;
	    transition: opacity 180ms ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
	    background: rgba(255, 255, 255, 0.5);
	    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--text-dark);
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
	    border-radius: 999px;
	    backdrop-filter: blur(8px);
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
	    width: 54px;
	    height: 54px;
	    display: flex;
	    align-items: center;
	    justify-content: center;
	    background: rgba(255, 255, 255, 0.5);
	    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--text-dark);
    font-size: 2rem;
    cursor: pointer;
	    padding: 0;
	    border-radius: 999px;
    opacity: 0.7;
    transition: all 0.3s ease;
	    backdrop-filter: blur(10px);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
	    background: rgba(183, 110, 121, 0.26);
	    border-color: rgba(183, 110, 121, 0.4);
}

/* Thumbnail strip (prev / current / next) */
.lightbox-thumbs {
	    width: min(780px, 100%);
	    display: flex;
	    align-items: center;
	    justify-content: center;
	    gap: 0.65rem;
	    padding: 0.15rem 0.25rem;
	    overflow-x: auto;
	    overscroll-behavior: contain;
	    -webkit-overflow-scrolling: touch;
}

.lightbox-thumb {
	    appearance: none;
	    border: 1px solid rgba(0, 0, 0, 0.12);
	    background: transparent;
	    padding: 0;
	    border-radius: 12px;
	    cursor: pointer;
	    opacity: 0.72;
	    transition: transform 180ms ease, opacity 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
	    flex: 0 0 auto;
}

.lightbox-thumb img {
	    width: 96px;
	    height: 64px;
	    object-fit: cover;
	    display: block;
	    border-radius: 11px;
}

.lightbox-thumb[aria-current="true"] {
	    opacity: 1;
	    border-color: var(--rose-gold);
	    box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.22);
	    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .names {
        font-size: 4rem;
    }

    .wedding-date {
        font-size: 1.6rem;
    }

    .hero-nav {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .nav-link {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }

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

    .content-section {
        padding: 4rem 1.5rem;
    }

    #event-details {
        padding-bottom: 0;
        padding-top: 2rem;
        min-height: 30vh;
    }


    .ampersand {
        width: 58.4px;
    }

    .rose-gold-divider {
        width: 100px;
    }

    .container {
        padding: 2rem 1rem;
    }

    .hero-content {
        padding: 1.5rem;
    }
}

/* Tall phones like iPhone 17 Pro Max (narrow but tall screens) */
@media (max-width: 480px) and (min-height: 800px) {
    .hero-section {
        justify-content: flex-start;
    }

    .hero-content {
        margin-top: 20vh;
    }
}

/* Sticky Navigation */
.sticky-nav {
    position: fixed;
    top: -60px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--rose-gold);
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: top 0.3s ease;
}

.sticky-nav.visible {
    top: 0;
}

.sticky-nav .nav-link {
    font-family: 'Recoleta', serif;
    font-size: 0.65rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.sticky-nav .nav-link:hover {
    opacity: 0.8;
}

@media (max-width: 480px) {
    .hero-section {
        padding: 30px;
        justify-content: flex-start;
        gap: 1rem;
    }

    .hero-content {
        margin-top: 12vh;
        padding: 0 30px;
        box-sizing: border-box;
        width: 100%;
    }

	    /* Mobile RSVP: shrink the entire form inward */
	    #rsvp .rsvp-form {
	        max-width: 360px;
	        margin-left: auto;
	        margin-right: auto;
	        padding: 30px;
	    }

	    #rsvp .form-group input[type="text"],
	    #rsvp .form-group input[type="email"],
	    #rsvp .form-group select,
	    #rsvp .form-group textarea {
	        width: 100%;
	        max-width: 100%;
	    }

	    /* Prevent flex children from forcing overflow */
	    #rsvp .name-row input[type="text"] {
	        min-width: 0;
	    }

    .hero-bottom {
        position: absolute;
        bottom: 70px;
        left: 0;
        right: 0;
        padding: 0 30px;
        box-sizing: border-box;
    }

    .name-calvin,
    .name-julia {
        font-size: clamp(1.1rem, 5.5vw, 1.5rem);
    }

    .name-calvin {
	        margin-right: 0;
    }

    .name-julia {
        font-size: clamp(1.15rem, 5.8vw, 1.575rem);
	        margin-left: 0;
    }

    .ampersand {
        width: clamp(40px, 14vw, 58.4px);
	        margin: 0;
	        --ampersand-optical-x: 0;
	        --ampersand-optical-y: 4%;
    }

    .names {
        font-size: calc((100vw - 20px) / 7.5);
        font-weight: 500;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
        paint-order: stroke fill;
        padding: 0 10px;
        box-sizing: border-box;
        width: 100%;
    }

    .wedding-date {
        font-size: 1.2rem;
        margin-top: 0.3rem;
    }

    .hero-nav {
        gap: 0.8rem 1.2rem;
        margin-top: 1rem;
    }

    .nav-link {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    .section-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .content-section {
        padding: 3rem 1rem;
    }

    .rose-gold-divider {
        width: 80px;
    }

    .rsvp-form {
        gap: 1.2rem;
    }

	    .form-group input[type="text"],
	    .form-group input[type="email"],
	    .form-group select,
	    .form-group textarea {
	        padding: 0.85rem 1rem;
	        font-size: 18px; /* Slightly larger on small phones to strongly discourage auto-zoom */
	    }

    .counter-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .counter-input input[type="number"] {
        width: 50px;
        padding: 0.4rem 0.25rem;
        font-size: 1rem;
    }

    .counter-input {
        gap: 0.75rem;
    }

    .dinner-selection {
        gap: 0.6rem;
    }

    .dinner-option {
        padding: 1rem 0.7rem;
    }

    .dinner-title {
        font-size: 1.05rem;
    }

    .dinner-desc {
        font-size: 0.78rem;
    }

    .dinner-details {
        font-size: 0.7rem;
    }

    .submit-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .countdown {
        gap: 1rem;
    }

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

    .countdown-label {
        font-size: 0.65rem;
    }

    .gallery-grid {
	        grid-template-columns: repeat(2, 1fr);
	        gap: 0.75rem;
    }

    .lightbox-prev,
    .lightbox-next {
	        width: 46px;
	        height: 46px;
	        font-size: 1.6rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }

	    .lightbox-thumb img {
	        width: 84px;
	        height: 56px;
	    }
}

/* Tall phones - scale up names */
@media (max-width: 480px) and (min-height: 700px) {
    .hero-section {
        justify-content: flex-start;
    }

    .hero-content {
        margin-top: 10vh;
    }

    .names {
        font-size: calc((100vw - 60px) / 5.5);
    }

    .wedding-date {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .hero-nav {
        margin-top: 0;
    }
}

/* Extra tall phones (iPhone Pro Max, iPhone 17, etc) */
@media (max-width: 480px) and (min-height: 850px) {
    .hero-content {
        margin-top: 10vh;
    }

    .names {
        font-size: calc((100vw - 60px) / 5);
    }
}

/* Very tall phones (iPhone 17 Pro Max, etc) */
@media (max-width: 480px) and (min-height: 920px) {
    .hero-content {
        margin-top: 8vh;
    }
}

/* Sticky nav responsive */
@media (max-width: 480px) {
    .sticky-nav {
        gap: 0.8rem;
        padding: 10px 15px;
    }

    .sticky-nav .nav-link {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }
}

