/*
========================================
AL WATHBA TECHNICAL COMPANY - style.css
========================================
All rights reserved © 2024. alwathba.ly
*/

/* 1. CSS Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif; /* خط الكوفي الحديث المماثل للشعار */
}

body {
    background-color: #fcfcfc; /* خلفية بيضاء نقية للقسم السفلي */
    color: #333;
    direction: rtl; /* اتجاه النص من اليمين لليوم */
    overflow-x: hidden;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 2. Header Section */
header {
    background-color: #fcfcfc;
    padding: 20px 0;
    border-bottom: 1px solid #e1e1e1;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* لضمان بقاء الهيدر فوق كل شيء عند التمرير */
}

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

.logo-area {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px; /* ارتفاع الشعار */
    margin-left: 15px;
}

.logo-text h1 {
    font-size: 1.1em;
    color: #1e3a5f; /* أزرق داكن */
    font-weight: 700;
    margin-bottom: 2px;
}

.logo-text h2 {
    font-size: 0.85em;
    color: #555;
    font-weight: 400;
}

.domain-link {
    font-size: 0.9em;
    color: #dfba1e; /* ذهبي */
    text-decoration: none;
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    font-size: 0.95em;
    font-weight: 400;
}

nav ul li a:hover {
    color: #1e3a5f;
}

.lang-switch {
    font-weight: 700;
    color: #1e3a5f;
    margin-left: 20px;
}

.btn-quote {
    background-color: #dfba1e;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9em;
}

.btn-quote:hover {
    background-color: #ccaa18;
}

/* 3. Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e3a5f 50%, #dfba1e 100%); /* التدرج اللوني خلف العنوان */
    padding: 150px 0 100px; /* لإعطاء مساحة للهيدر الثابت */
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* إضافة تأثير الخطوط البيضاء المتشابكة خلف العنوان كخلفية (يمكنك استخدام صورة أو كود CSS) */
/* .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/circuit-pattern.png');
    opacity: 0.1;
    z-index: -1;
} */

.hero-content h1 {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1em;
    font-weight: 400;
    color: #ccc; /* لون فاتح للنص الإنجليزي */
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: #dfba1e;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
}

.btn-primary:hover {
    background-color: #ccaa18;
}

/* 4. Services Overview */
.services-overview {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    color: #1e3a5f;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 أعمدة */
    gap: 30px;
}

.service-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e1e1e1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* ظل خفيف */
}

.service-card img {
    height: 80px; /* ارتفاع أيقونة الخدمة */
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3em;
    color: #1e3a5f;
    font-weight: 700;
    margin-bottom: 5px;
}

.service-card p:first-of-type {
    font-size: 0.9em;
    color: #dfba1e; /* ذهبي للنص الإنجليزي */
    margin-bottom: 15px;
    font-weight: 700;
}

.service-desc {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
}

/* 5. Footer Section */
footer {
    background-color: #1e3a5f;
    color: #fff;
    padding: 50px 0 20px;
    font-size: 0.9em;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-details {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    width: 100%;
    max-width: 800px;
}

.footer-details img:first-child {
    height: 50px; /* ارتفاع شعار الفوتر المصغر */
}

.contact-info {
    flex: 1;
    padding: 0 20px;
}

.contact-info p {
    margin-bottom: 5px;
}

.qr-code {
    height: 60px; /* ارتفاع رمز الاستجابة السريعة */
}

.copyright {
    color: #ccc;
    font-size: 0.85em;
    margin-top: 20px;
}

/* Responsive Design for smaller screens */
@media (max-width: 992px) {
    .container {
        width: 90%;
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    .services-grid {
        grid-template-columns: 1fr; /* عمود واحد على الأجهزة الصغيرة */
    }

    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 20px;
    }

    nav ul li {
        margin: 5px 0;
    }

    .btn-quote {
        margin-top: 15px;
    }
}