:root {
    --primary: #FFD700;    /* الأصفر الإنشائي */
    --dark: #1A1A1A;       /* الأسود الفولاذي */
    --gray: #F4F4F4;
    --text: #333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: 0.3s;
}

header.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark);
}

.logo span span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.btn-quote {
    background: var(--dark);
    color: var(--primary) !important;
    padding: 10px 20px;
    border-radius: 5px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url("img/construction_company.jpg") center/cover no-repeat;
    margin-top: 60px;
}

.hero-overlay {
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-text h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-text p {
    color: var(--gray);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px; /* مسافة ثابتة بدلاً من المارجن العشوائي */
    margin-top: 30px;
}

.btn {
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
}

.btn-primary { background: var(--primary); color: var(--dark); }
.btn-outline { border: 2px solid var(--white); color: var(--white); margin-right: 15px; }
.btn-primary:hover { transform: scale(1.05); }

/* Services Grid */
.services { padding: 100px 0; background: var(--gray); }

.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    border-bottom: 5px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 5px solid var(--primary);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Footer */
/* Footer */
footer {
background: #e0e0de; /* لون رمادي خرساني فاتح جداً */
    color: var(--dark);
    padding: 80px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* لتوسيط الحاوية الكبرى */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
    width: 100%;
    justify-items: center; /* لتوسيط الأعمدة داخل الشبكة */
    text-align: center;    /* لتوسيط النصوص */
}

/* استهداف كافة أعمدة الفوتر لتوسيط ما بداخلها */
.footer-about, .footer-links, .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center; /* لتوسيط الشعارات، العناوين، والروابط */
}

.footer-col h4 { 
    margin-bottom: 25px; 
    border-bottom: 2px solid var(--primary); 
    display: inline-block; 
}

.footer-links ul { 
    list-style: none; 
    padding: 0; /* ضروري لإزالة الإزاحة الافتراضية وضمان التوسط */
}

.footer-links li { margin-bottom: 15px; }
.footer-links a { color: var(--black); text-decoration: none; }

/* توسيط أيقونات التواصل الاجتماعي */
.socials { 
    display: flex; 
    gap: 20px; 
    margin-top: 20px; 
    justify-content: center; /* لتوسيط الأيقونات أفقياً */
}

.socials a { color: var(--primary); font-size: 1.5rem; }

.footer-bottom { 
    text-align: center; 
    padding-top: 20px; 
    border-top: 1px solid #333; 
    font-size: 0.9rem; 
    width: 100%;
}
/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    nav.active { display: block; }
    nav ul { flex-direction: column; }
    .hero-text h1 { font-size: 2.2rem; }
}