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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #334155;
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
    min-height: 100vh;
    background: linear-gradient(180deg, #f0f9ff, #e0f2fe, #bae6fd);
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
}

.main-content {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Section Common Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    color: #1e40af;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-intro {
    color: #64748b;
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.main-nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

/* Navigation Dropdowns */
.nav-dropdown {
    position: relative;
}

.nav-link {
    color: #1e40af;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.nav-link:after {
    content: '▾';
    font-size: 0.8em;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-link:after {
    transform: rotate(180deg);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-content a {
    color: #334155;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: #f8fafc;
    color: #2563eb;
}

/* Mega Menu */
.mega-menu {
    padding: 1rem;
}

.mega-menu > a {
    color: #1e40af;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0.5rem;
}

.sub-links {
    padding-left: 1rem;
}

.sub-links a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section additions */
.header-tagline {
    font-size: 1.25rem;
    color: #1e40af;
    margin-top: 1.5rem;
}

.title-sub {
    display: block;
    font-size: 1.75rem;
    color: #3b82f6;
    margin-top: 0.5rem;
}

.book-cover {
    width: 400px;
    flex-shrink: 0;
}

.book-cover img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Download Form */
.download-button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-form {
    display: none;
    margin-top: 1rem;
}

.download-form.visible {
    display: block;
}

/* Framework Grid */
.framework-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.framework-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
}

.framework-image {
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
}

.framework-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.newsletter-image,
.insight-image {
    height: 0;
    padding-bottom: 100%; /* 1:1 aspect ratio */
    position: relative;
}

.newsletter-image img,
.insight-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.header {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 4rem 2rem;
}

.header-text {
    flex: 1;
}

.title-main {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

/* Download CTA */
.playbook-cta {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Value Proposition
   ========================================================================== */
.value-section {
    background: white;
    padding: 6rem 2rem;
    position: relative;
    z-index: 2;
}

.value-statement {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: 2rem;
    line-height: 1.4;
    font-weight: 600;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.value-item {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.value-item:hover {
    transform: translateY(-4px);
}

.value-item i {
    color: #2563eb;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1.5rem;
}

.value-item h3 {
    color: #1e40af;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.value-item p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

/* Featured Quote */
.featured-quote {
    max-width: 800px;
    margin: 4rem auto 0;
}

.quote-bubble {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    padding: 2rem;
    border-radius: 1rem;
    color: white;
    text-align: center;
}

/* ==========================================================================
   Reviews Section
   ========================================================================== */
.reviews-section {
    padding: 6rem 2rem;
    background: white;
}

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

/* ==========================================================================
   Framework Categories
   ========================================================================== */
.framework-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.category-pill {
    background: #f1f5f9;
    color: #1e40af;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-pill.active {
    background: #2563eb;
    color: white;
}

/* Framework Content */
.framework-content {
    padding: 1.5rem;
}

.framework-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-tag {
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

/* ==========================================================================
   Newsletter & Insights Common Styles
   ========================================================================== */
.newsletter-section,
.insights-section {
    padding: 6rem 2rem;
    background: #f8fafc;
}

.newsletter-card,
.insight-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.newsletter-content,
.insight-content {
    padding: 1.5rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    padding: 6rem 2rem;
    background: white;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.about-image img {
    width: 100%;
    border-radius: 1rem;
}

.bio-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f1f5f9;
    border-radius: 9999px;
    color: #1e40af;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .framework-grid,
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .title-main {
        font-size: 2.5rem;
    }
}

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

    .framework-categories {
        flex-wrap: wrap;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-content {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .framework-grid,
    .content-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .playbook-cta {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .value-statement p {
        font-size: 1.5rem;
    }
}