:root {
    --cream: #F9F7F2;
    --ink: #1D1D1B;
    --accent: #C5A059;
    --dark-glass: rgba(15, 10, 10, 0.1); 
    --sticky-yellow: #fef68c;
    /* Footer Variables */
    --paper: #F2F0E9;
    --accent-gold: #C5A059;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
}

body { 
    background-color: var(--cream); 
    font-family: 'Montserrat', sans-serif; 
    overflow-x: hidden; 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- ANIMATION --- */
.intro-wrapper { 
    position: fixed; 
    inset: 0; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 2000; 
    pointer-events: none; 
    transition: 1s ease;
}
.title-master { font-family: 'Playfair Display', serif; font-size: 7.5vw; text-transform: uppercase; letter-spacing: -2px; position: relative; line-height: 1; }
.part { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; transition: 1.2s cubic-bezier(0.2, 1, 0.3, 1); }
.top-half { top: 0; clip-path: inset(0 0 50% 0); transform: translate(-50%, -100vh); }
.bottom-half { top: 0; clip-path: inset(50% 0 0 0); transform: translate(-50%, 100vh); }

.is-met .top-half, .is-met .bottom-half { transform: translate(-50%, 0); }
.is-vanished { opacity: 0; transform: scale(1.05); filter: blur(10px); }

/* --- NAVIGATION --- */
nav { position: fixed; top: 0; width: 100%; height: 100px; display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; z-index: 1000; opacity: 0; transition: 1.5s ease 0.5s; }
.nav-logo { height: 30px; filter: brightness(0) invert(1); }
.btn-connect { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); padding: 10px 25px; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; cursor: pointer; transition: 0.4s; }
.btn-connect:hover { background: #fff; color: var(--ink); }

/* --- STICKY NOTE --- */
.sticky-note { position: fixed; top: 110px; right: 5.5vw; width: 180px; height: 180px; background: var(--sticky-yellow); padding: 20px; box-shadow: 5px 5px 15px rgba(0,0,0,0.2); transform: rotate(3deg); z-index: 1100; opacity: 0; transition: opacity 1.5s ease 2.8s, transform 0.5s ease; }
.sticky-note:hover { transform: rotate(0deg) scale(1.05); }
.sticky-note p { font-family: 'Reenie Beanie', cursive; font-size: 1.4rem; color: #333; line-height: 1.1; }
.sticky-note.reveal { opacity: 1; }
/* --- RED STAPLE EFFECT --- */
.sticky-note::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 14px;
    border: 3px solid #c62828;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    background: transparent;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.sticky-note::after {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 6px;
    background: #c62828;
    border-radius: 3px;
}
/* --- HERO & GLASS --- */
.hero { 
    min-height: 100vh;
    min-height: 100dvh; /* modern mobile-safe viewport */
    width: 100%; 
    display: flex; 
    align-items: flex-end; 
    justify-content: center; 
    background:
        linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)),
        url('morning-cafe.png') center / cover no-repeat;
     background-color: #1a1a1b; 
    opacity: 0; 
    padding-bottom: 5vh; 
    transition: opacity 2s ease 0.2s; 
    flex: 1;
}
.hero.reveal { opacity: 1; }
.glass-card { background: var(--dark-glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.15); padding: 30px 45px; width: 92%; max-width: 1000px; border-radius: 2px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.card-title { letter-spacing: 8px; font-size: 0.55rem; color: var(--accent); margin-bottom: 25px; font-weight: 900; text-transform: uppercase; text-align: center; display: block; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px 30px; align-items: end; }
.full-width { grid-column: span 3; }
label { display: block; font-size: 0.5rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); margin-bottom: 6px; font-weight: 700; }

.glass-input, .glass-select { width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding: 8px 0; font-family: 'Montserrat', sans-serif; font-size: 0.8rem; color: #FFFFFF; outline: none; transition: 0.4s; }
.glass-select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; }
.glass-select option { background-color: #1a1a1a; color: #fff; }

.btn-submit { grid-column: span 3; background: var(--accent); color: var(--ink); border: none; padding: 14px; text-transform: uppercase; font-weight: 900; letter-spacing: 5px; font-size: 0.65rem; cursor: pointer; margin-top: 10px; transition: 0.3s ease; }
.btn-submit:hover { letter-spacing: 8px; background: #fff; }

/* --- FOOTER SECTION --- */
.cafe-footer {
    background-color: var(--paper);
    border-top: 1px solid var(--accent-gold);
    padding-top: 60px;
    margin-top: 0; /* Changed to sit flush with hero */
}

.footer-main {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 60px;
    padding: 0 20px 60px 20px;
}

.footer-column h3.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--ink);
}

.footer-column h4 {
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: var(--accent-gold);
}

.footer-column p, .footer-column li {
    font-size: 13px;
    line-height: 1.8;
    color: #555;
}

.footer-column ul { list-style: none; }
.footer-column a { text-decoration: none; color: inherit; transition: color 0.3s; }
.footer-column a:hover { color: var(--accent-gold); }

.footer-input-group {
    display: flex;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 5px;
}

.footer-input-group input {
    background: transparent;
    border: none;
    flex: 1;
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

.footer-input-group button {
    background: transparent;
    border: none;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    letter-spacing: 1px;
}

/* --- THE FINAL COFFEE STRIP --- */
.coffee-disclaimer-strip {
    background-color: #1e140a;
    color: rgba(255, 255, 255, 0.6);
    padding: 20px 20px;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.disclaimer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 12px;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    color: var(--ink);
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-gold);
    color: #fff;
}
.legal-text { font-style: italic; }

@media (max-width: 900px) {
    .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .footer-main { grid-template-columns: 1fr; text-align: center; }
    .footer-input-group { justify-content: center; }
    .disclaimer-content { flex-direction: column; gap: 10px; text-align: center; }
}
#thankYouOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
    z-index: 3000;
}

#thankYouOverlay.active {
    opacity: 1;
    visibility: visible;
}

.thank-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 20px;
}

.thank-content p {
    font-family: 'Reenie Beanie', cursive;
    font-size: 28px;
    line-height: 1.4;
    max-width: 600px;
}

/* --- FORM INPUT FIX --- */

input,
textarea,
select {
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.4);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

/* Remove white background on focus */
input:focus,
textarea:focus,
select:focus {
    background: transparent !important;
    color: #ffffff !important;
    outline: none;
}

/* Chrome Autofill Fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* --- OPENING SOON BOOK STAMP --- */

.opening-stamp {
    position: absolute;
    top: 60px;
    left: 40px;
    font-size: clamp(18px, 2vw, 28px);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(123, 78, 52, 0.10); /* milk chocolate watermark */
    transform: rotate(-18deg);
    pointer-events: none;
    user-select: none;
    font-family: 'Playfair Display', serif;
    filter: blur(0.4px);
}
@media (max-width: 600px) {
    .opening-stamp {
        top: 40px;
        left: 20px;
        font-size: 16px;
        transform: rotate(-15deg);
    }
}
.opening-stamp {
    text-shadow: 0 0 1px rgba(62,44,28,0.08);
}