/* Landing Page — Elite Burgundy Theme */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,400&family=Josefin+Sans:wght@200;300;400&family=Great+Vibes&display=swap');

:root {
    --clr-burgundy: #800020;
    --clr-burgundy-elite: #390000;
    --clr-olive: #556b2f;
    --clr-cream: #faf6f0;
    --clr-cream-warm: #f5efe6;
    --clr-sand: #e8ddd0;
    --clr-gold-light: #dac7b6;
    --font-body: 'Josefin Sans', sans-serif;
    --font-script: 'Great Vibes', cursive;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body.page-landing {
    overflow: hidden;
    height: 100vh;
}

/* Poster Container */
.poster-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.6s var(--ease-out);
    background: var(--clr-burgundy-elite);
    padding: 0.4rem 0.9rem 0.5rem;
    box-sizing: border-box;
    overflow: hidden;
}

.landing-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

.landing-headline {
    font-family: var(--font-body);
    font-size: clamp(0.65rem, 1.5vw, 0.85rem);
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    line-height: 1.2;
    z-index: 6;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.landing-names {
    font-family: var(--font-script);
    font-size: clamp(1.4rem, 5vw, 2.75rem);
    font-weight: 400;
    color: #fff !important;
    position: absolute;
    top: 14%;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    line-height: 1.1;
    z-index: 6;
    pointer-events: none;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}

.envelope-wrap {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.landing-poster {
    max-width: 100%;
    max-height: 150vh;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: brightness(0.98) contrast(1.02);
    transition: transform 0.4s var(--ease-out);
    transform: scale(1);
    transform-origin: center center;
    position: relative;
    z-index: 1;
}

.poster-container:hover .landing-poster {
    transform: scale(1.02);
}

.poster-container:focus {
    outline: none;
}

.poster-container:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .landing-poster {
        transition: none;
    }
    .poster-container:hover .landing-poster {
        transform: none;
    }
    .click-hint {
        animation: none;
    }
}

/* Language toggle on landing */
.lang-toggle-landing {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 25;
    display: flex;
    gap: 0;
}

.lang-toggle-landing .lang-btn {
    padding: 0.6rem 1rem;
    min-width: 3.5rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.lang-toggle-landing .lang-btn:first-child {
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.lang-toggle-landing .lang-btn:last-child {
    border-radius: 0 6px 6px 0;
}

.lang-toggle-landing .lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-toggle-landing .lang-btn.is-active {
    background: rgba(255, 255, 255, 0.95);
    color: var(--clr-burgundy-elite);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Click hint */
.click-hint {
    font-family: var(--font-body);
    font-size: clamp(0.55rem, 1.5vw, 0.85rem);
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    animation: pulse-hint 2.5s ease-in-out infinite;
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 6;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

@keyframes pulse-hint {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .poster-container {
        padding: 0.35rem 0.65rem 0.5rem;
    }

    .landing-headline {
        font-size: clamp(0.6rem, 2.5vw, 0.8rem);
        letter-spacing: 0.2em;
        top: 6%;
    }

    .landing-names {
        font-size: clamp(1.2rem, 8vw, 2.25rem);
        top: 12%;
    }

    .click-hint {
        font-size: clamp(0.55rem, 2.5vw, 0.8rem);
        letter-spacing: 0.15em;
        bottom: 15%;
    }
}