/*
Theme Name: Run on Rhythm
Theme URI: https://runonrhythm.com
Author: Jesse White & Michael Polzin
Author URI: https://runonrhythm.com
Description: Custom theme for Run on Rhythm - Build a Business That Doesn't Run You. The 5P Framework for sustainable business operations.
Version: 1.0
License: GPL v2 or later
Text Domain: runonrhythm
*/

/* ==========================================================================
   CUSTOM PROPERTIES & VARIABLES
   ========================================================================== */

:root {
    --primary-blue: #003366;
    --dark-blue: #002244;
    --accent-gold: #FFB600;
    --warm-gray: #6B6B6B;
    --text-dark: #2C2C2C;
    --bg-light: #F8F8F8;
    --white: #FFFFFF;
    --success-green: #28a745;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --max-width: 1200px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { 
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--primary-blue);
}

h2 { 
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--dark-blue);
}

h3 { 
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    color: var(--accent-gold);
}
/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 5px 0;
    transition: 0.3s;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    text-align: center;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: #FFA500;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 182, 0, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}
/* ==========================================================================
   CONTENT SECTIONS
   ========================================================================== */

.content-section {
    padding: 4rem 2rem;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* Book showcase */
.book-showcase {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
}

.book-cover {
    max-width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 5px;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.email-capture-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-blue);
}
/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--white);
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent-gold);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.8;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .nav-wrapper {
        padding: 1rem;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }    
    .main-navigation a {
        display: block;
        padding: 0.75rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-section {
        padding: 3rem 1.5rem;
        min-height: 60vh;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .book-showcase {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .content-section {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ==========================================================================
   WORDPRESS SPECIFIC
   ========================================================================== */

.wp-block-image { margin: 2rem 0; }
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }
.aligncenter { display: block; margin: 0 auto; }
.screen-reader-text { position: absolute; left: -9999px; }