/*
Theme Name: Khadim Theme (خادم لبيوت الله)
Theme URI: https://khadim.sa/
Author: Khadim Team / Rawafid Standard
Author URI: https://rawafee.sa/
Description: قالب ووردبريس احترافي متجاوب بالكامل يدعم اللغة العربية RTL وجميع أقسام التصميم الحديث لمنصة خادم للعناية ببيوت الله واحتياجات المساجد وموجوداتها. مبني بأقسام قابلة للتعديل وسريعة التحميل.
Version: 1.0.0
Text Domain: khadim-theme
*/

:root {
    --khadim-primary: #0E4638;
    --khadim-primary-dark: #082921;
    --khadim-primary-light: #16604e;
    --khadim-accent: #C59B27;
    --khadim-accent-light: #DFBA48;
    --khadim-bg: #F9F8F5;
    --khadim-card: #FFFFFF;
    --khadim-text: #1C2420;
    --khadim-text-muted: #5E6D66;
    --khadim-border: #E5E9E7;
}

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

body {
    direction: rtl;
    text-align: right;
    font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans Arabic', sans-serif;
    background-color: var(--khadim-bg);
    color: var(--khadim-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--khadim-border);
    transition: all 0.3s;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--khadim-primary);
}

.brand-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--khadim-primary);
    color: var(--khadim-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--khadim-text);
}

.nav-links a:hover {
    color: var(--khadim-accent);
}

.btn-cta-primary {
    background: var(--khadim-primary);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(14, 70, 56, 0.25);
}

.btn-cta-primary:hover {
    background: var(--khadim-primary-light);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    padding: 70px 24px 80px;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(197, 155, 39, 0.15);
    color: #8c6a0c;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 46px;
    font-weight: 900;
    line-height: 1.25;
    color: var(--khadim-primary-dark);
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--khadim-accent);
}

.hero-desc {
    font-size: 18px;
    color: var(--khadim-text-muted);
    margin-bottom: 30px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn-hero-secondary {
    background: #fff;
    color: var(--khadim-primary) !important;
    border: 2px solid var(--khadim-primary);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
}

.btn-hero-secondary:hover {
    background: rgba(14, 70, 56, 0.05);
}

.hero-stats-strip {
    display: flex;
    gap: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--khadim-border);
}

.stat-item strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--khadim-primary);
}

.stat-item span {
    font-size: 13px;
    color: var(--khadim-text-muted);
}

.hero-visual {
    position: relative;
}

.hero-visual img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    object-fit: cover;
}

/* Sections Common */
.section-wrapper {
    padding: 80px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px;
}

.section-head .sub-tag {
    color: var(--khadim-accent);
    font-weight: 700;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.section-head h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--khadim-primary-dark);
    margin-bottom: 12px;
}

.section-head p {
    color: var(--khadim-text-muted);
    font-size: 16px;
}

/* Cards & Grids */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--khadim-card);
    padding: 30px 24px;
    border-radius: 18px;
    border: 1px solid var(--khadim-border);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
    border-color: var(--khadim-accent);
}

.service-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--khadim-primary-dark);
}

.service-card p {
    font-size: 14px;
    color: var(--khadim-text-muted);
}

/* Mosque Grid */
.mosques-filter-bar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 30px;
    background: #fff;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid var(--khadim-border);
}

.mosques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.mosque-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--khadim-border);
    overflow: hidden;
    transition: all 0.25s ease;
}

.mosque-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.mosque-card-body {
    padding: 20px;
}

.mosque-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.mosque-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--khadim-text-muted);
    margin-bottom: 15px;
}

.mosque-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

/* Prioritized Needs Grid */
.needs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.need-item-card {
    background: #fff;
    padding: 22px;
    border-radius: 16px;
    border: 1px solid var(--khadim-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.need-badge-high {
    background: #fee2e2;
    color: #991b1b;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

/* FAQ Accordion */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--khadim-border);
    padding: 18px 24px;
    cursor: pointer;
}

.faq-item summary {
    font-weight: 700;
    font-size: 16px;
    color: var(--khadim-primary-dark);
}

.faq-item p {
    margin-top: 12px;
    font-size: 14px;
    color: var(--khadim-text-muted);
}

/* Footer */
.site-footer {
    background: #082921;
    color: #cbd5e1;
    padding: 60px 24px 30px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-copy {
    text-align: center;
    padding-top: 25px;
    font-size: 13px;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 40px;
    }
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 32px;
    }
    .footer-inner {
        grid-template-columns: 1fr;
    }
}
