/*
Theme Name: Axioryx Custom Theme
Theme URI: https://axioryx.com
Author: Abdelrahman
Author URI: https://axioryx.com
Description: Custom WordPress Theme built from scratch for Axioryx.
Version: 1.0.0
Text Domain: axioryx
*/

/* ==========================================
   تطبيق خط Helvetica على الموقع بالكامل
   ========================================== */
*,
*::before,
*::after {
    font-family: 'Helvetica', 'Arial', sans-serif !important;
}

body, 
html {
    font-family: 'Helvetica', 'Arial', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
/* ==========================================
   حل جذري نهائي لإزالة الفراغ الأبيض والتحكم بالموبايل
   ========================================== */
@media screen and (max-width: 768px) {
    /* 1. قفل عرض الشاشة أفقياً لمنع أي تمدد يمين الشاشة */
    body, html {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
    }

    /* 2. ضمان بقاء الهيدر واللوجو في مكانهما الطبيعي وعدم تأثرهما بالـ overflow */
    .site-header {
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* 3. منع أي سكشن أو شبكة من تجاوز عرض الشاشة وتوليد الفراغ الأبيض */
    .site-section, 
    .platform-grid-layout, 
    .industry-cards-grid, 
    .projects-grid, 
    .footer-container {
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
/* ==========================================
   Header & Navigation Styling
   ========================================== */
.site-header {
    background-color: #FFFFFF;
    padding: 10px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1700px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 80px;
    object-fit: contain;
}

/* القائمة الرئيسية */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: #1A161E;
    font-weight: 500;
    font-size: 18px;
    position: relative;
    padding-bottom: 8px;
    transition: color 0.3s ease;
    display: inline-block; /* ضروري لكي يكون الخط الأخضر على قدر الكلمة فقط */
}

/* تأثير الشريط المتحرك عند الـ Hover (على قدر الكلمة فقط) */
.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #28a745;
    transition: width 0.3s ease-in-out;
}

.nav-menu li a:hover {
    color: #28a745;
}

.nav-menu li a:hover::after {
    width: 100%; /* الامتلاء يكون على قدر الكلمة فقط عند الـ Hover */
}

/* الصفحة الحالية (Active / Current Page) باللون الأخضر والخط تحتها تماماً */
.nav-menu li.current-menu-item a {
    color: #28a745 !important;
}

.nav-menu li.current-menu-item a::after {
    width: 100% !important; /* الخط الأخضر يظل ظاهراً وممتداً على قدر الكلمة تماماً */
}

/* إخفاء زر المنيو في الشاشات الكبيرة */
.mobile-menu-toggle {
    display: none;
}

/* ==========================================
   Media Query - التجاوب مع الهواتف والشاشات الصغيرة
   ========================================== */
@media screen and (max-width: 992px) {
    .site-header {
        padding: 12px 20px !important;
    }

    .header-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: wrap !important;
    }

    .site-logo img {
        height: 50px !important;
    }

    /* تصميم زر القائمة (Hamburger) باللون الأخضر */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .mobile-menu-toggle .bar {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #28a745;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    .main-navigation {
        width: 100%;
    }

    /* القائمة المنسدلة في الموبايل */
    .nav-menu {
        display: none !important;
        flex-direction: column !important;
        width: 100% !important;
        background-color: #ffffff !important;
        padding: 20px !important;
        margin-top: 15px !important;
        border-radius: 10px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        gap: 15px !important;
        box-sizing: border-box !important;
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-menu li a {
        font-size: 16px !important;
        display: inline-block !important; /* لضمان ألا يأخذ الخط عرض الشاشة في الموبايل أيضاً */
        padding-bottom: 4px !important;
    }

    /* تلوين الصفحة الحالية بالخارج في الموبايل والخط على قد الكلمة فقط */
    .nav-menu li.current-menu-item a {
        color: #28a745 !important;
    }
}   

/* ==========================================
   Hero Video Section Styling
   ========================================== */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 10, 0.45);
    z-index: 2;
}

.hero-content-container {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0 40px;
    color: #FFFFFF;
}

.hero-content-container .container {
    max-width: 1700px;
    margin: 0 auto;
}

.hero-title {
    font-size: 50px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 19px;
    font-weight: 400;
    line-height: 1.7;
    max-width: 880px;
    margin-bottom: 35px;
    color: #F1F5F9;
}

.hero-btn {
    display: inline-block;
    background-color: #28A745;
    color: #FFFFFF;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.25);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.35);
    color: #FFFFFF;
}


/* ==========================================
   إعدادات الأقسام العامة والعناوين المشتركة
   ========================================== */
.site-section {
    padding: 100px 40px;
    box-sizing: border-box;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tagline {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2E8B57;
    margin-bottom: 15px;
    display: block;
}

.section-main-title {
    font-size: 40px;
    font-weight: 800;
    color: #111111;
    margin-bottom: 15px;
    line-height: 1.25;
}

.section-desc {
    font-size: 16px;
    color: #555555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}


/* ==========================================
   1. القسم الأول: Why Ardh Alfadel (خلفية بيضاء)
   ========================================== */
.why-ardh-section {
    background-color: #ffffff !important;
    color: #1a1a1a;
}

.platform-grid-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    max-width: 1500px;
    margin: 0 auto;
    align-items: stretch;
}

.platform-image-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
    height: 100%;
    min-height: 100%;
    background-color: #ffffff;
    display: flex;
}

.platform-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.platform-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    height: 100%;
}

.feature-mini-card {
    background: #ffffff;
    padding: 28px 24px;
    border-radius: 14px;
    border: 1px solid rgba(46, 139, 87, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
}

.feature-mini-card:hover {
    transform: translateY(-4px);
    border-color: #2E8B57;
    box-shadow: 0 10px 25px rgba(46, 139, 87, 0.08);
}

.feature-mini-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1a3c27;
    margin-bottom: 10px;
    line-height: 1.3;
}

.feature-mini-card p {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* صندوق التعهد والالتزام */
.platform-commitment-box {
    max-width: 1500px;
    margin: 40px auto 0 auto;
    background: #ffffff;
    border: 1px solid rgba(46, 139, 87, 0.25);
    border-left: 6px solid #2E8B57;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.platform-commitment-box h4 {
    font-size: 20px;
    font-weight: 700;
    color: #2E8B57;
    margin-bottom: 10px;
}

.platform-commitment-box p {
    font-size: 15px;
    color: #444444;
    line-height: 1.7;
    margin: 0;
}


/* ==========================================
   2. القسم الثاني: Operational Excellence
   ========================================== */
.operational-excellence-section {
    background-color: #ffffff !important;
    color: #1a1a1a;
}


/* ==========================================
   3. القسم الثالث: Industry Focus
   ========================================== */
.industry-focus-section {
    background-color: #ffffff !important;
    color: #1a1a1a;
    text-align: center;
}

.industry-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1500px;
    margin: 0 auto;
}

.industry-card {
    text-align: center;
}

.industry-img-wrap {
    border-radius: 16px;
    overflow: hidden;
    height: 320px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    margin-bottom: 15px;
}

.industry-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.industry-card:hover .industry-img-wrap img {
    transform: scale(1.05);
}

.industry-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a3c27;
    line-height: 1.4;
    margin: 0;
}

.section-action-btn {
    display: inline-block;
    background-color: #2E8B57;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 50px;
    transition: background 0.3s;
}

.section-action-btn:hover {
    background-color: #246f44;
    color: #fff;
}


/* ==========================================
   4. القسم الرابع: Selected Project Portfolio
   ========================================== */
.projects-showcase-section {
    background-color: #ffffff !important;
    color: #101F6A;
    padding: 120px 40px;
}

.projects-showcase-container {
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

.project-box {
    background: #f8fafc;
    border-left: 5px solid #2E8B57;
    border-top: 1px solid rgba(46, 139, 87, 0.15);
    border-right: 1px solid rgba(46, 139, 87, 0.15);
    border-bottom: 1px solid rgba(46, 139, 87, 0.15);
    padding: 35px;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(46, 139, 87, 0.1);
}

.project-box h3 {
    font-size: 20px;
    color: #2E8B57;
    margin-bottom: 15px;
    font-weight: 700;
}

.project-box p {
    font-size: 15px;
    line-height: 1.7;
    color: #555555;
    margin: 0;
}

.project-featured-image-wrapper {
    margin-top: 60px;
    text-align: center;
}

.project-featured-img {
    max-width: 100%;
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(46, 139, 87, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: block;
}


/* ==========================================
   Footer Styling (Ardh Alfadel)
   ========================================== */
.site-footer {
    background-color: #f7f9f6c9;
    padding-top: 70px;
    border-top: 1px solid #E2E8F0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-menu li a {
    text-decoration: none;
    color: #1A161E;
    font-size: 15px;
    font-weight: 400;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-menu li a:hover {
    color: #28a745;
    transform: translateX(6px);
}

.footer-bottom {
    margin-top: 50px;
    padding: 25px 0;
    border-top: 1px solid #E2E8F0;
    text-align: center;
    color: #64748B;
    font-size: 14px;
}


@media screen and (max-width: 768px) {
    /* تنظيم الفوتر ليعمل بشكل شبكي متناسق ومنع التداخل */
    .footer-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px 15px !important;
        padding: 0 15px !important;
    }

    /* تركيز الحواف وإعطاء مساحة كافية لعمود Legal بجانب Menu */
    .footer-col {
        min-width: 0 !important;
        width: 100% !important;
    }

    /* العمود الثالث (Contact) يأخذ السطر كاملاً بمفرده في الأسفل */
    .footer-container .footer-col:nth-child(3) {
        grid-column: span 2 !important;
    }

    /* فرد حقوق النشر والتأليف لتظهر على سطر واحد بدون الالتفاف للأسفل */
    .footer-bottom {
        white-space: nowrap !important;
        font-size: 12px !important; /* تصغير طفيف لضمان ملاءمتها لعرض الشاشة */
        overflow-x: auto !important;
        text-align: center !important;
        padding: 20px 10px !important;
    }
}
/* ==========================================
   Smooth & Slow Scroll Reveal Animation (انيميشن ناعم وبطيء)
   ========================================== */
.reveal-left,
.reveal-right,
.reveal-fade {
    opacity: 0;
    visibility: hidden;
    /* زيادة المدة إلى 1.6 ثانية مع منحنى حركة ناعم جداً (Ease-out) */
    transition: opacity 1.6s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 1.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

/* تقليص مسافة الإزاحة البديلة لتبدأ الحركة بهدوء بدون قفزة خشنة */
.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-fade {
    transform: translateY(30px);
}

/* الحالة عند تفعيل الظهور والانسياب */
.reveal-left.active,
.reveal-right.active,
.reveal-fade.active {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0);
}