/*
Theme Name: Freedom Theme
Theme URI: https://mattsanti.com/theme
Description: OBMM (One Book Millions Method) Theme for Matt Santi - Conversion-Optimized FSE Theme
Author: IQ Self LLC
Author URI: https://mattsanti.com
Contact: matt@mattsanti.com
Domain: mattsanti.com
Version: 1.6.0
License: Proprietary
License URI: https://mattsanti.com/license
Text Domain: freedom-theme
Requires at least: 6.4
Tested up to: 6.4
Requires PHP: 7.4
Tags: block-theme, full-site-editing, conversion, funnel, one-column, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready

Last Updated: November 7, 2025 14:00 UTC
*/

:root {
    --color-navy: #1e3a5f;
    --color-gold: #D4AF37;
    --color-white: #ffffff;
    --color-light-gray: #f5f5f5;
    --color-medium-gray: #e0e0e0;
    --color-dark-gray: #666666;
    --color-indigo-50: #edf2f7;
    --color-indigo-200: #cbd5e0;
    --color-indigo-700: #5a67d8;

    /* Responsive Typography Variables */
    --max-line-length-desktop: 75ch;
    --max-line-length-mobile: 40ch;
    --body-line-height: 1.6;
    --heading-line-height: 1.2;
}

/* Global Typography Improvements */
body {
    font-size: 1rem; /* 16px minimum for accessibility */
    line-height: var(--body-line-height);
}

/* Responsive Line Length Constraints */
.wp-block-post-content,
.wp-block-group > *,
p, 
li {
    max-width: var(--max-line-length-desktop);
}

@media (max-width: 768px) {
    body {
        font-size: 1.125rem; /* 18px for better mobile readability */
    }

    .wp-block-post-content,
    .wp-block-group > *,
    p, 
    li {
        max-width: var(--max-line-length-mobile);
    }
}

/* ============================================
   WORDPRESS FSE LAYOUT OVERRIDES
   ============================================ */

/* Override WordPress FSE constrained layout for full-width elements */
.alignfull {
    max-width: none !important;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Ensure wide elements use proper width */
.alignwide {
    max-width: 1200px !important;
    width: 100%;
}

/* Fix main constrained layout to not restrict full-width children */
.is-layout-constrained > .alignfull {
    max-width: none !important;
    width: 100vw;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

/* ============================================
   BLOG GRID LAYOUT (3 COLUMNS)
   ============================================ */

/* WordPress Post Template Grid Override */
.wp-block-post-template.is-layout-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 1200px;
}

/* Fallback for blog-grid class */
.blog-grid,
.columns-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 1024px) {
    .blog-grid,
    .columns-3,
    .wp-block-post-template.is-layout-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .blog-grid,
    .columns-3,
    .wp-block-post-template.is-layout-grid {
        grid-template-columns: 1fr !important;
    }
}

.blog-post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    max-width: none !important;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ============================================
   HERO SECTION (FULL WIDTH)
   ============================================ */

.hero-section.wp-block-cover {
    min-height: 500px;
    padding: 4rem 2rem;
    max-width: none !important;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.hero-section .wp-block-cover__inner-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   BOOK OFFER CARD
   ============================================ */

.book-offer-card {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.price-tag {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-gold);
    margin: 1rem 0;
}

/* ============================================
   SALES PAGE LAYOUT FIXES
   ============================================ */

/* Ensure sales page wrapper doesn't get over-constrained */
.sales-page-wrapper {
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* Reset any constrained layout issues */
.sales-page-wrapper > * {
    max-width: 100%;
}

/* ============================================
   SALES PAGE FORMATTING
   ============================================ */

/* Main Sales Page Wrapper */
.sales-page-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.8;
    color: #1a202c;
    font-size: 1.125rem;
}

/* Headlines */
.main-headline {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1.15;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.subheadline {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-dark-gray);
    line-height: 1.5;
    margin-bottom: 4rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Opening Story Section */
.opening-story {
    max-width: 75ch; /* Character-based width for optimal readability */
    margin: 0 auto 5rem;
    font-size: 1.125rem;
    line-height: 1.6;
}

.opening-story p {
    margin-bottom: 1.5rem; /* Consistent with global paragraph spacing */
}

.opening-story p strong {
    color: var(--color-navy);
    font-weight: 700;
}

.highlight-quote {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-navy);
    text-align: center;
    font-style: italic;
    padding: 2rem 0;
    border-top: 3px solid var(--color-gold);
    border-bottom: 3px solid var(--color-gold);
    margin: 2rem 0;
}

/* Problem Section */
.problem-section {
    background-color: var(--color-light-gray);
    padding: 3rem 1.5rem;
    border-radius: 0.75rem; /* 12px converted to rem */
    margin-bottom: 4rem;
}

.problem-section p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.problem-section h3 {
    font-size: 2rem;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
    text-align: center;
}

.survey-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-indigo-700);
    font-style: italic;
    text-align: center;
    margin: 2rem 0;
}

.pain-points {
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
}

.pain-points li {
    padding-left: 2rem;
    margin-bottom: 1rem;
    position: relative;
    font-size: 1.125rem;
}

.pain-points li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-weight: bold;
    font-size: 1.5rem;
}

.pain-point {
    background-color: white;
    border-left: 4px solid var(--color-navy);
    padding: 1.5rem;
    margin: 2rem 0;
    font-size: 1.125rem;
    font-style: italic;
    border-radius: 4px;
}

/* Credibility Section */
.credibility-section {
    margin-bottom: 4rem;
}

.credibility-section h3 {
    font-size: 2rem;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
    text-align: center;
}

.credentials {
    list-style: none;
    padding-left: 0;
    max-width: 700px;
    margin: 2rem auto;
}

.credentials li {
    padding: 1rem 0 1rem 3rem;
    margin-bottom: 1rem;
    position: relative;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--color-medium-gray);
}

.credentials li:before {
    content: "✅";
    position: absolute;
    left: 0;
    font-size: 1.5rem;
}

/* Solution/Step Section */
.solution-section {
    margin-bottom: 4rem;
}

.solution-section h3 {
    font-size: 2rem;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
    text-align: center;
}

.step-list {
    max-width: 900px;
    margin: 0 auto;
}

.step {
    background-color: white;
    border: 2px solid var(--color-gold);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.step h4 {
    font-size: 1.5rem;
    color: var(--color-navy);
    margin-bottom: 1rem;
    font-weight: 700;
}

.step p {
    margin-bottom: 1rem;
    font-size: 1.0625rem;
}

/* Course Connection */
.course-connection {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 4rem;
}

.course-connection h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: white;
}

.course-features {
    list-style: none;
    padding-left: 0;
    max-width: 700px;
    margin: 2rem auto;
}

.course-features li {
    padding: 0.75rem 0 0.75rem 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    font-size: 1.125rem;
}

/* Offer Section */
.offer-section {
    background-color: var(--color-indigo-50);
    border: 3px solid var(--color-gold);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin-bottom: 4rem;
    text-align: center;
}

.offer-section h3 {
    font-size: 2rem;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
}

.value-stack-detailed {
    list-style: none;
    padding-left: 0;
    max-width: 600px;
    margin: 2rem auto;
    text-align: left;
}

.value-stack-detailed li {
    padding: 0.75rem 0 0.75rem 2.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    font-size: 1.0625rem;
}

.value-calculation {
    font-size: 1.25rem;
    margin: 2rem 0;
    line-height: 2;
}

.strikethrough {
    text-decoration: line-through;
    color: var(--color-dark-gray);
}

.intro-price {
    font-size: 2rem;
    color: var(--color-navy);
    font-weight: 800;
}

.urgency-reminder {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 2rem;
    font-weight: 600;
}

/* Guarantee Section */
.guarantee-section {
    background-color: white;
    border: 3px solid #28a745;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 4rem;
    text-align: center;
}

.guarantee-section h3 {
    font-size: 2rem;
    color: #28a745;
    margin-bottom: 1.5rem;
}

.guarantee-statement {
    font-size: 1.25rem;
    font-weight: 700;
    color: #28a745;
    margin-top: 2rem;
}

/* CTA Buttons */
.cta-button-primary,
.cta-button-final {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-gold) 0%, #b8941f 100%);
    color: var(--color-navy);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    margin: 2rem 0;
}

.cta-button-primary:hover,
.cta-button-final:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.6);
}

.sub-cta {
    font-size: 0.9375rem;
    color: var(--color-dark-gray);
    margin-top: 1rem;
}

.urgency-final {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    font-weight: 600;
    font-size: 1.125rem;
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.faq-section h3 {
    font-size: 2rem;
    color: var(--color-navy);
    margin-bottom: 2rem;
    text-align: center;
}

.faq-item {
    background-color: white;
    border: 1px solid var(--color-medium-gray);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.faq-item .question {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.75rem;
}

.faq-item .answer {
    font-size: 1.0625rem;
    color: var(--color-dark-gray);
    line-height: 1.6;
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, var(--color-navy) 0%, #2d5a8f 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
}

.final-cta h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.final-quote {
    font-size: 1.25rem;
    font-style: italic;
    max-width: 700px;
    margin: 2rem auto;
    padding: 1.5rem;
    border-left: 4px solid var(--color-gold);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.final-reminder-list {
    list-style: none;
    padding-left: 0;
    max-width: 600px;
    margin: 2rem auto;
    text-align: left;
}

.final-reminder-list li {
    padding: 0.5rem 0 0.5rem 2rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.choice-list {
    max-width: 700px;
    margin: 2rem auto;
    text-align: left;
    font-size: 1.125rem;
    line-height: 1.8;
}

.ps-final {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1.125rem;
    line-height: 1.8;
}

.guarantee-reminder-final {
    font-size: 1rem;
    margin-top: 1rem;
    opacity: 0.9;
}

/* ============================================
   FREE RESOURCES PAGE FORMATTING
   ============================================ */

/* Main Free Resources Page Wrapper */
.free-resources-page-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.8;
    color: #1a202c;
    font-size: 1.125rem;
}

.free-resources-page-wrapper h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1.15;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.free-resources-page-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.free-resources-page-wrapper h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.free-resources-page-wrapper p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Resource Download Links - Styled like CTAs */
.free-resources-page-wrapper a {
    color: var(--color-navy);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.free-resources-page-wrapper a:hover {
    color: var(--color-gold);
}

/* Button-style links for downloads */
.free-resources-page-wrapper a[href*=".pdf"],
.free-resources-page-wrapper a[href*=".mp3"],
.free-resources-page-wrapper a[href*=".epub"] {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-gold) 0%, #b8941f 100%);
    color: var(--color-navy);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    margin: 0.5rem 0.5rem 0.5rem 0;
}

.free-resources-page-wrapper a[href*=".pdf"]:hover,
.free-resources-page-wrapper a[href*=".mp3"]:hover,
.free-resources-page-wrapper a[href*=".epub"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.5);
}

/* Images in free resources pages */
.free-resources-page-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 1.5rem auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-headline {
        font-size: 1.75rem;
    }

    .subheadline {
        font-size: 1.25rem;
    }

    .opening-story,
    .problem-section,
    .credibility-section,
    .solution-section {
        font-size: 1rem;
    }

    .cta-button-primary,
    .cta-button-final {
        font-size: 1.25rem;
        padding: 1rem 2rem;
    }

    .step {
        padding: 1.5rem;
    }

    .free-resources-page-wrapper h1 {
        font-size: 1.75rem;
    }

    .free-resources-page-wrapper h2 {
        font-size: 1.25rem;
    }

    .free-resources-page-wrapper a[href*=".pdf"],
    .free-resources-page-wrapper a[href*=".mp3"],
    .free-resources-page-wrapper a[href*=".epub"] {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}
/* ============================================================================
   ENHANCED HEADER & NAVIGATION STYLING
   Modern visual improvements with animations and hover effects
   ============================================================================ */

/* Enhanced Header Container */
.enhanced-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.enhanced-header.scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Enhanced Profile Image */
.enhanced-profile img {
    border: 3px solid #C5A572;
    box-shadow: 0 4px 12px rgba(197, 165, 114, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.enhanced-profile:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(197, 165, 114, 0.35);
}

/* Enhanced Navigation Links */
.enhanced-navigation .wp-block-navigation-item a {
    position: relative;
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    color: #1e3a5f;
    transition: color 0.3s ease;
    padding-bottom: 4px;
}

.enhanced-navigation .wp-block-navigation-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #C5A572 0%, #D4B883 100%);
    transition: width 0.3s ease;
}

.enhanced-navigation .wp-block-navigation-item a:hover {
    color: #C5A572;
}

.enhanced-navigation .wp-block-navigation-item a:hover::after {
    width: 100%;
}

.enhanced-navigation .wp-block-navigation-item a:focus {
    outline: 2px solid #C5A572;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Enhanced CTA Button */
.enhanced-cta-button .wp-block-button__link {
    box-shadow: 0 4px 12px rgba(197, 165, 114, 0.25);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.enhanced-cta-button .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 165, 114, 0.4);
    background-color: #D4B883 !important;
}

.enhanced-cta-button .wp-block-button__link:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(197, 165, 114, 0.3);
}

.enhanced-cta-button .wp-block-button__link:focus {
    outline: 3px solid #C5A572;
    outline-offset: 4px;
}

/* Site Title Enhancement */
.brand-group .wp-site-title a {
    color: #1e3a5f;
    transition: color 0.3s ease;
}

.brand-group .wp-site-title a:hover {
    color: #C5A572;
}

/* Mobile Responsiveness */
@media (max-width: 782px) {
    .enhanced-header {
        padding-top: var(--wp--preset--spacing--20) !important;
        padding-bottom: var(--wp--preset--spacing--20) !important;
    }
    
    .enhanced-profile img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .enhanced-navigation .wp-block-navigation-item a {
        font-size: 1rem;
    }
    
    .enhanced-cta-button .wp-block-button__link {
        font-size: 0.875rem !important;
        padding: 0.75rem 1.25rem !important;
    }
}

/* Medium Screens */
@media (min-width: 783px) and (max-width: 1024px) {
    .enhanced-navigation .wp-block-navigation-item a {
        font-size: 0.875rem;
    }
    
    .navigation-group {
        gap: 1.5rem !important;
    }
}

/* Smooth Scrolling for Sticky Header */
html {
    scroll-behavior: smooth;
}

/* Focus Visible (for keyboard navigation) */
*:focus-visible {
    outline: 2px solid #C5A572;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Enhanced Animation for Page Load */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.enhanced-header {
    animation: fadeInDown 0.6s ease-out;
}

/* Optional: Add subtle gradient overlay on scroll */
.enhanced-header.scrolled::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #C5A572 50%, transparent 100%);
    opacity: 0.3;
}
