/* =========================================
   VARIABLES & BASE STYLES
   ========================================= */
   :root {
    /* Color Palette */
    --color-cream: #FDFBF7;
    --color-navy: #1B2A47;
    --color-navy-light: #2A3F66;
    --color-gold: #C59B27;
    --color-gold-hover: #A6811E;
    --color-brown-soft: #8B7355;
    --color-text-main: #333333;
    --color-text-muted: #5A5A5A;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-cream);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.section-padding { padding: 80px 0; }

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--color-gold);
    margin: 15px 0 25px 0;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-navy);
    color: var(--color-cream);
}

.btn-primary:hover {
    background-color: var(--color-navy-light);
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background-color: var(--color-gold);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--color-gold-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
}

.btn-outline:hover {
    background-color: var(--color-navy);
    color: var(--color-cream);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* =========================================
   PLACEHOLDERS
   ========================================= */
.placeholder-box {
    background-color: #EAE6DF;
    border: 2px dashed var(--color-brown-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brown-soft);
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
}

/* =========================================
   HEADER & NAV
   ========================================= */
.header {
    background-color: var(--color-cream);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-navy);
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 700;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-gold);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-navy);
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    background-color: var(--color-navy);
    color: var(--color-cream);
    padding: 100px 0;
}

.hero h1 {
    color: var(--color-cream);
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: #DDE2EC;
    margin-bottom: 40px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero .btn-outline {
    color: var(--color-cream);
    border-color: var(--color-cream);
}

.hero .btn-outline:hover {
    background-color: var(--color-cream);
    color: var(--color-navy);
}

.hero-image {
    height: 450px;
    width: 100%;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    width: 100%;
    max-width: 420px;
    height: 520px;
    overflow: hidden;
    border-radius: 24px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center center;
}

.about h2 {
    font-size: 2.5rem;
}

.about p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* =========================================
   BOOKS SECTION
   ========================================= */
.books {
    background-color: #F4EFEB;
}

.books h2 {
    font-size: 2.5rem;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.book-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.book-cover {
    width: 100%;
    height: 420px;
    background-color: #F4EFEB;
    border-bottom: 1px solid #EEE;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.book-cover img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.book-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.book-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.book-info p {
    color: var(--color-text-muted);
    margin-bottom: 25px;
    min-height: 90px;
}

.book-info .btn {
    margin-top: auto;
}

@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: 1fr;
    }

    .book-cover {
        height: 360px;
    }
}

/* =========================================
   FEATURES SECTION
   ========================================= */
.features h2 {
    font-size: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-block {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border-top: 4px solid var(--color-gold);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-block h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-block p {
    color: var(--color-text-muted);
}

/* =========================================
   NEWSLETTER SECTION
   ========================================= */
.newsletter {
    background-color: var(--color-brown-soft);
    color: white;
    text-align: center;
}

.newsletter h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-form input {
    padding: 14px 20px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    flex: 1;
}

.newsletter-form input:focus {
    outline: 2px solid var(--color-gold);
}

.form-message {
    margin-top: 15px;
    font-weight: bold;
}
.google-form-wrapper {
    width: 100%;
    max-width: 700px;
    margin: 30px auto 0;
    overflow: hidden;
    border-radius: 16px;
}

.google-form-wrapper iframe {
    width: 100%;
    min-height: 556px;
    border: none;
}
/* =========================================
   CTA SECTION
   ========================================= */
.cta h2 {
    font-size: 2.5rem;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--color-navy);
    color: #DDE2EC;
    padding: 60px 0 20px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-info h3 {
    color: white;
    margin-bottom: 5px;
}

.footer-links a {
    color: #DDE2EC;
    text-decoration: none;
    margin-left: 20px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE/TABLET)
   ========================================= */
@media (max-width: 900px) {
    .hero-container, .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 { font-size: 2.5rem; }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .divider.mx-auto { margin: 15px auto 25px auto; }
    .about .divider { margin: 15px auto 25px auto; } /* Center divider on mobile */

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--color-cream);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links a {
        margin: 0 10px;
        display: inline-block;
        margin-top: 10px;
    }
}
/* =========================================
   HERO IMAGE FIX
========================================= */

.hero {
    background-color: var(--color-navy);
    color: var(--color-cream);
    padding: 80px 0;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 50px;
}

.hero-image {
    width: 100%;
    max-width: 400px;
    height: 430px;
    margin-left: auto;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

/* Mobile hero fix */
@media (max-width: 900px) {
    .hero {
        padding: 60px 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
    }

    .hero-image {
        max-width: 320px;
        height: 360px;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}
