/* إعدادات عامة للموقع */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* إعدادات الخط والاتجاه */
body {
    font-family: 'Tajawal', 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #f9fafb;
    line-height: 1.6;
    color: #1f2937;
}

/* الحاوي الرئيسي */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* نظام الشبكة */
.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}

/* الشبكة المرنة */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-1 {
    grid-template-columns: 1fr;
}

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

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* الهيدر */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0.75rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.logo-text p {
    font-size: 0.875rem;
    color: #4b5563;
}

/* التنقل الرئيسي */
.main-navigation {
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.main-navigation a.active {
    color: #dc2626;
}

.main-navigation a:not(.active) {
    color: #374151;
}

.main-navigation a:hover {
    color: #dc2626;
}

/* زر القائمة للأجهزة الصغيرة */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1f2937;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-navigation {
    display: none;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 1rem;
}

.mobile-navigation.active {
    display: block;
}

.mobile-navigation a {
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
    transition: color 0.3s ease;
}

.mobile-navigation a.active {
    color: #dc2626;
}

.mobile-navigation a:not(.active) {
    color: #374151;
}

.mobile-navigation a:hover {
    color: #dc2626;
}

/* قسم الهيرو */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    overflow: hidden;
}

.hero-slide {
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    gap: 2rem;
}

.hero-text {
    flex: 1;
    max-width: 480px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 7;
    margin-bottom: 1.125rem;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 1.125rem;
    opacity: 0.9;
}

.hero-image {
    max-width: 400px;
    width: auto;
    height: 200px;
    object-fit: contain;
    border-radius: 1.125rem;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 0.9375rem;
}

/* مؤشرات الشرائح */
.hero-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    z-index: 10;
}

.slide-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0.5;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.slide-indicator.active,
.slide-indicator.opacity-100 {
    opacity: 1;
}

/* الأقسام العامة */
.section {
    padding: 3rem 0;
}

.section-light {
    background-color: #ffffff;
}

.section-gray {
    background-color: #f9fafb;
}

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

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.section-divider {
    width: 4rem;
    height: 0.25rem;
    background-color: #dc2626;
    margin: 0 auto 1rem;
}

.section-description {
    color: #4b5563;
    max-width: 42rem;
    margin: 0 auto;
    font-size: 1rem;
}

/* بطاقات الخدمات */
.service-card {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.service-image {
    width: 100%;
    height: 10rem;
    object-fit: cover;
}

.service-content {
    padding: 1rem;
}

.service-title {
    font-size: 1.125rem;
    font-weight: 700;
    color:  #1f2937;
    margin-bottom: 0.5rem;
}

.service-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* قسم المميزات */
.features-box {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.features-image {
    max-width: 300px;
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.features-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.features-list {
    list-style-type: disc;
    padding-right: 1.5rem;
    color: #4b5563;
    margin-bottom: 1rem;
}

.features-list li {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.features-text {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* بطاقات الفروع */
.location-card {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}

.location-map {
    position: relative;
    height: 10rem;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.location-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

.location-content {
    padding: 1rem;
}

.location-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.location-info {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.location-icon {
    color: #dc2626;
    margin-left: 0.5rem;
    width: 1rem;
}

.location-link {
    color: #dc2626;
    text-decoration: underline;
    font-size: 0.875rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.location-link:hover {
    color: #991b1b;
}

/* قسم التواصل */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    background: #fee2e2;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.contact-details a,
.contact-details p {
    color: #6b7280;
    text-decoration: none;
    font-size: 1rem;
}

.contact-details a:hover {
    color: #dc2626;
}

.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    background: #fee2e2;
    width: 3.4375rem;
    height: 3.4375rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2627;
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #fecaca;
}

/* الفوتر */
.site-footer {
    background: #111827;
    color: #ffffff;
    padding: 4rem 0 2rem;
    margin-top: 2rem;
}

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

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 4.375rem;
    height: 4.375rem;
    border-radius: 50%;
}

.footer-description {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.5;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: #dc2626;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: #9ca3af;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    text-decoration: none;
    padding: 0.625rem;
}

.footer-social a:hover {
    color: #dc2626;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.875rem;
    text-align: center;
}

/* الأزرار العائمة - المعدلة */
.floating-buttons {
    position: fixed;
    z-index: 100;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    width: 100%;
    pointer-events: none;
}

.floating-btn {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    font-size: 1.25rem;
    position: absolute;
    bottom: 0;
    pointer-events: auto;
}

.floating-phone {
    background: #dc2626;
    color: #fff;
    right: 1.5rem;
    left: auto;
}

.floating-whatsapp {
    background: #25D366;
    color: #fff;
    left: 1.5rem;
    right: auto;
}

/* تحسينات إضافية للتصميم المهني */
.smooth-transition {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

.shadow-soft {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shadow-strong {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* تحسينات الوصولية */
.main-navigation a:focus,
.mobile-navigation a:focus,
.hero-contact-btn:focus,
.floating-btn:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* تحسين تأثيرات البطاقات */
.service-card,
.location-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

/* تحسين الصور */
.service-image,
.location-map-image {
    transition: transform 0.3s ease;
}

.service-card:hover .service-image,
.location-card:hover .location-map-image {
    transform: scale(1.05);
}

/* تحسين الأزرار الاجتماعية */
.social-link,
.footer-social a {
    transition: all 0.3s ease;
}

.social-link:hover,
.footer-social a:hover {
    transform: translateY(-2px);
}

/* تحسين النصوص */
.hero-title,
.section-title {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* تحسين التباين للنصوص */
.hero-description {
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* إضافة تأثيرات التحميل */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.location-card,
.features-box {
    animation: fadeInUp 0.6s ease-out;
}

/* تحسين الاستجابة للأجهزة الصغيرة */
@media (max-width: 768px) {
    .hero-contact-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .service-card:hover,
    .location-card:hover {
        transform: translateY(-4px);
    }
}
/* إخفاء العناصر */
.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* الاستجابة للأجهزة المختلفة */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 0.5rem;
    }
    
    .hero-text {
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-image {
        height: 150px;
        max-width: 300px;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .features-box {
        flex-direction: column;
        text-align: center;
    }
    
    .features-image {
        max-width: 250px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-image {
        width: 3rem;
    }
    
    .logo-text h1 {
        font-size: 1.25rem;
    }
    
    .logo-text p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 300px;
    }
    
    .hero-slide {
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
    }
    
    .hero-image {
        height: 120px;
        max-width: 250px;
        padding: 0.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-content,
    .location-content {
        padding: 0.75rem;
    }
    
    .contact-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .social-link {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.25rem;
    }
    
    /* الأزرار العائمة على الجوال */
    .floating-btn {
        width: 3rem;
        height: 3rem;
        font-size: 1rem;
    }
    .floating-phone {
        right: 1rem;
    }
    .floating-whatsapp {
        left: 1rem;
    }
}

/* ملاحظة: يمكنك تعديل الأبعاد حسب الحاجة */


/* زر التواصل في الهيرو */
.hero-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #dc2626;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    margin-top: 1.5rem;
    border: 2px solid transparent;
}

.hero-contact-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.hero-contact-btn:active {
    transform: translateY(0);
}

.hero-contact-btn i {
    font-size: 1.25rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

