/* ==========================================================================
   إعدادات عامة ومتغيرات الألوان
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root {
    --primary-red: #d32f2f;
    --primary-dark-red: #b71c1c;
    --primary-light-red: #ffebee;
    --dark-color: #1a252f;
    --gray-bg: #f8f9fa;
    --text-color: #333333;
    --text-muted: #6c757d;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--gray-bg);
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   الأزرار (Buttons)
   ========================================================================== */
.btn {
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-red {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-red:hover {
    background-color: var(--primary-dark-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark-color);
}

.btn-lg {
    padding: 12px 30px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    display: block;
}

/* ==========================================================================
   الهيدر وشريط التنقل (Navbar)
   ========================================================================== */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1.2;
}

.brand-sub {
    font-size: 12px;
    color: var(--primary-red);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 700;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-red);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    direction: ltr;
}

.phone-link i {
    color: var(--primary-red);
}

/* ==========================================================================
   الواجهة الرئيسية (Hero Section)
   ========================================================================== */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background: url('../img/1.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.hero-content h1 {
    font-size: 44px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-content p {
    font-size: 19px;
    line-height: 1.7;
    margin-bottom: 35px;
    color: #e2e8f0;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* ==========================================================================
   شريط الإحصائيات (Stats Section)
   ========================================================================== */
.stats-section {
    background-color: var(--white);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 30px 15px;
}

.stat-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-left: 1px solid var(--border-color);
}

.stat-box:last-child {
    border-left: none;
}

.stat-icon {
    font-size: 36px;
    color: var(--primary-red);
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark-color);
}

.stat-info p {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 700;
}

/* ==========================================================================
   عناوين الأقسام العامة (Section Titles)
   ========================================================================== */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 50px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-red);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   هيدر الصفحات الفرعية (Page Header)
   ========================================================================== */
.page-header {
    position: relative;
    height: 35vh;
    min-height: 240px;
    background: url('https://images.pexels.com/photos/159306/construction-site-build-construction-structure-159306.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 37, 47, 0.85);
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header-content h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-header-content p a {
    color: var(--white);
    text-decoration: none;
}

.page-header-content p span {
    color: var(--primary-red);
    font-weight: 700;
}

/* ==========================================================================
   شبكة المنتجات (Products Grid)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.service-img-wrap {
    position: relative;
    height: 230px;
}

.service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-icon-badge {
    position: absolute;
    bottom: -20px;
    right: 25px;
    width: 55px;
    height: 55px;
    background-color: var(--primary-red);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

.service-content {
    padding: 30px 25px 25px;
}

.service-content h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.service-content p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    padding: 0;
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 20px;
}

.service-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-list li i {
    color: var(--primary-red);
}

/* ==========================================================================
   صفحة عن الشركة (About Page)
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img-box {
    position: relative;
}

.about-img-box img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 20px 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
}

.experience-badge .years {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
}

.experience-badge .text {
    font-size: 13px;
    font-weight: 700;
}

.sub-heading {
    color: var(--primary-red);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.about-text h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-text p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--dark-color);
    font-size: 14px;
}

.feature-item i {
    color: var(--primary-red);
}

/* بطاقات القيم والكرامات */
.values-grid {
    display:flex;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light-red);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.value-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.value-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ==========================================================================
   معرض المشاريع والفلترة (Portfolio)
   ========================================================================== */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 22px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.25);
}

.portfolio-grid {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-img {
    height: 420px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-info {
    padding: 20px;
}

.project-category {
    background-color: var(--primary-red);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.portfolio-info h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.project-location {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-location i {
    color: var(--primary-red);
}

/* ==========================================================================
   الفــوتر (Footer)
   ========================================================================== */
.footer {
    background-color: var(--dark-color);
    color: #a0aec0;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .brand-title {
    color: var(--white);
}

.footer-about p {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 15px;
}

.footer-title {
    color: var(--white);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
}

.footer-title::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-red);
    margin-top: 8px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-red);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
}

.contact-info i {
    color: var(--primary-red);
    font-size: 16px;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* ==========================================================================
   التجاوب مع شاشات الجوال والتأقلم (Responsive)
   ========================================================================== */
@media (max-width: 992px) {
    .nav-links, .phone-link {
        display: none;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-box {
        border-left: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }
}