/*
Theme Name: City Hub
Theme URI: https://www.city-hub.net
Author: City Hub Dev
Author URI: https://www.city-hub.net
Description: قالب ووردبريس احترافي لشركة City Hub الاستشارية. مصمم ليكون سريعاً، متجاوباً، ويدعم اللغة العربية (RTL) بشكل كامل.
Version: 1.0.0
Text Domain: city-hub
Tags: right-to-left, accessibility-ready, custom-logo, translation-ready
*/

/* =========================================
   1. متغيرات الألوان والخطوط (Variables)
   ========================================= */
:root {
    --primary-red: #BE1E2D;       /* اللون الأحمر الأساسي للهوية */
    --dark-bg: #111111;           /* الخلفية الداكنة */
    --white: #ffffff;             /* الأبيض */
    --text-muted: #e0e0e0;        /* النصوص الباهتة */
    --text-dark: #0b0b2b;         /* النصوص الداكنة */
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* تأثيرات الحركة */
    --header-height: 90px;        /* ارتفاع الهيدر */
}

/* =========================================
   2. التنسيقات العامة (Global Reset)
   ========================================= */
html { scroll-behavior: smooth; } /* تمرير ناعم للروابط */
* { margin: 0; padding: 0; box-sizing: border-box; } /* إعادة تعيين الهوامش */

body {
    font-family: 'Cairo', sans-serif; /* الخط العربي */
    background-color: var(--white);
    color: var(--dark-bg);
    line-height: 1.5;
    overflow-x: hidden; /* منع التمرير الأفقي غير المقصود */
    -webkit-font-smoothing: antialiased; /* تحسين جودة الخط */
}

ul { list-style: none; } /* إزالة النقاط من القوائم */
a { text-decoration: none; color: inherit; transition: var(--transition); } /* تنسيق الروابط */

/* =========================================
   3. تنسيق الهيدر (Header)
   ========================================= */
.main-header {
    position: fixed; /* تثبيت الهيدر في الأعلى */
    top: 10px; width: 100%; height: var(--header-height);
    z-index: 1000; /* لضمان ظهوره فوق العناصر */
    display: flex; align-items: center;
    transition: var(--transition);
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
}

/* كلاس يضاف عبر الجافاسكريبت عند النزول للأسفل */
.main-header.scrolled {
    height: 65px; top: 25px; width: 90%; max-width: 1100px;
    left: 50%; transform: translateX(-50%); /* توسيط الهيدر */
    border-radius: 50px; background: rgba(255, 255, 255, 0.05); /* خلفية شفافة */
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); /* تمويه الخلفية */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    width: 90%; max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    transition: var(--transition);
}

.logo-img { height: auto; width: 100px; display: block; transition: var(--transition); }

/* القائمة الرئيسية */
.nav-menu { display: none; gap: 25px; } /* مخفية في الموبايل */
.nav-menu a {
    font-size: 0.85rem; font-weight: 800; position: relative; padding: 5px 0;
    color: var(--white); transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--primary-red) !important; }

.contact-icons { display: flex; gap: 15px; font-size: 1.1rem; }

/* زر القائمة للموبايل */
.mobile-toggle { 
    display: flex; flex-direction: column; gap: 5px; background: none; 
    border: none; cursor: pointer; z-index: 2001; 
}
.mobile-toggle span { width: 25px; height: 2px; background-color: var(--white); }

@media (min-width: 1024px) {
    .nav-menu { display: flex; } /* إظهار القائمة في الشاشات الكبيرة */
    .mobile-toggle { display: none; } /* إخفاء زر الموبايل */
}

/* =========================================
   4. قائمة الموبايل الجانبية (Mobile Sidebar)
   ========================================= */
.mobile-nav {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: rgba(17, 17, 17, 0.98); backdrop-filter: blur(15px);
    z-index: 2000; padding: 100px 30px; transition: 0.4s ease;
}
.mobile-nav.active { right: 0; } /* تفعيل الظهور */
.mobile-nav ul { display: flex; flex-direction: column; gap: 25px; }
.mobile-nav ul li a { font-size: 1.1rem; font-weight: 700; color: var(--white); }

.menu-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.6); display: none; z-index: 1500; 
}
.menu-overlay.active { display: block; }

/* =========================================
   5. قسم الهيرو (Hero Section)
   ========================================= */
.hero {
    position: relative; height: 85vh; width: 100%;
    display: flex; align-items: center; justify-content: flex-start;
    overflow: hidden; background-color: #000;
}

.video-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
    background-size: cover; background-position: center;
}

.hero-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity 1.5s ease-in-out;
}
.hero-video.video-visible { opacity: 1; }

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative; width: 90%; max-width: 1200px; margin: 0 auto;
    z-index: 10; padding: 20px; text-align: right;
    opacity: 0; transform: translateY(30px); /* للحركة */
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.hero-content.reveal { opacity: 1; transform: translateY(0); }

.hero-title { font-size: 2.2rem; font-weight: 900; line-height: 1.2; margin-bottom: 20px; color: var(--white); }
.hero-title span.red-text { color: var(--primary-red); }
.hero-title span.main-break { display: block; margin-top: 10px; color: var(--white); }

.hero-description {
    font-size: 0.95rem; font-weight: 300; color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px; max-width: 500px; line-height: 1.8;
    border-right: 3px solid var(--primary-red); padding-right: 20px;
}

.hero-btns { display: flex; gap: 15px; }

.btn {
    padding: 12px 30px; font-size: 0.9rem; font-weight: 700;
    border-radius: 50px; transition: var(--transition);
    cursor: pointer; background: transparent; color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: inline-block; text-align: center;
}
.btn:hover {
    background-color: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(190, 30, 45, 0.4);
}

@media (min-width: 1024px) {
    .hero-title { font-size: 3.8rem; }
    .hero-description { font-size: 1.1rem; max-width: 600px; }
    .hero-content { margin-right: 5%; }
}

/* =========================================
   6. قسم من نحن (About Section)
   ========================================= */
.about-section {
    padding: 80px 0; background-color: var(--white); color: var(--dark-bg);
}
.container { width: 90%; max-width: 1400px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 50px; align-items: center; }

/* أنيميشن الصورة */
.about-img-container {
    width: 100%; border-radius: 55px; overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    opacity: 0; transform: translateY(40px) scale(0.95); transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-img-container.appear { opacity: 1; transform: translateY(0) scale(1); }
.about-img { width: 100%; transition: transform 0.6s ease; }
.about-img-container:hover .about-img { transform: scale(1.08) rotate(1deg); }

/* أنيميشن النص */
.about-content {
    text-align: right; padding-right: 25px;
    border-right: 4px solid var(--primary-red);
    opacity: 0; transform: translateX(50px); transition: all 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.about-content.appear { opacity: 1; transform: translateX(0); }
.about-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 20px; color: #0b0b2b; }
.about-text { font-size: 1.1rem; line-height: 1.8; margin-bottom: 30px; }
.brand-name-about .first-letter { color: var(--primary-red); }

.btn-more {
    display: inline-block; padding: 12px 45px; background-color: transparent;
    color: var(--dark-bg); border: 1px solid rgba(0, 0, 0, 0.2);
    font-weight: 700; border-radius: 50px; transition: var(--transition); text-decoration: none;
}
.btn-more:hover {
    background-color: var(--primary-red); color: var(--white);
    border-color: var(--primary-red); transform: translateY(-3px);
}
@media (max-width: 767px) {
    .about-content { text-align: center; padding-right: 0; border-right: none; transform: translateY(30px); }
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1.2fr; } }

/* =========================================
   7. قسم المستثمرين (Investor Section)
   ========================================= */
.investor-section {
    padding: 120px 0; background-color: var(--white); overflow: visible;
}
.investor-grid { display: grid; grid-template-columns: 1fr; gap: 80px; align-items: center; }

.content-side {
    text-align: right; padding-right: 25px; border-right: 4px solid var(--primary-red);
    opacity: 0; transform: translateX(80px);
    transition: opacity 1.5s var(--transition), transform 1.5s var(--transition);
}
.main-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 40px; color: var(--dark-bg); }
.main-title .highlight { color: var(--primary-red); }

.feature-item {
    display: flex; gap: 20px; padding: 20px; border-radius: 15px;
    opacity: 0; transform: translateY(20px); transition: all 1s var(--transition);
}
.feature-icon {
    width: 65px; height: 65px; background-color: var(--dark-bg);
    border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.custom-icon { width: 32px; height: 32px; filter: brightness(0) invert(1); }
.feature-text h3 { font-size: 1.3rem; font-weight: 800; color: var(--dark-bg); margin-bottom: 8px; }
.feature-text p { font-size: 1rem; color: #555; line-height: 1.7; }

.visual-side { position: relative; padding-top: 40px; }
.image-stack {
    position: relative; max-width: 500px; margin: 0 auto;
    opacity: 0; transform: scale(0.9) translateY(50px);
    transition: opacity 1.8s var(--transition), transform 1.8s var(--transition);
}
.main-img {
    width: 95%; height: 480px; border-radius: 30px;
    border-right: 10px solid var(--primary-red);
    overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}
.secondary-img {
    position: absolute; top: -40px; left: -30px;
    width: 58%; height: 260px; border-radius: 25px; border: 10px solid var(--white);
    z-index: 2; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.image-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.experience-card {
    position: absolute; bottom: -30px; right: -20px; background: var(--primary-red);
    color: var(--white); padding: 25px 35px; border-radius: 24px;
    text-align: center; z-index: 10; box-shadow: 0 20px 40px rgba(190, 30, 45, 0.4);
    opacity: 0; transform: scale(0.5); transition: all 1s var(--transition) 1s;
}
.exp-number { font-size: 3.5rem; font-weight: 900; display: block; line-height: 1; }
.exp-number::after { content: '+'; font-size: 1.8rem; vertical-align: top; }
.exp-text { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; white-space: nowrap; }

.appear { opacity: 1 !important; transform: translate(0, 0) scale(1) !important; }
.appear .feature-item:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.appear .feature-item:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }
.appear .experience-card { opacity: 1; transform: scale(1); }

@media (min-width: 1024px) { .investor-grid { grid-template-columns: 1fr 1fr; gap: 100px; } }
@media (max-width: 768px) {
    .content-side { border-right: none; padding-right: 0; text-align: center; }
    .feature-item { flex-direction: column; align-items: center; }
    .secondary-img { display: none; }
    .experience-card { position: relative; right: 0; bottom: 0; margin: 30px auto 0; width: fit-content; }
}

/* =========================================
   8. سلايدر العلامات التجارية (Brands Slider)
   ========================================= */
.brands-slider-section { padding: 120px 0; overflow: hidden; background: #fff; opacity: 0; transform: translateY(40px); transition: opacity 1.2s ease, transform 1.2s ease; }
.brands-slider-section.is-visible { opacity: 1; transform: translateY(0); }

.minimal-header { text-align: right !important; direction: rtl !important; max-width: 1100px; margin-bottom: 80px; position: relative; }
.title-wrapper { position: relative; z-index: 2; }
.bg-watermark {
    position: absolute; top: -20px; right: -10px; font-size: 8rem; font-weight: 900;
    color: rgba(0,0,0,0.03); z-index: -1; letter-spacing: 5px; user-select: none; line-height: 1;
}
.minimal-header .sub-title {
    display: inline-block; color: var(--primary-red); font-size: 1.2rem; font-weight: 700;
    margin-bottom: 20px; position: relative; padding-right: 15px;
}
.minimal-header .sub-title::before {
    content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 6px; height: 6px; background: var(--primary-red); border-radius: 50%;
}
.minimal-header .main-title {
    font-size: 2.5rem; font-weight: 900; color: var(--dark-bg);
    margin: 0; line-height: 1.15; letter-spacing: -1.5px;
}
.minimal-header .main-title .highlight { color: var(--primary-red); position: relative; }
.minimal-header .section-desc {
    margin-top: 40px; color: #555; font-size: 1.3rem; line-height: 1.9;
    max-width: 800px; border-right: 3px solid #f1f1f1; padding-right: 25px;
}

/* Slider Logic */
.slider-wrapper { width: 100vw; position: relative; left: 50%; transform: translateX(-50%); margin: 40px 0; -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent); }
.brands-grid {
    display: flex; gap: 30px; padding: 60px 0; overflow-x: hidden; white-space: nowrap;
    direction: ltr; align-items: center;
}
.brand-card.circular {
    flex: 0 0 180px; width: 180px; height: 180px; border-radius: 50%; position: relative;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06); cursor: pointer;
}
.brand-card.circular:hover { flex: 0 0 440px; border-radius: 100px; box-shadow: 0 25px 60px rgba(0,0,0,0.12); }
.brand-image { width: 100%; height: 100%; border-radius: inherit; overflow: hidden; }
.brand-image img { width: 100%; height: 100%; object-fit: cover; }
.brand-info-circular {
    position: absolute; inset: 0; display: flex; align-items: center; padding: 0 60px;
    color: #fff; background: linear-gradient(90deg, rgba(0,0,0,0.95) 20%, transparent 100%);
    opacity: 0; transition: 0.5s; border-radius: inherit; pointer-events: none; text-align: left;
}
.brand-card:hover .brand-info-circular { opacity: 1; }
.brand-info-circular h3 { font-size: 2rem; margin: 0; font-weight: 800; }

.slider-controls-circular { display: flex; justify-content: flex-start; gap: 20px; margin-top: 30px; direction: rtl; }
.control-btn-circ {
    width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid #eee; background: #fff;
    cursor: pointer; transition: 0.4s; display: flex; align-items: center; justify-content: center; color: #1a1a1a;
}
.control-btn-circ:hover { background: var(--primary-red); color: #fff; border-color: var(--primary-red); transform: scale(1.1); }

/* =========================================
   9. قسم الإحصائيات (Stats)
   ========================================= */
.stats-section { padding: 80px 0; background-color: #ffffff; border-top: 1px solid #f1f1f1; direction: rtl; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; text-align: center; }
.stat-item { padding: 25px; transition: all 0.4s ease; }
.stat-icon img { height: 65px; width: 65px; object-fit: contain; filter: sepia(100%) saturate(500%) hue-rotate(330deg); transition: transform 0.4s ease; }
.stat-item:hover .stat-icon img { transform: scale(1.15) translateY(-5px); }
.stat-number { font-size: 2.8rem; font-weight: 800; color: #111111; margin: 15px 0 5px 0; font-family: 'Segoe UI', Tahoma, sans-serif; }
.stat-label { font-size: 1.2rem; font-weight: 700; color: #BE1E2D; margin-bottom: 10px; }
.stat-desc { font-size: 0.95rem; color: #666; line-height: 1.5; max-width: 250px; margin: 0 auto; }

@media (max-width: 767px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* =========================================
   10. معرض الصور (Gallery)
   ========================================= */
#brands-gallery { padding: 80px 0; background-color: #F9F9F9; }
.gallery-header { text-align: center; margin-bottom: 50px; }
.gallery-header h2 { font-size: 2.5rem; font-weight: 900; color: #1A1A1A; margin-bottom: 15px; position: relative; display: inline-block; }
.gallery-header h2::after { content: ''; position: absolute; bottom: -5px; right: 0; width: 60px; height: 4px; background-color: #D32F2F; }
.gallery-header p { font-size: 1.1rem; color: #666; max-width: 700px; margin: 0 auto; }

.gallery-grid { display: grid; gap: 20px; grid-template-columns: repeat(1, 1fr); }
.gallery-item {
    position: relative; border-radius: 12px; overflow: hidden; background-color: #1A1A1A;
    cursor: pointer; box-shadow: 0 10px 25px rgba(0,0,0,0.1); transition: var(--transition); aspect-ratio: 1 / 1;
    opacity: 0; transform: translateY(30px); animation: fadeInUp 0.6s forwards;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); filter: grayscale(20%); }
.item-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(26, 26, 26, 0.9) 0%, transparent 70%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 25px;
    color: #fff; opacity: 0.9; transition: var(--transition);
}
.item-overlay h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 5px; }
.item-overlay p { font-size: 0.9rem; opacity: 0; transform: translateY(15px); transition: var(--transition); }

.gallery-item:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(211, 47, 47, 0.2); }
.gallery-item:hover img { transform: scale(1.1); filter: grayscale(0%); }
.gallery-item:hover .item-overlay { background: linear-gradient(to top, #D32F2F 0%, transparent 100%); }
.gallery-item:hover .item-overlay p { opacity: 1; transform: translateY(0); }

@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .item-large { grid-row: span 2; } }
@media (min-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
    .item-1 { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; }
    .item-2 { grid-column: 2 / 4; grid-row: 1; aspect-ratio: auto; }
    .item-3 { grid-column: 2; grid-row: 2; aspect-ratio: auto; }
    .item-4 { grid-column: 3; grid-row: 2; aspect-ratio: auto; }
    .item-5 { grid-column: 4; grid-row: 1 / 3; aspect-ratio: auto; }
    .item-6 { grid-column: 1 / 3; grid-row: 3; aspect-ratio: auto; }
    .item-7 { grid-column: 3; grid-row: 3; aspect-ratio: auto; }
    .item-8 { grid-column: 4; grid-row: 3; aspect-ratio: auto; }
}
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* =========================================
   11. قسم الخدمات (Services)
   ========================================= */
.reveal-section { opacity: 0; transform: translateY(40px); transition: opacity 1.2s ease, transform 1.2s ease; }
.reveal-section.is-visible { opacity: 1; transform: translateY(0); }
.services-section { padding: 120px 0; background-color: #ffffff; direction: rtl; overflow: hidden; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 60px; }

.service-card {
    background-color: #fff; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); transition: var(--transition); border: 1px solid #f9f9f9;
}
.service-card:hover { transform: translateY(-15px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); border-color: rgba(190, 30, 45, 0.1); }
.card-image { width: 100%; height: 240px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.service-card:hover .card-image img { transform: scale(1.1); }
.card-content { padding: 30px; text-align: right; }
.card-title { font-size: 1.4rem; color: #1A1A1A; font-weight: 800; margin-bottom: 15px; line-height: 1.4; }
.card-description { font-size: 1rem; color: #555; line-height: 1.7; }
.services-action { text-align: center; margin-top: 20px; }
.btn-more-dark {
    display: inline-block; padding: 16px 40px; font-size: 1rem; font-weight: 700;
    border-radius: 50px; transition: var(--transition); cursor: pointer;
    background: #1A1A1A; color: #fff; text-decoration: none; border: none;
}
.btn-more-dark:hover { background-color: var(--primary-red); transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 20px rgba(190, 30, 45, 0.2); }

/* =========================================
   12. قسم الفرانشايز (Franchise)
   ========================================= */
.franchise-section { width: 100%; padding: 100px 0; background-color: #fff; direction: rtl; overflow: hidden; }
.franchise-grid { display: flex; flex-direction: column; gap: 60px; }
.franchise-row { display: flex; flex-direction: column; align-items: center; gap: 40px; width: 100%; }
.row-image { width: 100%; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.08); }
.row-image img { width: 100%; height: 400px; object-fit: cover; transition: transform 0.8s ease; }
.franchise-row:hover .row-image img { transform: scale(1.05); }
.row-content { width: 100%; }
.row-title { font-size: 1.7rem; font-weight: 800; color: #1A1A1A; margin-bottom: 25px; border-right: 5px solid var(--primary-red); padding-right: 15px; }
.benefit-list { list-style: none; padding: 0; }
.benefit-list li {
    background-color: #F9F9F9; padding: 18px 22px; margin-bottom: 12px; border-radius: 12px;
    display: flex; align-items: center; gap: 12px; transition: all 0.3s ease; font-weight: 700; border: 1px solid transparent;
}
.benefit-list li:hover { background-color: #fff; transform: translateX(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.05); border-color: rgba(190, 30, 45, 0.2); color: var(--primary-red); }
.icon-bullet { width: 10px; height: 10px; background-color: var(--primary-red); border-radius: 50%; flex-shrink: 0; }

@media (min-width: 1024px) { .franchise-row { flex-direction: row; gap: 60px; } .franchise-row.reverse { flex-direction: row-reverse; } .row-image, .row-content { width: 50%; } }
@media (max-width: 768px) {
    .minimal-header .main-title { text-align: center; } .row-title { text-align: center; border-right: none; border-bottom: 3px solid var(--primary-red); display: inline-block; width: 100%; padding-bottom: 10px; }
}

/* =========================================
   13. قسم التواصل (Contact)
   ========================================= */
.contact-section { padding: 80px 0; position: relative; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 50px; align-items: start; }
.contact-info .badge-line { display: inline-block; width: 40px; height: 3px; background-color: var(--primary-red); margin-bottom: 15px; }
.contact-info h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 900; color: #111; margin-bottom: 20px; }
.contact-info p { color: #555; font-size: 1.1rem; max-width: 500px; margin-bottom: 40px; }

.info-details { display: grid; gap: 30px; margin-top: 20px; }
.info-item {
    display: flex; align-items: center; gap: 25px; background-color: #fff; padding: 20px;
    border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); transition: var(--transition); border-right: 3px solid transparent;
}
.icon-box {
    width: 65px; height: 65px; background-color: #F9F9F9; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; position: relative;
    transition: var(--transition); border: 2px solid #eee; flex-shrink: 0;
}
.icon-box img { width: 30px; height: 30px; transition: var(--transition); }
.info-item:hover { background-color: #F0F0F0; transform: translateY(-5px); border-right-color: var(--primary-red); }
.info-item:hover .icon-box { background-color: var(--primary-red); border-color: var(--primary-red); transform: rotate(360deg); }
.info-item:hover .icon-box img { filter: brightness(0) invert(1); }
.info-content h4 { font-size: 0.95rem; font-weight: 600; color: #555; margin-bottom: 4px; }
.info-content a, .info-content address { font-size: 1.1rem; font-weight: 700; color: #111; }

.contact-form-wrapper { background-color: #fff; padding: 40px; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.05); border: 1px solid #eee; }
.form-header .badge-line { display: inline-block; width: 30px; height: 2px; background-color: var(--primary-red); margin-bottom: 5px; }
.form-header h3 { font-size: 1.8rem; font-weight: 800; color: #111; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group.full-width { grid-column: span 2; }
.form-group input, .form-group textarea {
    width: 100%; padding: 15px; border: none; border-bottom: 1px solid #eee;
    font-family: 'Cairo', sans-serif; font-size: 0.95rem; transition: var(--transition); background-color: transparent;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-bottom-color: var(--primary-red); }
.form-group textarea { height: 100px; resize: none; }
.submit-btn {
    background-color: #111; color: #fff; border: none; padding: 15px 50px; font-size: 1.1rem;
    font-weight: 700; border-radius: 25px; cursor: pointer; transition: var(--transition); margin-top: 10px; width: 100%;
}
.submit-btn:hover { background-color: var(--primary-red); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(190, 30, 45, 0.2); }

@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 80px; } .contact-info { order: 2; } .contact-form-wrapper { order: 1; } }

/* =========================================
   14. الفوتر (Footer)
   ========================================= */
.main-footer { background-color: #1a1d24; color: #fff; padding: 60px 0 20px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; text-align: center; }
.footer-brand .logo { max-width: 180px; margin-bottom: 20px; }
.footer-brand p { color: #b0b0b0; font-size: 0.95rem; line-height: 1.8; max-width: 400px; margin: 0 auto; }
.footer-links-group h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 25px; position: relative; display: inline-block; }
.footer-links-group h3::after { content: ''; position: absolute; bottom: -8px; right: 0; width: 30px; height: 2px; background-color: var(--primary-red); }
.footer-links-group ul { list-style: none; }
.footer-links-group ul li { margin-bottom: 12px; }
.footer-links-group ul li a { color: #b0b0b0; text-decoration: none; transition: var(--transition); font-size: 0.95rem; }
.footer-links-group ul li a:hover { color: var(--primary-red); padding-right: 5px; }

.footer-bottom { margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; align-items: center; gap: 20px; }
.copyright { font-size: 0.85rem; color: #b0b0b0; text-align: center; }

/* زر العودة للأعلى */
.floating-actions { position: fixed; bottom: 30px; left: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 9999; }
.floating-btn { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: var(--transition); font-size: 22px; }
.back-to-top { background-color: var(--primary-red); }
.back-to-top:hover { background-color: #111; transform: translateY(-5px); }

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; text-align: right; }
    .footer-brand p { margin: 0; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}