/*
Theme Name: Waldo County Habitat for Humanity
Theme URI: https://waldocountyhabitat.org
Author: Waldo County HFH
Author URI: https://waldocountyhabitat.org
Description: A modern WordPress theme for Waldo County Habitat for Humanity, inspired by habitat.org's clean and impactful design.
Version: 1.0.8
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: waldo-habitat
Tags: nonprofit, charity, habitat, community, responsive, modern

This theme is designed specifically for Waldo County Habitat for Humanity.
*/

/* CSS Variables for easy customization */
:root {
    --primary-blue: #0067B1;
    --secondary-blue: #005A9C;
    --accent-orange: #FF6B35;
    --accent-green: #7AB800;
    --text-dark: #333333;
    --text-light: #666666;
    --text-lighter: #ededed;
    --background-light: #F8F9FA;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

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

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

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
}

.main-navigation a:hover {
    color: var(--primary-blue);
}

/* Dropdown menus */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 1rem 0;
    min-width: 200px;
    display: none;
    flex-direction: column;
    gap: 0;
}

.main-navigation li:hover > .sub-menu {
    display: flex;
}

.main-navigation .sub-menu a {
    padding: 0.75rem 1.5rem;
}

/* Donate Button */
.btn-donate {
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 0.75rem 1rem !important;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-donate:hover {
    background-color: #E55A2B;
    color: var(--white);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,103,177,0.7), rgba(0,90,156,0.8));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--secondary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: transparent;
    color: var(--white);
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
}

.content-section.bg-light {
    background-color: var(--background-light);
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: var(--transition);
}

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

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-title a {
    color: var(--text-dark);
}

.card-title a:hover {
    color: var(--primary-blue);
}

.card-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.card-link {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Call to Action Box */
.cta-box {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
}

.cta-box h2,
.cta-box h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Footer */
.site-footer {
    background-color: #2C3E50;
    color: var(--text-lighter);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-section {
    flex: 1 1 200px;
    min-width: 200px;
    max-width: 100%;
}

.footer-section h3, .footer-section p {
    color: var(--text-lighter);
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: var(--text-lighter);
}

.footer-section a:hover {
    color: #E0E0E0;
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-lighter);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-lighter);
}

.footer-bottom .footer-credit {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-bottom .footer-credit a {
    color: var(--text-light);
}

.footer-bottom .footer-credit a:hover {
    color: #E0E0E0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-branding {
        max-width: 50%;
        flex-shrink: 0;
    }

    .site-branding img,
    .site-logo img,
    .site-branding .custom-logo {
        max-width: 100%;
        height: auto;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding: 1rem;
        display: none;
    }

    .main-navigation.active {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .main-navigation ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .main-navigation li {
        width: 100%;
    }

    .main-navigation a {
        padding: 0.75rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-section {
        flex: 1 1 auto;
        min-width: 100%;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 2rem; padding-bottom: 2rem; }
.py-4 { padding-top: 3rem; padding-bottom: 3rem; }
