/* ===========================
   CSS Variables (Design Tokens)
   =========================== */
:root {
    /* Colors */
    --color-primary: #0A2A52;
    --color-primary-dark: #001F3F;
    --color-orange: #F47620;
    --color-gold: #D4AF37;
    --color-white: #FFFFFF;
    --color-light: #F8F9FA;
    --color-gray: #6C757D;
    --color-border: #E5E7EB;
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
}

/* ===========================
   Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-primary);
    line-height: 1.6;
    background-color: var(--color-white);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   Layout Components
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section-light {
    background-color: var(--color-light);
}

.section-dark {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section-why {
    background-color: var(--color-light);
    position: relative;
    overflow: hidden;
}

.section-community {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ===========================
   Header
   =========================== */
.header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

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

.nav-desktop {
    display: none;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--color-orange);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    color: var(--color-primary);
}

.menu-icon {
    width: 24px;
    height: 24px;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 2000;
}

.mobile-drawer.active {
    right: 0;
}

.mobile-drawer-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.mobile-drawer-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.mobile-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    color: var(--color-primary);
}

.nav-mobile {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md);
}

.nav-link-mobile {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-base);
}

.nav-link-mobile:last-child {
    border-bottom: none;
}

.nav-link-mobile:hover {
    color: var(--color-orange);
}

/* Overlay for mobile drawer */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1999;
}

.mobile-overlay.active {
    display: block;
}

/* Desktop Navigation */
@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://bookanalysthub.com/wp-content/uploads/2025/11/hero-background.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 42, 82, 0.8);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--spacing-3xl) 0;
    animation: fadeIn 0.8s ease-out;
}

.hero-title {
    font-size: 3rem;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.hero-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-text {
        font-size: 1.5rem;
    }
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
}

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

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

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

.btn-gold-outline:hover {
    background-color: var(--color-gold);
    color: var(--color-primary);
}

/* ===========================
   Section Headers
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    animation: fadeIn 0.8s ease-out;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.section-dark .section-title {
    color: var(--color-white);
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-gray);
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
}

.section-dark .section-description {
    color: rgba(255, 255, 255, 0.9);
}

.section-cta {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

/* ===========================
   Features Grid
   =========================== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-xl);
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-md);
    color: var(--color-orange);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.feature-description {
    font-size: 1rem;
    color: var(--color-gray);
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===========================
   Why Section
   =========================== */
.why-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://bookanalysthub.com/wp-content/uploads/2025/11/reading-discovery.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.why-content {
    max-width: 900px;
    margin: 0 auto var(--spacing-2xl);
    text-align: center;
}

.why-content p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.why-emphasis {
    font-weight: 600;
}

.why-highlight {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-gold);
}

.quote {
    border-left: 4px solid var(--color-gold);
    padding: var(--spacing-md) 0 var(--spacing-md) var(--spacing-lg);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--color-primary);
    max-width: 900px;
    margin: var(--spacing-2xl) auto;
}

.quote-author {
    margin-top: var(--spacing-md);
    font-weight: 600;
    font-style: normal;
    color: var(--color-gold);
}

/* ===========================
   Categories Grid
   =========================== */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.category-card {
    text-align: center;
    padding: var(--spacing-xl);
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.category-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

.category-tagline {
    font-size: 0.875rem;
    color: var(--color-gray);
}

@media (min-width: 640px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===========================
   Reviews Grid
   =========================== */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.review-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.review-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-content {
    padding: var(--spacing-lg);
}

.review-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

.review-author {
    font-size: 0.875rem;
    color: var(--color-gray);
    margin-bottom: var(--spacing-md);
}

.review-hook {
    font-size: 1rem;
    color: var(--color-gray);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===========================
   Community Section
   =========================== */
.community-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.community-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.community-text {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.community-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 600px;
    margin: var(--spacing-2xl) auto 0;
}

.community-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-white);
    color: var(--color-primary);
}

.community-input:focus {
    outline: none;
    border-color: var(--color-gold);
}

@media (min-width: 640px) {
    .community-form {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .community-title {
        font-size: 3rem;
    }
}

/* ===========================
   Founder Note
   =========================== */
.founder-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
}

.founder-avatar {
    width: 192px;
    height: 192px;
}

.founder-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold), var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-white);
}

.founder-quote {
    flex: 1;
}

@media (min-width: 768px) {
    .founder-note {
        flex-direction: row;
    }
    
    .founder-avatar {
        flex-shrink: 0;
    }
}

/* ===========================
   Footer
   =========================== */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.footer-tagline {
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-heading {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-link {
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition-base);
}

.footer-link:hover {
    opacity: 1;
    color: var(--color-gold);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    color: var(--color-white);
    opacity: 0.8;
    transition: var(--transition-base);
}

.social-link:hover {
    opacity: 1;
    color: var(--color-gold);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* ===========================
   Utility Classes
   =========================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }