/* ==========================================================
   شركة الإنماء العربي - الأنماط الرئيسية
   الألوان مأخوذة من الشعار وتُعدَّل من لوحة التحكم
   ========================================================== */
:root {
    --primary: #CC1939;
    --secondary: #181E3C;
    --dark: #231F20;
    --light: #F5F6FA;
    --white: #fff;
    --muted: #6b7084;
    --border: #e6e8f0;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 10px 30px rgba(24, 30, 60, .08);
    --shadow-lg: 0 25px 60px rgba(24, 30, 60, .16);
    --ease: cubic-bezier(.22, .61, .36, 1);
    --font-heading: 'Cairo', Tahoma, sans-serif;
    --font-body: 'Tajawal', Tahoma, sans-serif;
    --base-size: 16px;
    --heading-weight: 800;
    --header-h: 108px;
    --home-banner-h: 88vh;
    --inner-banner-h: 380px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--base-size);
    line-height: 1.85;
    color: var(--dark);
    background: #fff;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .25s; }
a:hover { color: var(--secondary); }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: var(--heading-weight); line-height: 1.4; color: var(--secondary); margin: 0 0 .6em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 900px; }
.skip-link { position: absolute; top: -50px; right: 10px; background: var(--primary); color: #fff; padding: 8px 14px; z-index: 9999; border-radius: 6px; }
.skip-link:focus { top: 10px; }
.muted { color: var(--muted); }

/* ---------- الأزرار ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 28px; border-radius: 50px; font-weight: 700; font-size: .95rem;
    border: 2px solid transparent; cursor: pointer; transition: all .3s var(--ease);
    line-height: 1.4; white-space: nowrap; font-family: var(--font-heading);
}
.btn i { font-size: .9em; transition: transform .3s; }
.btn:hover i.fa-arrow-left { transform: translateX(-4px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-primary:hover { background: var(--secondary); color: #fff; transform: translateY(-2px); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: var(--secondary); color: var(--secondary); background: transparent; }
.btn-outline:hover { background: var(--secondary); color: #fff; }
.btn-glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.btn-glass:hover { background: #fff; color: var(--secondary); }
.btn-white { background: #fff; color: var(--secondary); }
.btn-white:hover { background: var(--secondary); color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1da851; color: #fff; transform: translateY(-2px); }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.center-btn { text-align: center; margin-top: 46px; }

/* ---------- الشريط العلوي ---------- */
.topbar { background: var(--secondary); color: rgba(255,255,255,.85); font-size: .85rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 14px; }
.topbar-contacts { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.topbar-contacts a, .topbar-contacts span { color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 7px; }
.topbar-contacts a:hover { color: #fff; }
.topbar-contacts i { color: var(--primary); }
.topbar-social { display: flex; gap: 4px; }
.topbar-social a { width: 30px; height: 30px; display: grid; place-items: center; color: rgba(255,255,255,.8); border-radius: 50%; font-size: .85rem; }
.topbar-social a:hover { background: var(--primary); color: #fff; }

/* ---------- الهيدر: الشعار في الوسط والقائمة يمين ويسار ---------- */
.site-header {
    position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,.97);
    box-shadow: 0 1px 0 var(--border); transition: box-shadow .3s, background .3s;
    backdrop-filter: saturate(160%) blur(8px);
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(24,30,60,.10); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: var(--header-h); gap: 20px; transition: min-height .3s; }
.site-header.scrolled .header-inner { min-height: 76px; }
.site-logo { display: block; padding: 8px 10px; }
.site-logo img { height: 96px; width: auto; transition: height .3s var(--ease); }
.site-header.scrolled .site-logo img { height: 70px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.nav-right ul { justify-content: flex-start; }
.nav-left ul { justify-content: flex-end; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
    display: flex; align-items: center; gap: 6px; padding: 10px 16px; color: var(--secondary);
    font-family: var(--font-heading); font-weight: 700; font-size: 1rem; position: relative; border-radius: 10px;
}
.main-nav > ul > li > a::after {
    content: ''; position: absolute; bottom: 2px; right: 50%; width: 0; height: 3px; border-radius: 3px;
    background: var(--primary); transition: all .3s var(--ease); transform: translateX(50%);
}
.main-nav > ul > li:hover > a, .main-nav > ul > li.active > a { color: var(--primary); }
.main-nav > ul > li:hover > a::after, .main-nav > ul > li.active > a::after { width: 26px; }
.main-nav .fa-angle-down { font-size: .75rem; }
.main-nav .sub {
    position: absolute; top: 100%; right: 0; min-width: 220px; background: #fff; border-radius: 12px;
    box-shadow: var(--shadow-lg); padding: 10px; display: block; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: all .25s var(--ease); border-top: 3px solid var(--primary);
}
.nav-left .sub { right: auto; left: 0; }
.main-nav li:hover > .sub, .main-nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub li a { display: block; padding: 9px 14px; border-radius: 8px; color: var(--secondary); font-weight: 600; }
.main-nav .sub li a:hover, .main-nav .sub li.active a { background: var(--light); color: var(--primary); }
.menu-toggle, .header-call { display: none; }

/* ---------- قائمة الجوال ---------- */
.menu-toggle { width: 46px; height: 46px; border: 0; background: var(--light); border-radius: 12px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { display: block; width: 22px; height: 2.5px; background: var(--secondary); border-radius: 2px; transition: .3s; }
.menu-toggle span:nth-child(2) { width: 16px; background: var(--primary); }
.header-call { width: 46px; height: 46px; border-radius: 12px; background: var(--primary); color: #fff; place-items: center; font-size: 1.1rem; justify-self: end; }
.header-call:hover { color: #fff; background: var(--secondary); }
.mobile-overlay { position: fixed; inset: 0; background: rgba(15,18,40,.55); z-index: 998; opacity: 0; visibility: hidden; transition: .3s; }
.mobile-drawer {
    position: fixed; top: 0; right: 0; height: 100%; width: min(340px, 88vw); background: #fff; z-index: 999;
    transform: translateX(105%); transition: transform .4s var(--ease); display: flex; flex-direction: column; overflow-y: auto;
}
body.menu-open { overflow: hidden; }
body.menu-open .mobile-overlay { opacity: 1; visibility: visible; }
body.menu-open .mobile-drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer-head img { height: 64px; width: auto; }
.drawer-close { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--light); color: var(--secondary); font-size: 1.2rem; cursor: pointer; }
.drawer-menu { list-style: none; margin: 0; padding: 14px; flex: 1; }
.drawer-menu > li > a { display: block; padding: 13px 16px; border-radius: 10px; color: var(--secondary); font-weight: 700; font-family: var(--font-heading); }
.drawer-menu > li.active > a, .drawer-menu a:hover { background: var(--light); color: var(--primary); }
.drawer-menu ul { list-style: none; padding: 0 18px 0 0; margin: 0; }
.drawer-menu ul a { display: block; padding: 8px 16px; color: var(--muted); }
.drawer-contacts { padding: 16px 20px; border-top: 1px solid var(--border); display: grid; gap: 10px; font-size: .92rem; }
.drawer-contacts a { color: var(--secondary); display: flex; gap: 10px; align-items: center; }
.drawer-contacts i { color: var(--primary); width: 18px; }
.drawer-social { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 24px; }
.drawer-social a { width: 38px; height: 38px; border-radius: 50%; background: var(--light); color: var(--secondary); display: grid; place-items: center; }

/* ---------- السلايدر / البانر ---------- */
.hero { position: relative; height: var(--home-banner-h); min-height: 520px; max-height: 900px; background: var(--secondary); overflow: hidden; }
.slider { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 1.1s; }
.slide.active { opacity: 1; visibility: visible; z-index: 1; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.12); transition: transform 8s linear; }
.slide.active .slide-bg { transform: scale(1); }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(270deg, rgba(24,30,60,.88) 0%, rgba(24,30,60,.55) 50%, rgba(24,30,60,.15) 100%); }
.slide.no-image { background: linear-gradient(135deg, var(--secondary), color-mix(in srgb, var(--secondary) 70%, var(--primary))); }
.slide-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; color: #fff; padding-bottom: 40px; }
.slide-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; padding: 6px 18px; border-radius: 40px; font-size: .9rem; font-weight: 700; margin-bottom: 18px; }
.slide-title, .slide-content h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.8rem); max-width: 760px; margin-bottom: 14px; text-shadow: 0 4px 30px rgba(0,0,0,.25); }
.slide-sub, .slide-content p { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 620px; color: rgba(255,255,255,.9); }
.slide-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.slide.active .slide-tag, .slide.active .slide-title, .slide.active .slide-sub, .slide.active .slide-btns, .slide.active .slide-content h1, .slide.active .slide-content p { animation: slideUp .9s var(--ease) both; }
.slide.active .slide-title, .slide.active h1 { animation-delay: .15s; }
.slide.active .slide-sub, .slide.active .slide-content p { animation-delay: .3s; }
.slide.active .slide-btns { animation-delay: .45s; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.slider-arrow { position: absolute; top: 50%; z-index: 5; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; transform: translateY(-50%); transition: .3s; backdrop-filter: blur(4px); }
.slider-arrow:hover { background: var(--primary); border-color: var(--primary); }
.slider-arrow.prev { right: 26px; }
.slider-arrow.next { left: 26px; }
.slider-dots { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 10px; }
.slider-dots button { width: 12px; height: 12px; border-radius: 12px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: .35s; padding: 0; }
.slider-dots button.active { width: 36px; background: var(--primary); }
.scroll-down { position: absolute; bottom: 30px; left: 40px; z-index: 5; width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px; }
.scroll-down span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 4px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(16px); } }

.page-banner { position: relative; height: var(--inner-banner-h); min-height: 240px; background: var(--secondary); overflow: hidden; display: flex; align-items: center; }
.page-banner.no-image { background: linear-gradient(135deg, var(--secondary), color-mix(in srgb, var(--secondary) 75%, var(--primary))); }
.page-banner-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(24,30,60,.9), rgba(24,30,60,.45)); }
.page-banner-overlay::after { content: ''; position: absolute; bottom: 0; right: 0; left: 0; height: 5px; background: linear-gradient(90deg, var(--primary) 0 35%, transparent 35% 37%, var(--secondary) 37%); }
.page-banner-content { position: relative; z-index: 2; color: #fff; text-align: center; }
.page-banner-content h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.9rem); margin-bottom: 8px; }
.page-banner-content p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 760px; margin: 0 auto 16px; }
.breadcrumb { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 7px 20px; border-radius: 40px; font-size: .9rem; backdrop-filter: blur(4px); }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: rgba(255,255,255,.8); }
.breadcrumb i.fa-angle-left { font-size: .7rem; color: var(--primary); }

/* ---------- الأقسام العامة ---------- */
.section { padding: 96px 0; position: relative; }
.section-light { background: var(--light); }
.section-head { max-width: 720px; margin: 0 auto 54px; }
.section-head.center { text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-tag { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-weight: 800; font-family: var(--font-heading); font-size: .95rem; margin-bottom: 8px; }
.section-tag::before, .section-head.center .section-tag::after { content: ''; width: 26px; height: 3px; border-radius: 3px; background: var(--primary); }
.section-head.center .section-tag::after { background: var(--secondary); }

/* الأيقونة السداسية (مستوحاة من الشعار) */
.hex-icon {
    width: 76px; height: 84px; display: grid; place-items: center; font-size: 1.8rem; color: #fff;
    background: var(--secondary); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    position: relative; transition: background .35s;
}
.hex-icon.sm { width: 58px; height: 64px; font-size: 1.35rem; }

/* ---------- نبذة الرئيسية ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.about-media { position: relative; padding: 0 0 40px 40px; }
.about-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; z-index: 1; aspect-ratio: 5/4; background: var(--light); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
    position: absolute; bottom: 0; left: 0; z-index: 2; background: var(--primary); color: #fff; padding: 22px 30px;
    border-radius: var(--radius); text-align: center; box-shadow: 0 20px 40px color-mix(in srgb, var(--primary) 40%, transparent);
    border: 6px solid #fff;
}
.about-badge strong { display: block; font-size: 3rem; line-height: 1; font-family: var(--font-heading); }
.about-badge span { font-size: .95rem; font-weight: 700; }
.about-hex { position: absolute; top: -30px; right: -30px; width: 160px; height: 176px; border: 14px solid var(--primary); opacity: .12; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--primary); }
.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.about-text .lead { font-size: 1.1rem; color: var(--secondary); font-weight: 600; }
.about-text p { color: #4b5064; }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--secondary); }
.check-list i { color: var(--primary); font-size: 1.1rem; }

/* ---------- الإحصائيات ---------- */
.stats-band { background: var(--secondary); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.stats-band::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 10% 20%, color-mix(in srgb, var(--primary) 35%, transparent), transparent 40%), radial-gradient(circle at 90% 80%, rgba(255,255,255,.08), transparent 40%); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; position: relative; }
.stat { text-align: center; padding: 10px; position: relative; }
.stat + .stat::before { content: ''; position: absolute; right: -15px; top: 20%; height: 60%; width: 1px; background: rgba(255,255,255,.15); }
.stat-icon { font-size: 1.8rem; color: var(--primary); margin-bottom: 8px; }
.stat-num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; font-family: var(--font-heading); line-height: 1.2; }
.stat-label { color: rgba(255,255,255,.75); font-weight: 600; }

/* ---------- الخدمات ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-img { display: block; aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--light); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.service-card:hover .service-img img { transform: scale(1.08); }
.service-body { padding: 0 28px 28px; position: relative; flex: 1; display: flex; flex-direction: column; }
.service-body .hex-icon { margin-top: -34px; margin-bottom: 14px; border: 0; }
.service-card:hover .hex-icon { background: var(--primary); }
.service-body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.service-body h3 a { color: var(--secondary); }
.service-body h3 a:hover { color: var(--primary); }
.service-body p { color: var(--muted); font-size: .96rem; flex: 1; }
.more-link { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); }
.more-link i { transition: transform .3s; }
.more-link:hover i { transform: translateX(-5px); }

/* ---------- دول الاستيراد ---------- */
.countries-section { background: linear-gradient(180deg, #fff, var(--light)); }
.countries-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; max-width: 900px; margin: 0 auto; }
.country-card { background: #fff; border-radius: var(--radius-lg); padding: 28px; display: flex; gap: 22px; align-items: center; box-shadow: var(--shadow); position: relative; overflow: hidden; border: 1px solid var(--border); transition: .4s var(--ease); }
.country-card:hover { transform: translateY(-6px); border-color: var(--primary); }
.country-flag { width: 92px; flex-shrink: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.country-flag img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.country-card h3 { margin: 0 0 4px; font-size: 1.35rem; }
.country-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.country-ship { position: absolute; left: -12px; bottom: -14px; font-size: 5rem; color: var(--secondary); opacity: .05; }
.import-route { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 40px; font-weight: 800; color: var(--secondary); font-family: var(--font-heading); }
.import-route span { background: #fff; border: 1px dashed var(--secondary); padding: 8px 20px; border-radius: 40px; }
.import-route em { font-style: normal; color: var(--primary); }
.import-route i.fa-arrow-left-long { color: var(--primary); font-size: 1.5rem; animation: routeMove 1.6s infinite; }
.import-route .dest { background: var(--primary); color: #fff; border-color: var(--primary); }
@keyframes routeMove { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-8px); } }

/* ---------- المزايا ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 28px; text-align: center; position: relative; transition: .4s var(--ease); overflow: hidden; }
.feature::after { content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 4px; background: var(--primary); transition: width .5s var(--ease); }
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature:hover::after { width: 100%; }
.feature .hex-icon { margin: 0 auto 18px; }
.feature:hover .hex-icon { background: var(--primary); }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }
.feature-num { position: absolute; top: 14px; left: 20px; font-size: 2.6rem; font-weight: 800; color: var(--secondary); opacity: .06; font-family: var(--font-heading); }

/* ---------- معرض الصور ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--light); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-hover { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(24,30,60,.85), rgba(24,30,60,.2)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; opacity: 0; transition: .4s; }
.gallery-hover i { width: 54px; height: 54px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; font-size: 1.2rem; transform: scale(.6); transition: .4s var(--ease); }
.gallery-hover em { font-style: normal; font-weight: 700; padding: 0 12px; text-align: center; }
.gallery-item:hover .gallery-hover { opacity: 1; }
.gallery-item:hover .gallery-hover i { transform: none; }
.gallery-item.hidden { display: none; }
.gallery-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.gallery-filter button { border: 1px solid var(--border); background: #fff; color: var(--secondary); padding: 9px 24px; border-radius: 40px; cursor: pointer; font-weight: 700; transition: .3s; font-family: var(--font-heading); }
.gallery-filter button:hover, .gallery-filter button.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* صندوق عرض الصور */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(10,12,30,.94); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: .3s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox-caption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; transition: .3s; }
.lightbox button:hover { background: var(--primary); }
.lb-close { top: 20px; left: 20px; }
.lb-prev { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; top: 30px; right: 30px; color: rgba(255,255,255,.7); font-size: .9rem; }

/* ---------- الأخبار ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: .4s var(--ease); display: flex; flex-direction: column; border: 1px solid var(--border); }
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.news-img { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--light); }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.news-card:hover .news-img img { transform: scale(1.07); }
.news-date { position: absolute; top: 16px; right: 16px; background: var(--primary); color: #fff; border-radius: 12px; padding: 6px 12px; text-align: center; line-height: 1.2; font-size: .8rem; font-weight: 700; }
.news-date strong { display: block; font-size: 1.4rem; font-family: var(--font-heading); }
.news-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.news-body h3 { font-size: 1.15rem; line-height: 1.6; }
.news-body h3 a { color: var(--secondary); }
.news-body h3 a:hover { color: var(--primary); }
.news-body p { color: var(--muted); font-size: .95rem; flex: 1; }

/* ---------- الدعوة للتواصل ---------- */
.cta-band { background: linear-gradient(120deg, var(--primary), color-mix(in srgb, var(--primary) 70%, var(--secondary))); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.cta-band::before, .cta-band::after { content: ''; position: absolute; width: 300px; height: 330px; background: rgba(255,255,255,.07); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.cta-band::before { top: -120px; left: 5%; }
.cta-band::after { bottom: -160px; left: 22%; width: 220px; height: 242px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; z-index: 1; }
.cta-inner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 6px; }
.cta-inner p { margin: 0; color: rgba(255,255,255,.88); font-size: 1.08rem; }
.cta-btns { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }

/* ---------- المحتوى النصي ---------- */
.rich-content { font-size: 1.05rem; color: #3d4256; }
.rich-content h2 { font-size: 1.8rem; margin-top: 1.2em; }
.rich-content h3 { font-size: 1.4rem; margin-top: 1.2em; position: relative; padding-right: 16px; }
.rich-content h3::before { content: ''; position: absolute; right: 0; top: .35em; width: 5px; height: 1em; background: var(--primary); border-radius: 4px; }
.rich-content > :first-child { margin-top: 0; }
.rich-content ul { padding-right: 0; list-style: none; }
.rich-content ul li { position: relative; padding-right: 28px; margin-bottom: 8px; }
.rich-content ul li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 0; top: 1px; color: var(--primary); font-size: .85em; }
.rich-content ol { padding-right: 22px; }
.rich-content img { border-radius: var(--radius); margin: 20px 0; }
.rich-content blockquote { margin: 24px 0; padding: 20px 26px; background: var(--light); border-right: 5px solid var(--primary); border-radius: 10px; font-size: 1.1rem; color: var(--secondary); }
.rich-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.rich-content th, .rich-content td { border: 1px solid var(--border); padding: 10px 14px; }
.rich-content th { background: var(--secondary); color: #fff; }
.rich-content iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: var(--radius); }

/* ---------- صفحة من نحن ---------- */
.about-page-grid { display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: start; }
.about-side-card { background: var(--secondary); color: #fff; border-radius: var(--radius-lg); padding: 34px 28px; text-align: center; position: sticky; top: 120px; overflow: hidden; }
.about-side-card::before { content: ''; position: absolute; top: -60px; left: -60px; width: 180px; height: 198px; background: var(--primary); opacity: .25; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.about-side-icon { width: 120px; margin: 0 auto 10px; background: #fff; border-radius: 50%; padding: 14px; position: relative; }
.since { font-size: 1.2rem; font-weight: 700; }
.since strong { font-size: 2.6rem; color: var(--primary); font-family: var(--font-heading); display: block; line-height: 1.2; }
.about-side-card p { color: rgba(255,255,255,.8); }
.about-side-card ul { list-style: none; padding: 0; margin: 0 0 20px; text-align: right; display: grid; gap: 10px; font-size: .95rem; }
.about-side-card ul i { color: var(--primary); width: 22px; }
.about-side-card a { color: #fff; }

/* ---------- صفحات التفاصيل ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start; }
.detail-img { margin: 0 0 28px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.detail-img img { width: 100%; max-height: 520px; object-fit: cover; }
.detail-title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.detail-title h2 { margin: 0; font-size: 1.9rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--border); }
.post-meta { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
.post-meta i { color: var(--primary); }
.post-title { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.share-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); font-weight: 700; color: var(--secondary); }
.share-box a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: .3s; }
.share-box a:hover { transform: translateY(-3px); color: #fff; }
.sh-fb { background: #1877F2; } .sh-wa { background: #25D366; } .sh-x { background: #111; } .sh-tg { background: #229ED9; }
.sidebar { display: grid; gap: 26px; position: sticky; top: 120px; }
.side-box { background: var(--light); border-radius: var(--radius-lg); padding: 26px; }
.side-box h3 { font-size: 1.2rem; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--border); position: relative; }
.side-box h3::after { content: ''; position: absolute; bottom: -2px; right: 0; width: 50px; height: 2px; background: var(--primary); }
.side-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.side-links a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff; border-radius: 10px; color: var(--secondary); font-weight: 600; transition: .3s; }
.side-links a i { color: var(--primary); width: 20px; text-align: center; }
.side-links li.active a, .side-links a:hover { background: var(--secondary); color: #fff; }
.side-links li.active a i, .side-links a:hover i { color: #fff; }
.side-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.side-posts a { display: flex; gap: 12px; align-items: center; color: var(--secondary); }
.side-posts img { width: 74px; height: 64px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.side-posts strong { display: block; font-size: .92rem; line-height: 1.6; }
.side-posts em { font-style: normal; font-size: .8rem; color: var(--muted); }
.side-posts a:hover strong { color: var(--primary); }
.side-contact { background: var(--secondary); color: #fff; }
.side-contact h3 { color: #fff; border-color: rgba(255,255,255,.15); }
.side-contact p { color: rgba(255,255,255,.8); font-size: .95rem; }
.side-contact a { display: flex; align-items: center; gap: 10px; color: #fff; padding: 6px 0; }
.side-contact a i { color: var(--primary); }

/* ---------- اتصل بنا ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px; align-items: start; }
.contact-info h2 { font-size: 2rem; }
.contact-info > p { color: var(--muted); }
.info-cards { display: grid; gap: 14px; margin-top: 24px; }
.info-card { display: flex; gap: 16px; align-items: center; background: var(--light); padding: 16px 20px; border-radius: var(--radius); transition: .3s; }
.info-card:hover { background: #fff; box-shadow: var(--shadow); }
.info-card > i { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: var(--secondary); color: #fff; display: grid; place-items: center; font-size: 1.2rem; }
.info-card.wa > i { background: #25D366; }
.info-card strong { display: block; color: var(--secondary); font-family: var(--font-heading); }
.info-card a, .info-card span { color: var(--muted); display: inline-block; margin-left: 12px; }
.info-card a:hover { color: var(--primary); }
.contact-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.contact-social a { width: 42px; height: 42px; border-radius: 50%; background: var(--secondary); color: #fff; display: grid; place-items: center; transition: .3s; }
.contact-social a:hover { background: var(--primary); transform: translateY(-3px); }
.contact-form-wrap { background: #fff; border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-lg); border-top: 5px solid var(--primary); scroll-margin-top: 130px; }
.contact-form-wrap h3 { font-size: 1.4rem; margin-bottom: 22px; }
.contact-form-wrap h3 i { color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 700; color: var(--secondary); margin-bottom: 6px; font-size: .93rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 12px; background: #fbfbfd;
    color: var(--dark); transition: .25s; outline: 0;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input[dir="ltr"] { text-align: right; }
.captcha-group input { max-width: 160px; }
.captcha-group i { color: var(--primary); }
.type-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.type-switch input { position: absolute; opacity: 0; pointer-events: none; }
.type-switch span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; font-weight: 700; color: var(--secondary); transition: .25s; font-family: var(--font-heading); }
.type-switch input:checked + span { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, #fff); color: var(--primary); }
.type-switch input:focus-visible + span { outline: 2px solid var(--primary); }
.hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-note { text-align: center; color: var(--muted); font-size: .85rem; margin: 14px 0 0; }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.alert ul { margin: 0; padding-right: 18px; }
.alert-success { background: #e8f7ee; color: #157a3d; border: 1px solid #bfe8cf; }
.alert-error { background: #fdecef; color: #a3122d; border: 1px solid #f6c5cf; }
.alert-warning { background: #fff8e6; color: #8a6200; border: 1px solid #f3dfa6; }
.map-section iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.2); }

/* ---------- حالات فارغة وترقيم ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state i { font-size: 3.5rem; color: var(--border); margin-bottom: 16px; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 50px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--border); color: var(--secondary); font-weight: 700; }
.pagination a:hover, .pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .dots { border: 0; }

/* ---------- الفوتر ---------- */
.site-footer { background: #11152c; color: rgba(255,255,255,.72); position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 5px; background: linear-gradient(90deg, var(--primary) 0 50%, var(--secondary) 50%); }
.footer-pattern { position: absolute; left: -80px; top: 40px; width: 380px; height: 420px; background: rgba(255,255,255,.025); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding: 76px 20px 50px; position: relative; }
.footer-logo { height: 120px; width: auto; margin-bottom: 18px; }
.footer-about p { font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1.15rem; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.site-footer h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 36px; height: 3px; background: var(--primary); border-radius: 3px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.72); display: inline-flex; align-items: center; gap: 8px; transition: .3s; }
.footer-links a::before { content: ''; width: 6px; height: 6px; background: var(--primary); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.footer-links a:hover { color: #fff; padding-right: 6px; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: .95rem; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact i { color: var(--primary); margin-top: 6px; width: 16px; }
.footer-contact a { color: rgba(255,255,255,.8); }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.07); color: #fff; display: grid; place-items: center; transition: .3s; }
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; text-align: center; font-size: .9rem; position: relative; }
.footer-bottom p { margin: 0; }

/* ---------- واتساب العائم + للأعلى ---------- */
.whatsapp-float {
    position: fixed; bottom: 26px; right: 26px; z-index: 950; width: 62px; height: 62px; border-radius: 50%;
    background: #25D366; color: #fff; display: grid; place-items: center; font-size: 2rem;
    box-shadow: 0 10px 30px rgba(37,211,102,.45);
}
.whatsapp-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1; animation: waPulse 2s infinite; }
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }
@keyframes waPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.wa-tooltip { position: absolute; right: 74px; white-space: nowrap; background: #fff; color: var(--secondary); padding: 8px 16px; border-radius: 30px; font-size: .88rem; font-weight: 700; box-shadow: var(--shadow); opacity: 0; transform: translateX(10px); transition: .3s; pointer-events: none; }
.whatsapp-float:hover .wa-tooltip { opacity: 1; transform: none; }
.back-to-top { position: fixed; bottom: 30px; left: 26px; z-index: 940; width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--secondary); color: #fff; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(20px); transition: .35s; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--primary); }

/* ---------- حركات الظهور ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].revealed { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================
   التجاوب مع الشاشات
   ========================================================== */
@media (max-width: 1200px) {
    .main-nav > ul > li > a { padding: 10px 11px; font-size: .95rem; }
}
@media (max-width: 1100px) {
    :root { --header-h: 78px; }
    .main-nav { display: none; }
    .header-inner { grid-template-columns: auto 1fr auto; }
    .menu-toggle { display: flex; }
    .header-call { display: grid; }
    .site-logo { justify-self: center; }
    .site-logo img { height: 64px; }
    .site-header.scrolled .site-logo img { height: 54px; }
    .site-header.scrolled .header-inner { min-height: 68px; }
    .services-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-page-grid, .detail-grid { grid-template-columns: 1fr; }
    .about-side-card, .sidebar { position: relative; top: auto; }
    .hide-md { display: none !important; }
}
@media (max-width: 900px) {
    .section { padding: 70px 0; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
    .about-media { max-width: 560px; margin: 0 auto; width: 100%; }
    .cta-inner { flex-direction: column; text-align: center; }
    .slider-arrow { display: none; }
    .stat + .stat::before { display: none; }
    .hide-sm { display: none !important; }
}
@media (max-width: 640px) {
    body { font-size: calc(var(--base-size) - 1px); }
    .container { padding: 0 16px; }
    .section { padding: 56px 0; }
    .section-head { margin-bottom: 36px; }
    .topbar-inner { justify-content: center; min-height: 38px; }
    .topbar-social { display: none; }
    .hide-xs { display: none !important; }
    .hero { min-height: 480px; height: 78vh; }
    .slide-content { align-items: center; text-align: center; }
    .slide-btns { justify-content: center; }
    .slide-btns .btn { padding: 11px 20px; font-size: .9rem; }
    .scroll-down { display: none; }
    .page-banner { height: auto; min-height: 230px; padding: 40px 0; }
    .services-grid, .news-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-grid { grid-template-columns: 1fr; padding-top: 56px; gap: 34px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form-wrap { padding: 26px 20px; }
    .about-media { padding: 0 0 30px 20px; }
    .about-badge { padding: 14px 20px; }
    .about-badge strong { font-size: 2.2rem; }
    .country-card { padding: 20px; gap: 16px; }
    .country-flag { width: 70px; }
    .whatsapp-float { width: 56px; height: 56px; font-size: 1.8rem; bottom: 18px; right: 18px; }
    .wa-tooltip { display: none; }
    .back-to-top { bottom: 22px; left: 18px; width: 44px; height: 44px; }
    .detail-title h2 { font-size: 1.5rem; }
    .btn { padding: 12px 22px; }
    .cta-btns { justify-content: center; }
    .map-section iframe { height: 320px; }
}
