/* ==================================================
   اسم المشروع: موقع شركة سنام الرواحل
   الوصف: تصميم صناعي احترافي (Industrial Style)
   التوافق: يدعم كافة الشاشات والمتصفحات (RTL)
   ================================================== */

/* 1. استيراد الخطوط والإعدادات العامة */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

:root {
    --primary-yellow: #fdd835;  /* الأصفر الصناعي */
    --deep-black: #0a0a0a;     /* الأسود الفاحم */
    --industrial-grey: #1a1a1b; /* الرمادي الغامق */
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --text-muted: #aaaaaa;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 90px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: var(--white);
    color: var(--deep-black);
    direction: rtl;
}

/* 2. الهيكل العام والحاويات */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 100px 0;
}

/* 3. الهيدر (Header) والقائمة */
header {
    background: var(--deep-black);
    color: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--primary-yellow);
    transition: var(--transition);
}

header.sticky {
    height: 70px;
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

header.sticky .logo img {
    height: 45px;
}

nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--primary-yellow);
}

nav a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary-yellow);
    bottom: -5px;
    right: 0;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary-yellow);
    cursor: pointer;
}

/* 4. الأزرار (Buttons) */
.btn {
    padding: 12px 35px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-yellow);
    color: var(--deep-black);
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(253, 216, 53, 0.4);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-yellow);
    color: var(--deep-black);
    border-color: var(--primary-yellow);
}

/* 5. قسم الهيرو (Hero Sections) لكل الصفحات */
.hero, .page-header, .parts-hero, .services-hero, .contact-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--white);
}

.hero::before, .page-header::before, .contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.85));
}

.hero-content, .header-content {
    position: relative;
    z-index: 10;
    width: 90%;
}

.hero h1 {
    font-size: clamp(32px, 6vw, 70px);
    font-weight: 900;
    margin-bottom: 20px;
}

.hero h1 span.text-warning, .hero h1 span.title-bottom {
    color: var(--primary-yellow);
}

.hero p {
    font-size: clamp(16px, 2vw, 22px);
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 6. بطاقات الخدمات والمعدات (Cards) */
.services-grid, .machinery-grid, .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-box, .machinery-card, .value-box, .info-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-bottom: 5px solid var(--primary-yellow);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.service-box:hover, .machinery-card:hover {
    transform: translateY(-10px);
}

.service-box i {
    font-size: 50px;
    color: var(--deep-black);
    background: var(--primary-yellow);
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    margin-bottom: 25px;
}

/* 7. صفحة المعدات (Machinery Grid) */
.machinery-card {
    padding: 0;
    overflow: hidden;
    position: relative;
    background: var(--deep-black);
    color: var(--white);
}

.machinery-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: 0.5s;
}

.machinery-card:hover img {
    transform: scale(1.1);
}

.brand-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-yellow);
    color: var(--deep-black);
    padding: 5px 15px;
    font-weight: 800;
    font-size: 12px;
}

.card-content {
    padding: 25px;
    text-align: right;
}

.card-content h3 {
    color: var(--primary-yellow);
    margin-bottom: 10px;
}

.spec-list {
    list-style: none;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.spec-list li {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 8px;
}

.spec-list i {
    color: var(--primary-yellow);
    margin-left: 8px;
}

/* 8. صفحة تواصل معنا (Contact Page) */
.contact-wrapper {
    background: var(--deep-black);
    padding: 50px;
    color: var(--white);
    border-bottom: 5px solid var(--primary-yellow);
}

.form-control {
    background: #151515;
    border: 1px solid #333;
    color: var(--white);
    padding: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-yellow);
    outline: none;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-yellow);
    color: var(--deep-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-left: 20px;
    border-radius: 4px;
}

/* 9. الفوتر الموحد (Unified Footer) */
.main-footer {
    background: var(--deep-black);
    color: var(--white);
    padding: 80px 0 0;
    border-top: 5px solid var(--primary-yellow);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col h4 {
    color: var(--primary-yellow);
    margin-bottom: 25px;
    font-weight: 800;
}

.footer-logo {
    height: 70px;
    margin-bottom: 20px;
}

.footer-col p {
    color: #bbb;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-yellow);
    padding-right: 8px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    color: var(--primary-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #333;
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--primary-yellow);
    color: var(--deep-black);
}

.footer-bottom {
    background: #000;
    text-align: center;
    padding: 25px;
    border-top: 1px solid #222;
    font-size: 14px;
    color: #888;
}

/* 10. زر واتساب العائم */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    z-index: 3000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(15deg);
    color: #fff;
}

/* 11. استعلامات الوسائط (Responsive Design) */

/* للأجهزة اللوحية والجوال */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--deep-black);
        flex-direction: column;
        padding: 50px 30px;
        transition: 0.5s ease-in-out;
        align-items: flex-start;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    nav.nav-active {
        right: 0;
    }

    nav a {
        font-size: 18px;
        width: 100%;
    }
}

/* للجوال الصغير (iPhone 11 وما شابهه) */
@media (max-width: 768px) {
    section { padding: 60px 0; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .hero h1 { font-size: 32px; }
    
    .about-flex {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .contact-wrapper {
        padding: 30px 20px;
    }

    header { height: 70px; }
    nav { top: 70px; }
    .logo img { height: 45px; }
}

/* 12. تحسينات الأنيميشن AOS */
[data-aos] {
    pointer-events: none;
}
.aos-animate {
    pointer-events: auto;
}