/* 
   ==========================================================================
   WEDDING LANDING PAGE STYLES (landing_styles.css)
   Colors: Cream White (#FAF9F6), Forest Green (#143D30), Gold (#C5A880)
   ========================================================================== 
*/

:root {
    --color-dark-bg: #FAF9F6;       /* Clean Festive Cream White */
    --color-primary: #143D30;       /* Forest Green */
    --color-secondary: #0B1D33;     /* Navy Blue */
    --color-accent: #C5A880;        /* Muted Gold */
    --color-accent-hover: #b09166;
    --color-bg-cream: #FAF9F6;      /* Off-White */
    --color-white: #FFFFFF;
    --color-text-dark: #2D3748;
    --color-text-light: #718096;
    --color-shadow: rgba(11, 29, 51, 0.12);
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;
    
    --transition-smooth: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-medium: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.25s ease;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: hidden; /* No vertical scrollbars on desktop landing page */
    background-color: var(--color-dark-bg);
}

body {
    color: var(--color-text-dark);
    font-family: var(--font-body);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* --- Background Decor --- */
.bg-decor {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(20, 61, 48, 0.04);
}

.bg-circle-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
}

.bg-circle-2 {
    width: 800px;
    height: 800px;
    bottom: -300px;
    right: -300px;
}

/* --- Full Screen Folding Curtain Overlay --- */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    pointer-events: none; /* Let clicks pass after curtains are open */
}

/* Top Fold Panel */
.curtain-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background-color: var(--color-bg-cream);
    border-bottom: 2px solid var(--color-accent);
    z-index: 110;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Bottom Fold Panel */
.curtain-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background-color: var(--color-bg-cream);
    border-top: 2px solid var(--color-accent);
    z-index: 110;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gold Wax Seal */
.wax-seal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffe082 0%, #c5a880 100%);
    box-shadow: 0 6px 15px rgba(197, 168, 128, 0.4), inset 0 2px 4px rgba(255,255,255,0.4);
    z-index: 120;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.wax-seal::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 1px dashed rgba(20, 61, 48, 0.3);
}

.wax-monogram {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1px;
    transform: rotate(-5deg);
}

/* --- Animation Step Classes on Body (IMPOSING UNVEIL) --- */
.step-open-curtains .curtain-top {
    transform: translateY(-100%);
}

.step-open-curtains .curtain-bottom {
    transform: translateY(100%);
}

.step-open-curtains .wax-seal {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
    pointer-events: none;
}

.step-active-page #introOverlay {
    display: none;
}

/* --- Split-Screen Layout Design --- */
.split-screen-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

/* Each screen half */
.split-half {
    height: 100%;
    width: 50%; /* Split 50/50 initially */
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Background image */
.split-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: var(--transition-smooth);
}

/* Overlay gradient */
.split-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 61, 48, 0.15) 0%, rgba(11, 29, 51, 0.7) 100%);
    z-index: 2;
    transition: var(--transition-smooth);
}

/* Interactive hover width expansions - pure CSS */
.split-screen-container:has(#halfStandesamt:hover) #halfStandesamt {
    width: 61.83%;
}

.split-screen-container:has(#halfStandesamt:hover) #halfFreieTrauung {
    width: 38.17%;
}

.split-half.active:hover .split-bg {
    transform: scale(1.05); /* Soft background zoom */
}

.split-half.active:hover .split-overlay {
    background: linear-gradient(135deg, rgba(20, 61, 48, 0.05) 0%, rgba(20, 61, 48, 0.8) 100%);
}

/* Elegant content card overlay */
.split-content {
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: 440px;
    padding: 3.5rem 2.2rem;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 3px double var(--color-accent); /* Gold double border */
    box-shadow: 0 10px 30px var(--color-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    transition: var(--transition-medium);
}

/* Dashed inner frame line */
.split-content::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    right: 6px;
    border: 1px dashed rgba(197, 168, 128, 0.2);
    border-radius: 12px;
    pointer-events: none;
}

.split-half.active:hover .split-content {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(11, 29, 51, 0.2);
    border-color: var(--color-primary);
}

/* Content Details Typography */
.split-header-decor {
    font-size: 1.6rem;
    color: var(--color-accent);
}

.split-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary);
    font-weight: 500;
}

.split-meta-info {
    font-size: 0.75rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.split-desc {
    font-size: 0.85rem;
    color: var(--color-text-dark);
    line-height: 1.6;
    font-weight: 300;
    max-width: 320px;
}

.split-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 30px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    box-shadow: 0 4px 12px rgba(20, 61, 48, 0.15);
    transition: var(--transition-quick);
}

.split-half.active:hover .split-btn {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 6px 15px rgba(197, 168, 128, 0.45);
}

/* --- Disabled Panel state (Freie Trauung) --- */
.split-half.disabled .split-bg {
    filter: grayscale(100%) brightness(0.65); /* Grayscale background */
}

.split-half.disabled .split-overlay {
    background: linear-gradient(135deg, rgba(11, 29, 51, 0.5) 0%, rgba(11, 29, 51, 0.9) 100%);
}

.split-half.disabled .split-content {
    background-color: rgba(255, 255, 255, 0.88);
    border-style: dashed;
    border-color: rgba(11, 29, 51, 0.15);
}

.split-half.disabled .split-content::before {
    display: none;
}

.split-half.disabled .split-title {
    color: var(--color-text-light);
}

.split-half.disabled .split-meta-info {
    color: var(--color-text-light);
}

.split-half.disabled .split-desc {
    color: var(--color-text-light);
}

.split-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(11, 29, 51, 0.05);
    color: var(--color-secondary);
    padding: 0.5rem 1.4rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(11, 29, 51, 0.1);
}

.lock-svg {
    color: var(--color-text-light);
}

/* --- Central Brand Monogram Circle --- */
.center-monogram {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    pointer-events: none; /* Let hover triggers pass to halves */
    transition: left 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-screen-container:has(#halfStandesamt:hover) .center-monogram {
    left: 61.83%; /* Shifts center monogram to division line on hover (1.62 / 2.62) */
}

.monogram-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--color-white);
    border: 2px solid var(--color-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
}

.monogram-circle::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    right: 4px;
    border-radius: 50%;
    border: 1px dashed rgba(197, 168, 128, 0.3);
}

.monogram-letters {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.landing-header-floating {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    text-align: center;
    pointer-events: none;
}

.floating-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--color-accent);
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.floating-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-bg-cream);
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* --- Responsive Media Queries --- */
@media (max-width: 900px) {
    html, body {
        overflow-y: auto !important; /* Enable vertical scroll on mobile */
        height: auto !important;
    }
    
    .split-screen-container {
        flex-direction: column;
        height: auto;
        overflow-y: auto;
    }
    
    .landing-header-floating {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        padding: 2.5rem 1rem 1.5rem;
        width: 100%;
        background-color: var(--color-bg-cream);
        z-index: 25;
        border-bottom: 1px solid rgba(197, 168, 128, 0.15);
    }
    
    .floating-title {
        color: var(--color-primary);
        font-size: 2rem;
        text-shadow: none;
    }
    
    .floating-subtitle {
        text-shadow: none;
    }
    
    .split-half {
        width: 100% !important;
        height: 50vh;
        min-height: 420px;
        flex: none !important;
    }
    
    .split-content {
        padding: 2rem 1.5rem;
        gap: 1rem;
    }
    
    .split-title {
        font-size: 1.5rem;
    }
    
    .split-desc {
        font-size: 0.8rem;
    }
    
    .center-monogram {
        display: none; /* Hide center monogram on mobile stack view */
    }
}
