/*
Theme Name: Love Is Service
Theme URI: https://loveisservice.org
Author: Love Is Service Inc.
Author URI: https://loveisservice.org
Description: A custom WordPress theme for Love Is Service Inc., a nonprofit organization dedicated to stewardship, governance, and service.
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: love-is-service
Tags: nonprofit, charity, custom, minimal
*/

:root {
    --primary: #2a5934;
    --primary-light: #4a7c54;
    --accent: #d97706;
    --accent-light: #f59e0b;
    --neutral-dark: #1f2937;
    --neutral: #6b7280;
    --neutral-light: #f3f4f6;
    --white: #ffffff;
    --cream: #fefcf5;
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--neutral-dark);
    background-color: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--neutral-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

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

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

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(254, 252, 245, 0.98);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(42, 89, 52, 0.1);
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.site-title {
    margin: 0;
}

.site-title a {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.site-description {
    display: none;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--neutral-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    display: block;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--primary);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

/* Mobile Menu Toggle - Default hidden on desktop */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

/* Show on mobile */
.menu-toggle {
    display: inline-block;
    background: var(--primary);
    border: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    transition: background 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1;
    vertical-align: middle;
}

.menu-toggle:hover {
    background: var(--primary-light);
}

.menu-toggle:focus {
    outline: 2px solid var(--accent);
}

/* Hamburger icon */
.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.menu-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Main Content */
.site-content {
    margin-top: 85px;
    min-height: calc(100vh - 85px - 200px);
}

/* Page/Post Content */
.entry-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.page-content,
.entry-content,
.entry-summary {
    line-height: 1.8;
}

.page-content p,
.entry-content p {
    margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
    background: var(--neutral-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section ul {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Utility Classes */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 968px) {
    .main-navigation ul {
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    /* Force header layout on mobile */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }
    
    .site-header .container {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        position: relative;
        -webkit-flex-wrap: nowrap;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
        padding: 1rem 5%;
    }
    
    .site-branding {
        -webkit-box-flex: 1;
        -webkit-flex: 1;
        -ms-flex: 1;
        flex: 1;
    }
    
    /* Force show hamburger button on mobile */
    button.menu-toggle,
    .menu-toggle {
        display: block !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        font-size: 1.8rem !important;
        padding: 0.6rem 1rem !important;
        background: #2a5934 !important;
        background-color: #2a5934 !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 4px !important;
        position: relative !important;
        z-index: 1001 !important;
        min-width: 50px !important;
        min-height: 45px !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        cursor: pointer !important;
        line-height: 1 !important;
        margin: 0 !important;
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 auto;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
    }
    
    /* Hide desktop navigation */
    .main-navigation {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream);
        border-top: 1px solid rgba(42, 89, 52, 0.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .main-navigation ul {
        display: none !important;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        margin: 0;
    }
    
    .main-navigation.toggled ul {
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: -ms-flexbox !important;
        display: flex !important;
    }
    
    .main-navigation li {
        border-bottom: 1px solid rgba(42, 89, 52, 0.05);
        margin: 0;
        padding: 0;
    }
    
    .main-navigation a {
        padding: 1rem 5%;
        display: block;
    }
    
    .main-navigation a::after {
        display: none;
    }
    
    .site-title a {
        font-size: 1.2rem;
    }
    
    .site-logo img {
        max-height: 40px;
    }
}

@media (max-width: 640px) {
    .site-content {
        margin-top: 70px;
    }
    
    .container,
    .entry-content {
        padding-left: 4%;
        padding-right: 4%;
    }
}
