/*
Theme Name: نواصي الخير - Nawasi Al-Khair
Theme URI: https://nawasial-khair.com
Description: قالب متعدد اللغات لمكتب نواصي الخير - الخدمات العامة، التجارة العامة، الاستيراد والتصدير
Version: 2.0.0
Author: فريق نواصي الخير
Author URI: https://nawasial-khair.com
Text Domain: nawasi
Domain Path: /languages
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: translation-ready, rtl-language-support, multilingual, responsive, custom-colors, custom-logo, featured-images, threaded-comments

نواصي الخير theme is a professional multilingual business theme for Nawasi Al-Khair company.
*/

/* =Reset CSS
-------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* =Variables CSS
-------------------------------------------------------------- */
:root {
    /* الألوان الأساسية */
    --primary-blue: #1e3a8a;
    --primary-dark: #0f2a6d;
    --primary-light: #3b56c9;
    --gold: #d97706;
    --gold-dark: #b45309;
    --gold-light: #f59e0b;
    --white: #ffffff;
    --black: #000000;
    --dark: #1f2937;
    --dark-light: #374151;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --light-gray: #f3f4f6;
    --lighter-gray: #f8fafc;
    
    /* الظلال */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* الأنماط */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
}

/* =التخطيط الأساسي
-------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

/* =شريط اللغات
-------------------------------------------------------------- */
.language-bar {
    background: var(--dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--dark-light);
}

.language-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-language {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.current-language img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 13px;
}

.lang-option:hover {
    background: var(--dark-light);
    color: var(--gold-light);
}

.lang-option img {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
}

/* =رأس الصفحة
-------------------------------------------------------------- */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 37px;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-header.scrolled {
    top: 0;
    box-shadow: var(--shadow-lg);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* الشعار */
.logo {
    flex-shrink: 0;
}

.logo a {
    display: block;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

/* قائمة التنقل */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 16px;
    padding: 8px 0;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* أزرار الرأس */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    gap: 8px;
}

.primary-btn {
    background: var(--gold);
    color: var(--white);
}

.primary-btn:hover {
    background: var(--gold-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.secondary-btn {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.secondary-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.large {
    padding: 16px 32px;
    font-size: 16px;
}

/* زر قائمة الجوال */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =قسم البطل
-------------------------------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(217, 119, 6, 0.8) 100%), url('assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    padding: 120px 0 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title .highlight {
    color: var(--gold-light);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-light);
    border-radius: 2px;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    font-size: 1.5rem;
    margin-top: 5px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* =أقسام عامة
-------------------------------------------------------------- */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =قسم الخدمات
-------------------------------------------------------------- */
.services-section {
    background: var(--lighter-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--gold));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--white);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-description {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    text-align: right;
    margin-bottom: 25px;
}

.service-features li {
    padding: 8px 0;
    color: var(--dark-light);
    position: relative;
    padding-right: 20px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--gold);
    font-weight: bold;
}

/* =قسم لماذا تختارنا
-------------------------------------------------------------- */
.why-choose-us {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--white);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-description {
    color: var(--gray);
    line-height: 1.6;
}

/* =قسم الاتصال
-------------------------------------------------------------- */
.contact-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark) 100%);
    color: var(--white);
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--gold-light);
}

.contact-details p {
    opacity: 0.9;
    line-height: 1.6;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* =تذييل الصفحة
-------------------------------------------------------------- */
.main-footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--gold-light);
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-description {
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 25px;
}

.contact-details .contact-item {
    margin-bottom: 15px;
}

.contact-details .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-menu a:hover {
    opacity: 1;
    color: var(--gold-light);
    padding-right: 5px;
}

.services-list {
    list-style: none;
}

.services-list li {
    margin-bottom: 12px;
}

.services-list a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.services-list a:hover {
    opacity: 1;
    color: var(--gold-light);
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.copyright-bar {
    background: var(--black);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--dark-light);
}

.copyright-bar p {
    margin: 5px 0;
    opacity: 0.7;
    font-size: 14px;
}

/* =قائمة الجوال
-------------------------------------------------------------- */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 1000;
    transition: var(--transition);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.mobile-navigation.active {
    right: 0;
}

.mobile-nav-menu {
    list-style: none;
    padding: 80px 30px 30px;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid var(--light-gray);
}

.mobile-nav-menu a {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
}

.mobile-nav-menu a:hover {
    color: var(--primary-blue);
    padding-right: 10px;
}

.mobile-contact-info {
    padding: 0 30px 30px;
    border-top: 1px solid var(--light-gray);
    margin-top: 20px;
    padding-top: 20px;
}

.mobile-contact-info a {
    display: block;
    padding: 10px 0;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-contact-info a:hover {
    color: var(--primary-blue);
}

/* =الاستجابة للشاشات المختلفة
-------------------------------------------------------------- */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px 30px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .language-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .language-switcher {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .main-header .container {
        padding: 10px 15px;
    }
    
    .logo img {
        height: 40px;
    }
}

/* =أنماط RTL للغة العربية
-------------------------------------------------------------- */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .hero-scroll-indicator {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

[dir="rtl"] .service-features li {
    padding-right: 0;
    padding-left: 20px;
    text-align: left;
}

[dir="rtl"] .service-features li::before {
    right: auto;
    left: 0;
}

[dir="rtl"] .footer-menu a:hover,
[dir="rtl"] .mobile-nav-menu a:hover {
    padding-right: 0;
    padding-left: 10px;
}

[dir="rtl"] .nav-menu a::after {
    left: auto;
    right: 0;
}

/* =أنماط LTR للغات الأخرى
-------------------------------------------------------------- */
[dir="ltr"] {
    text-align: left;
}

[dir="ltr"] .service-features {
    text-align: left;
}

[dir="ltr"] .service-features li {
    padding-right: 0;
    padding-left: 20px;
}

[dir="ltr"] .service-features li::before {
    right: auto;
    left: 0;
}

/* =تحسينات إضافية
-------------------------------------------------------------- */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.language-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 30px;
    border-radius: var(--border-radius);
    z-index: 9999;
}

/* الطباعة */
@media print {
    .main-header,
    .language-bar,
    .hero-actions,
    .mobile-navigation,
    .main-footer {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
        min-height: auto;
        padding: 40px 0;
    }
    
    .container {
        max-width: none;
    }
}