/* ==========================================================================
   NLS Egypt - Main Stylesheet
   تم تنظيم هذا الملف لتسهيل القراءة والصيانة
   ========================================================================== */

/* ==========================================================================
   1. المتغيرات العامة وإعادة الضبط (Variables & Reset)
   ========================================================================== */
:root {
    /* الألوان الرئيسية */
    --primary: #0f172a;       /* كحلي غامق */
    --accent: #ca8a04;        /* ذهبي */
    --text-dark: #1e293b;     /* نص داكن */
    --text-light: #64748b;    /* نص فاتح */
    --bg-light: #f8fafc;      /* خلفية فاتحة */
    --white: #ffffff;         /* أبيض */
    --border: #e2e8f0;        /* لون الحدود */
    
    /* الظلال */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* ألوان الحالات */
    --success: #10b981;
    --error: #ef4444;
}

/* إعادة ضبط أساسية لجميع العناصر */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

/* ==========================================================================
   2. الخطوط والأساسيات (Typography & Base)
   ========================================================================== */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ==========================================================================
   3. أدوات التخطيط المساعدة (Utility Classes)
   ========================================================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

/* ==========================================================================
   4. الأزرار (Buttons)
   ========================================================================== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary { background-color: var(--accent); color: var(--white); }
.btn-primary:hover { background-color: #a16207; transform: translateY(-2px); }

.btn-secondary { background-color: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-secondary:hover { background-color: var(--white); color: var(--primary); }

.btn-large { padding: 16px 40px; font-size: 1.1rem; }

/* ==========================================================================
   5. رسائل التنبيه (Alerts)
   ========================================================================== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* ==========================================================================
   6. شريط التنقل (Navbar)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    transition: background-color 0.3s, box-shadow 0.3s;
    padding: 15px 0;
}

/* تأثير التمرير (Scroll Effect) */
.navbar.scrolled {
    background-color: var(--primary);
    box-shadow: var(--shadow);
    padding: 10px 0;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

/* شعار الموقع */
.logo {
    font-family: 'Black Ops One', cursive; /* الخط المطلوب للشعار */
    font-size: 2rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--white); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   7. قسم الهيرو والصفحات الداخلية (Hero & Page Headers)
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.8));
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-content h1 { font-size: 3.5rem; color: var(--white); margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; color: #cbd5e1; }
.hero-buttons { display: flex; gap: 15px; }

.page-header {
    height: 400px;
    background: url('https://images.unsplash.com/photo-1494412574643-35d324698420?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.page-header .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8);
}

.page-header .container { position: relative; z-index: 1; }
.page-header h1 { font-size: 3rem; color: var(--white); margin-bottom: 10px; }
.page-header p { font-size: 1.2rem; color: #cbd5e1; }

/* ==========================================================================
   8. قسم من نحن (About Section)
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { position: relative; }
.about-image img { border-radius: 12px; box-shadow: var(--shadow); }

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--accent);
    color: var(--white);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.experience-badge .years { display: block; font-family: 'Montserrat', sans-serif; font-size: 2.5rem; font-weight: 800; }
.experience-badge .text { font-size: 0.9rem; font-weight: 600; }

.section-subtitle { color: var(--accent); text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 10px; }
.section-title { font-size: 2.2rem; margin-bottom: 20px; }

/* الرؤية والرسالة */
.vision-mission { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; }
.vm-box {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}
.vm-box i { font-size: 2rem; color: var(--accent); margin-bottom: 10px; }
.vm-box h3 { font-size: 1.2rem; margin-bottom: 10px; }
.vm-box p { font-size: 0.95rem; color: var(--text-light); }

/* الإحصائيات */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0; }
.stat-item { text-align: center; padding: 20px; background: var(--bg-light); border-radius: 8px; }
.stat-item i { font-size: 1.5rem; color: var(--accent); margin-bottom: 10px; }
.stat-item h3 { font-size: 1.8rem; margin-bottom: 5px; }
.stat-item p { font-size: 0.85rem; color: var(--text-light); }

/* معلومات المدير التنفيذي */
.ceo-info { display: flex; align-items: center; gap: 15px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.ceo-avatar {
    width: 50px; height: 50px;
    background-color: var(--primary);
    color: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}

/* ==========================================================================
   9. المميزات والخدمات (Features & Services)
   ========================================================================== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }

.feature-icon {
    width: 70px; height: 70px;
    background-color: rgba(202, 138, 4, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}
.feature-card h3 { margin-bottom: 15px; font-size: 1.3rem; }
.feature-card p { color: var(--text-light); }

/* تفاصيل الخدمات (صفحة الخدمات) */
.service-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

/* عكس الاتجاه للبطاقات الزوجية */
.service-detail-card.reverse { direction: rtl; }
.service-detail-card.reverse > * { direction: ltr; }

.service-detail-image img { border-radius: 12px; width: 100%; }
.service-detail-content h3 { font-size: 1.8rem; margin-bottom: 20px; display: flex; align-items: center; gap: 15px; }
.service-detail-content h3 i { color: var(--accent); }
.service-detail-content > p { color: var(--text-light); margin-bottom: 20px; }

.service-features { list-style: none; }
.service-features li { padding: 10px 0; color: var(--text-dark); display: flex; align-items: center; gap: 10px; }
.service-features i { color: var(--accent); }

/* ==========================================================================
   10. قسم طلب عرض السعر (Quote CTA & Form)
   ========================================================================== */
.quote-cta-section { background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%); }
.quote-cta-box {
    text-align: center;
    color: var(--white);
    padding: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}
.quote-cta-box h2 { color: var(--white); font-size: 2.5rem; margin-bottom: 15px; }
.quote-cta-box p { font-size: 1.2rem; margin-bottom: 30px; color: #cbd5e1; }

/* تنسيق نموذج عرض السعر */
.quote-form {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}
.form-section:last-of-type { border-bottom: none; margin-bottom: 20px; }
.form-section h3 { font-size: 1.2rem; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; color: var(--primary); }
.form-section h3 i { color: var(--accent); }

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* ========================================
   حقول الإدخال والملصقات العائمة (Floating Labels)
   ======================================== */
.form-group { position: relative; margin-bottom: 20px; }

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 16px 12px 4px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: var(--white);
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* الملصق الافتراضي */
.form-group label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.2s ease;
    pointer-events: none;
    background: var(--white);
    padding: 0 4px;
}

/* تعديل الملصق لمنطقة النص (Textarea) */
.form-group textarea ~ label { top: 20px; transform: none; }

/* الملصق الثابت (للقوائم والتواريخ والأرقام) */
.form-group .static-label { top: -10px; font-size: 0.8rem; color: var(--accent); font-weight: 600; }

/* حركة الطفو عند التركيز أو وجود نص */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

/* شبكة خيارات المعدات (Checkboxes) */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s;
}

.checkbox-item:hover {
    border-color: var(--accent);
    background-color: var(--bg-light);
}

.checkbox-item input[type="radio"] { width: auto; margin: 0; }
.checkbox-label { font-weight: 600; margin-bottom: 8px; display: block; }

/* ==========================================================================
   11. صفحة الأخبار (News Grid)
   ========================================================================== */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }
.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.news-card-image { height: 250px; overflow: hidden; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.news-card:hover .news-card-image img { transform: scale(1.05); }

.news-card-content { padding: 25px; }
.news-card-date { color: var(--accent); font-size: 0.9rem; margin-bottom: 10px; display: block; }
.news-card h3 { font-size: 1.3rem; margin-bottom: 15px; }
.news-card p { color: var(--text-light); font-size: 0.95rem; }

/* ==========================================================================
   12. صفحة تتبع الشحنات (Track Page)
   ========================================================================== */
.track-section { padding-top: 50px; }
.agencies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 25px; margin-top: 40px; }

.agency-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.agency-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.agency-card img { max-height: 60px; margin: 0 auto 15px; object-fit: contain; }
.agency-card span { font-weight: 600; color: var(--text-dark); }

/* ==========================================================================
   13. صندوق نجاح العملية (Success Box & WhatsApp)
   ========================================================================== */
.success-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.success-icon { font-size: 5rem; color: var(--success); margin-bottom: 20px; }
.success-box h2 { font-size: 2rem; margin-bottom: 15px; }
.success-box > p { color: var(--text-light); margin-bottom: 30px; }

.quote-details-box {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: left;
}
.quote-details-box h3 { margin-bottom: 20px; text-align: center; }

.details-table { width: 100%; border-collapse: collapse; }
.details-table th, .details-table td { padding: 12px; border-bottom: 1px solid var(--border); }
.details-table th { text-align: left; font-weight: 600; width: 30%; }

/* شارات الحالة */
.status-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.status-new { background: #dbeafe; color: #1e40af; }
.status-reviewed { background: #fef3c7; color: #92400e; }
.status-quoted { background: #dcfce7; color: #166534; }
.status-closed { background: #e5e7eb; color: #374151; }

/* زر الواتساب */
.whatsapp-cta {
    background: #25D366;
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}
.whatsapp-cta h3 { color: white; margin-bottom: 10px; }
.whatsapp-cta p { margin-bottom: 20px; }

.btn-whatsapp {
    display: inline-block;
    background: white;
    color: #25D366;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

.action-buttons { display: flex; gap: 15px; justify-content: center; margin-top: 30px; }

/* ==========================================================================
   14. تذييل الصفحة (Footer)
   ========================================================================== */
.footer { background-color: var(--primary); color: var(--white); padding: 60px 0 20px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }

.footer-brand h3 { color: var(--white); font-size: 1.8rem; margin-bottom: 15px; }
.footer-brand h3 span { color: var(--accent); }
.footer-brand p { color: #94a3b8; }

.footer-links h4, .footer-contact h4 { color: var(--white); margin-bottom: 20px; font-size: 1.1rem; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }

.footer-contact p { color: #94a3b8; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.footer-contact i { color: var(--accent); width: 20px; }

.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #64748b; }
/* Social Media Icons in Footer */
.social-media {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
    border-color: var(--accent);
}

.social-link i {
    width: 20px;
    text-align: center;
}
/* ==========================================================================
   15. التصميم المتجاوب (Responsive Design)
   ========================================================================== */
@media (max-width: 768px) {
    /* القائمة في الموبايل */
    .mobile-menu-btn { display: block; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
        background-color: var(--primary); flex-direction: column;
        justify-content: center; transition: right 0.3s ease;
    }
    .nav-links.active { right: 0; }
    
    /* تعديل الأحجام والشبكات للشاشات الصغيرة */
    .hero-content h1 { font-size: 2.2rem; }
    .about-grid, .vision-mission, .stats-grid { grid-template-columns: 1fr; }
    .service-detail-card, .service-detail-card.reverse { grid-template-columns: 1fr; direction: ltr; }
    .page-header h1 { font-size: 2rem; }
    .news-grid { grid-template-columns: 1fr; }
    .quote-form { padding: 20px; }
}