/*
Theme Name: أركان الخدمات المتقدمة
Theme URI: https://arkans.sa
Author: Arkan Advanced Services
Author URI: https://arkans.sa
Description: قالب احترافي لشركة أركان الخدمات المتقدمة، بتصميم عصري مستوحى من موقع إتمام للخدمات.
Version: 2.0.2
Text Domain: arkan-advanced
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  /* ألوان إتمام */
  --primary: #0A3041;
  --primary-dark: #052C57;
  --primary-light: #0E3E53;
  --secondary: #1a5f7a;
  --accent: #00a0dc;
  --accent-light: #4fc3f7;
  --gold: #c9a227;
  --green: #2e7d32;

  /* ألوان محايدة */
  --white: #FFFFFF;
  --background: #FFFFFF;
  --light-bg: #f8f9fa;
  --soft-gray: #f5f7f9;
  --border: #e0e4e8;
  --border-light: #eef1f4;

  /* ألوان النصوص */
  --text-primary: #1a1a1a;
  --text-secondary: #5a6673;
  --text-muted: #9d9d9d;

  /* إعدادات الـ Preloader */
  --preloader-bg: transparent;
  --preloader-blur: 0px;
  --preloader-primary: #003366;
  --preloader-ring-size: 400px;
  --preloader-ring-thickness: 6px;
  --preloader-fade-duration: 800ms;
  --preloader-logo: none;

  /* ظلال */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-primary: 0 8px 24px rgba(10, 48, 65, 0.25);

  /* أبعاد */
  --header-height: 80px;
  --top-bar-height: 40px;
  --container-width: 1200px;
  --border-radius: 12px;
  --border-radius-lg: 20px;

  /* انتقالات */
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
}

/* ===== Preloader ===== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--preloader-bg);
  backdrop-filter: blur(var(--preloader-blur));
  opacity: 1;
  visibility: visible;
  transition: opacity var(--preloader-fade-duration) ease, visibility var(--preloader-fade-duration) ease;
}

#preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#preloader,
.preloader-ring,
.preloader-ring-inner {
  transform-origin: center;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.preloader-ring {
  width: var(--preloader-ring-size);
  height: var(--preloader-ring-size);
  border-radius: 50%;
  border: var(--preloader-ring-thickness) solid rgba(0, 51, 102, 0.18);
  border-top-color: var(--preloader-primary);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.preloader-ring::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 255, 255, 0.35) 25deg, transparent 55deg, transparent 360deg);
  animation: rotate 1.4s linear infinite reverse;
  mix-blend-mode: screen;
}

.preloader-ring-inner {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: calc(var(--preloader-ring-thickness) - 2px) solid rgba(0, 51, 102, 0.14);
  border-top-color: var(--preloader-primary);
  animation: rotate 1.1s linear infinite;
}

.preloader-logo {
  width: 55%;
  height: 55%;
  background: var(--preloader-logo) center/contain no-repeat;
}

@keyframes preloader-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 51, 102, 0.18);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(0, 51, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 51, 102, 0);
  }
}

.preloader-ring {
  animation: rotate 1s linear infinite, preloader-pulse 1.6s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .preloader-ring {
    animation: none;
  }
  .preloader-ring::before {
    animation: none;
  }
  .preloader-ring-inner {
    animation: none;
  }
}

/* ===== إعادة التعيين العامة ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Cairo", "Tajawal", "IBM Plex Arabic", -apple-system, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

a:focus,
button:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary);
}

/* ===== الحاوية ===== */
.container {
  width: min(var(--container-width), 92%);
  margin: 0 auto;
  padding: 0 16px;
}

.container-wide {
  width: min(1400px, 96%);
  margin: 0 auto;
}

/* ===== رابط التخطي ===== */
.skip-link {
  position: absolute;
  right: 16px;
  top: -50px;
  background: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  z-index: 10000;
  transition: top 0.3s ease;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

/* ===== الشريط العلوي ===== */
.top-bar {
  background: var(--primary-dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-bar-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition-fast);
}

.top-bar-contact a:hover {
  color: var(--accent-light);
}

.top-bar-contact svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.top-bar-social a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.top-bar-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ===== الرأس الرئيسي ===== */
.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-branding .custom-logo {
  max-height: 50px;
  width: auto;
}

.site-branding .custom-logo-link {
  display: flex;
  align-items: center;
}

.site-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.site-title a {
  color: inherit;
}

.site-title a:hover {
  color: var(--secondary);
}

.site-description {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== القائمة الرئيسية ===== */
.primary-nav {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-nav li {
  position: relative;
}

.primary-nav a {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: 8px;
  transition: var(--transition-fast);
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  color: var(--accent);
  background: var(--soft-gray);
}

/* القائمة الفرعية */
.primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  padding: 8px;
  z-index: 100;
}

.primary-nav li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav .sub-menu a {
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 6px;
}

.primary-nav .sub-menu a:hover {
  background: var(--soft-gray);
}

/* زر CTA في القائمة */
.nav-cta {
  margin-right: auto;
}

.nav-cta .button {
  padding: 10px 24px;
  font-size: 14px;
}

/* ===== قائمة الهاتف ===== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--primary);
}

.mobile-menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* ===== الأزرار ===== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 700;
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.button:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.button.secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.button.secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.button.accent {
  background: var(--accent);
  border-color: var(--accent);
}

.button.accent:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

.button.white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.button.white:hover {
  background: var(--soft-gray);
  border-color: var(--soft-gray);
}

.button.small {
  padding: 10px 20px;
  font-size: 14px;
}

.button.large {
  padding: 18px 40px;
  font-size: 18px;
}

/* تأثير Pulse للأزرار */
.button.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(10, 48, 65, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(10, 48, 65, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(10, 48, 65, 0);
  }
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero--dark {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--white);
}

.hero--dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-tag svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 32px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-actions .button.secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.hero-actions .button.secondary:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* لوحة Hero الجانبية */
.hero-panel {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  position: relative;
}

.hero-panel::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 3px;
}

.hero-panel h3 {
  margin: 0 0 20px;
  color: var(--white);
  font-size: 20px;
}

.hero-panel ul {
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}

.hero-panel li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.hero-panel li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  gap: 16px;
}

.hero-panel-footer span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

/* صورة Hero */
.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ===== قسم المقاييس ===== */
.metrics {
  background: var(--white);
  padding: 0;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.metric {
  text-align: center;
  padding: 16px;
  position: relative;
}

.metric:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.metric strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.metric span {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.metric.accent strong {
  color: var(--accent);
}

/* ===== الأقسام العامة ===== */
.section {
  padding: 80px 0;
}

.section.light {
  background: var(--light-bg);
}

.section.dark {
  background: var(--primary);
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-header.start {
  text-align: right;
  margin: 0 0 48px;
  max-width: none;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(10, 48, 65, 0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section.dark .section-tag {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-light);
}

.section-title {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 16px;
}

.section.dark .section-title {
  color: var(--white);
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.8;
}

.section.dark .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== شبكة الخدمات ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.services-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ===== البطاقات ===== */
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 28px;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: var(--transition);
}

.service-card:hover::before {
  height: 6px;
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, var(--soft-gray), var(--light-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.service-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary);
  stroke-width: 1.5;
  fill: none;
  transition: var(--transition);
}

.service-card:hover .service-icon svg {
  stroke: var(--white);
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  margin-top: auto;
}

.card-link:hover {
  gap: 12px;
}

.card-link svg {
  width: 18px;
  height: 18px;
  transition: var(--transition);
}

/* ===== قسم من نحن ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content {
  max-width: 560px;
}

.about-list {
  margin: 24px 0;
  display: grid;
  gap: 16px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.about-list li::before {
  content: '';
  width: 24px;
  height: 24px;
  background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--accent);
  border-radius: var(--border-radius-lg);
  z-index: -1;
}

/* ===== قسم CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta h2 {
  color: var(--white);
  font-size: 28px;
  margin: 0 0 8px;
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 16px;
}

.cta-band {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* ===== قسم الأخبار ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  display: flex;
  flex-direction: column;
}

.news-card .news-tag {
  display: inline-flex;
  width: fit-content;
  background: rgba(10, 48, 65, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.news-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.news-card p {
  flex-grow: 1;
}

/* ===== قسم الشركاء ===== */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.partner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  transition: var(--transition);
}

.partner:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.partner img {
  max-height: 50px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.partner:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ===== قسم الإحصائيات ===== */
.stats {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat {
  text-align: center;
  padding: 24px;
}

.stat strong {
  display: block;
  font-size: 48px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.stat span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

/* ===== زر واتساب العائم ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ===== التذييل ===== */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  max-height: 50px;
  margin-bottom: 20px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 20px;
}

.footer-links ul {
  display: grid;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--accent-light);
  padding-right: 8px;
}

.footer-contact {
  display: grid;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-newsletter {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 24px;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin: 0 0 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 14px;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
  padding: 12px 20px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--accent-light);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.footer-legal a:hover {
  color: var(--accent-light);
}

/* ===== صفحة المحتوى ===== */
.site-main {
  min-height: 60vh;
}

.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 80px 0 60px;
  color: var(--white);
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(28px, 3vw, 42px);
  margin: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
  color: var(--accent-light);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.5);
}

.post-content {
  padding: 48px 0 80px;
}

/* ===== التبويبات الحكومية ===== */
.gov-tabs {
  margin-top: 24px;
}

.gov-tabs input[type="radio"] {
  display: none;
}

.gov-tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.gov-tabs label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 600;
  background: var(--white);
  transition: var(--transition-fast);
}

.gov-tabs label:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.gov-tabs input[type="radio"]:checked + label {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.gov-tab-panels {
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 24px;
  background: var(--white);
}

.gov-tab-panel {
  display: none;
}

.gov-tabs .gov-tab-details:checked ~ .gov-tab-panels .gov-tab-panel:first-child {
  display: block;
}

.gov-tabs .gov-tab-req:checked ~ .gov-tab-panels .gov-tab-panel:nth-child(2) {
  display: block;
}

.gov-tabs .gov-tab-docs:checked ~ .gov-tab-panels .gov-tab-panel:nth-child(3) {
  display: block;
}

/* ===== نموذج الاتصال ===== */
.contact-form {
  display: grid;
  gap: 20px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition-fast);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  outline: none;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ===== رسائل التنبيه ===== */
.alert {
  padding: 16px 20px;
  border-radius: var(--border-radius);
  font-size: 15px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.alert-error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.alert-warning {
  background: #fff3e0;
  color: #ef6c00;
  border: 1px solid #ffcc80;
}

/* ===== التصميم المتجاوب ===== */
@media (max-width: 1024px) {
  .hero-layout,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    max-width: none;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .services-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .header-inner {
    padding: 12px 0;
  }

  .primary-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero {
    padding: 60px 0;
    min-height: auto;
  }

  .hero h1 {
    font-size: 28px;
  }

  .metrics-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(2)::after {
    display: none;
  }

  .services-grid,
  .services-grid-4,
  .news-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    flex-direction: column;
    text-align: center;
    padding: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .container {
    width: 94%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .metrics-grid {
    padding: 24px 16px;
    gap: 16px;
  }

  .metric strong {
    font-size: 28px;
  }

  .card {
    padding: 20px;
  }

  .whatsapp-float {
    bottom: 16px;
    left: 16px;
  }

  .whatsapp-float a {
    width: 52px;
    height: 52px;
  }
}

/* ===== دعم شاشات اللمس ===== */
@media (hover: none) {
  .card:hover,
  .partner:hover {
    transform: none;
  }

  .button:hover {
    transform: none;
  }
}

/* ===== Hero مع صورة ===== */
.hero--with-image {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(5, 44, 87, 0.95) 0%, rgba(10, 48, 65, 0.9) 50%, rgba(14, 62, 83, 0.85) 100%);
}

.hero-image-wrapper {
  position: relative;
}

.hero-main-image {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background: var(--white);
  padding: 16px 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-floating-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-floating-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.hero-floating-card strong {
  display: block;
  font-size: 20px;
  color: var(--primary);
}

.hero-floating-card span {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== أيقونات المقاييس ===== */
.metric-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--soft-gray), var(--light-bg));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.metric-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
}

.metric.accent .metric-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.metric.accent .metric-icon svg {
  stroke: var(--white);
}

/* ===== بطاقات الخدمات مع صور ===== */
.service-card--with-image {
  padding: 0;
  overflow: hidden;
  min-height: auto;
}

.service-card-image {
  height: 180px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card--with-image:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-content {
  padding: 24px;
}

.service-card--with-image .service-icon {
  width: 52px;
  height: 52px;
  margin-top: -40px;
  position: relative;
  z-index: 1;
  border: 3px solid var(--white);
}

/* ===== قسم من نحن مع صور ===== */
.about-images {
  position: relative;
  display: grid;
  gap: 20px;
}

.about-image-main {
  position: relative;
}

.about-image-main img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
}

.about-image-secondary {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 200px;
  border: 5px solid var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.about-image-secondary img {
  width: 100%;
  height: auto;
}

.about-badge {
  position: absolute;
  top: 20px;
  right: -20px;
  background: var(--primary);
  color: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-badge strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
}

.about-badge span {
  font-size: 12px;
  opacity: 0.9;
}

/* ===== قسم CTA مع خلفية ===== */
.cta-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 0;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(5, 44, 87, 0.92), rgba(10, 48, 65, 0.88));
}

.cta-centered {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-centered h2 {
  color: var(--white);
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 16px;
}

.cta-centered p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .button.secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.cta-buttons .button.secondary:hover {
  background: var(--white);
  color: var(--primary);
}

/* ===== شبكة المميزات ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 32px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.feature-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--soft-gray), var(--light-bg));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary);
  transition: var(--transition);
}

.feature-card:hover .feature-icon svg {
  stroke: var(--white);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ===== بطاقات الأخبار مع صور ===== */
.news-card--with-image {
  padding: 0;
  overflow: hidden;
}

.news-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-card--with-image:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-image .news-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;
}

.news-card-content {
  padding: 24px;
}

.news-card-content h3 {
  margin-bottom: 12px;
}

.news-card-content p {
  margin-bottom: 16px;
}

/* ===== شريط الشركاء ===== */
.partners-slider {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

/* ===== قسم الإحصائيات مع خلفية ===== */
.stats {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.stats-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(5, 44, 87, 0.95), rgba(10, 48, 65, 0.9));
}

.stats .container {
  position: relative;
  z-index: 1;
}

.stat-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent-light);
}

/* ===== قسم الشهادات ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 32px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-content {
  margin-bottom: 24px;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 20px;
  height: 20px;
  fill: #fbbf24;
}

.testimonial-content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  font-style: italic;
  margin: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author strong {
  display: block;
  color: var(--primary);
  font-size: 16px;
}

.testimonial-author span {
  color: var(--text-secondary);
  font-size: 13px;
}

/* ===== CTA النهائي ===== */
.cta-final {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

/* ===== التصميم المتجاوب للعناصر الجديدة ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-slider {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-image-secondary {
    width: 150px;
    bottom: -20px;
    left: -15px;
  }

  .about-badge {
    right: -10px;
    padding: 16px;
  }

  .about-badge strong {
    font-size: 24px;
  }

  .hero-floating-card {
    right: 10px;
    bottom: -15px;
    padding: 12px 16px;
  }
}

@media (max-width: 768px) {
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .partners-slider {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-image-wrapper {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .about-images {
    margin-top: 40px;
  }

  .about-image-secondary {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    border: none;
  }

  .about-badge {
    position: relative;
    top: auto;
    right: auto;
    margin-top: -20px;
    margin-bottom: 20px;
  }

  .cta-section {
    background-attachment: scroll;
  }

  .stats {
    background-attachment: scroll;
  }

  .hero--with-image {
    background-attachment: scroll;
  }
}

/* ===== قائمة الهاتف ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-close {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-primary);
}

.mobile-menu-close svg {
  width: 24px;
  height: 24px;
}

.mobile-menu-nav ul {
  padding: 16px;
}

.mobile-menu-nav li {
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu-nav a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-menu-nav a:hover {
  color: var(--accent);
}

.mobile-menu-nav .sub-menu {
  padding-right: 16px;
}

.mobile-menu-nav .sub-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Overlay عند فتح القائمة */
body.menu-open::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
}

/* ===== طباعة ===== */
@media print {
  .top-bar,
  .site-header,
  .footer,
  .whatsapp-float,
  .cta,
  .mobile-menu {
    display: none;
  }

  .hero {
    background: none;
    color: var(--text-primary);
    padding: 20px 0;
  }

  .hero h1 {
    color: var(--text-primary);
  }
}
