/* --- VARIABLES & RESET --- */
:root {
    /* THEME CHANGE: Sunset / Maroon Palette */
    --primary-color: #3E0C10; /* Deep Maroon/Wine - Matches your footer image */
    --secondary-color: #F59E0B; /* Sunset Amber/Gold - Matches the sun */
    
    --text-dark: #29080A; /* Very dark brownish-red for text (softer than black) */
    --text-light: #FFF7ED; /* Warm cream text */
    
    --bg-light: #FFF7ED; /* Warm Cream background (instead of cold gray) */
    --bg-dark: #2A0608; /* Very deep dark red/black */
    
    --font-heading: 'Cinzel', serif; 
    --font-body: 'Lato', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-dark); line-height: 1.6; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; margin-bottom: 1rem; }
.subheadline { font-size: 1.1rem; color: #78350f; margin-top: -0.5rem; margin-bottom: 2rem; font-style: italic; }
.section-header { text-align: center; margin-bottom: 3rem; }
a { text-decoration: none; }

/* --- BUTTONS --- */
.btn { display: inline-block; padding: 12px 30px; border-radius: 4px; font-weight: 700; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; }

/* Primary Button = Gold Background */
.btn-primary { background-color: var(--secondary-color); color: var(--primary-color); border: 2px solid var(--secondary-color); }
.btn-primary:hover { background-color: transparent; color: var(--secondary-color); }

/* Secondary Button = Maroon Border */
.btn-secondary { background-color: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-secondary:hover { background-color: var(--primary-color); color: white; }

/* --- HEADER --- */
.navbar { position: fixed; width: 100%; top: 0; background: white; box-shadow: 0 2px 10px rgba(62, 12, 16, 0.1); z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; max-width: 1200px; margin: 0 auto; }
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--primary-color); }

.nav-menu ul { list-style: none; display: flex; align-items: center; gap: 2rem; }
.nav-menu a { color: var(--text-dark); font-weight: 600; transition: 0.3s; }
.nav-menu a:hover { color: var(--secondary-color); }

.btn-contact { background-color: var(--primary-color); color: white !important; padding: 8px 20px; border-radius: 4px; }
.btn-contact:hover { background-color: var(--secondary-color) !important; color: var(--primary-color) !important; }

.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: var(--primary-color); }

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: url('assets/heroimage.jpg') no-repeat center center/cover;
}

/* THEME UPDATE: Sunset Gradient Overlay */
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Gradient goes from Deep Maroon to a Sunset Orange/Red fade */
    background: linear-gradient(90deg, rgba(62, 12, 16, 49%) 0%, rgba(180, 83, 9, 0.85) 100%);
}

.hero-content { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 2rem; color: white; }
.hero-text { flex: 1; padding-right: 2rem; }
.hero-text h1 { font-size: 2rem; line-height: 1.2; color: #fff; }
.hero-text p { font-size: 1.2rem; margin-bottom: 2rem; color: #fed7aa; /* Soft orange-white text */ }

.hero-images { flex: 1; position: relative; height: 400px; display: flex; justify-content: center; align-items: center; }
.hero-book { width: 280px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: transform 0.3s; position: absolute; }
.book-1 { transform: rotate(-5deg) translateX(-60px); z-index: 1; }
.book-2 { transform: rotate(5deg) translateX(60px); z-index: 2; }
/* --- BOOK BUTTON ALIGNMENT --- */
.book-buttons {
    display: flex;
    gap: 1rem; /* Space between buttons */
    flex-wrap: wrap; /* Allows stacking on very small screens */
}

/* Optional: If you want both buttons to be the same width on mobile */
@media (max-width: 480px) {
    .book-buttons {
        flex-direction: column;
    }
    .book-buttons .btn {
        text-align: center;
    }
}
/* --- SECTIONS GENERAL --- */
.section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }
.text-white { color: white; }

/* --- ABOUT AUTHOR --- */
.author-layout { display: flex; align-items: center; gap: 4rem; }
.author-info { flex: 1; text-align: left; }
.author-img-wrapper { flex: 1; display: flex; justify-content: center; }
.author-img { width: 300px; height: 300px; object-fit: cover; border-radius: 50%; border: 5px solid var(--secondary-color); }

/* --- BOOKS --- */
.book-row { display: flex; align-items: center; gap: 4rem; margin-bottom: 3rem; }
.book-info { flex: 1; }
.book-img-wrapper { flex: 1; display: flex; justify-content: center; }
.book-cover { width: 280px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.book-divider { border: 0; height: 1px; background: #e7e5e4; margin: 3rem 0; }
.reverse-layout { flex-direction: row-reverse; }

/* --- REVIEWS --- */
.reviews-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.review-card {
    background: white; border: 1px solid #e7e5e4; padding: 2rem; width: 300px;
    text-align: center; border-radius: 8px; transition: 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.05); cursor: pointer; display: block;
}
.review-card:hover { transform: translateY(-5px); border-color: var(--secondary-color); box-shadow: 0 10px 20px rgba(62, 12, 16, 0.15); }
.review-card h4 { color: var(--primary-color); font-size: 1.1rem; }
.review-card p { font-size: 0.9rem; color: #78716c; margin-top: 0.5rem; }

/* --- CONTACT --- */
.contact-layout { display: flex; gap: 4rem; }
.contact-info { flex: 1; }
.contact-form-wrapper { flex: 1; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input, .contact-form textarea {
    padding: 12px; border: 1px solid #78350f; background: #450a0a; color: white; border-radius: 4px;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #d6d3d1; }
.contact-form input:focus, .contact-form textarea:focus { outline: 1px solid var(--secondary-color); }

/* --- FOOTER --- */
footer {
    background-color: var(--primary-color); /* This is now the Deep Maroon from your image */
    color: white;
    padding-top: 4rem;
    padding-bottom: 2rem;
    font-family: var(--font-body);
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-col { flex: 1; min-width: 200px; }

/* Headings (Gold color like the sunset sun) */
.footer-heading {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Explore Links */
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a {
    color: #fed7aa; /* Soft sunset orange-white */
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
}
.footer-links a:hover { color: var(--secondary-color); }

/* Contact List */
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; color: #fed7aa; }
.footer-contact i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    width: 20px;
}

/* Footer Bottom Area */
.footer-bottom { text-align: center; margin-top: 1rem; }
.footer-divider {
    border: 0; height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 2rem;
    width: 100%;
}
.copyright { font-size: 0.9rem; color: #fdba74; /* Muted orange */ }

/* --- RESPONSIVENESS (MOBILE) --- */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: fixed; left: -100%; top: 70px; gap: 0; flex-direction: column; background-color: white; width: 100%; text-align: center; transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1); padding: 2rem 0;
    }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; gap: 2rem; }

    .hero-content { flex-direction: column; text-align: center; padding-top: 4rem; }
    .hero-text { padding-right: 0; margin-bottom: 2rem; }
    .hero-text h1 { font-size: 2rem; }

    .author-layout, .contact-layout, .book-row { flex-direction: column; text-align: center; }
    .reverse-layout { flex-direction: column; } 
    .author-info { order: 2; } 
    .author-img-wrapper { order: 1; margin-bottom: 1.5rem; }
    
    .footer-wrapper {
        flex-direction: column;
        text-align: left;
        gap: 2rem;
    }
}

/* --- BLOG SECTION --- */
.blog-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.blog-card {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e7e5e4;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(62, 12, 16, 0.15);
    border-color: var(--secondary-color);
}

.blog-image {
    flex: 0 0 35%; /* Takes up 35% of the card width */
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills space without stretching */
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05); /* Subtle zoom on hover */
}

.blog-content {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-date { color: #9ca3af; }
.blog-category { color: var(--secondary-color); }

.blog-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-content p {
    color: #57534e;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Blog Responsive Adjustments */
@media (max-width: 768px) {
    .blog-card {
        flex-direction: column;
    }
    
    .blog-image {
        flex: none;
        height: 200px;
        width: 100%;
    }
    
    .blog-content {
        padding: 1.5rem;
        text-align: left; /* Keep text left aligned even on mobile for readability */
    }

    .blog-content h3 {
        font-size: 1.4rem;
    }
}