/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Brand Palette */
    --primary-blue: #0080C6;       /* 'H' Block - Main Brand */
    --accent-teal: #009F82;        /* 'A' Block - Transitions */
    --highlight-red: #CB333B;      /* 'P' Block - Accents */
    --cta-green: #5DBB46;          /* 'P' Block - Success/Nav */
    --accent-yellow: #F3C610;      /* 'Y' Block - Highlights */
    
    /* Functional Colors */
    --primary-hover: #006095;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    
    /* Layout */
    --max-width: 1100px;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

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

html {
    scroll-behavior: smooth; /* Smooth jump to #free-chapter */
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   2. NAVIGATION
   ========================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo a {
    text-decoration: none;
    color: var(--primary-blue) !important;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-blue);
}

.btn-nav {
    background-color: var(--cta-green);
    color: var(--white) !important;
    padding: 10px 18px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-nav:hover {
    background-color: var(--accent-teal);
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 5%;
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1.2;
    text-align: left;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.hero-image {
    flex: 0.8;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    width: 380px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    transform: rotate(-2deg);
    transition: transform 0.4s ease;
}

.hero-image img:hover {
    transform: rotate(0deg) scale(1.03);
}

.social-proof-text {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
    border-left: 4px solid var(--highlight-red);
    padding-left: 15px;
    margin-top: 2rem;
}

/* =========================================
   4. BUTTONS (Safari & Chrome Master Override)
   ========================================= */
.cta-group {
    display: flex;
    gap: 15px;
}

/* PRIMARY */
.btn-primary, 
a.btn-primary, 
a.btn-primary:link, 
a.btn-primary:visited {
    background-color: var(--primary-blue) !important;
    color: #ffffff !important;
    padding: 16px 32px !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    font-weight: bold !important;
    display: inline-block !important;
    border: none !important;
    -webkit-appearance: none;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-hover) !important;
}

/* SECONDARY */
.btn-secondary, 
a.btn-secondary, 
a.btn-secondary:link, 
a.btn-secondary:visited {
    background-color: transparent !important;
    color: var(--primary-blue) !important;
    border: 2px solid var(--primary-blue) !important;
    padding: 14px 30px !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    font-weight: bold !important;
    display: inline-block !important;
    -webkit-appearance: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: var(--primary-blue) !important;
    color: #ffffff !important;
}

/* =========================================
   5. FRAMEWORK SECTION (index.html)
   ========================================= */
#book-summary {
    background-color: #fff;
    text-align: center;
    padding: 5rem 5%; /* Generous vertical space */
}

.framework-grid ul {
    list-style: none;
    text-align: left;
    max-width: 750px;
    margin: 2rem auto 0 auto;
    padding: 0;
}

.framework-grid ul li {
    background: #f4f7f9;
    margin-bottom: 15px;
    padding: 18px 25px;
    border-radius: var(--border-radius);
    border-left: 6px solid var(--primary-blue);
    display: flex;
    gap: 10px;
}
/* =========================================
   6. LEAD MAGNET (MailerLite Override)
   ========================================= */
.lead-magnet {
    background-color: var(--bg-light);
    text-align: center;
    border-bottom: 5px solid var(--accent-yellow);
    border-radius: var(--border-radius);
    padding: 4rem 2rem;
}

/* Force the MailerLite button to match our brand */
#mlb2-35462866.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button {
    background-color: var(--primary-blue) !important;
    font-family: inherit !important;
    border-radius: 6px !important;
    height: 50px !important;
}

#mlb2-35462866.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button:hover {
    background-color: var(--primary-hover) !important;
}

/* =========================================
   7. ABOUT SECTION
   ========================================= */
.author-bio {
    display: flex;
    align-items: center;
    gap: 3rem;
    text-align: left;
}

.author-bio img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg-light);
}

.author-bio a {
    color: var(--primary-blue);
    font-weight: bold;
    text-decoration: none;
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 4rem 1rem;
    background-color: #1a1a1a;
    color: #999;
    font-size: 0.9rem;
    border-top: 5px solid var(--primary-blue);
}

.footer-links { margin-top: 15px; }
.footer-links a { color: #fff; text-decoration: none; margin: 0 10px; }
.footer-links a:hover { text-decoration: underline; }
.separator { color: #444; }

/* =========================================
   9. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 850px) {
    .hero, .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content { text-align: center; }
    
    .hero h1 { font-size: 2.5rem; }
    
    .cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary { width: 100%; max-width: 300px; }
    
    .hero-image img { width: 280px; }

    nav { flex-direction: column; gap: 1rem; }
    nav ul { gap: 10px; flex-wrap: wrap; justify-content: center; }
}

/* =========================================
   8. RESOURCES PAGE & CONTAINERS (resources.html)
   ========================================= */
.container {
    padding: 5rem 5% !important; /* RESTORED: This provides the top/bottom/side padding */
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.resource-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 3rem;              /* Internal padding for card content */
    margin: 2rem auto;          /* External spacing between cards */
    max-width: 850px;           /* Keeps cards from being too wide to read */
    box-shadow: var(--shadow);
    text-align: left;           /* Keeps text professional and left-aligned */
    transition: transform 0.2s, box-shadow 0.2s;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.resource-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-blue);
    font-size: 1.6rem;
}

/* =========================================
   12. LEGAL & LONG-FORM TEXT (Alignment Fix)
   ========================================= */

/* This combined selector overrides the general .container center-align */
.container.legal-content {
    text-align: left !important;  /* FORCES text to the left */
    max-width: 800px;
    margin: 0 auto !important;    /* Keeps the WHOLE BOX centered on screen */
    padding: 5rem 5% !important;  /* Ensures consistent padding */
    line-height: 1.8;
    display: block !important;
}

.legal-content h1, 
.legal-content h3, 
.legal-content p, 
.legal-content ul {
    text-align: left !important; /* Secondary insurance for Safari */
}

.legal-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    list-style-type: disc; /* Ensures bullets show up */
}

/* =========================================
   THE FINAL SPECIFICITY FIX (ID OVERRIDE)
   ========================================= */

#privacy-page {
    text-align: left !important;   /* Force the container to left-align */
    display: block !important;
    max-width: 800px !important;
    margin: 0 auto !important;     /* Keep the box centered on the screen */
}

#privacy-page h1, 
#privacy-page h3, 
#privacy-page p, 
#privacy-page li,
#privacy-page em {
    text-align: left !important;   /* Force every element inside to left-align */
}

#privacy-page ul {
    list-style-position: inside;   /* Keeps bullets aligned with the text */
    margin-left: 0;
    padding-left: 0;
}