/* Wes Anderson Theme Variables */
:root {
    --pink: #F2C1D1;
    --mint: #B5EAD7;
    --gold: #D4AF37;
    --type-black: #2C2C2C;
    --border-weight: 4px;
    --cream: #FFF5E1;
    --cream-dark: #F5E8C7; /* Better contrast alternative */
    --text-dark: #1A1A1A; /* Better contrast for dark text */
}

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

body {
    background-color: var(--pink);
    font-family: 'Futura', 'Trebuchet MS', sans-serif;
    color: var(--text-dark);
    overflow: hidden; /* Maintaining the 'still-shot' feel */
    height: 100vh;
    line-height: 1.6;
}

/* Cinematic Background */
.main-stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05);
}

/* Film Grain Texture for that 'Old Movie' look */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    opacity: 0.15;
    /* Primary SVG-based noise */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    /* Fallback subtle texture */
    background-color: transparent;
}

/* Symmetrical Header */
.theatre-header {
    position: absolute;
    top: 42%; /* Positions it exactly across her shoulders */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.logo-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    pointer-events: none; /* Prevents logo from interfering with link clicks */
}

.logo-stack h1 {
    font-size: 3.5rem;
    letter-spacing: 12px;
    color: #FFF5E1; /* High-end Cream instead of pure white */
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    /* No outline - just a very soft natural shadow */
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.sub-logo {
    font-size: 0.8rem;
    letter-spacing: 4px;
    display: block;
    color: #FFF5E1; /* Changed from Black to Cream */
    border-top: 1.5px solid #FFF5E1; /* The line is now cream too */
    margin-top: 5px;
    padding-top: 5px;
    width: 100%; /* Ensures the line stretches across the width of the stack */
    text-align: center;
}


nav a {
    position: absolute;
    text-decoration: none;
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent; /* Pre-loading the border to prevent jumps */
    padding-bottom: 4px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

nav a:focus,
.prop-button:focus,
.submit-inquiry:focus,
.close-btn:focus,
input:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    border-color: var(--gold);
}

nav a:first-child {
    right: calc(50% + 220px); /* Adjust 140px to move it closer/further from logo */
}

nav a:last-child {
    left: calc(50% + 220px);
}

nav a:hover {
    color: #B5EAD7;
    border-bottom: 2px solid #B5EAD7;
}

/* The Title Card (Center Frame) */
.hero-content {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Sits at the bottom of the case in the image */
    padding-bottom: 10vh;
}

.title-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px 60px;
    border: var(--border-weight) solid var(--type-black);
    text-align: center;
    box-shadow: 15px 15px 0px var(--mint);
    animation: slideUp 1.2s ease-out;
}

h2 {
    font-size: 1.5rem;
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.prop-button {
    margin-top: 20px;
    padding: 10px 30px;
    background: var(--type-black);
    color: white;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
}

.prop-button:hover {
    background: var(--gold);
    transform: scale(1.05);
}

/* The Inquire Pop-up (The 'Prop' Modal) */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.modal-card {
    background: #F2C1D1; /* Matches the Pink walls */
    border: 4px solid var(--text-dark);
    width: 350px;
    margin: 15% auto;
    padding: 40px;
    text-align: center;
    box-shadow: 15px 15px 0px var(--mint);
    color: var(--text-dark); /* Mint offset shadow */
}


.modal-card h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

/* FORM STYLING FOR ACCESSIBILITY */
input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    margin: 15px 0;
    border: 2px solid var(--type-black);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
}

input[type="email"]:focus {
    background: white;
    border-color: var(--gold);
}

/* FORM FEEDBACK FOR VALIDATION */
.form-feedback {
    min-height: 20px;
    margin: 10px 0;
    font-size: 0.9rem;
    color: var(--text-dark);
}


/* BUTTON ENHANCEMENTS FOR TOUCH */
.prop-button,
.submit-inquiry,
.close-btn {
    min-height: 44px; /* Minimum touch target size */
    min-width: 44px;
    padding: 12px 24px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.submit-inquiry {
    background: var(--type-black);
    color: white;
    border: none;
    width: 100%;
    margin: 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-btn {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
    margin-top: 10px;
    width: 100%;
}

/* Transitions */
@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}



@media (max-width: 1024px) {
    nav a:first-child { right: calc(50% + 180px); }
    nav a:last-child { left: calc(50% + 180px); }
    .logo-stack h1 { font-size: 2.8rem; }
}

@media (max-width: 400px) {
    .logo-stack h1 {
        font-size: 1.6rem;
        letter-spacing: 4px;
    }

    .modal-card {
        width: 90%;
        margin: 20% auto;
        padding: 30px 20px;
    }

    .hero-content {
        padding-bottom: 10vh;
    }
}

/* LANDSCAPE ORIENTATION SUPPORT */
@media (max-height: 500px) and (orientation: landscape) {
    .theatre-header {
        top: 10%;
    }

    .hero-content {
        align-items: center;
        padding-bottom: 5vh;
    }

    .title-card {
        padding: 15px 25px;
    }

    .modal-card {
        margin: 5% auto;
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* REDUCE ANIMATIONS FOR PREFERENCE */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-img {
        transform: none !important;
    }
}

@media (max-width: 768px) {
    body {
        height: 100vh;
        overflow: hidden;
    }

    .film-grain {
        opacity: 0.1; /* Slightly less intense on mobile */
    }

    .theatre-header {
        top: 6%; /* Higher up to ensure face is clear */
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        position: absolute;
        display: block; /* Ensures the flex below is the only thing moving text */
    }


    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px; /* Exact equal gap between Link1-Logo and Logo-Link2 */
        width: 100%;
    }

    nav a {
        position: static !important;
        color: #FFF5E1 !important;
        font-size: 0.8rem;
        letter-spacing: 3px;
        text-decoration: none;
        border-bottom: 2px solid transparent;
        transition: 0.3s;
        margin: 0 !important; /* Removes hidden margins causing uneven gaps */
        padding: 0 !important;
        line-height: 1;
    }


    nav a:hover,
        nav a:active,
        nav a:focus {
            color: var(--mint) !important;
            border-bottom: 2px solid var(--mint) !important;
            outline: none;
        }

    .prop-button:active,
    .prop-button:focus {
              background: var(--gold) !important;
              transform: scale(0.95); /* Slight 'press' effect for feedback */
              outline: none;
        }


    .logo-stack {
        margin: 0 !important;
        padding: 0 !important;
        display: flex;
        flex-direction: column;
                align-items: center;
        }


    .logo-stack h1 {
        font-size: 2.2rem;
        letter-spacing: 8px;
        line-height: 1.1;
        line-height: 0.8; /* Tightens the space above the word PRISTINE */
        margin: 0 !important;
    }

    .sub-logo {
            font-size: 0.7rem;
            letter-spacing: 3px;
            margin-top: 5px; /* Controls the gap between PRISTINE and LUGGAGE CO. */
            line-height: 1;
        }


    .hero-content {
        align-items: flex-end;
        padding-bottom: 15vh;
    }

    .title-card {
        width: 85%;
        padding: 20px;
    }

    /* FOOTER FIX FOR MOBILE - Background wraps text */
    .curtain-footer p {
        display: inline-block;
        padding: 8px 20px;
        white-space: nowrap;
        margin: 0 auto;
    }
}


.curtain-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px; /* Defined space */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 200;
}

.curtain-footer p {
    color: var(--text-dark);
    font-size: 0.67rem;
    letter-spacing: 2px;
    text-align: center;
    margin: 0;
    text-transform: uppercase;
    opacity: 0.9;
    background: rgba(255, 245, 225, 0.7);
    border-radius: 20px; /* Makes it pill-shaped */
    /* Padding removed from here - now controlled in mobile media query */
}

/* ADD TABLET MEDIA QUERY HERE - SEPARATE FROM MOBILE */
@media (min-width: 769px) and (max-width: 1440px) {
    .curtain-footer p {
        display: inline-block;
        padding: 6px 12px; /* Reduced padding */
        white-space: nowrap;
        margin: 0 auto;
        font-size: 0.45rem; /* MUCH smaller - was 0.55rem */
        letter-spacing: 1px; /* Reduced from 1.5px */
        max-width: 90%;
        text-align: center;
    }
}

.curtain-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 200;
}

.curtain-footer p {
    color: var(--text-dark);
    font-size: 0.6rem; /* Much smaller */
    letter-spacing: 1px; /* Reduced */
    text-align: center;
    margin: 0;
    text-transform: uppercase;
    opacity: 0.9;
    background: rgba(255, 245, 225, 0.7);
    border-radius: 20px;
    display: inline-block;
    padding: 4px 10px; /* Much smaller padding */
    white-space: nowrap;
    max-width: 100%; /* Prevent touching edges */
}
