/*
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
*/

/* ==========================================
   0. Global Typography & Core Reset
   ========================================== */
*,
*::before,
*::after {
    font-family: 'Helvetica', 'Arial', sans-serif !important;
}

body, 
html {
    font-family: 'Helvetica', 'Arial', sans-serif !important;
    background-color: #ffffff;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.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. Header & Navigation Section
   ========================================== */
.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;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #28a745;
    transition: width 0.4s ease-in-out;
}

.nav-menu li a:hover {
    color: #28a745;
}

.nav-menu li a:hover::after,
.nav-menu li.current-menu-item a::after {
    width: 100%;
}

.nav-menu li.current-menu-item a {
    color: #28a745;
}

/* ==========================================
   2. Hero Video Section (Home & About)
   ========================================== */
.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;
    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;
}

/* ==========================================
   3. Shared Grid Components (Layout Engine)
   ========================================== */
.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;
}

/* ==========================================
   4. Section: Why Ardh Alfadel (Home Section 1)
   ========================================== */
.why-ardh-section {
    background-color: #ffffff !important;
    color: #1a1a1a;
}

.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;
}

/* ==========================================
   5. Section: Operational Excellence
   ========================================== */
.operational-excellence-section {
    background-color: #ffffff !important;
    color: #1a1a1a;
}

/* ==========================================
   6. Section: 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;
}

/* ==========================================
   7. Section: Selected Project Portfolio & ISO/Chart Containers
   ========================================== */
.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(3, 1fr) !important;
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.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;
}

/* توحيد حاوية وأبعاد صور الأيزو والهيكل التنظيمي */
.iso-image-container {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
    background-color: #ffffff;
}

.iso-matched-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    border: 2px solid rgba(46, 139, 87, 0.2);
}

/* ضبط خاص للهيكل التنظيمي لعدم قص الأطراف */
.org-chart-section .iso-matched-img {
    object-fit: contain;
    background-color: #fafafa;
}

/* تأثير الحركة والزوم عند تمرير الماوس على كاردات الشهادات */
.site-section .project-card-item {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, box-shadow;
}

.site-section .project-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(46, 139, 87, 0.18);
    border-color: rgba(46, 139, 87, 0.5);
}

.site-section .project-card-item .card-img-box img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.site-section .project-card-item:hover .card-img-box img {
    transform: scale(1.06);
}

/* ==========================================
   8. About Us Page Sections (التناوب اللوني المتبادل)
   ========================================== */
.about-page-wrapper {
    background-color: #ffffff;
}

/* 1. السكشن الأول: أبيض */
.about-hero-section {
    background-color: #FFFFFF !important;
}

/* 2. السكشن الثاني: رمادي */
.who-we-are-section {
    background-color: #E4E4E4 !important;
}

/* 3. السكشن الثالث: أبيض */
.vision-values-section {
    background-color: #FFFFFF !important;
}

/* 4. السكشن الرابع: رمادي */
.iso-certificate-section {
    background-color: #E4E4E4 !important;
}

/* 5. السكشن الخامس: أبيض */
.org-chart-section {
    background-color: #FFFFFF !important;
}

/* ==========================================
   9. Global Fade-Up Animations & Spacing Fixes
   ========================================== */
.fade-up-element {
    opacity: 0;
    transform: translateY(30px);
    animation: globalFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-up-element.delay-1 {
    animation-delay: 0.15s;
}

.fade-up-element.delay-2 {
    animation-delay: 0.3s;
}

.fade-up-element.delay-3 {
    animation-delay: 0.45s;
}

@keyframes globalFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* إلغاء المسافات الفارغة تماماً وتقليل الهوامش في صفحة من نحن */
.about-page-wrapper .site-section {
    padding-top: 35px !important;
    padding-bottom: 35px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.about-page-wrapper .section-header {
    margin-bottom: 25px !important;
}