/*
Theme Name: Liberation Lab
Theme URI: https://theliberationlab.com
Author: The Liberation Lab
Author URI: https://theliberationlab.com
Description: A pixel-perfect theme matching theliberationlab.com design, fully compatible with WordPress block editor for easy content editing.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: liberationlab
Tags: block-editor, full-width-template, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   HEADER & NAVIGATION - WHITE BACKGROUND
   ============================================ */
#masthead.site-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-branding .site-logo-wrapper,
.site-branding .custom-logo-link {
    display: block;
    line-height: 0;
}

.site-branding .custom-logo,
.site-branding img {
    max-height: 50px;
    width: auto;
    display: block;
    height: auto;
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #000;
}

.site-title a {
    color: #000;
    text-decoration: none;
}

.site-description {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* Navigation Menu */
#site-navigation.site-navigation {
    display: flex;
    align-items: center;
    gap: 0;
}

#site-navigation ul,
#site-navigation .nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: center;
}

#site-navigation li {
    margin: 0;
    padding: 0;
    position: relative;
}

#site-navigation a {
    display: block;
    padding: 24px 20px;
    text-decoration: none;
    color: #333 !important;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    position: relative;
    text-transform: none;
}

#site-navigation a:hover {
    color: #000 !important;
}

#site-navigation .current-menu-item > a,
#site-navigation .current_page_item > a,
#site-navigation .current-menu-parent > a {
    color: #000 !important;
    font-weight: 500;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    color: #000;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
#primary.site-main {
    width: 100%;
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero-section {
    width: 100%;
    padding: 100px 40px;
    text-align: center;
    background-color: #fff;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 30px;
    color: #000;
    letter-spacing: -0.02em;
}

.hero-title a {
    color: inherit;
    text-decoration: none;
}

/* Entry Content Styling */
.entry-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-weight: 700;
    line-height: 1.3;
    margin: 40px 0 20px;
    color: #000;
}

.entry-content h1 {
    font-size: 42px;
    letter-spacing: -0.02em;
}

.entry-content h2 {
    font-size: 36px;
    letter-spacing: -0.01em;
}

.entry-content h3 {
    font-size: 28px;
}

.entry-content p {
    font-size: 18px;
    line-height: 1.8;
    margin: 0 0 24px;
    color: #333;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 4px;
}

.entry-content a {
    color: #000;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.entry-content a:hover {
    text-decoration-thickness: 2px;
}

/* Content Sections */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}

.content-section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.image-grid-item {
    position: relative;
    overflow: hidden;
}

.image-grid-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-grid-item:hover img {
    transform: scale(1.05);
}

/* Learn More Button */
.learn-more-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.learn-more-button:hover {
    background-color: #333;
    color: #fff;
}

/* ============================================
   CONTACT/SUBSCRIPTION FORM
   ============================================ */
.contact-form-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    width: 100%;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.submit-button {
    padding: 14px 30px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.submit-button:hover {
    background-color: #333;
}

/* Contact Form 7 styling to match design */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpcf7-form p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpcf7-form label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    width: 100%;
    transition: border-color 0.3s ease;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #000;
}

.wpcf7-form .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 8px;
}

.wpcf7-form .wpcf7-radio label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.wpcf7-form input[type="submit"] {
    padding: 14px 30px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #333;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px 40px;
    text-align: center;
}

.contact-info {
    margin: 30px 0;
    font-size: 18px;
}

.contact-info a {
    color: #000;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
}

.contact-info a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.contact-link {
    display: inline-block;
    margin-top: 20px;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-link:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* ============================================
   FOOTER
   ============================================ */
#colophon.site-footer {
    background-color: #f8f9fa;
    padding: 40px 20px;
    margin-top: 80px;
    border-top: 1px solid #e5e5e5;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    max-height: 40px;
    width: auto;
}

.footer-logo img {
    max-height: 40px;
    width: auto;
}

.footer-widgets {
    flex: 1;
}

.footer-navigation {
    display: flex;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #000;
}

.site-info {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.site-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* ============================================
   WORDPRESS BLOCK EDITOR STYLES
   ============================================ */
.wp-block-group {
    margin: 60px 0;
}

.wp-block-columns {
    display: flex;
    gap: 40px;
    margin: 60px 0;
    align-items: flex-start;
}

.wp-block-column {
    flex: 1;
}

.wp-block-image {
    margin: 40px 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.wp-block-heading {
    margin: 50px 0 25px;
    line-height: 1.3;
    font-weight: 700;
    color: #000;
}

.wp-block-heading h1,
.wp-block-heading h2,
.wp-block-heading h3,
.wp-block-heading h4,
.wp-block-heading h5,
.wp-block-heading h6 {
    font-weight: 700;
    color: #000;
    margin: 0;
}

.wp-block-heading h1 {
    font-size: 42px;
    letter-spacing: -0.02em;
}

.wp-block-heading h2 {
    font-size: 36px;
    letter-spacing: -0.01em;
}

.wp-block-heading h3 {
    font-size: 28px;
}

.wp-block-paragraph {
    margin: 0 0 24px;
    line-height: 1.8;
    font-size: 18px;
    color: #333;
}

.wp-block-buttons {
    margin: 40px 0;
}

.wp-block-button__link {
    padding: 14px 32px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 16px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.wp-block-button__link:hover {
    background-color: #333;
    color: #fff;
}

.wp-block-spacer {
    margin: 0;
}

/* ============================================
   HOMEPAGE HERO SECTION - PIXEL PERFECT
   ============================================ */

/* Hero Section with Background Image */
.wp-block-cover.alignfull {
    position: relative !important;
    min-height: 600px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    width: 100% !important;
    margin: 0 !important;
}

.wp-block-cover__image-background {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.wp-block-cover__inner-container {
    position: relative !important;
    z-index: 1 !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    text-align: center !important;
    width: 100% !important;
}

.wp-block-cover .wp-block-heading {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

.wp-block-cover .wp-block-paragraph {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.wp-block-cover .wp-block-paragraph a {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px !important;
}

.wp-block-cover .wp-block-paragraph a:hover {
    text-decoration-thickness: 2px !important;
}

/* Main Logo Image - Centered */
.wp-block-image.aligncenter {
    text-align: center !important;
    margin: 60px auto !important;
    max-width: 1200px !important;
    padding: 0 40px !important;
}

.wp-block-image.aligncenter img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* We Build Digital Learning Tools Section */
.wp-block-group.alignfull.has-background {
    width: 100% !important;
    margin: 0 !important;
}

.wp-block-group[style*="background-color:#f8f9fa"],
.wp-block-group.has-background[style*="background-color:#f8f9fa"] {
    background-color: #f8f9fa !important;
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

.wp-block-group[style*="background-color:#f8f9fa"] .wp-block-heading,
.wp-block-group.has-background[style*="background-color:#f8f9fa"] .wp-block-heading {
    color: #000000 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

.wp-block-group[style*="background-color:#f8f9fa"] .wp-block-paragraph,
.wp-block-group.has-background[style*="background-color:#f8f9fa"] .wp-block-paragraph {
    color: #333333 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Content Sections - Wide Alignment */
.wp-block-group.alignwide {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
}

/* Center-aligned headings and paragraphs */
.wp-block-heading.has-text-align-center,
h1.wp-block-heading.has-text-align-center,
h2.wp-block-heading.has-text-align-center {
    text-align: center !important;
}

.wp-block-paragraph.has-text-align-center {
    text-align: center !important;
}

/* Learn More Button Styling */
.wp-block-paragraph a[style*="background-color:#000"],
.wp-block-paragraph a[href*="podcast"] {
    display: inline-block !important;
    padding: 12px 30px !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    transition: background-color 0.3s ease !important;
    margin-top: 20px !important;
}

.wp-block-paragraph a[style*="background-color:#000"]:hover,
.wp-block-paragraph a[href*="podcast"]:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
}

/* Responsive Hero Section */
@media (max-width: 768px) {
    .wp-block-cover.alignfull {
        min-height: 400px !important;
    }
    
    .wp-block-cover .wp-block-heading {
        font-size: 32px !important;
    }
    
    .wp-block-group.alignwide {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .wp-block-image.aligncenter {
        padding: 0 20px !important;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .header-container {
        height: auto;
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block;
    }

    #site-navigation.site-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        border-top: 1px solid #e5e5e5;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    #site-navigation.site-navigation.active {
        display: flex;
    }

    #site-navigation ul {
        flex-direction: column;
        width: 100%;
    }

    #site-navigation a {
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .hero-title {
        font-size: 32px;
    }

    .entry-content,
    .content-section {
        padding: 40px 20px;
    }

    .image-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form-section {
        padding: 30px 20px;
    }

    .wp-block-columns {
        flex-direction: column;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .contact-form-section {
        padding: 20px 15px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   PAGE STRUCTURE
   ============================================ */
#page.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#page.site #primary {
    flex: 1;
}

/* Entry header styling - controlled via template/custom fields */
.entry-header {
    margin-bottom: 40px;
}

.entry-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #000;
    letter-spacing: -0.02em;
}

/* Ensure header is white */
#masthead,
.site-header,
header#masthead {
    background: #ffffff !important;
    color: #000 !important;
}

/* Ensure navigation text is dark */
#site-navigation a,
.site-navigation a,
nav a {
    color: #333 !important;
}

#site-navigation a:hover,
.site-navigation a:hover,
nav a:hover {
    color: #000 !important;
}
