/* Reset and base styles */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f6f3;
}

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

/* Header and Navigation */
header {
    background-color: #e5e5e5;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
}

.logo a {
    display: block;
    line-height: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2855a3;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #3a6bc7, #2855a3);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 0 20px;
}

.book-cover {
    flex: 1;
    max-width: 300px;
}

.book-cover img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-text {
    flex: 2;
    text-align: left;
}

.hero-text h2 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: #ecf0f1;
}

.hero-text h3 {
    font-size: 1.5rem;
    color: #bdc3c7;
    margin-bottom: 1rem;
    font-style: italic;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ecf0f1;
    line-height: 1.4;
}

.cta-button {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #c0392b;
}

/* Book Description Section */
.book-description {
    background-color: white;
    padding: 4rem 0;
}

.book-description h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2855a3;
    text-align: center;
}

.book-description p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.key-themes {
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.key-themes h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2855a3;
}

.key-themes ul {
    list-style-type: none;
    padding-left: 0;
}

.key-themes li {
    background-color: #ecf0f1;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-left: 4px solid #e74c3c;
    border-radius: 3px;
}

/* Purchase Section */
#buy,
#newsletter {
    scroll-margin-top: 90px;
}

.purchase-section {
    background-color: #ecf0f1;
    padding: 4rem 0;
}

.purchase-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2855a3;
}

.purchase-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.purchase-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.purchase-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2855a3;
}

.purchase-card p {
    margin-bottom: 1.5rem;
    color: #7f8c8d;
}

.buy-button {
    display: inline-block;
    background-color: #27ae60;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.buy-button:hover {
    background-color: #229954;
}

.buy-button.amazon {
    background-color: #ff9500;
}

.buy-button.amazon:hover {
    background-color: #e68400;
}

.retailer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.retailer-link {
    color: #3498db;
    text-decoration: none;
    padding: 8px 15px;
    border: 2px solid #3498db;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.retailer-link:hover {
    background-color: #3498db;
    color: white;
}

/* Author Preview Section */
.author-preview {
    background-color: white;
    padding: 4rem 0;
}

.author-preview h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #2855a3;
}

.author-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.author-intro p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.read-more {
    display: inline-block;
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid #e74c3c;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: #e74c3c;
    color: white;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer a {
    color: #ecf0f1;
    text-decoration: none;
}

footer a:hover {
    color: #3a6bc7;
}

/* Responsive Design */

.mobile-menu-button {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.line {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 112px; /* Adjust this value based on header height */
        left: 0;
        right: 0;
        background-color: #e5e5e5;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding-bottom: 1rem;
    }

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

    .mobile-menu-button {
        display: flex;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .purchase-options {
        grid-template-columns: 1fr;
    }
    
    .retailer-links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .book-description h2,
    .purchase-section h2,
    .author-preview h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
}