/*
Theme Name: Kombachoto
Theme URI: https://kombachoto.com
Author: Kombachoto Team
Author URI: https://kombachoto.com
Description: A warm, community-focused theme for Kombachoto - Together, We Power Our Progress. Features a modern single-page design with African-rooted aesthetics, warm fire tones, and earth colors.
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: kombachoto
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, theme-options, translation-ready

Kombachoto WordPress Theme, Copyright 2024 Kombachoto
Kombachoto is distributed under the terms of the GNU GPL
*/

/* ========================================
   CSS Variables / Design Tokens
======================================== */
:root {
    /* Primary Colors - Warm Fire Tones */
    --color-primary: #d97706;
    --color-primary-light: #f59e0b;
    --color-primary-dark: #b45309;
    --color-amber: #fbbf24;
    --color-gold: #eab308;
    
    /* Earth Tones */
    --color-earth-brown: #78350f;
    --color-earth-dark: #451a03;
    --color-olive: #4d7c0f;
    --color-olive-dark: #365314;
    
    /* Neutrals */
    --color-cream: #fef7ed;
    --color-warm-white: #fffbf5;
    --color-charcoal: #292524;
    --color-warm-gray: #57534e;
    
    /* Gradients */
    --gradient-fire: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
    --gradient-earth: linear-gradient(180deg, #78350f 0%, #451a03 100%);
    --gradient-hero: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(41,37,36,0.9) 100%);
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: 5rem;
    --container-max: 1200px;
    
    /* Shadows */
    --shadow-warm: 0 10px 40px -10px rgba(217, 119, 6, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Reset & Base Styles
======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-charcoal);
    background-color: var(--color-warm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul, ol {
    list-style: none;
}

/* ========================================
   Typography
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-charcoal);
}

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

p {
    margin-bottom: 1rem;
    color: var(--color-warm-gray);
}

/* ========================================
   Layout Components
======================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding) 0;
}

.section--cream {
    background-color: var(--color-cream);
}

.section--dark {
    background-color: var(--color-earth-dark);
    color: var(--color-cream);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--color-cream);
}

.section--dark p {
    color: rgba(254, 247, 237, 0.8);
}

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

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn--primary {
    background: var(--gradient-fire);
    color: white;
    box-shadow: var(--shadow-warm);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px -10px rgba(217, 119, 6, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--color-cream);
    border: 2px solid var(--color-cream);
}

.btn--outline:hover {
    background: var(--color-cream);
    color: var(--color-charcoal);
}

.btn--secondary {
    background: var(--color-earth-brown);
    color: var(--color-cream);
}

.btn--secondary:hover {
    background: var(--color-earth-dark);
}

/* ========================================
   Navigation
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.navbar--scrolled {
    background: rgba(255, 251, 245, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__logo img {
    height: 50px;
    width: auto;
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar__link {
    font-weight: 500;
    color: var(--color-cream);
    position: relative;
}

.navbar--scrolled .navbar__link {
    color: var(--color-charcoal);
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-smooth);
}

.navbar__link:hover::after {
    width: 100%;
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar__toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-cream);
    transition: var(--transition-smooth);
}

.navbar--scrolled .navbar__toggle span {
    background: var(--color-charcoal);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .navbar__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-earth-dark);
        flex-direction: column;
        padding: 5rem 2rem;
        transition: var(--transition-smooth);
    }
    
    .navbar__menu.active {
        right: 0;
    }
    
    .navbar__menu .navbar__link {
        color: var(--color-cream);
        font-size: 1.25rem;
    }
    
    .navbar__toggle {
        display: flex;
    }
}

/* ========================================
   Hero Section
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero__logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero__title {
    color: var(--color-cream);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__title span {
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: rgba(254, 247, 237, 0.9);
    margin-bottom: 2.5rem;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   About Section
======================================== */
.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .about__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.about__image {
    position: relative;
}

.about__image img {
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
}

.about__image::before {
    content: '';
    position: absolute;
    inset: -1rem;
    border: 3px solid var(--color-primary);
    border-radius: 1.5rem;
    z-index: -1;
}

.about__text h2 {
    margin-bottom: 1.5rem;
}

.about__text h2 span {
    color: var(--color-primary);
}

/* ========================================
   Mission Section
======================================== */
.mission__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--color-warm-white);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-warm);
}

.value-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--gradient-fire);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-card__icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.value-card h4 {
    margin-bottom: 0.5rem;
}

/* ========================================
   Benefits Section
======================================== */
.benefits__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(254, 247, 237, 0.05);
    border: 1px solid rgba(254, 247, 237, 0.1);
    border-radius: 0.75rem;
    transition: var(--transition-smooth);
}

.benefit-item:hover {
    background: rgba(254, 247, 237, 0.1);
    border-color: var(--color-primary);
}

.benefit-item__icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient-fire);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-item__icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.benefit-item h4 {
    color: var(--color-cream);
    margin-bottom: 0.25rem;
}

/* ========================================
   Projects Section
======================================== */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-warm);
}

.project-card__image {
    height: 200px;
    background: var(--gradient-earth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card__image span {
    font-size: 4rem;
}

.project-card__content {
    padding: 1.5rem;
}

.project-card__content h4 {
    margin-bottom: 0.5rem;
}

.project-card__content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.project-card__link {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-card__link:hover {
    color: var(--color-primary-dark);
}

/* ========================================
   Testimonials Section
======================================== */
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--color-primary);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    line-height: 1;
}

.testimonial-card__text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-fire);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.testimonial-card__name {
    font-weight: 600;
    color: var(--color-charcoal);
}

.testimonial-card__role {
    font-size: 0.875rem;
    color: var(--color-warm-gray);
}

/* ========================================
   Pricing Section
======================================== */
.pricing__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.pricing-card--featured {
    border: 3px solid var(--color-primary);
}

.pricing-card--featured::before {
    content: 'Popular';
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--gradient-fire);
    color: white;
    padding: 0.25rem 3rem;
    font-size: 0.75rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.pricing-card h4 {
    margin-bottom: 1rem;
}

.pricing-card__price {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.pricing-card__period {
    color: var(--color-warm-gray);
    margin-bottom: 1.5rem;
}

.pricing-card__features {
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-card__features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-card__features li::before {
    content: '✓';
    color: var(--color-olive);
    font-weight: 700;
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--color-earth-dark);
    color: var(--color-cream);
    padding: 4rem 0 2rem;
}

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

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer__brand img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer__brand p {
    color: rgba(254, 247, 237, 0.7);
}

.footer__links h5,
.footer__contact h5 {
    color: var(--color-cream);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.footer__links ul li,
.footer__contact p {
    margin-bottom: 0.5rem;
}

.footer__links a:hover {
    color: var(--color-primary);
}

.footer__bottom {
    border-top: 1px solid rgba(254, 247, 237, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(254, 247, 237, 0.6);
}

/* ========================================
   Utilities
======================================== */
.text-primary { color: var(--color-primary); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* WordPress Specific */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1.5rem;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--color-warm-gray);
    text-align: center;
    margin-top: 0.5rem;
}

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

/* ========================================
   Join Page Styles
======================================== */
.join-hero {
    background: var(--gradient-fire);
    padding: 4rem 0;
    text-align: center;
}

.join-hero__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.join-hero__title {
    color: white;
    margin-bottom: 1rem;
}

.join-hero__subtitle {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

.join-container {
    max-width: 800px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-warm-gray);
    font-weight: 500;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.back-link:hover {
    color: var(--color-primary);
}

.join-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
}

.form-section__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.form-section__number {
    width: 2rem;
    height: 2rem;
    background: var(--gradient-fire);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-family: var(--font-body);
}

.form-section__optional {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-warm-gray);
    font-family: var(--font-body);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    color: var(--color-charcoal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label svg {
    color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

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

.form-submit {
    text-align: center;
    padding: 1rem 0;
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn--large svg {
    margin-right: 0.5rem;
}

.form-submit__note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--color-warm-gray);
}

/* Success Message */
.success-message {
    background: white;
    padding: 4rem 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.success-message__icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-fire);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
}

.success-message h2 {
    color: var(--color-charcoal);
    margin-bottom: 1rem;
}

.success-message p {
    margin-bottom: 2rem;
}

.success-message .btn {
    margin-top: 1rem;
}
