:root {
    --blue-main: #082ef1;      /* أزرق الشعار */
    --dark-gray: #464648;      /* رمادي الشعار */
    --light-gray: #f3f4f6;
    --bg-body: #ffffff;
    --text-main: #0f172a;
    --muted: #6b7280;
    --white: #ffffff;
    --radius-lg: 22px;
    --radius-md: 18px;
    --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.12);
    --transition: 0.3s ease;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont,
      "Segoe UI", sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.8;
  }
  
  img {
    max-width: 100%;
    display: block;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  .container {
    width: min(1200px, 92%);
    margin: 0 auto;
  }
  
  /* ===== أعلى الصفحة ===== */
  .top-bar {
    background: linear-gradient(90deg, var(--blue-main), var(--dark-gray));
    color: var(--white);
    font-size: 12px;
    padding: 6px 0;
  }
  
  .top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  
  .top-bar-contact {
    opacity: 0.9;
  }
  
  /* ===== الهيدر / النافبار ===== */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  }
  
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 16px;
  }
  
 .nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* إطار الشعار ليظهر في المنتصف وبشكل جميل */
.nav-brand {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  background: radial-gradient(circle at top, rgba(8, 46, 241, 0.15), rgba(70, 70, 72, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.nav-logo {
  width: 82px;
  height: auto;
  object-fit: contain;
}

  
  .nav-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  
  .nav-title-main {
    font-weight: 800;
    font-size: 18px;
    color: var(--blue-main);
  }
  
  .nav-title-sub {
    font-size: 12px;
    color: var(--muted);
  }
  
  .nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
  }
  
  .nav-links a {
    position: relative;
    padding-bottom: 4px;
    color: #374151;
    font-weight: 500;
  }
  
  .nav-links a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue-main), var(--dark-gray));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
  }
  
  .nav-links a:hover::after {
    transform: scaleX(1);
  }
  
  .nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  /* زر القائمة للموبايل */
  .nav-toggle {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    padding: 6px;
  }
  
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
    margin: 4px 0;
    transition: var(--transition);
  }
  
  /* ===== الأزرار ===== */
  .btn {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    white-space: nowrap;
  }
  
  .btn-primary {
    background: linear-gradient(135deg, var(--blue-main), #1d4ed8);
    color: var(--white);
    box-shadow: 0 12px 28px rgba(8, 46, 241, 0.4);
  }
  
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(8, 46, 241, 0.55);
  }
  
  .btn-outline {
    background: transparent;
    color: var(--blue-main);
    border: 1px solid rgba(8, 46, 241, 0.45);
  }
  
  .btn-outline:hover {
    background: rgba(8, 46, 241, 0.04);
  }
  
  .btn-ghost {
    background: transparent;
    color: #1f2937;
    border: 1px dashed rgba(148, 163, 184, 0.7);
  }
  
  .btn-ghost:hover {
    border-style: solid;
  }
  
  /* ===== الهيرو ===== */
  .hero {
    position: relative;
    padding: 50px 0 60px;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(8, 46, 241, 0.07), transparent 60%),
                radial-gradient(circle at bottom right, rgba(70, 70, 72, 0.08), transparent 60%);
  }
  
  .hero-bg-overlay {
    position: absolute;
    inset-inline-start: -15%;
    top: 35%;
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, rgba(8, 46, 241, 0.16), rgba(70, 70, 72, 0.08));
    opacity: 0.3;
    filter: blur(40px);
    transform: skewX(-18deg);
    pointer-events: none;
  }
  
  .hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    z-index: 1;
  }
  
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(8, 46, 241, 0.06);
    color: #1e293b;
    font-size: 12px;
    margin-bottom: 18px;
  }
  
  .badge-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--blue-main);
    box-shadow: 0 0 0 5px rgba(8, 46, 241, 0.2);
  }
  
  .hero-title {
    font-size: clamp(26px, 3.1vw, 36px);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 14px;
  }
  
  .hero-title span {
    color: var(--blue-main);
  }
  
  .hero-text {
    font-size: 14px;
    color: var(--muted);
    max-width: 560px;
    margin-bottom: 18px;
  }
  
  .hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin-bottom: 22px;
    font-size: 13px;
    color: #374151;
  }
  
  .hero-point {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .hero-point-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(8, 46, 241, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
  }
  
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
  }
  
  .hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
  }
  
  .hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  
  .hero-stat strong {
    font-size: 20px;
    color: var(--blue-main);
  }
  
  /* بطاقة الهيرو */
  .hero-card {
    background: var(--white);
    border-radius: 26px;
    padding: 20px 20px 22px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.45);
    position: relative;
    overflow: hidden;
  }
  
  .hero-card::before {
    content: "";
    position: absolute;
    inset-inline-end: -40px;
    top: -40px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(8, 46, 241, 0.15), transparent 70%);
  }
  
  .hero-card-header h2 {
    font-size: 16px;
    margin-bottom: 4px;
  }
  
  .hero-card-header p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
  }
  
  .hero-card-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }
  
  .hero-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: flex-start;
  }
  
  .hero-step-number {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(8, 46, 241, 0.08);
    color: var(--blue-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
  }
  
  .hero-step h3 {
    font-size: 13px;
    margin-bottom: 2px;
  }
  
  .hero-step p {
    font-size: 12px;
    color: var(--muted);
  }
  
  .hero-card-footer {
    font-size: 12px;
    color: #4b5563;
  }
  
  /* معرض الصور داخل الهيرو */
  .hero-gallery {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .hero-gallery-main {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.5);
  }
  
  .hero-gallery-main img {
    width: 100%;
    height: 210px;
    object-fit: cover;
  }
  
  .hero-gallery-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  
  .hero-gallery-thumb {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.45);
  }
  
  .hero-gallery-thumb img {
    width: 100%;
    height: 90px;
    object-fit: cover;
  }
  
  /* ===== الأقسام العامة ===== */
  .section {
    padding: 45px 0;
  }
  
  .section-alt {
    background: #f9fafb;
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 28px;
  }
  
  .section-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--blue-main);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 4px;
  }
  
  .section-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
  }
  
  .section-text {
    font-size: 13px;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
  }
  
  /* عن الشركة */
  .about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 26px;
    align-items: stretch;
  }
  
  .about-panel h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }
  
  .about-panel p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
  }
  
  .about-highlight {
    background: var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 18px 18px 16px;
    border: 1px solid rgba(148, 163, 184, 0.5);
  }
  
  .about-highlight h3 {
    font-size: 15px;
    margin-bottom: 8px;
  }
  
  .about-highlight ul {
    list-style: none;
    font-size: 13px;
    color: #374151;
  }
  
  .about-highlight li {
    position: relative;
    padding-right: 18px;
    margin-bottom: 6px;
  }
  
  .about-highlight li::before {
    content: "▰";
    position: absolute;
    right: 0;
    top: 3px;
    font-size: 9px;
    color: var(--blue-main);
  }
  
  /* البطاقات العامة */
  .cards-grid {
    display: grid;
    gap: 18px;
  }
  
  .cards-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  
  .cards-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 16px 14px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.45);
    position: relative;
    overflow: hidden;
  }
  
  /* خدمات */
  .service-card .card-icon {
    width: 38px;
    height: 38px;
    border-radius: 18px;
    background: rgba(8, 46, 241, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .service-card h3 {
    font-size: 14px;
    margin-bottom: 6px;
  }
  
  .service-card p {
    font-size: 12px;
    color: var(--muted);
  }
  
  /* المنتجات */
  .products-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.7fr);
    gap: 24px;
    align-items: flex-start;
  }
  
  .products-intro h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }
  
  .products-intro p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
  }
  
  .products-intro ul {
    list-style: none;
    font-size: 13px;
    color: #374151;
    margin-bottom: 12px;
  }
  
  .products-intro li {
    position: relative;
    padding-right: 16px;
    margin-bottom: 6px;
  }
  
  .products-intro li::before {
    content: "•";
    position: absolute;
    right: 2px;
    top: 2px;
    color: var(--blue-main);
  }
  
  .products-grid .card {
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  }
  
  .product-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(8, 46, 241, 0.06);
    color: #1e293b;
    margin-bottom: 6px;
  }
  
  .product-card h3 {
    font-size: 14px;
    margin-bottom: 4px;
  }
  
  .product-card p {
    font-size: 12px;
    color: var(--muted);
  }
  
  /* معرض الصور العام */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
  /* صف خاص لصور واجهات الفروع */
.gallery-fronts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

  .gallery-item {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    font-size: 12px;
  }
  
  .gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
  }
  
  .gallery-item figcaption {
    padding: 8px 10px;
    color: #4b5563;
  }
  
  /* مشاريع */
  .project-card h3 {
    font-size: 14px;
    margin-bottom: 6px;
  }
  
  .project-card p {
    font-size: 12px;
    color: var(--muted);
  }
  
  /* تواصل معنا */
  .contact-section {
    background: radial-gradient(circle at top, rgba(8, 46, 241, 0.05), transparent 55%);
  }
  
  .contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 24px;
  }
  
  .contact-info-card h3,
  .contact-form-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .contact-info-card p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
  }
  
  .contact-info {
    font-size: 13px;
    color: #374151;
    margin-bottom: 12px;
  }
  
  .contact-info .label {
    display: inline-block;
    width: 70px;
    color: var(--muted);
  }
  
  .contact-note {
    font-size: 12px;
    color: var(--muted);
  }
  
  .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  label {
    font-size: 12px;
    color: #374151;
    font-weight: 500;
  }
  
  input,
  textarea,
  select {
    font-family: inherit;
    font-size: 13px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    padding: 8px 10px;
    outline: none;
    background: #f9fafb;
    transition: var(--transition);
  }
  
  input:focus,
  textarea:focus,
  select:focus {
    border-color: var(--blue-main);
    box-shadow: 0 0 0 1px rgba(8, 46, 241, 0.25);
    background: #ffffff;
  }
  
  textarea {
    resize: vertical;
    min-height: 110px;
  }
  
  .form-footer {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  
  .form-note {
    font-size: 11px;
    color: #9ca3af;
  }
  
  .form-feedback {
    margin-top: 8px;
    font-size: 12px;
  }
  
  /* الفوتر */
  .site-footer {
    background: #0b1120;
    color: rgba(248, 250, 252, 0.9);
    padding: 14px 0 12px;
    font-size: 12px;
  }
  
  .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
  }
  
  .footer-links a {
    color: rgba(248, 250, 252, 0.8);
  }
  
  .footer-links a:hover {
    color: var(--blue-main);
  }
  
  /* ===== استجابة الشاشات ===== */
  @media (max-width: 1024px) {
    .hero-grid,
    .about-grid,
    .products-layout,
    .contact-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .hero-card {
      max-width: 420px;
      margin: 0 auto;
    }
  
    .cards-grid-4 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  
    .cards-grid-3 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  
    .gallery-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  
  @media (max-width: 768px) {
    .top-bar-inner {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .nav-links,
    .nav-cta {
      display: none;
    }
  
    .nav-toggle {
      display: block;
    }
  
    .nav-links.mobile-open {
      display: flex;
      flex-direction: column;
      position: absolute;
      inset-inline: 0;
      top: 100%;
      background: #ffffff;
      padding: 8px 18px 12px;
      border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    }
  
    .nav-links.mobile-open a {
      padding: 6px 0;
      border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
    }
  
    .hero {
      padding: 32px 0 44px;
    }
  
    .hero-stats {
      gap: 12px;
    }
  
    .cards-grid-4,
    .cards-grid-3,
    .form-row {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .gallery-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  
    .form-footer {
      flex-direction: column;
      align-items: stretch;
    }
  }
  
  @media (max-width: 480px) {
  .nav-title-main {
    font-size: 16px;
  }

  .nav-logo {
    width: 64px;
  }

  .hero-title {
    font-size: 24px;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

  .contact-info a,
  .top-bar-contact a {
    color: #1d4ed8; /* الأزرق */
    font-weight: bold;
  }
  
  .contact-info a:hover,
  .top-bar-contact a:hover {
    text-decoration: underline;
  }
/* خريطة Google داخل صفحة التواصل */
.map-wrapper {
    margin-top: 24px;
  }
  
  .map-title {
    font-size: 15px;
    margin-bottom: 8px;
    color: #0f172a;
    font-weight: 700;
  }
  
  .map-frame {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
  }
  
  /* نجعل الخريطة ريسبونسيف */
  .map-frame iframe {
    width: 100%;
    height: 320px;
    border: 0;
  }
  
  @media (max-width: 480px) {
    .map-frame iframe {
      height: 260px;
    }
  }
  /* خريطة Google داخل صفحة التواصل */
.maps-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.map-wrapper {
  /* كل خريطة كـ بلوك منفصل */
}

.map-title {
  font-size: 15px;
  margin-bottom: 8px;
  color: #0f172a;
  font-weight: 700;
}

.map-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
}

/* نجعل الخريطة ريسبونسيف */
.map-frame iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

@media (max-width: 768px) {
  .maps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .map-frame iframe {
    height: 260px;
  }
}
/* ===== Lightbox لعرض صور المعرض بالحجم الكامل ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 18px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
  background: #000;
}
   