/* ======================================================
   LEAKEY & LILIAN – Digital Wedding Invitation
   Main Stylesheet
   Phase 2: Full Content Sections
   ====================================================== */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --ivory: #f9f4ee;
    --champagne: #f2e6d9;
    --gold: #c9b19b;
    --gold-light: #dfd0c0;
    --sage: #b7b9a6;
    --charcoal: #3d3530;
    --white: #ffffff;
    --shadow: rgba(61, 53, 48, 0.12);
    --shadow-soft: rgba(61, 53, 48, 0.06);

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-soft: cubic-bezier(0.42, 0, 0.58, 1);
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--ivory);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ---------- UTILITY ---------- */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

/* ---------- SPLASH SCREEN (Phase 1) ---------- */
#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--ivory);
    background-image:
        radial-gradient(ellipse at 30% 40%, rgba(242, 230, 217, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(242, 230, 217, 0.3) 0%, transparent 50%);
    transition: opacity 1.2s var(--ease-smooth), visibility 1.2s var(--ease-smooth);
    padding: 1.5rem;
    text-align: center;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.floral-corner {
    position: absolute;
    width: 120px;
    height: 120px;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20 10 C30 0 50 5 55 20 C60 10 75 5 85 15 C90 25 85 40 70 45 C85 50 90 65 80 75 C70 85 55 80 50 65 C45 80 30 85 20 75 C10 65 15 50 30 45 C15 40 10 25 20 10Z' fill='%23c9b19b' opacity='0.6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.floral-top-left {
    top: 0;
    left: 0;
    transform: rotate(0deg);
}

.floral-top-right {
    top: 0;
    right: 0;
    transform: scaleX(-1);
}

.floral-bottom-left {
    bottom: 0;
    left: 0;
    transform: scaleY(-1);
}

.floral-bottom-right {
    bottom: 0;
    right: 0;
    transform: scale(-1, -1);
}

.splash-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: var(--spacing-md);
}

.splash-subtitle {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.15em;
    color: var(--gold);
    text-transform: lowercase;
    margin-bottom: var(--spacing-sm);
    opacity: 0;
    animation: fadeInUp 1.2s var(--ease-soft) 0.3s forwards;
}

.splash-names {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 10vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--charcoal);
    line-height: 1.2;
    margin: var(--spacing-sm) 0;
    opacity: 0;
    animation: fadeInUp 1.2s var(--ease-soft) 0.7s forwards;
}

.splash-invite {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--charcoal);
    opacity: 0.7;
    margin: var(--spacing-sm) 0 var(--spacing-md);
    opacity: 0;
    animation: fadeInUp 1.2s var(--ease-soft) 1.1s forwards;
}

.btn-open-invitation {
    display: inline-block;
    padding: 0.9rem 2.8rem;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--charcoal);
    background: transparent;
    border: 1.5px solid var(--gold);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.5s var(--ease-smooth);
    position: relative;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
    opacity: 0;
    animation: fadeInUp 1.2s var(--ease-soft) 1.6s forwards;
}

.btn-open-invitation::before {
    content: '';
    position: absolute;
    inset: -3px;
    border: 1px solid var(--gold-light);
    opacity: 0;
    transition: opacity 0.5s var(--ease-smooth);
}

.btn-open-invitation:hover,
.btn-open-invitation:focus-visible {
    background-color: rgba(201, 177, 155, 0.15);
    box-shadow: 0 0 30px rgba(201, 177, 155, 0.2);
    transform: scale(1.02);
}

.btn-open-invitation:hover::before,
.btn-open-invitation:focus-visible::before {
    opacity: 1;
}

.btn-open-invitation:active {
    transform: scale(0.97);
}

/* ---------- INVITATION CONTAINER ---------- */
#invitation-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background-color: var(--ivory);
    padding-bottom: var(--spacing-lg);
}

/* ---------- ENVELOPE REVEAL (Phase 1) ---------- */
.envelope-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    background: linear-gradient(180deg, var(--ivory) 0%, var(--champagne) 100%);
    overflow: hidden;
}

.envelope-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.envelope {
    position: relative;
    width: min(85vw, 480px);
    aspect-ratio: 1.45 / 1;
    background: var(--white);
    box-shadow: 0 20px 60px rgba(61, 53, 48, 0.08), 0 8px 20px rgba(61, 53, 48, 0.05);
    transition: transform 1.8s var(--ease-smooth), opacity 1.2s var(--ease-smooth);
    transform-style: preserve-3d;
    perspective: 1200px;
    border-radius: 4px 4px 12px 12px;
}

.envelope-front {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: inherit;
    overflow: hidden;
    transform: rotateX(0deg);
    transform-origin: bottom;
    transition: transform 1.8s var(--ease-smooth);
    backface-visibility: hidden;
}

.envelope-flap {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 52%;
    background: var(--white);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top;
    transition: transform 1.6s var(--ease-smooth) 0.6s;
    border-bottom: 1px solid rgba(201, 177, 155, 0.15);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.02);
    z-index: 2;
}

.envelope-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 52%;
    background: var(--white);
    border-top: 1px solid rgba(201, 177, 155, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 0.5rem;
}

.envelope-monogram {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--charcoal);
    opacity: 0.6;
}

.wax-seal {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    background: radial-gradient(circle at 30% 30%, #d4b8a0, #a8876e);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(168, 135, 110, 0.4), inset 0 -3px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: transform 0.6s var(--ease-smooth) 0.2s, box-shadow 0.6s var(--ease-smooth);
}

.wax-seal::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: radial-gradient(circle at 60% 30%, rgba(255, 215, 180, 0.3), transparent 70%);
}

.seal-initials {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.envelope-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: inherit;
    backface-visibility: hidden;
    transform: rotateX(180deg);
    box-shadow: inset 0 0 0 1px rgba(201, 177, 155, 0.1);
}

.envelope.opened .envelope-front {
    transform: rotateX(-12deg) scale(0.98);
}

.envelope.opened .envelope-flap {
    transform: rotateX(-180deg);
}

.envelope.opened .wax-seal {
    transform: translateX(-50%) scale(0.6);
    opacity: 0;
    transition: transform 0.8s var(--ease-smooth), opacity 0.6s var(--ease-smooth);
}

/* Invitation card */
.invitation-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%) scale(0.85);
    width: 88%;
    max-width: 580px;
    background: var(--white);
    box-shadow: 0 30px 80px rgba(61, 53, 48, 0.1);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: 8px;
    opacity: 0;
    transition: transform 1.8s var(--ease-smooth) 0.8s, opacity 1.4s var(--ease-smooth) 0.6s;
    z-index: 3;
    pointer-events: none;
    text-align: center;
}

.envelope.opened ~ .invitation-card,
.envelope.opened + .invitation-card {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.reveal-floral {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 C60 25 75 30 80 45 C70 50 65 65 50 70 C35 65 30 50 20 45 C25 30 40 25 50 10Z' fill='%23c9b19b' opacity='0.25'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s var(--ease-smooth) 1.8s;
    pointer-events: none;
}

.envelope.opened ~ .invitation-card .reveal-floral,
.envelope.opened + .invitation-card .reveal-floral {
    opacity: 0.7;
}

.floral-left {
    left: -20px;
    top: 20%;
}

.floral-right {
    right: -20px;
    bottom: 20%;
    transform: scaleX(-1);
}

.photo-frame {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto var(--spacing-md);
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(61, 53, 48, 0.08);
    background: var(--champagne);
}

.couple-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transform: scale(1.05) blur(6px);
    transition: opacity 2.2s var(--ease-smooth) 1.2s, transform 2.2s var(--ease-smooth) 1.2s, filter 2.2s var(--ease-smooth) 1.2s;
}

.envelope.opened ~ .invitation-card .couple-photo,
.envelope.opened + .invitation-card .couple-photo {
    opacity: 1;
    transform: scale(1) blur(0);
}

.photo-placeholder {
    display: none;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--gold);
    padding: 2rem;
}

.couple-names-reveal {
    margin: var(--spacing-sm) 0 var(--spacing-md);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.6s var(--ease-smooth) 1.8s, transform 1.6s var(--ease-smooth) 1.8s;
}

.envelope.opened ~ .invitation-card .couple-names-reveal,
.envelope.opened + .invitation-card .couple-names-reveal {
    opacity: 1;
    transform: translateY(0);
}

.name-groom,
.name-bride {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    letter-spacing: 0.1em;
    color: var(--charcoal);
    line-height: 1.3;
}

.name-ampersand {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 400;
    font-style: italic;
    color: var(--gold);
    display: inline-block;
    margin: 0.2rem 0.3rem;
}

.reveal-message {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--charcoal);
    opacity: 0.75;
    max-width: 400px;
    margin: var(--spacing-sm) auto 0;
    line-height: 1.7;
    opacity: 0;
    transition: opacity 1.8s var(--ease-smooth) 2.4s;
}

.envelope.opened ~ .invitation-card .reveal-message,
.envelope.opened + .invitation-card .reveal-message {
    opacity: 0.75;
}

/* ---------- MUSIC CONTROLS (Phase 1) ---------- */
.music-control {
    position: fixed;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    z-index: 900;
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    padding: 0.5rem 0.8rem 0.5rem 0.5rem;
    border-radius: 40px;
    box-shadow: 0 4px 24px rgba(61, 53, 48, 0.08);
    border: 1px solid rgba(201, 177, 155, 0.2);
    opacity: 0;
    transition: opacity 0.8s var(--ease-smooth) 3s;
    pointer-events: none;
}

.music-control.visible {
    opacity: 1;
    pointer-events: auto;
}

.music-btn {
    background: transparent;
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--charcoal);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.music-btn:hover,
.music-btn:focus-visible {
    background: rgba(201, 177, 155, 0.15);
    transform: scale(1.05);
}

.music-btn:active {
    transform: scale(0.95);
}

.music-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.music-state-label {
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.mute-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* ========================================================== */
/* PHASE 2: CONTENT SECTIONS                                  */
/* ========================================================== */

/* ---------- INVITATION CONTINUATION WRAPPER ---------- */
.invitation-continuation {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
    opacity: 0;
    transition: opacity 1.5s var(--ease-smooth) 2.6s;
}

#invitation-container.revealed .invitation-continuation {
    opacity: 1;
}

/* ---------- CONTENT SECTION BASE ---------- */
.content-section {
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid rgba(201, 177, 155, 0.15);
    position: relative;
}

.content-section:last-of-type {
    border-bottom: none;
}

.section-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    text-align: center;
}

.section-decoration {
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: var(--spacing-sm);
    opacity: 0.6;
}

.section-title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    letter-spacing: 0.1em;
    color: var(--charcoal);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

/* ---------- HERO SECTION ---------- */
.hero-section {
    padding-top: var(--spacing-xl);
    background: linear-gradient(180deg, var(--champagne) 0%, var(--ivory) 100%);
    border-bottom: none;
}

.hero-floral {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 C60 25 75 30 80 45 C70 50 65 65 50 70 C35 65 30 50 20 45 C25 30 40 25 50 10Z' fill='%23c9b19b' opacity='0.3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.hero-names {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(2rem, 6vw, 3.8rem);
    line-height: 1.2;
    letter-spacing: 0.05em;
    color: var(--charcoal);
}

.hero-groom,
.hero-bride {
    display: block;
}

.hero-ampersand {
    display: block;
    font-weight: 400;
    font-style: italic;
    color: var(--gold);
    font-size: clamp(2.5rem, 7vw, 4rem);
    margin: 0.1rem 0;
}

.hero-families {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 400;
    font-style: italic;
    color: var(--charcoal);
    opacity: 0.7;
    margin: var(--spacing-sm) 0 var(--spacing-md);
    letter-spacing: 0.1em;
}

.hero-message {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    color: var(--charcoal);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- DATE & COUNTDOWN SECTION ---------- */
.date-section {
    background: var(--white);
}

.date-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.date-day {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 700;
    line-height: 1;
    color: var(--charcoal);
    letter-spacing: -0.02em;
}

.date-month-year {
    display: flex;
    flex-direction: column;
    margin: var(--spacing-xs) 0;
}

.date-month {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--charcoal);
    text-transform: uppercase;
}

.date-year {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--charcoal);
    opacity: 0.6;
}

.date-time {
    font-family: var(--font-sans);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-top: var(--spacing-xs);
}

/* Countdown */
.countdown-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
    max-width: 500px;
    margin: var(--spacing-md) auto 0;
}

.countdown-item {
    background: var(--ivory);
    padding: var(--spacing-sm) var(--spacing-xs);
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 12px var(--shadow-soft);
}

.countdown-number {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 700;
    display: block;
    line-height: 1.2;
    color: var(--charcoal);
}

.countdown-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--charcoal);
    opacity: 0.5;
    margin-top: 0.2rem;
}

.countdown-message {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    color: var(--gold);
    margin-top: var(--spacing-md);
    min-height: 3rem;
}

/* ---------- MESSAGE SECTION ---------- */
.message-section {
    background: var(--ivory);
}

.message-text {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.9;
    max-width: 580px;
    margin: 0 auto;
    color: var(--charcoal);
    opacity: 0.8;
}

/* ---------- SCRIPTURE SECTION ---------- */
.scripture-section {
    background: var(--white);
}

.scripture-text {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.7;
    color: var(--charcoal);
    max-width: 580px;
    margin: 0 auto;
    quotes: "“" "”" "‘" "’";
}

.scripture-text::before {
    content: "“";
}

.scripture-text::after {
    content: "”";
}

.scripture-reference {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gold);
    margin-top: var(--spacing-sm);
    letter-spacing: 0.05em;
}

/* ---------- CEREMONY & RECEPTION ---------- */
.ceremony-section,
.reception-section {
    background: var(--ivory);
}

.reception-section {
    background: var(--white);
}

.venue-card {
    background: var(--white);
    padding: var(--spacing-md) var(--spacing-sm);
    border-radius: 8px;
    box-shadow: 0 4px 24px var(--shadow-soft);
    max-width: 420px;
    margin: 0 auto;
    border: 1px solid rgba(201, 177, 155, 0.1);
}

.venue-name {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--spacing-xs);
}

.venue-time {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: 0.1em;
}

.venue-address {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--charcoal);
    opacity: 0.6;
    margin: var(--spacing-xs) 0 var(--spacing-sm);
}

.btn-location {
    display: inline-block;
    padding: 0.6rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--charcoal);
    border: 1px solid var(--gold-light);
    background: transparent;
    text-decoration: none;
    border-radius: 40px;
    transition: all 0.3s ease;
}

.btn-location:hover,
.btn-location:focus-visible {
    background: var(--champagne);
    border-color: var(--gold);
    box-shadow: 0 2px 12px rgba(201, 177, 155, 0.2);
    transform: translateY(-2px);
}

/* ---------- GALLERY SECTION ---------- */
.gallery-section {
    background: var(--ivory);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 12px var(--shadow-soft);
    background: var(--champagne);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-placeholder {
    grid-column: 1 / -1;
    padding: var(--spacing-lg) var(--spacing-sm);
    text-align: center;
    color: var(--charcoal);
    opacity: 0.5;
    font-family: var(--font-sans);
    font-weight: 300;
}

.gallery-placeholder span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--spacing-sm);
}

/* ---------- RSVP SECTION ---------- */
.rsvp-section {
    background: var(--white);
    padding-bottom: var(--spacing-xl);
}

.rsvp-subtitle {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1rem;
    color: var(--charcoal);
    opacity: 0.7;
    margin-bottom: var(--spacing-md);
}

.rsvp-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-width: 400px;
    margin: 0 auto var(--spacing-md);
}

.rsvp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    font-family: var(--font-sans);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--gold-light);
    border-radius: 6px;
    background: var(--ivory);
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.rsvp-btn:hover,
.rsvp-btn:focus-visible {
    background: var(--champagne);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-soft);
}

.rsvp-btn:active {
    transform: scale(0.97);
}

.rsvp-btn-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.rsvp-yes:hover,
.rsvp-yes:focus-visible {
    background: rgba(183, 185, 166, 0.2);
    border-color: var(--sage);
}

.rsvp-no:hover,
.rsvp-no:focus-visible {
    background: rgba(201, 177, 155, 0.15);
    border-color: var(--gold);
}

/* RSVP Forms */
.rsvp-form {
    max-width: 480px;
    margin: var(--spacing-md) auto 0;
    padding: var(--spacing-md);
    background: var(--ivory);
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow-soft);
    text-align: left;
}

.form-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.2rem;
    text-align: center;
    color: var(--charcoal);
    margin-bottom: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--white);
    border: 1px solid rgba(201, 177, 155, 0.3);
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 177, 155, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-submit-rsvp {
    display: inline-block;
    width: 100%;
    padding: 0.8rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--charcoal);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: var(--spacing-xs);
}

.btn-submit-rsvp:hover,
.btn-submit-rsvp:focus-visible {
    background: #2a2420;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(61, 53, 48, 0.15);
}

.btn-submit-rsvp:active {
    transform: scale(0.97);
}

.form-response {
    margin-top: var(--spacing-sm);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-align: center;
    min-height: 2rem;
}

.form-response.success {
    color: #2d6a4f;
}

.form-response.error {
    color: #b33c3c;
}

/* ---------- FOOTER ---------- */
.wedding-footer {
    text-align: center;
    padding: var(--spacing-md) var(--spacing-sm);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--charcoal);
    opacity: 0.5;
    border-top: 1px solid rgba(201, 177, 155, 0.2);
    margin-top: var(--spacing-lg);
}

.wedding-footer p {
    margin: 0.3rem 0;
}

.wedding-footer .footer-credit {
    font-size: 0.7rem;
    opacity: 0.6;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- RESPONSIVE ---------- */
/* Mobile-first: above styles already mobile */

/* Extra small devices */
@media (max-width: 360px) {
    .floral-corner {
        width: 80px;
        height: 80px;
    }
    .envelope {
        width: 90vw;
    }
    .invitation-card {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    .music-control {
        bottom: var(--spacing-sm);
        right: var(--spacing-sm);
        padding: 0.3rem 0.6rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .countdown-wrapper {
        gap: 0.5rem;
    }
    .rsvp-options {
        flex-direction: column;
    }
}

/* Tablet and up */
@media (min-width: 768px) {
    .splash-content {
        padding: var(--spacing-lg);
    }
    .envelope {
        width: 480px;
    }
    .invitation-card {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    .floral-corner {
        width: 180px;
        height: 180px;
    }
    .music-control {
        bottom: var(--spacing-lg);
        right: var(--spacing-lg);
        padding: 0.6rem 1rem 0.6rem 0.6rem;
    }
    .music-btn {
        font-size: 0.9rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .rsvp-options {
        flex-direction: row;
        justify-content: center;
    }
    .rsvp-btn {
        min-width: 200px;
    }
    .countdown-wrapper {
        gap: var(--spacing-md);
    }
}

/* Desktop large */
@media (min-width: 1200px) {
    .envelope {
        width: 560px;
    }
    .invitation-card {
        max-width: 640px;
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---------- PREFERS REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    #splash-screen {
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .btn-open-invitation {
        transition: background 0.2s ease;
    }

    .envelope-front,
    .envelope-flap,
    .wax-seal {
        transition-duration: 0.01ms !important;
    }

    .couple-photo {
        opacity: 1 !important;
        transform: scale(1) !important;
        filter: blur(0) !important;
        transition-duration: 0.01ms !important;
    }

    .couple-names-reveal,
    .reveal-message,
    .reveal-floral {
        opacity: 1 !important;
        transform: none !important;
        transition-duration: 0.01ms !important;
    }

    .music-control {
        transition: opacity 0.3s ease;
    }

    .invitation-continuation {
        transition: opacity 0.3s ease;
    }
}
/* Scroll animations */
.section-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.section-hidden.visible {
    opacity: 1;
    transform: translateY(0);
}
.gallery-hidden {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.gallery-hidden.visible {
    opacity: 1;
    transform: scale(1);
}