/* ============================================
   مؤسسة ركاز المتميزة للمقاولات
   Main Stylesheet - Modern Professional Design
   ============================================ */

/* ===== المتغيرات العامة ===== */
:root {
    /* الألوان الأساسية - مستوحاة من اللوجو */
    --primary-color: #c89346;        /* البرتقالي الذهبي من اللوجو */
    --primary-dark: #a67730;
    --primary-light: #e0a85e;
    --secondary-color: #1a1a1a;      /* الأسود من اللوجو */
    --accent-color: #d4a04d;
    --gold-color: #f4b860;
    
    /* ألوان النص */
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6b7280;
    --text-white: #ffffff;
    
    /* ألوان الخلفية */
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --bg-dark: #1a1a1a;
    --bg-gray: #f5f5f5;
    --border-color: #e5e7eb;
    
    /* الخطوط */
    --font-arabic: 'Tajawal', 'Cairo', sans-serif;
    --font-english: 'Poppins', 'Inter', sans-serif;
    
    /* الظلال */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 5px 10px rgba(0,0,0,0.05);
    --shadow-xl: 0 25px 50px rgba(0,0,0,0.15);
    --shadow-gold: 0 10px 30px rgba(200, 147, 70, 0.3);
    
    /* الانتقالات */
    --transition-fast: all 0.2s ease;
    --transition-medium: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-arabic);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

body[dir="ltr"] {
    font-family: var(--font-english);
}

body.menu-open {
    overflow: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== الحاوي ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== الأزرار ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-medium);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(200, 147, 70, 0.5);
    color: var(--text-white);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--text-white);
}

.btn-dark {
    background: var(--secondary-color);
    color: var(--text-white);
}

.btn-dark:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

/* ===== الـ Top Bar ===== */
.top-bar {
    background: var(--secondary-color);
    color: var(--text-white);
    padding: 10px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-info i {
    color: var(--primary-color);
}

.top-bar-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-bar-actions a {
    color: var(--text-white);
    transition: var(--transition-fast);
}

.top-bar-actions a:hover {
    color: var(--primary-color);
}

.lang-switcher {
    background: var(--primary-color);
    padding: 5px 15px;
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--text-white) !important;
}

.lang-switcher:hover {
    background: var(--primary-dark);
    color: var(--text-white) !important;
}

/* ===== الهيدر ===== */
.main-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-medium);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 0;
}

.logo-text span {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== القائمة الرئيسية ===== */
.main-nav ul {
    display: flex;
    gap: 5px;
    align-items: center;
}

.main-nav ul li a {
    padding: 10px 20px;
    font-weight: 600;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition-fast);
    font-size: 15px;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-color);
}

.main-nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-dark);
    z-index: 1001;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(26, 26, 26, 0.7) 100%),
                url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(200, 147, 70, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    padding: 60px 20px;
    animation: fadeInUp 1s ease;
}

.hero-content .badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(200, 147, 70, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-content h1 span {
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--gold-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: clamp(16px, 2vw, 20px);
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* مؤشر التمرير */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-white);
    z-index: 2;
    animation: bounce 2s infinite;
}

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

/* ===== الأقسام العامة ===== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(200, 147, 70, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-title span {
    color: var(--primary-color);
}

.section-desc {
    color: var(--text-medium);
    font-size: 17px;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== قسم الإحصائيات ===== */
.stats {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2a2a2a 100%);
    color: var(--text-white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 147, 70, 0.1) 0%, transparent 70%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: var(--shadow-gold);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* ===== قسم من نحن ===== */
.about-section {
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-content h2 span {
    color: var(--primary-color);
}

.about-content > p {
    color: var(--text-medium);
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.9;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.about-feature i {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 4px;
}

.about-feature h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.about-feature p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* ===== قسم الخدمات ===== */
.services-section {
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
    position: relative;
    border: 1px solid var(--border-color);
}

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

.service-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-icon-overlay {
    position: absolute;
    bottom: -25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--text-white);
    box-shadow: var(--shadow-gold);
}

body[dir="ltr"] .service-icon-overlay {
    left: auto;
    right: 25px;
}

.service-content {
    padding: 40px 25px 25px;
}

.service-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.service-content p {
    color: var(--text-medium);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 14px;
    color: var(--primary-dark);
}

/* ===== فئات الخدمات ===== */
.service-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.category-card {
    background: var(--bg-white);
    padding: 35px 25px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
    border: 2px solid transparent;
    cursor: pointer;
}

.category-card:hover,
.category-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    transform: translateY(-5px);
}

.category-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(200, 147, 70, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-color);
    transition: var(--transition-medium);
}

.category-card:hover .icon,
.category-card.active .icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
}

/* ===== قسم المشاريع ===== */
.projects-section {
    background: var(--bg-light);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--bg-white);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition-medium);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--text-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    color: var(--text-white);
    transition: var(--transition-medium);
}

.project-status {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    background: var(--primary-color);
    color: var(--text-white);
}

body[dir="ltr"] .project-status {
    right: auto;
    left: 20px;
}

.project-status.completed {
    background: #16a34a;
}

.project-status.current {
    background: var(--primary-color);
}

.project-content {
    padding: 25px;
}

.project-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-meta i {
    color: var(--primary-color);
}

.project-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.project-content p {
    color: var(--text-medium);
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-progress {
    margin-bottom: 18px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--bg-gray);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-color));
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--text-medium);
}

/* ===== قسم لماذا تختارنا ===== */
.why-us {
    background: var(--bg-white);
    position: relative;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.why-card {
    text-align: center;
    padding: 40px 25px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
}

.why-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-white);
    box-shadow: var(--shadow-gold);
    transition: var(--transition-medium);
}

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

.why-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.why-card p {
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.7;
}

/* ===== قسم CTA ===== */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2a2a2a 100%);
    color: var(--text-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 147, 70, 0.15) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-content h2 span {
    color: var(--primary-color);
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== قسم التواصل ===== */
.contact-section {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.contact-info-cards {
    display: grid;
    gap: 20px;
}

.contact-card {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition-medium);
    border: 1px solid var(--border-color);
}

.contact-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

body[dir="ltr"] .contact-card:hover {
    transform: translateX(-5px);
}

.contact-card .icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--text-white);
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-card p, 
.contact-card a {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
    display: block;
    margin: 2px 0;
}

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

/* ===== نموذج التواصل ===== */
.contact-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition-fast);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(200, 147, 70, 0.15);
}

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

.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ===== الفوتر ===== */
.main-footer {
    background: var(--secondary-color);
    color: var(--text-white);
    padding: 60px 0 0;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

body[dir="ltr"] .footer-col h4::after {
    right: auto;
    left: 0;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
    background: var(--bg-white);
    padding: 5px;
    border-radius: var(--radius-sm);
}

.footer-logo span {
    font-size: 18px;
    font-weight: 700;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 14px;
    opacity: 0.85;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a::before {
    content: '◆';
    color: var(--primary-color);
    font-size: 8px;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-right: 5px;
}

body[dir="ltr"] .footer-col ul li a:hover {
    padding-right: 0;
    padding-left: 5px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    opacity: 0.85;
}

.footer-contact-list li i {
    color: var(--primary-color);
    margin-top: 4px;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition-medium);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    color: var(--text-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

.footer-bottom a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== زر الواتساب العائم ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    animation: pulse 2s infinite;
    transition: var(--transition-medium);
}

body[dir="ltr"] .whatsapp-float {
    left: auto;
    right: 30px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--text-white);
}

@keyframes pulse {
    0% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== صفحة تفاصيل المشروع/الخدمة ===== */
.page-header {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)),
                url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 100px 0 70px;
    color: var(--text-white);
    text-align: center;
    margin-top: 0;
}

.page-header h1 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 12px;
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: var(--primary-color);
}

.detail-content {
    padding: 60px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.detail-main img.main-img {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

.detail-main h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.detail-main .description {
    color: var(--text-medium);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 30px;
}

.features-list {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}

.features-list h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.features-list ul {
    display: grid;
    gap: 12px;
}

.features-list ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-medium);
}

.features-list ul li i {
    color: var(--primary-color);
    font-size: 18px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: var(--transition-medium);
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.detail-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.sidebar-card h4 {
    margin-bottom: 20px;
    color: var(--text-dark);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.info-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list .label {
    color: var(--text-light);
}

.info-list .value {
    font-weight: 600;
    color: var(--text-dark);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeInUp 0.8s ease;
}

.fade-in-delay-1 { animation: fadeInUp 0.8s ease 0.2s both; }
.fade-in-delay-2 { animation: fadeInUp 0.8s ease 0.4s both; }
.fade-in-delay-3 { animation: fadeInUp 0.8s ease 0.6s both; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-grid,
    .contact-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 12px;
        padding: 8px 0;
    }
    
    .top-bar-info {
        gap: 15px;
        font-size: 11px;
    }
    
    .top-bar-info span:nth-child(2) {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        padding: 80px 25px 30px;
        box-shadow: var(--shadow-xl);
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    body[dir="ltr"] .main-nav {
        right: auto;
        left: -100%;
        transition: left 0.3s ease;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    body[dir="ltr"] .main-nav.active {
        right: auto;
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 5px;
    }
    
    .main-nav ul li {
        width: 100%;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 14px 18px;
        border-radius: var(--radius-sm);
        background: var(--bg-light);
    }
    
    .logo-text h1 {
        font-size: 15px;
    }
    
    .logo-text span {
        font-size: 11px;
    }
    
    .logo img {
        height: 50px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero {
        min-height: 80vh;
        background-attachment: scroll;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 26px;
        bottom: 20px;
        left: 20px;
    }
    
    body[dir="ltr"] .whatsapp-float {
        right: 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* ===== Loader ===== */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bg-gray);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ===== لايت بوكس بسيط ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

/* ============================================
   صفحات داخلية - Page Banner
   ============================================ */
.page-banner {
    background: linear-gradient(135deg, rgba(26,26,26,0.85), rgba(200,147,70,0.75)), 
                url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=1600&q=80') center/cover;
    color: #fff;
    padding: 100px 0 60px;
    text-align: center;
    margin-top: 0;
}

.page-banner h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-banner .breadcrumb {
    font-size: 1rem;
    opacity: 0.9;
}

.page-banner .breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.page-banner .breadcrumb a:hover {
    color: var(--primary-color);
}

.page-banner .breadcrumb .separator {
    margin: 0 10px;
    opacity: 0.7;
}

/* ============================================
   شبكة الخدمات الموسعة
   ============================================ */
.services-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.service-card-large {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
}

.service-card-large:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(200,147,70,0.2);
}

.service-card-large .image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-card-large .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card-large:hover .image-wrapper img {
    transform: scale(1.1);
}

.service-card-large .category-badge {
    position: absolute;
    top: 15px;
    inset-inline-start: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.service-card-large .content {
    padding: 25px;
}

.service-card-large h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.service-card-large p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-large .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s;
}

.service-card-large .read-more:hover {
    gap: 14px;
}

/* ============================================
   فلاتر التبويبات
   ============================================ */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 30px 0 40px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 50px;
}

.filter-tabs a {
    padding: 10px 22px;
    border-radius: 30px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.filter-tabs a:hover {
    color: var(--primary-color);
    background: #fff;
}

.filter-tabs a.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(200,147,70,0.3);
}

/* ============================================
   تفاصيل الخدمة
   ============================================ */
.service-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 50px 0;
}

.service-detail-main img.main-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-detail-main h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-detail-main .description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 30px;
}

.service-features {
    background: #fafafa;
    padding: 30px;
    border-radius: 12px;
    border-inline-start: 4px solid var(--primary-color);
    margin: 30px 0;
}

.service-features h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.service-features ul {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 10px 0;
    padding-inline-start: 30px;
    position: relative;
    color: #444;
    line-height: 1.7;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 0;
    top: 10px;
    width: 22px;
    height: 22px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

/* ============================================
   معرض الصور
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.gallery-grid .gallery-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s;
}

.gallery-grid .gallery-item:hover {
    transform: scale(1.03);
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

/* ============================================
   Sidebar Widget
   ============================================ */
.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.sidebar-widget h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    font-size: 1.2rem;
}

.sidebar-widget .info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-widget .info-row:last-child {
    border-bottom: none;
}

.sidebar-widget .info-row .label {
    color: #777;
    font-weight: 500;
}

.sidebar-widget .info-row .value {
    color: var(--secondary-color);
    font-weight: 600;
}

.sidebar-widget .related-list {
    list-style: none;
    padding: 0;
}

.sidebar-widget .related-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-widget .related-list li:last-child {
    border-bottom: none;
}

.sidebar-widget .related-list a {
    color: #444;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-widget .related-list a:hover {
    color: var(--primary-color);
}

.sidebar-widget .related-list a::before {
    content: "›";
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ============================================
   شبكة المشاريع
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s;
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.project-card .image-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.project-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .image-wrapper img {
    transform: scale(1.08);
}

.status-badge {
    position: absolute;
    top: 15px;
    inset-inline-end: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    z-index: 2;
}

.status-badge.current { background: #2196F3; }
.status-badge.completed { background: #4CAF50; }
.status-badge.upcoming { background: #FF9800; }

.project-card .content {
    padding: 25px;
}

.project-card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.project-card .meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #888;
    flex-wrap: wrap;
}

.project-card .meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* شريط التقدم */
.progress-wrapper {
    margin: 15px 0;
}

.progress-wrapper .progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #e0a85c);
    border-radius: 10px;
    transition: width 1s ease;
}

/* ============================================
   تفاصيل المشروع
   ============================================ */
.project-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 50px 0;
}

.project-detail-main img.featured-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.project-detail-main h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.project-detail-main .project-meta-bar {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    padding: 15px 20px;
    background: #fafafa;
    border-radius: 10px;
    margin-bottom: 25px;
}

.project-detail-main .project-meta-bar .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-weight: 500;
}

.project-detail-main .description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 30px;
}

/* ============================================
   صفحة التواصل - بطاقات
   ============================================ */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 50px 0;
}

.contact-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border-top: 4px solid var(--primary-color);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(200,147,70,0.2);
}

.contact-card .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #e0a85c);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.contact-card h4 {
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.contact-card p, .contact-card a {
    color: #666;
    text-decoration: none;
    line-height: 1.7;
    word-break: break-word;
}

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

/* ============================================
   نموذج التواصل
   ============================================ */
.contact-form-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin: 50px 0;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.contact-form-section {
    padding: 50px;
}

.contact-form-section h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.contact-form-section .subtitle {
    color: #777;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200,147,70,0.1);
}

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

.contact-info-section {
    background: linear-gradient(135deg, var(--secondary-color), #2d2d2d);
    color: #fff;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-section h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.contact-info-section .info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-section .info-item .icon-box {
    width: 45px;
    height: 45px;
    background: rgba(200,147,70,0.2);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.contact-info-section .info-item .info-text {
    flex: 1;
}

.contact-info-section .info-item .label {
    font-size: 0.85rem;
    opacity: 0.7;
    display: block;
    margin-bottom: 4px;
}

.contact-info-section .info-item .value {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.6;
}

.contact-info-section .info-item .value:hover {
    color: var(--primary-color);
}

/* ============================================
   خريطة
   ============================================ */
.map-section {
    margin: 50px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-section iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

/* ============================================
   تجاوب
   ============================================ */
@media (max-width: 992px) {
    .service-detail-layout,
    .project-detail-layout,
    .contact-form-layout {
        grid-template-columns: 1fr;
    }
    
    .contact-form-section,
    .contact-info-section {
        padding: 35px 25px;
    }
    
    .page-banner {
        padding: 80px 0 50px;
    }
    
    .page-banner h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .filter-tabs {
        border-radius: 12px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tabs a {
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* رسائل التنبيه في النموذج */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-inline-start: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-inline-start: 4px solid #dc3545;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-inline-start: 4px solid #17a2b8;
}

/* زر تحميل */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: "";
    position: absolute;
    inset-inline-end: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* ============================================
   صفحة التواصل - تصميم محسّن
   ============================================ */

/* قسم بطاقات التواصل العلوية */
.contact-top-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.contact-info-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(200,147,70,0.18);
}

.contact-info-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
}

.contact-info-icon.whatsapp-icon {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.contact-info-body {
    flex: 1;
    min-width: 0;
}

.contact-info-body h4 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-info-body p,
.contact-info-body a {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    display: block;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-phone-link {
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap !important;
    font-weight: 600;
    color: var(--primary-color) !important;
}

.contact-info-body a:hover {
    color: var(--primary-color);
}

.working-hours {
    font-size: 0.82rem !important;
    color: #777 !important;
    margin-top: 4px;
}

.btn-whatsapp-chat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 7px 14px;
    background: #25d366;
    color: #fff !important;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-whatsapp-chat:hover {
    background: #128c7e;
    color: #fff !important;
}

/* قسم النموذج الرئيسي */
.contact-main-section {
    padding: 70px 0;
    background: #fff;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

body[dir="rtl"] .contact-layout {
    grid-template-columns: 1fr 1.5fr;
}

.contact-side-info h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 14px;
    font-weight: 800;
}

.contact-side-desc {
    color: #666;
    line-height: 1.8;
    margin-bottom: 35px;
    font-size: 0.95rem;
}

.contact-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px;
    background: #f8f9fa;
    border-radius: 12px;
    border-inline-start: 4px solid var(--primary-color);
}

.contact-feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.contact-feature strong {
    display: block;
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-feature p {
    color: #666;
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.5;
}

.contact-form-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.09);
    border: 1px solid #f0f0f0;
}

/* خريطة */
.contact-map-section {
    margin: 0;
}

.contact-map-section iframe {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

/* تجاوب */
@media (max-width: 1100px) {
    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .contact-cards-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-box {
        padding: 24px 18px;
    }

    .contact-side-info h2 {
        font-size: 1.5rem;
    }
}
