/* ===================================
   نُضُج للاستشارات الإدارية - ملف الأنماط الرئيسي
   =================================== */

/* ===================================
   1. المتغيرات والألوان
   =================================== */
:root {
    /* ألوان الشعار */
    --primary-gold: #B8935E;
    --gold-light: #D4B896;
    --gold-dark: #9A7A4A;
    --primary-green: #1A5244;
    --green-light: #2A6B59;
    --green-dark: #0F3D32;
    
    /* ألوان إضافية */
    --dark-bg: #0A0A0A;
    --light-bg: #F8F7F4;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --text-lighter: #999999;
    
    /* المسافات */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* الظلال */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 4px 20px rgba(184, 147, 94, 0.2);
    
    /* الانتقالات */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===================================
   2. إعدادات أساسية
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Tajawal', 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   3. Typography - النصوص
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
    font-weight: 900;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    line-height: 1.8;
    color: var(--text-light);
}

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

/* ===================================
   4. Header & Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.navbar {
    padding: 1rem 0;
}

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

.logo img {
    height: 117px; /* زيادة بنسبة 30% إضافية (90px × 1.3 = 117px) */
    transition: var(--transition-normal);
    filter: drop-shadow(0 2px 10px rgba(184, 147, 94, 0.4)); /* ظل ذهبي للشعار */
    background: transparent; /* خلفية شفافة */
    mix-blend-mode: normal; /* التأكد من ظهور الشعار بوضوح */
    object-fit: contain; /* الحفاظ على نسب الصورة */
}

.logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 15px rgba(184, 147, 94, 0.6)) brightness(1.1);
}

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

/* Language Switcher */
.lang-switcher {
    margin-right: 1rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-dark));
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.lang-btn:hover {
    background: linear-gradient(135deg, var(--gold-dark), var(--primary-gold));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.lang-btn i {
    font-size: 1.1rem;
}

/* RTL/LTR Support */
html[dir="ltr"] body {
    font-family: 'Inter', 'Tajawal', sans-serif;
}

html[dir="ltr"] .nav-links {
    flex-direction: row-reverse;
}

html[dir="ltr"] .lang-switcher {
    margin-right: 0;
    margin-left: 1rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
    transition: var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to left, var(--primary-gold), var(--primary-green));
    transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 50%;
    right: 25%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-green);
    cursor: pointer;
}

/* ===================================
   5. Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--green-dark) 100%);
    overflow: hidden;
    padding-top: 100px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(184, 147, 94, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(26, 82, 68, 0.15) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(184, 147, 94, 0.05) 100%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
    background: linear-gradient(to left, var(--primary-gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-gold);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===================================
   6. Buttons - الأزرار
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-dark));
    color: var(--white);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-dark), var(--primary-gold));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(184, 147, 94, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-gold);
}

.btn-secondary:hover {
    background: var(--primary-gold);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===================================
   7. Section Styles - أنماط الأقسام
   =================================== */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-green), var(--green-light));
    color: var(--white);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.section-title {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   8. About Section
   =================================== */
.about-section {
    background: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.about-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to left, var(--primary-gold), var(--primary-green));
}

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

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--green-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-md);
}

.card-icon i {
    font-size: 2.5rem;
    color: var(--primary-gold);
}

.about-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.about-card p {
    line-height: 1.9;
}

/* ===================================
   9. Services Section
   =================================== */
.services-section {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.service-card {
    background: var(--light-bg);
    padding: var(--spacing-lg);
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-green), var(--green-dark));
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 1;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    box-shadow: var(--shadow-gold);
    transition: var(--transition-normal);
    position: relative;
    z-index: 2;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--white);
}

.service-icon i {
    font-size: 3rem;
    color: var(--white);
    transition: var(--transition-normal);
}

.service-card:hover .service-icon i {
    color: var(--primary-gold);
}

.service-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    transition: var(--transition-normal);
}

.service-card:hover h3 {
    color: var(--primary-gold);
}

.service-list {
    list-style: none;
    text-align: right;
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.service-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-right: 1.5rem;
    transition: var(--transition-normal);
}

.service-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary-gold);
    font-weight: bold;
}

.service-card:hover .service-list li {
    color: rgba(255, 255, 255, 0.9);
}

.service-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(26, 82, 68, 0.95);
    padding: var(--spacing-md);
    transition: var(--transition-normal);
    z-index: 3;
}

.service-card:hover .service-overlay {
    bottom: 0;
}

.service-overlay p {
    color: var(--white);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===================================
   10. Why Us Section
   =================================== */
.why-us-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--green-dark) 100%);
    color: var(--white);
}

.why-us-section .section-tag {
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-dark));
}

.why-us-section .section-title,
.why-us-section .section-description {
    color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: 20px;
    border: 1px solid rgba(184, 147, 94, 0.2);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(184, 147, 94, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-slow);
}

.feature-card:hover::before {
    opacity: 1;
    animation: ripple 1.5s ease-out;
}

@keyframes ripple {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 40px rgba(184, 147, 94, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.feature-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(184, 147, 94, 0.2);
    line-height: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-gold);
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

/* ===================================
   11. Contact Section
   =================================== */
.contact-section {
    background: var(--light-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: var(--spacing-lg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-card:hover {
    transform: translateX(-10px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-green), var(--green-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.info-card h3 {
    font-size: 1.1rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.info-card a,
.info-card p {
    color: var(--text-light);
    transition: var(--transition-fast);
}

.info-card a:hover {
    color: var(--primary-gold);
}

/* ===================================
   12. Contact Form
   =================================== */
.contact-form-wrapper {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E5E5E5;
    border-radius: 10px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: var(--transition-normal);
    background: var(--light-bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: var(--white);
}

.form-group label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--text-lighter);
    pointer-events: none;
    transition: var(--transition-fast);
    background: transparent;
    padding: 0 0.5rem;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not([value=""]) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.7rem;
    font-size: 0.85rem;
    color: var(--primary-gold);
    background: var(--white);
}

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

/* ===================================
   13. Footer
   =================================== */
.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--green-dark) 100%);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: var(--spacing-lg);
}

.footer-logo img {
    height: 117px; /* زيادة بنسبة 30% إضافية (90px × 1.3 = 117px) */
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 10px rgba(184, 147, 94, 0.4));
    background: transparent;
    object-fit: contain; /* الحفاظ على نسب الصورة */
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer h4 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
    display: inline-block;
}

.footer ul li a:hover {
    color: var(--primary-gold);
    transform: translateX(-5px);
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact ul li i {
    color: var(--primary-gold);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
}

/* ===================================
   14. Animations
   =================================== */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   15. Responsive Design
   =================================== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact ul li {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .logo img {
        height: 91px; /* زيادة حجم الشعار للموبايل أيضاً (70px × 1.3 = 91px) */
    }
    
    .footer-logo img {
        height: 91px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        min-height: 90vh;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
}

/* ===================================
   16. Utilities
   =================================== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }