/*
Theme Name: Yad Biyad - يداً بيد
Theme URI: https://handbyhandps.com
Author: Hand by Hand Foundation
Author URI: https://handbyhandps.com
Description: قالب خيري عربي احترافي لمؤسسة يداً بيد - موقع صفحة واحدة متجاوب
Version: 1.0.0
Requires at least: 5.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: yadbiyad
Tags: one-column, custom-colors, custom-menu, custom-logo, featured-images, rtl-language-support, translation-ready, charity, arabic
*/

/* ═══════════════════════════════════════════════════════════ */
/* CSS Variables */
/* ═══════════════════════════════════════════════════════════ */
:root {
    --primary: #1B7A4B;
    --primary-light: #2E9B63;
    --primary-dark: #145A38;
    --secondary: #C9A227;
    --secondary-light: #D4B84A;
    --background: #FFFFFF;
    --foreground: #1A1A1A;
    --muted: #F5F5F5;
    --muted-foreground: #666666;
    --card: #FFFFFF;
    --card-foreground: #1A1A1A;
    --border: #E5E5E5;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--foreground);
    background: var(--background);
    direction: rtl;
    text-align: right;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

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

/* ═══════════════════════════════════════════════════════════ */
/* Buttons */
/* ═══════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

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

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════ */
/* Header */
/* ═══════════════════════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-logo img {
    height: 60px;
    width: auto;
    border-radius: 8px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-weight: 600;
    color: var(--foreground);
    position: relative;
    padding: 8px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.current::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--foreground);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════ */
/* Hero Section */
/* ═══════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27, 122, 75, 0.85) 0%, rgba(20, 90, 56, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 24px;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 32px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(15px); opacity: 0.3; }
}

/* ═══════════════════════════════════════════════════════════ */
/* Stats Section */
/* ═══════════════════════════════════════════════════════════ */
.stats {
    background: var(--primary);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    color: white;
}

.stat-item {
    padding: 20px;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════ */
/* Campaigns Section */
/* ═══════════════════════════════════════════════════════════ */
.campaigns {
    padding: 100px 0;
    background: var(--muted);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 16px;
    color: var(--foreground);
}

.section-subtitle {
    text-align: center;
    color: var(--muted-foreground);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.campaign-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.campaign-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

.campaign-content {
    padding: 24px;
}

.campaign-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--foreground);
}

.campaign-description {
    color: var(--muted-foreground);
    margin-bottom: 20px;
    line-height: 1.7;
}

.campaign-progress {
    margin-bottom: 16px;
}

.progress-bar {
    height: 8px;
    background: var(--muted);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

/* ═══════════════════════════════════════════════════════════ */
/* About Section */
/* ═══════════════════════════════════════════════════════════ */
.about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content .section-title {
    text-align: right;
}

.about-text {
    color: var(--muted-foreground);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 30px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* ═══════════════════════════════════════════════════════════ */
/* Contact Section */
/* ═══════════════════════════════════════════════════════════ */
.contact {
    padding: 100px 0;
    background: var(--muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--muted-foreground);
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #25D366;
    color: white;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #1da851;
    color: white;
    transform: translateY(-2px);
}

.whatsapp-icon {
    font-size: 2rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--card);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 16px;
    transition: border-color 0.3s ease;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.donation-selector {
    background: var(--muted);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.donation-selector p {
    font-weight: 600;
    margin-bottom: 12px;
}

.donation-amounts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.amount-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover,
.amount-btn.active {
    background: var(--primary);
    color: white;
}

.form-note {
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin-top: 12px;
}

/* ═══════════════════════════════════════════════════════════ */
/* Footer */
/* ═══════════════════════════════════════════════════════════ */
.site-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-about p {
    opacity: 0.8;
    line-height: 1.8;
    margin-top: 16px;
}

.footer-logo {
    height: 70px;
    border-radius: 8px;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    padding: 8px 0;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: white;
    padding-right: 10px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════ */
/* Responsive Design */
/* ═══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .header-content .btn {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .campaigns,
    .about,
    .contact {
        padding: 60px 0;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* WordPress Specific */
/* ═══════════════════════════════════════════════════════════ */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

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

.alignleft {
    float: right;
    margin-left: 20px;
}

.alignright {
    float: left;
    margin-right: 20px;
}

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