:root {
    --dark-chocolate: #4A2C2A;  
    --midnight-blue: #1B263B;   
    --accent-light: #E0DCD3;    
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--dark-chocolate);
    color: var(--accent-light);
    font-family: 'Playfair Display', serif;
    line-height: 1.8;
    overflow-x: hidden;
}

/* NAVIGATION */
nav { 
    position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; 
    padding: 20px 5%; background: rgba(27, 38, 59, 0.90); backdrop-filter: blur(10px); 
    z-index: 2000; transition: all 0.4s ease; border-bottom: 1px solid transparent; 
}
nav.scrolled { 
    padding: 15px 5%; background: rgba(27, 38, 59, 0.98); 
    border-bottom: 1px solid rgba(224, 220, 211, 0.1); 
}

.nav-brand { z-index: 2001; position: relative; display: flex; align-items: center; }
.nav-logo { 
    height: 75px; 
    width: auto; 
    object-fit: contain;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); 
}
.nav-logo:hover { transform: scale(1.05); filter: drop-shadow(0 4px 10px rgba(224, 220, 211, 0.3)); }

nav .links { display: flex; align-items: center; gap: 30px; }
nav .links a { color: var(--accent-light); text-decoration: none; font-size: 0.9rem; font-family: 'Cinzel', serif; letter-spacing: 1px; transition: 0.3s; opacity: 0.9; }
nav .links a:hover { opacity: 1; text-shadow: 0 0 8px rgba(224, 220, 211, 0.4); }
nav .links a.nav-btn { border: 1px solid rgba(224, 220, 211, 0.4); padding: 8px 20px; border-radius: 2px; opacity: 1; }
nav .links a.nav-btn:hover { background: rgba(224, 220, 211, 0.1); border-color: var(--accent-light); }

/* MOBILE MENU BUTTON - STRICTLY HIDDEN ON DESKTOP */
.menu-toggle { display: none; color: var(--accent-light); font-size: 1.8rem; cursor: pointer; z-index: 2001; position: relative; }

/* HERO SECTION */
.hero {
    height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    background: linear-gradient(rgba(74,44,42,0.5), rgba(27,38,59,0.7)), url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&q=80');
    background-size: cover; background-position: center; padding: 0 20px;
}
.hero-headline { 
    font-family: 'Playfair Display', serif; 
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.3;
    font-weight: 400;
    margin-bottom: 1.2rem;
    color: var(--accent-light);
    text-shadow: 2px 2px 20px rgba(0,0,0,0.8);
    letter-spacing: 0.5px;
}
.brand-positioning {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    max-width: 650px;
    margin: 20px auto 90px auto; 
    opacity: 0.75;
    letter-spacing: 1px;
}
.hero-subline { font-style: italic; font-family: 'Playfair Display', serif; font-size: clamp(1.5rem, 3vw, 2.2rem); opacity: 0.9; margin-bottom: 2rem; color: var(--accent-light); text-shadow: 1px 1px 10px rgba(0,0,0,0.6); }
.hero-description { font-size: 1.15rem; max-width: 600px; margin-bottom: 4rem; opacity: 0.9; letter-spacing: 1px; }

.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.hero-btn { padding: 15px 45px; font-family: 'Cinzel', serif; text-transform: uppercase; letter-spacing: 2px; text-decoration: none; transition: 0.4s ease; font-size: 0.9rem; }
.primary-btn { border: 1px solid var(--accent-light); color: var(--accent-light); background: transparent; }
.primary-btn:hover { background: var(--accent-light); color: var(--midnight-blue); font-weight: bold; transform: translateY(-3px); }
.secondary-btn { border: 1px solid transparent; color: var(--accent-light); opacity: 0.8; }
.secondary-btn:hover { border-bottom: 1px solid var(--accent-light); opacity: 1; transform: translateY(-3px); }

/* INNER PAGE SPACING & GRIDS */
.inner-page { padding-top: 150px; padding-bottom: 100px; min-height: calc(100vh - 150px); display: flex; flex-direction: column; justify-content: center; align-items: center; }
.section-title { font-family: 'Cinzel', serif; font-size: 2.2rem; text-transform: uppercase; color: var(--accent-light); margin-bottom: 15px; text-shadow: 0 0 10px rgba(224, 220, 211, 0.2); text-align: center; }
.section-intro { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: rgba(224,220,211,0.9); margin-bottom: 70px; text-align: center; }

/* BOOKS */
.book-grid { display: flex; flex-wrap: wrap; gap: 50px; justify-content: center; max-width: 1200px; margin: 0 auto; }
.book-card { flex: 1 1 300px; max-width: 350px; text-align: center; display: flex; flex-direction: column; align-items: center; background: rgba(27,38,59,0.75); padding:20px; border-radius:10px; transition:0.4s; border: 1px solid rgba(224,220,211,0.05); }
.book-cover { 
    width: 100%; 
    height: 500px !important; 
    max-height: 500px !important;
    object-fit: cover !important; 
    border-radius: 5px; 
    margin-bottom: 25px; 
    transition: transform 0.4s ease; 
}
.book-card:hover { background: rgba(27,38,59,0.9); transform: translateY(-5px); }
.book-card:hover .book-cover { transform: scale(1.03); }
.book-title { font-family: 'Cinzel', serif; font-size: 1.6rem; margin-bottom: 10px; color: var(--accent-light); }
.book-hook { font-family: 'Playfair Display', serif; font-size: 1.05rem; opacity: 0.85; margin-bottom: 25px; font-style: italic; }

/* Card Actions & Buttons */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    width: 100%;
}

.discover-btn {
    display: block; 
    width: 100%;
    text-align: center; 
    padding: 12px 20px;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--accent-light);
    border: 1px solid var(--accent-light);
    transition: 0.4s ease;
}

.discover-btn:hover {
    background: var(--accent-light);
    color: var(--dark-chocolate);
    font-weight: bold;
}

.buy-btn {
    display: block; 
    width: 100%;
    text-align: center; 
    padding: 10px 20px;
    border: 1px solid var(--accent-light);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--accent-light);
    transition: 0.3s;
}

.buy-btn:hover {
    background: var(--accent-light);
    color: var(--dark-chocolate);
    font-weight: bold;
}

.coming-soon-btn {
    display: block; 
    width: 100%;
    text-align: center; 
    padding: 12px 20px;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-decoration: none;
    color: rgba(224,220,211,0.5);
    border: 1px solid rgba(224,220,211,0.2);
    cursor: default;
}

/* ABOUT & CONTACT */
.about-grid { display: flex; flex-wrap: wrap; gap: 70px; justify-content: center; align-items: center; margin-top: 50px; max-width: 1100px; }
.author-photo { width: 300px; height: 300px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(224, 220, 211, 0.6); box-shadow: 0 15px 40px rgba(0,0,0,0.7); }
.about-text { max-width: 600px; font-family: 'Playfair Display', serif; font-size: 1.15rem; line-height: 1.9; opacity: 0.95; text-align: left; }
.about-text p { margin-bottom: 20px; }

/* CONTACT PAGE SPECIFIC FORM */
.contact-form { max-width: 600px; margin: 60px auto 0; display: flex; flex-direction: column; gap: 20px; text-align: left; }
.contact-form label { font-family: 'Cinzel', serif; font-size: 0.85rem; letter-spacing: 1.5px; color: var(--accent-light); margin-bottom: -10px; text-transform: uppercase; opacity: 0.9; }
.contact-form input, .contact-form textarea { padding: 15px 20px; background: rgba(27,38,59,0.5); border: 1px solid rgba(224, 220, 211, 0.3); color: var(--accent-light); font-family: 'Playfair Display', serif; font-size: 1rem; outline: none; transition: 0.3s ease; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent-light); background: rgba(27,38,59,0.9); }
.contact-form button { padding: 18px 40px; font-family: 'Cinzel', serif; border: 1px solid var(--accent-light); background: var(--accent-light); color: var(--midnight-blue); text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: 0.4s ease; font-weight: bold; margin-top: 10px; }
.contact-form button:hover { background: transparent; color: var(--accent-light); }
.contact-grid { display: flex; flex-wrap: wrap; gap: 70px; justify-content: center; margin-top: 50px; }
.contact-item { text-align: center; }
.contact-item i { font-size: 2.2rem; margin-bottom: 15px; opacity: 0.9; }
.contact-item p { margin-bottom: 5px; opacity: 0.8; font-family: 'Cinzel', serif; letter-spacing: 1px; font-size: 0.9rem; }
.contact-item a { color: var(--accent-light); text-decoration: none; font-weight: bold; font-size: 1.1rem; }

/* REVEALS */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* FOOTER */
footer { text-align: center; padding: 40px 20px; background: #131A28; color: rgba(224, 220, 211, 0.6); font-family: 'Cinzel', serif; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; width: 100%; }

/* SUBSCRIBE PAGE */
.subscribe-wrapper { padding-top: 150px; padding-bottom: 100px; min-height: calc(100vh - 150px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.subscribe-wrapper h2 { font-family: 'Cinzel', serif; font-size: 3.5rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 2px; }
.subscribe-wrapper p { max-width: 550px; font-size: 1.15rem; opacity: 0.9; margin-bottom: 40px; line-height: 1.8; }
.subscribe-wrapper form { display: flex; flex-direction: column; gap: 20px; align-items: center; width: 100%; }
.subscribe-wrapper input { padding: 18px 25px; width: 100%; max-width: 400px; background: rgba(27,38,59,0.5); border: 1px solid rgba(224,220,211,0.4); color: var(--accent-light); font-size: 1rem; font-family: 'Playfair Display', serif; text-align: center; outline: none; transition: 0.3s; }
.subscribe-wrapper input:focus { border-color: var(--accent-light); background: rgba(27,38,59,0.9); }
.subscribe-wrapper button { padding: 18px 45px; border: 1px solid var(--accent-light); background: var(--accent-light); color: var(--midnight-blue); font-family: 'Cinzel', serif; font-size: 1rem; cursor: pointer; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; transition: 0.4s ease; }
.subscribe-wrapper button:hover { background: transparent; color: var(--accent-light); transform: translateY(-3px); }
.login-link { margin-top: 30px; color: rgba(224, 220, 211, 0.6); font-family: 'Playfair Display', serif; font-size: 0.95rem; text-decoration: underline; cursor: pointer; transition: 0.3s; }
.login-link:hover { color: var(--accent-light); }

/* =========================================
   MOBILE RESPONSIVENESS & CASCADING MENU
   ========================================= */
@media (max-width: 768px) { 
    .menu-toggle { display: block; } 
    
    nav .links { 
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(27, 38, 59, 0.98);
        flex-direction: column; justify-content: center; align-items: center; gap: 40px;
        transform: translateY(-100%); transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1); z-index: 1500;
    }
    nav .links.active { transform: translateY(0); }
    nav .links a { font-size: 1.8rem; opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; margin: 0; border: none !important; }
    nav .links.active a { opacity: 1; transform: translateY(0); }
    
    .nav-btn { font-size: 1.2rem !important; padding: 15px 40px !important; }
    .about-grid, .about-text { text-align: center; } 
    .book-grid { flex-direction:column; align-items:center; }
    
    /* THE MOBILE OVERLAP FIX */
    .hero { 
        min-height: 100vh; /* Allows the section to grow if content is tall */
        height: auto; 
        padding-top: 150px; 
        padding-bottom: 80px; 
    }
    .hero-headline { 
        font-size: 2.2rem; /* Shrinks the massive text down to fit */
        margin-bottom: 1rem;
    }
    .brand-positioning {
        margin-bottom: 50px;
    }
}
/* --- LEAD MAGNET SECTION --- */
.lead-magnet {
    text-align: center;
    padding: 100px 20px;
    background-color: var(--midnight-blue);
}

.lead-magnet h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 20px;
}

.lead-magnet p {
    max-width: 600px;
    margin: 0 auto 30px auto;
    opacity: 0.8;
}

.email-form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.email-form input {
    padding: 15px 20px;
    width: 300px;
    border: 1px solid var(--accent-light);
    background: var(--dark-chocolate);
    color: var(--accent-light);
    font-family: 'Playfair Display', serif;
    outline: none;
}

.email-form input:focus {
    border-color: var(--accent-light);
    background: var(--midnight-blue);
}

.email-form button {
    padding: 15px 30px;
    border: 1px solid var(--accent-light);
    background: var(--accent-light);
    color: var(--midnight-blue);
    font-family: 'Cinzel', serif;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.email-form button:hover {
    background: transparent;
    color: var(--accent-light);
}