/* ──────────────── TOKENS ──────────────── */
:root {
    --navy: #142941;
    --teal: #1A4740;
    --green: #16A57E;
    --gold: #CBB083;
    --taupe: #B5AA94;
    --gray-bg: #F6F7F7;
    --white: #ffffff;
    --font: 'Alexandria', sans-serif;
    --transition: 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* ──────────────── RESET & BASE ──────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    direction: rtl;
    background: var(--gray-bg);
    color: var(--navy);
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ──────────────── SCROLLBAR ──────────────── */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: 2px;
}

/* ──────────────── UTILITY ──────────────── */
.section-tag {
    color: var(--green);
    font-size: 0.85rem;  /* ← كانت 0.7rem، زودناها */
    font-weight: 800;     /* ← كانت 700، زودناها */
    letter-spacing: 0.3em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);  /* ← زودناها شوية */
    font-weight: 900;
    color: var(--navy);
    line-height: 1.3;  /* ← زودناها عشان تكون أوضح */
    margin-bottom: 1rem;
}

.section-title-accent {
    color: var(--teal);
}

.section-line {
    width: 5rem;  /* ← كانت 4rem، زودناها */
    height: 4px;
    background: var(--green);
    margin-bottom: 2rem;
}

.section-sub {
    color: rgba(20, 41, 65, 0.6);
    max-width: 36rem;
    margin: 0.75rem auto 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.section-center {
    text-align: center;
    margin-bottom: 4rem;
}

.section-center-light .section-tag {
    color: var(--green);
}
.section-center-light .section-title {
    color: #fff;
}

.body-text {
    color: rgba(20, 41, 65, 0.7);
    font-size: 0.95rem;
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

/* ──────────────── BUTTONS ──────────────── */
.btn-primary {
    background: var(--green);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: background var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
    background: #13916e;
    box-shadow: 0 0 30px rgba(22, 165, 126, 0.4);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 1rem 2rem;
    cursor: pointer;
    font-family: var(--font);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color var(--transition), color var(--transition);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

/* ──────────────── HEADER / NAVBAR ──────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 1.5rem;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    background: transparent;  /* ← شفاف في البداية */
}

.site-header.scrolled {
    background: var(--navy);  /* ← الأزرق الغامق */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    align-items: center;  /* ← تأكد من محاذاة المنتصف */
    justify-content: space-between;
    flex-wrap: nowrap;    /* ← مهم: لا تسمح بالالتفاف */
    gap: 1rem;            /* ← مسافة بين العناصر */
}

.nav-logo {
    flex-shrink: 0;       /* ← يمنع اللوقو من التقلص */
}

.nav-logo img {
    height: 190px;        /* ← نقلل شوية عشان يضبط */
    width: auto;
    object-fit: contain;
    transition: height var(--transition);
}

.site-header.scrolled .nav-logo img {
    height: 90px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;          /* ← نقلل المسافة بين الروابط */
    flex-wrap: nowrap;    /* ← يمنع القائمة من الالتفاف */
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;   /* ← نقلل حجم الخط */
    font-weight: 600;
    white-space: nowrap;  /* ← يمنع النص من النزول */
    transition: color var(--transition);
}

.lang-toggle {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    overflow: hidden;
    font-size: 0.7rem;    /* ← نقلل */
    font-weight: 700;
    flex-shrink: 0;       /* ← يمنع التقلص */
}

.lang-toggle a {
    padding: 0.2rem 0.7rem;  /* ← نقلل */
    color: rgba(255, 255, 255, 0.5);
    transition: background var(--transition), color var(--transition);
    cursor: pointer;
}

.lang-toggle a.active,
.lang-toggle a:hover {
    background: var(--green);
    color: #fff;
}

.lang-toggle-mobile {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    overflow: hidden;
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0.5rem 1.5rem;
}

.lang-toggle-mobile a {
    padding: 0.25rem 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    transition: background var(--transition), color var(--transition);
    cursor: pointer;
}

.lang-toggle-mobile a.active,
.lang-toggle-mobile a:hover {
    background: var(--green);
    color: #fff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.mobile-nav a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    font-weight: 600;
    transition: color var(--transition), background var(--transition);
}

.mobile-nav a:hover {
    color: var(--green);
    background: rgba(255, 255, 255, 0.05);
}

/* ──────────────── HERO ──────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26, 71, 64, 0.85), rgba(26, 71, 64, 0.65), rgba(26, 71, 64, 0.97));
}

.hero-deco-line {
    position: absolute;
    right: 4rem;
    top: 25%;
    bottom: 25%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(203, 176, 131, 0.4), transparent);
}

.hero-body {
    position: relative;
    z-index: 2;
    max-width: 60rem;
    margin: 0 auto;
    padding: 6rem 1.5rem 2rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(203, 176, 131, 0.2);
    border: 1px solid rgba(203, 176, 131, 0.4);
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 2rem;
    letter-spacing: 0.15em;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.4;  /* ← زودنا من 1.2 إلى 1.4 عشان المسافة بين السطور */
    margin-bottom: 1.5rem;
}

.hero-title-accent {
    color: var(--gold);
}

.hero-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: clamp(0.9rem, 2vw, 1.125rem);
    max-width: 38rem;
    margin: 0 auto 3rem;
    font-weight: 300;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;  /* ← زودنا من 0.5rem إلى 0.75rem */
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
}

.hero-scroll-line {
    width: 1px;
    height: 3rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    margin-top: 0.25rem; /* ← أضفنا هذا عشان الخط ينزل زيادة */
}

/* ──────────────── STATS ──────────────── */
.stats-bar {
    background: var(--navy);
    padding: 3.5rem 1.5rem;
}

.stats-grid {
    max-width: 72rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 600;
}
/* ──────────────── ABOUT ──────────────── */
.about-section {
    background: var(--gray-bg);
    padding: 6rem 1.5rem 3rem;
}

.about-grid {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    justify-content: center;
}

.about-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.about-img-wrap {
    flex: 0 0 420px;
    max-width: 420px;
}

.about-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
}

.about-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: var(--green);
    color: #fff;
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    box-shadow: var(--shadow-hover);
}

html[dir="ltr"] .about-badge {
    right: auto;
    left: 0.5rem;
}

/* ──────────────── CERTIFICATES ──────────────── */
.certificates-wrapper {
    max-width: 800px;
    margin: 4rem auto 0;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.cert-main {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    aspect-ratio: 16/10;
    max-height: 500px;
    cursor: pointer;
    transition: all var(--transition);
    width: 100%;
    max-width: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    background: #fafafa;
    transition: transform var(--transition);
}

.cert-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
}

.cert-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    opacity: 0.4;
    transition: all var(--transition);
    border: 3px solid transparent;
    border-radius: 8px;
    padding: 0.35rem;
    background: transparent;
    min-width: 80px;
}

.cert-thumb.active {
    opacity: 1;
    border-color: var(--green);
    background: rgba(22, 165, 126, 0.08);
}

.cert-thumb img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

/* ──────────────── LIGHTBOX ──────────────── */
.cert-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.cert-lightbox.show {
    display: flex;
}

.cert-lightbox-content {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.cert-lightbox-content.zoomed {
    cursor: zoom-out;
    transform: scale(1.8);
}

#cert-lightbox-caption {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
}

/* زر الإغلاق X */
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 10;
    opacity: 0.6;
    font-family: Arial, sans-serif;
}

.lightbox-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* أزرار التنقل */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 3rem;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background var(--transition);
    z-index: 10;
    font-family: Arial, sans-serif;
    line-height: 1;
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .about-grid {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-img-wrap {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        order: -1;
    }
}

@media (max-width: 768px) {
    .cert-main {
        aspect-ratio: 4/3;
        max-height: 400px;
    }
    
    .cert-main img {
        padding: 1rem;
    }
    
    .cert-thumb img {
        width: 60px;
        height: 45px;
    }
    
    .cert-thumbs {
        gap: 1rem;
    }
    
    .cert-thumb {
        min-width: 60px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 0.3rem 0.8rem;
    }
    
    .lightbox-close {
        font-size: 2rem;
        top: 1rem;
        right: 1.2rem;
    }
}

@media (max-width: 480px) {
    .cert-main {
        aspect-ratio: 3/4;
        max-height: 350px;
    }
    
    .cert-main img {
        padding: 0.5rem;
    }
    
    .cert-thumb img {
        width: 50px;
        height: 38px;
    }
    
    .cert-thumb {
        min-width: 50px;
    }
    
    .cert-thumb-label {
        font-size: 0.5rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5rem;
        padding: 0.2rem 0.6rem;
    }
}
/* ──────────────── CEO MESSAGE ──────────────── */
.ceo-section {
    background: var(--white);
    padding: 6rem 1.5rem;
}

.ceo-container {
    max-width: 72rem;
    margin: 0 auto;
}

.ceo-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.ceo-image-wrapper {
    text-align: center;
}

.ceo-photo {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    margin: 0 auto 1.5rem;
    display: block;
    border: 4px solid var(--green);
    transition: all var(--transition);
}

.ceo-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 40px rgba(22, 165, 126, 0.3);
}

.ceo-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 12px;
    background: var(--gray-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.ceo-placeholder-icon {
    font-size: 6rem;
    opacity: 0.3;
}

.ceo-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
}

.ceo-title {
    color: var(--green);
    font-size: 0.9rem;
    font-weight: 600;
}

.ceo-id {
    color: rgba(20, 41, 65, 0.4);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

@media (max-width: 1024px) {
    .ceo-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .ceo-photo {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .ceo-photo {
        max-width: 180px;
    }
    
    .ceo-name {
        font-size: 1.1rem;
    }
}

.ceo-message-wrapper {
    position: relative;
}

.ceo-message-content {
    position: relative;
    padding: 2rem 0;
}

.ceo-message {
    font-size: 1.05rem;
    line-height: 2;
    color: rgba(20, 41, 65, 0.8);
    font-weight: 400;
    position: relative;
    padding: 0 2rem;
}

.ceo-quote-mark {
    position: absolute;
    top: -0.5rem;
    right: 0;
    font-size: 4rem;
    color: var(--green);
    opacity: 0.1;
    font-family: Georgia, serif;
}

/* ──────────────── SERVICES IMPROVEMENTS ──────────────── */
.services-section {
    background: #fff;
    padding: 6rem 1.5rem;
}

.services-wrap {
    max-width: 72rem;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--gray-bg);
    padding: 2rem;
    border-radius: 12px;
    transition: all var(--transition);
    cursor: pointer;
    border: 1px solid rgba(20, 41, 65, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-height: 400px;
}

.service-card:hover {
    background: var(--teal);
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
    border-color: var(--green);
}

/* صورة الخدمة */
.service-image-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    flex-shrink: 0;
    border: 2px solid var(--green);
    transition: all var(--transition);
}

.service-card:hover .service-image-wrapper {
    border-color: var(--gold);
    transform: scale(1.05);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* عنوان الخدمة */
.service-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 0.25rem;
    transition: color var(--transition);
}

.service-card:hover .service-title {
    color: #fff;
}

/* العنوان الفرعي */
.service-subtitle {
    color: var(--green);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    transition: color var(--transition);
}

.service-card:hover .service-subtitle {
    color: var(--gold);
}

/* وصف الخدمة */
.service-desc {
    color: rgba(20, 41, 65, 0.6);
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    transition: color var(--transition);
    text-align: center;
    flex: 1;
}

.service-card:hover .service-desc {
    color: rgba(255, 255, 255, 0.7);
}

/* علامات الخدمة */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: auto;
}

.service-tag {
    font-size: 0.6rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(20, 41, 65, 0.15);
    color: rgba(20, 41, 65, 0.5);
    border-radius: 4px;
    transition: all var(--transition);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.service-card:hover .service-tag {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
        min-height: 300px;
    }
    
    .service-image-wrapper {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-image-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .service-title {
        font-size: 1rem;
    }
    
    .service-desc {
        font-size: 0.8rem;
    }
}

/* ──────────────── HSE ──────────────── */
.hse-section {
    background: var(--gray-bg);
    padding: 6rem 1.5rem;
}

.hse-grid {
    max-width: 72rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.hse-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.hse-card {
    background: #fff;
    padding: 1.5rem;
    border: 2px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.hse-card:hover {
    border-color: var(--green);
    box-shadow: 0 4px 20px rgba(22, 165, 126, 0.15);
}

.hse-icon {
    margin-bottom: 1rem;
}

.hse-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--navy);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke var(--transition), transform var(--transition);
}

.hse-card:hover .hse-icon svg {
    stroke: var(--green);
    transform: scale(1.1);
}

.hse-standard {
    color: var(--green);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.hse-title {
    color: var(--navy);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.hse-desc {
    color: rgba(20, 41, 65, 0.55);
    font-size: 0.8rem;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .hse-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hse-cards {
        grid-template-columns: 1fr;
    }
}

/* ──────────────── PROJECTS WITH LOGOS ──────────────── */
.projects-section {
    background: #fff;
    padding: 6rem 1.5rem;
}

.projects-wrap {
    max-width: 72rem;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--gray-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid rgba(20, 41, 65, 0.08);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
    border-color: var(--green);
}

.project-logo-wrapper {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #ffffff;
    border-bottom: 1px solid rgba(20, 41, 65, 0.08);
}

.project-client-logo {
    max-width: 80%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(0);
    transition: all var(--transition);
}

.project-card:hover .project-client-logo {
    transform: scale(1.05);
}

.project-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.project-card-desc {
    font-size: 0.875rem;
    color: rgba(20, 41, 65, 0.7);
    line-height: 1.7;
    margin-bottom: 1rem;
    flex: 1;
}

.project-card-duration {
    font-size: 0.85rem;
    color: rgba(20, 41, 65, 0.6);
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(20, 41, 65, 0.08);
}

.project-card-label {
    font-weight: 600;
    color: var(--navy);
}

.project-card-value {
    color: rgba(20, 41, 65, 0.6);
}

html[dir="rtl"] .project-card {
    text-align: right;
}

html[dir="ltr"] .project-card {
    text-align: left;
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .project-logo-wrapper {
        height: 100px;
        padding: 0.75rem;
    }
    
    .project-client-logo {
        max-height: 60px;
    }
    
    .project-card-body {
        padding: 1rem;
    }
    
    .project-card-title {
        font-size: 1rem;
    }
    
    .project-card-desc {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ──────────────── ACHIEVEMENTS ──────────────── */
.achievements-section {
    background: var(--navy);
    padding: 6rem 1.5rem;
    overflow: hidden;
}

.achievements-wrap {
    max-width: 72rem;
    margin: 0 auto;
}

.timeline {
    position: relative;
    margin-bottom: 5rem;
}

.timeline-line {
    position: absolute;
    top: 1.5rem;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.timeline-item {
    position: relative;
    text-align: center;
    padding-top: 3rem;
    cursor: pointer;
    transition: all var(--transition);
}

.timeline-dot {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: var(--navy);
    transition: all var(--transition);
}

.timeline-item.active .timeline-dot,
.timeline-item:hover .timeline-dot {
    border-color: var(--gold);
    background: var(--gold);
    transform: translateX(-50%) scale(1.3);
}

.timeline-year {
    font-size: 0.875rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
    transition: color var(--transition);
}

.timeline-item.active .timeline-year,
.timeline-item:hover .timeline-year {
    color: var(--gold);
}

.timeline-name {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
}

.timeline-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    max-width: 32rem;
    margin: 2rem auto 0;
    text-align: center;
}

.timeline-card-year {
    color: var(--gold);
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.timeline-card-title {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.timeline-card-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .timeline-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .timeline-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ──────────────── CLIENTS MARQUEE ──────────────── */
.clients-band {
    margin-top: 4rem;
}

.clients-label {
    text-align: center;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.marquee-wrap {
    position: relative;
    overflow: hidden;
    direction: ltr;
}

.marquee-fade-l {
    position: absolute;
    inset-block: 0;
    left: 0;
    width: 6rem;
    z-index: 2;
    background: linear-gradient(to right, var(--navy), transparent);
    pointer-events: none;
}

.marquee-fade-r {
    position: absolute;
    inset-block: 0;
    right: 0;
    width: 6rem;
    z-index: 2;
    background: linear-gradient(to left, var(--navy), transparent);
    pointer-events: none;
}

.marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: marquee-slide 35s linear infinite;
}

.marquee-item {
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    font-weight: 700;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.marquee-item:hover {
    background: rgba(22, 165, 126, 0.15);
    border-color: rgba(22, 165, 126, 0.4);
    color: #fff;
}

@keyframes marquee-slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ──────────────── CLIENTS SECTION ──────────────── */
.clients-section {
    background: var(--navy);
    padding: 5rem 1.5rem;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
    padding: 3rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.client-logo-item {
    min-height: 120px;
    padding: 1.5rem 1rem;
    background: #fafafa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo-item img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1rem;
        padding: 1.5rem;
    }
    .client-logo-item {
        min-height: 80px;
        padding: 1rem 0.5rem;
    }
    .client-logo-item img {
        max-height: 40px;
    }
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
        padding: 1rem;
    }
    .client-logo-item {
        min-height: 70px;
        padding: 0.75rem 0.5rem;
    }
    .client-logo-item img {
        max-height: 30px;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
        padding: 0.75rem;
    }
    .client-logo-item {
        min-height: 60px;
        padding: 0.5rem;
    }
    .client-logo-item img {
        max-height: 25px;
    }
}

/* ──────────────── CONTACT ──────────────── */
.contact-strip {
    background: var(--teal);
    padding: 4rem 1.5rem;
}

.contact-inner {
    max-width: 50rem;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
}

.contact-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-bottom: 2.5rem;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.contact-form input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    font-family: var(--font);
    outline: none;
    transition: border-color var(--transition);
    width: 100%;
}

.contact-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-form input:focus {
    border-color: var(--green);
}

.contact-submit {
    grid-column: 1 / -1;
    background: var(--green);
    color: #fff;
    border: none;
    padding: 0.875rem 3rem;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: background var(--transition);
    letter-spacing: 0.05em;
}

.contact-submit:hover {
    background: #13916e;
}

@media (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr;
    }
}

/* ──────────────── CONTACT NOTICE ──────────────── */
.contact-notice {
    max-width: 72rem;
    margin: 2rem auto 0;
    padding: 1rem 1.5rem;
    text-align: center;
    border-radius: 4px;
    font-weight: 600;
}

.contact-notice.success {
    background: rgba(22, 165, 126, 0.13);
    border: 1px solid var(--green);
    color: var(--green);
}

.contact-notice.error {
    background: rgba(192, 57, 43, 0.13);
    border: 1px solid #c0392b;
    color: #c0392b;
}

/* ──────────────── FOOTER ──────────────── */
.site-footer {
    background: #0e1f31;
}

.footer-grid {
    max-width: 72rem;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-logo img {
    height: 170px;  /* كانت 90px، زودناها */
    width: auto;
    object-fit: contain;
    margin-bottom: 1.25rem;
}

.footer-about {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.footer-social {
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    font-weight: 700;
    transition: background var(--transition), color var(--transition);
    border-radius: 50%;
}

.footer-social:hover {
    background: var(--green);
    color: #fff;
}

.footer-heading {
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--green);
}

.footer-compliance li {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-compliance li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
}

.footer-contact-list li {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact-icon {
    color: var(--green);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem;
}

.footer-bottom-inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
}

.iso-badges {
    display: flex;
    gap: 0.75rem;
}

.iso-badge {
    border: 1px solid rgba(22, 165, 126, 0.3);
    color: rgba(22, 165, 126, 0.6);
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0.3rem 0.5rem;
    text-align: center;
    line-height: 1.3;
    white-space: pre;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ──────────────── WHATSAPP FLOAT ──────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 200;
    width: 3.5rem;
    height: 3.5rem;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 1.75rem;
    height: 1.75rem;
}

html[dir="ltr"] .whatsapp-float {
    left: auto;
    right: 1.5rem;
}

/* ──────────────── PAGE HERO ──────────────── */
.page-hero {
    padding: 10rem 1.5rem 4rem;
    background: var(--navy);
    text-align: center;
    color: #fff;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

/* ──────────────── PAGE CONTENT ──────────────── */
.page-content {
    max-width: 72rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.page-content h2,
.page-content h3,
.page-content h4 {
    color: var(--navy);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content p {
    color: rgba(20, 41, 65, 0.7);
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

/* ──────────────── ARCHIVE GRID ──────────────── */
.archive-wrap {
    max-width: 72rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-hover);
}

.post-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-body {
    padding: 1.5rem;
}

.post-card-date {
    color: rgba(20, 41, 65, 0.4);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.post-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.post-card-title a:hover {
    color: var(--green);
}

.post-card-excerpt {
    color: rgba(20, 41, 65, 0.6);
    font-size: 0.875rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
}
/* ──────────────── RTL/LTR SUPPORT ──────────────── */
html[dir="ltr"] .hero-deco-line {
    right: auto;
    left: 4rem;
}

html[dir="ltr"] .about-badge {
    right: auto;
    left: 0.5rem;
}

html[dir="ltr"] .marquee-fade-l {
    left: 0;
    right: auto;
    background: linear-gradient(to left, var(--navy), transparent);
}

html[dir="ltr"] .marquee-fade-r {
    right: 0;
    left: auto;
    background: linear-gradient(to right, var(--navy), transparent);
}

html[dir="ltr"] .ceo-quote-mark {
    right: auto;
    left: 0;
}

html[dir="ltr"] body {
    text-align: left;
}

html[dir="rtl"] body {
    text-align: right;
}

/* ──────────────── FIXES ──────────────── */
/* تنسيق الـ About - صورة جنب النص */
.about-grid {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: nowrap; /* ← مهم عشان الصورة تبقى جنب النص */
}

.about-img-wrap {
    flex: 0 0 420px;
    max-width: 420px;
}

/* معرض الشهادات في المنتصف */
.certificates-wrapper {
    max-width: 800px;
    margin: 4rem auto 0;
    text-align: center;
    padding: 0 1.5rem;
}

.certificates-wrapper .cert-main {
    min-height: auto;
    aspect-ratio: 16/10;
    max-height: 500px;
}

.certificates-wrapper .cert-main img {
    padding: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .about-grid {
        flex-direction: column;
        gap: 2rem;
        flex-wrap: wrap;
    }
    
    .about-img-wrap {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        order: -1;
    }
}

@media (max-width: 768px) {
    .certificates-wrapper .cert-main {
        aspect-ratio: 4/3;
        max-height: 400px;
    }
    
    .certificates-wrapper .cert-main img {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .certificates-wrapper .cert-main {
        aspect-ratio: 3/4;
        max-height: 350px;
    }
    
    .certificates-wrapper .cert-main img {
        padding: 0.5rem;
    }
}
/* ──────────────── MOBILE NAV TOGGLE ──────────────── */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ──────────────── MOBILE NAV MENU ──────────────── */
.mobile-nav {
    display: none;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 99;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.mobile-nav.show {
    display: block;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav a:hover {
    color: var(--green);
    background: rgba(255, 255, 255, 0.05);
    padding-right: 2rem;
}

.mobile-nav a:last-of-type {
    border-bottom: none;
}

.lang-toggle-mobile {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    overflow: hidden;
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0.75rem 1.5rem;
    width: fit-content;
}

.lang-toggle-mobile a {
    padding: 0.35rem 1rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    border-bottom: none !important;
}

.lang-toggle-mobile a.active,
.lang-toggle-mobile a:hover {
    background: var(--green);
    color: #fff;
}

/* ──────────────── RESPONSIVE ──────────────── */
@media (max-width: 768px) {
    /* إظهار زر القائمة في الجوال */
    .nav-toggle {
        display: flex;
    }

    /* إخفاء القائمة العادية */
    .nav-menu {
        display: none;
    }

    /* تصغير اللوقو */
    .nav-logo img {
        height: 60px !important;
        width: auto;
    }

    .site-header.scrolled .nav-logo img {
        height: 45px !important;
    }

    /* الموبايل ناف يظهر تحت الهيدر */
    .mobile-nav {
        top: 70px;
    }
}

@media (max-width: 480px) {
    .nav-logo img {
        height: 50px !important;
    }

    .site-header.scrolled .nav-logo img {
        height: 40px !important;
    }

    .mobile-nav {
        top: 60px;
    }

    .mobile-nav a {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .lang-toggle-mobile {
        margin: 0.5rem 1.2rem;
        font-size: 0.65rem;
    }

    .lang-toggle-mobile a {
        padding: 0.25rem 0.75rem;
    }
}
/* ──────────────── SERVICE PLACEHOLDER ──────────────── */
.service-image-placeholder {
    width: 190px;
    height: 190px;
    background: linear-gradient(145deg, #f0f2f5, #e6e9ed);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 2px dashed rgba(20, 41, 65, 0.15);
    transition: all var(--transition);
    padding: 1rem;
}

.service-card:hover .service-image-placeholder {
    border-color: var(--gold);
    background: linear-gradient(145deg, #fafbfc, #eef1f5);
}

.service-image-placeholder svg {
    width: 50px;
    height: 50px;
    stroke: rgba(20, 41, 65, 0.25);
    margin-bottom: 0.5rem;
    transition: stroke var(--transition);
}

.service-card:hover .service-image-placeholder svg {
    stroke: var(--gold);
}

.service-placeholder-text {
    font-size: 0.65rem;
    color: rgba(20, 41, 65, 0.3);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .service-image-placeholder {
        width: 90px;
        height: 90px;
    }
    
    .service-image-placeholder svg {
        width: 30px;
        height: 30px;
    }
    
    .service-placeholder-text {
        font-size: 0.5rem;
    }
}

@media (max-width: 480px) {
    .service-image-placeholder {
        width: 70px;
        height: 70px;
    }
    
    .service-image-placeholder svg {
        width: 24px;
        height: 24px;
    }
}
/* ──────────────── CUSTOM ICON PLACEHOLDER ──────────────── */
.service-image-placeholder.custom-icon svg {
    width: 60px;
    height: 60px;
    stroke: none;
    fill: rgba(20, 41, 65, 0.3);
}

.service-card:hover .service-image-placeholder.custom-icon svg {
    fill: var(--gold);
    stroke: none;
}

@media (max-width: 768px) {
    .service-image-placeholder.custom-icon svg {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .service-image-placeholder.custom-icon svg {
        width: 30px;
        height: 30px;
    }
}
/* ──────────────── NAV MENU - CURRENT ITEM ──────────────── */
.nav-menu a.current-menu-item {
    color: var(--green) !important;
    position: relative;
}

.nav-menu a.current-menu-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
}

/* للقائمة الجوالة */
.mobile-nav a.current-menu-item {
    color: var(--green) !important;
    background: rgba(22, 165, 126, 0.1);
}

/* للقائمة في الفوتر */
.footer-links a.current-menu-item {
    color: var(--green) !important;
}
/* تمييز العنصر الأب عند وجود ابن نشط */
.nav-menu a.current-menu-ancestor {
    color: var(--gold) !important;
}


/* ──────────────── NAV MENU LIST ──────────────── */
.nav-menu-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu-list li {
    margin: 0;
    padding: 0;
}

.nav-menu-list a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition);
}

.nav-menu-list a:hover {
    color: #fff;
}

/* القائمة الجوالة */
.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list li {
    margin: 0;
    padding: 0;
}

.mobile-nav-list a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-list a:hover {
    color: var(--green);
    background: rgba(255, 255, 255, 0.05);
    padding-right: 2rem;
}

.mobile-nav-list li:last-child a {
    border-bottom: none;
}

/* تحسين ظهور زر تبديل اللغة */
.lang-toggle a,
.lang-toggle-mobile a {
    text-decoration: none;
}

/* ──────────────── FORM CONSENT ──────────────── */
.form-consent-wrapper {
    grid-column: 1 / -1;
    text-align: right;
    margin-top: 0.5rem;
}

.form-consent {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    justify-content: flex-start;
}

html[dir="rtl"] .form-consent {
    justify-content: flex-start;
}

html[dir="ltr"] .form-consent {
    justify-content: flex-start;
}

.form-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--green);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    transition: all var(--transition);
}

.form-consent input[type="checkbox"]:checked {
    background: var(--green);
    border-color: var(--green);
}

.form-consent input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.form-consent input[type="checkbox"]:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.form-consent input[type="checkbox"]:invalid {
    border-color: #e74c3c;
}

.consent-text {
    line-height: 1.5;
}

.consent-error {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.form-consent-wrapper.has-error .consent-error {
    display: block;
}

.form-consent-wrapper.has-error .form-consent input[type="checkbox"] {
    border-color: #e74c3c;
}

/* للجوال */
@media (max-width: 768px) {
    .form-consent {
        font-size: 0.75rem;
    }
    
    .form-consent input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
}
/* ──────────────── PROJECTS SECTION IMPROVED ──────────────── */

/* حاوية المشاريع */
.projects-section {
    background: #fff;
    padding: 6rem 1.5rem;
}

.projects-wrap {
    max-width: 72rem;
    margin: 0 auto;
}

/* شبكة المشاريع */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ─── بطاقة المشروع ─── */
.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(20, 41, 65, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(20, 41, 65, 0.12);
    border-color: var(--green);
}

/* ─── منطقة الشعار ─── */
.project-logo-wrapper {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #fafbfc;
    border-bottom: 1px solid rgba(20, 41, 65, 0.06);
    transition: background var(--transition);
}

.project-card:hover .project-logo-wrapper {
    background: #f8fafc;
}

/* صورة الشعار */
.project-client-logo {
    max-width: 80%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(0);
    transition: all 0.4s ease;
}

.project-card:hover .project-client-logo {
    transform: scale(1.05);
    filter: grayscale(0);
}

/* ─── Placeholder للشعار ─── */
.project-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f0f2f5, #e6e9ed);
    font-size: 0.9rem;
    font-weight: 800;
    color: rgba(20, 41, 65, 0.25);
    padding: 1.5rem;
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
    letter-spacing: 0.05em;
}

.project-card:hover .project-logo-placeholder {
    background: linear-gradient(145deg, #e8eaed, #dce0e5);
}

.project-logo-placeholder span {
    max-width: 80%;
}

/* ─── جسم البطاقة ─── */
.project-card-body {
    padding: 1.5rem 1.5rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* عنوان المشروع */
.project-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: color var(--transition);
}

.project-card-title a {
    color: var(--navy);
    transition: color var(--transition);
    text-decoration: none;
}

.project-card-title a:hover {
    color: var(--green);
}

/* وصف المشروع */
.project-card-desc {
    font-size: 0.85rem;
    color: rgba(20, 41, 65, 0.65);
    line-height: 1.8;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── المدة ─── */
.project-card-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(20, 41, 65, 0.06);
    font-size: 0.85rem;
}

.project-card-duration .project-card-label {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.8rem;
}

.project-card-duration .project-card-value {
    color: rgba(20, 41, 65, 0.55);
    font-weight: 500;
}

/* أيقونة المدة */
.project-card-duration::before {
    content: '📅';
    font-size: 0.9rem;
    opacity: 0.6;
}

/* ─── رسالة عدم وجود مشاريع ─── */
.projects-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gray-bg);
    border-radius: 16px;
    border: 2px dashed rgba(20, 41, 65, 0.1);
}

.projects-empty p {
    color: rgba(20, 41, 65, 0.5);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ─── Responsive ─── */

/* شاشات متوسطة */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .project-logo-wrapper {
        height: 120px;
        padding: 1rem;
    }
    
    .project-client-logo {
        max-height: 60px;
    }
}

/* شاشات صغيرة (تابلت) */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .project-logo-wrapper {
        height: 100px;
        padding: 0.75rem;
    }
    
    .project-client-logo {
        max-height: 50px;
    }
    
    .project-card-body {
        padding: 1rem 1rem 0.75rem;
    }
    
    .project-card-title {
        font-size: 0.95rem;
    }
    
    .project-card-desc {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .project-card-duration {
        font-size: 0.75rem;
    }
}

/* شاشات صغيرة جداً (جوال) */
@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .project-logo-wrapper {
        height: 90px;
        padding: 0.75rem;
    }
    
    .project-client-logo {
        max-height: 45px;
    }
    
    .project-card-body {
        padding: 0.875rem;
    }
    
    .project-card-title {
        font-size: 0.9rem;
    }
    
    .project-card-desc {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }
    
    .project-card-duration {
        font-size: 0.7rem;
        padding-top: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .project-card-duration::before {
        font-size: 0.7rem;
    }
}

/* ─── Animation ─── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

/* جعل معرض الشهادات مرن */
.certificates-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.cert-main {
    width: 100%;
    max-width: 800px;
}

.cert-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}