/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Tajawal", sans-serif;
  background-color: #f7f9fc;
  color: #1a1a1a;
  line-height: 1.6;
}

:root {
  --blue: #416ea8;
  --gold: #f9c416;
  --light-blue: #67acca;
  --orange: #f29516;

  --gray-light: #e8eef5;
  --gray-mid: #d3d9e3;
  --gray-dark: #555;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* =========================
   OFFER BAR (عروض خاصة)
   ========================= */
.offer-bar {
  background-color: var(--orange);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
  width: 100%;
  max-height: 60px;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.offer-row {
  display: flex;
  align-items: center;
  gap: 15px;
  white-space: nowrap;
  width: 100%;
}

.offer-title {
  font-weight: 700;
  font-size: 1rem;
}

/* حاوية النص المتحرك */
.marquee-container {
  position: relative;
  overflow: hidden;
  flex: 1;
  height: 1.4em; /* يمنع الاهتزاز */
}

/* النص المتحرك من اليسار إلى اليمين */
.marquee {
  position: absolute;
  white-space: nowrap;
  left: -100%; /* يبدأ خارج الشاشة من اليسار */
  animation: marqueeMoveLTR 22s linear infinite;
  font-weight: 600;
}

/* الحركة: يدخل من اليسار → يخرج من اليمين بالكامل */
@keyframes marqueeMoveLTR {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(200%);
  }
}

/* =========================
   HEADER
   ========================= */
.top-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--gray-mid);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* logo image في الهيدر */
.logo-image img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.logo-text h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue);
}

.logo-text p {
  font-size: 0.85rem;
  color: var(--gray-dark);
}

/* صف اللغة داخل القائمة – مخفي على الديسكتوب */
.mobile-lang-row {
  display: none;
}

/* nav */
.main-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  text-decoration: none;
  color: var(--blue);
  padding: 5px 10px;
  border-radius: 50px;
  transition: 0.25s;
  font-size: 0.9rem;
}

.main-nav a:hover {
  background-color: var(--gold);
  color: #000;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--gray-mid);
  border-radius: 999px;
  background: #f8fbff;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--blue);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: 0.2s ease;
}

.lang-btn:hover {
  background: #e9f1fb;
}

.lang-btn.active {
  background: var(--blue);
  color: #fff;
}

/* =========================
   SECTIONS GENERIC
   ========================= */
.section {
  padding: 45px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--blue);
}

.section-text {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
}

/* =========================
   HERO
   ========================= */
.hero {
  background: linear-gradient(120deg, var(--blue), var(--light-blue), var(--orange));
  background-size: 200% 200%;
  animation: heroGradient 16s ease infinite;
  color: #fff;
  padding: 60px 0 70px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.hero-left {
  width: 100%;
  max-width: 680px;
}

.hero-right {
  width: 100%;
  max-width: 480px;
}

.hero-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 0.98rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.hero-mini {
  margin-top: 12px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero-counters {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.counter-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.counter-number {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
}

.counter-label {
  margin-top: 6px;
  font-size: 0.83rem;
  opacity: 0.95;
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== HERO RIGHT: logo + slider ثابت ===== */
.hero-right {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* لوقو فوق السلايدر */
.hero-logo img {
  width: 240px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* إطار السلايدر */
.hero-slider-viewport {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 120px;
}

/* الشرائح فوق بعض */
.hero-slide {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-slide h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.hero-slide p {
  font-size: 0.9rem;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* نقاط السلايدر */
.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.hero-dot.active {
  background: #fff;
}

/* =========================
   SERVICES – Premium Card Grid
   ========================= */
.services-section {
  background: #fff;
}

/* =========================
   SERVICES – Compact List
   ========================= */
.svc-grid {
  display: flex;
  flex-direction: column;
  border-top: 1.5px solid #e8ecf0;
  margin-top: 30px;
}

.svc-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 18px 14px 18px 10px;
  border-bottom: 1.5px solid #e8ecf0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  background: transparent;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: background 0.22s ease;
}

/* خط accent جانبي */
.svc-card::before {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--card-accent, var(--blue));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
  border-radius: 0 2px 2px 0;
}

.svc-card:hover {
  background: color-mix(in srgb, var(--card-accent, var(--blue)) 5%, #fff);
}

.svc-card:hover::before { transform: scaleY(1); }

/* رقم */
.svc-card-num {
  position: static;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--card-accent, var(--blue));
  opacity: 0.45;
  min-width: 20px;
  letter-spacing: 0.03em;
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
}

.svc-card:hover .svc-card-num { opacity: 0.8; }

/* أيقونة */
.svc-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--card-accent, var(--blue)) 10%, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s;
}

.svc-card-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.svc-card:hover .svc-card-icon {
  background: color-mix(in srgb, var(--card-accent, var(--blue)) 16%, #fff);
  transform: rotate(-5deg) scale(1.08);
}

/* النصوص */
.svc-card-body { flex: 1; min-width: 0; }

.svc-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2a40;
  margin: 0 0 3px;
  transition: color 0.22s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.svc-card:hover .svc-card-title { color: var(--card-accent, var(--blue)); }

.svc-card-desc {
  font-size: 0.80rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* سهم */
.svc-card-cta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--card-accent, var(--blue));
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.22s, transform 0.22s;
  flex-shrink: 0;
}

.svc-card-cta i { font-size: 0.68rem; transition: transform 0.2s; }

.svc-card:hover .svc-card-cta { opacity: 1; transform: translateX(0); }
.svc-card:hover .svc-card-cta i { transform: translateX(-3px); }

/* لون كل خدمة */
.svc-card:nth-child(1) { --card-accent: #416ea8; }
.svc-card:nth-child(2) { --card-accent: #0891b2; }
.svc-card:nth-child(3) { --card-accent: #7c3aed; }
.svc-card:nth-child(4) { --card-accent: #ea580c; }
.svc-card:nth-child(5) { --card-accent: #059669; }
.svc-card:nth-child(6) { --card-accent: #1e3a5f; }

/* ── Responsive ── */
@media (max-width: 540px) {
  .svc-card { gap: 12px; padding: 14px 10px; }
  .svc-card-num { display: none; }
  .svc-card-icon { width: 40px; height: 40px; border-radius: 10px; }
  .svc-card-icon img { width: 22px; height: 22px; }
  .svc-card-title { font-size: 0.88rem; white-space: normal; }
  .svc-card-desc { -webkit-line-clamp: 2; }
  .svc-card-cta { opacity: 1; transform: translateX(0); }
}

/* =========================
   STRIP SECTIONS
   ========================= */
.strip-section {
  background-color: #eef4fb;
}

.strip-section.alt {
  background-color: #fff7dd;
}

.section-list {
  max-width: 700px;
  margin: 0 auto;
  padding-right: 20px;
  list-style: disc;
  font-size: 0.98rem;
}

/* =========================
   مشترك: بطاقات القسمين (who + why)
   ========================= */
.who-card,
.why-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid var(--gray-light);
  padding: 26px 20px 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

/* خط accent علوي */
.who-card::before,
.why-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: var(--card-accent, var(--blue));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.who-card:hover,
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15,23,42,0.10);
  border-color: transparent;
}

.who-card:hover::before,
.why-card:hover::before {
  transform: scaleX(1);
}

/* =========================
   WHO WE WORK WITH
   ========================= */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 25px;
}

.who-card:nth-child(1) { --card-accent: #0891b2; }
.who-card:nth-child(2) { --card-accent: #416ea8; }
.who-card:nth-child(3) { --card-accent: #7c3aed; }

.who-icon {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--card-accent, var(--blue)) 11%, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.35s;
}

.who-card:hover .who-icon {
  background: color-mix(in srgb, var(--card-accent, var(--blue)) 18%, #fff);
  transform: rotate(-6deg) scale(1.08);
}

.who-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.who-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2a40;
  margin: 0;
  transition: color 0.25s;
}

.who-card:hover h3 { color: var(--card-accent, var(--blue)); }

.who-card p {
  font-size: 0.84rem;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
}

/* =========================
   WHY US
   ========================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 25px;
}

.why-card:nth-child(1) { --card-accent: #059669; }
.why-card:nth-child(2) { --card-accent: #416ea8; }
.why-card:nth-child(3) { --card-accent: #ea580c; }
.why-card:nth-child(4) { --card-accent: #d97706; }

.why-icon {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--card-accent, var(--blue)) 11%, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.35s;
}

.why-card:hover .why-icon {
  background: color-mix(in srgb, var(--card-accent, var(--blue)) 18%, #fff);
  transform: rotate(-6deg) scale(1.08);
}

.why-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.why-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2a40;
  margin: 0;
  transition: color 0.25s;
}

.why-card:hover h3 { color: var(--card-accent, var(--blue)); }

.why-card p {
  font-size: 0.83rem;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
}

/* ── Responsive ── */
/* =========================
   PROMO SECTION – Card Carousel
   ========================= */

.promo-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

.promo-text {
  margin: 0 auto;
}

.promo-carousel {
  margin-top: 26px;
  overflow: hidden;
}

.promo-stage {
  display: grid;
  align-items: center;
  overflow: hidden;
}

.promo-item {
  grid-area: 1 / 1;
  width: min(100%, 390px);
  display: block;
  margin: 0 auto;
  border: 0;
  padding: 12px;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  position: relative;
  border-radius: 30px;
  cursor: pointer;
  opacity: 0;
  transform: translate3d(42px, 0, 0) scale(0.93);
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
  pointer-events: none;
  filter: blur(1px);
  z-index: 0;
  will-change: transform, opacity;
}

.promo-item.is-prev {
  transform: translate3d(-42px, 0, 0) scale(0.93);
}

.promo-item.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
  filter: none;
  z-index: 2;
}

.promo-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.75), transparent 35%),
    linear-gradient(145deg, rgba(65,110,168,0.16), rgba(255,186,73,0.12));
  box-shadow: 0 24px 60px rgba(15,23,42,0.16);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}


.promo-item:hover::before,
.promo-item:focus-visible::before {
  transform: translateY(-5px);
  box-shadow: 0 30px 72px rgba(15,23,42,0.2);
}

.promo-item:focus-visible {
  outline: none;
}

.promo-thumb {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 24px;
}

.promo-badge {
  position: absolute;
  inset-block-start: 26px;
  inset-inline-end: 26px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(65,110,168,0.94);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(65,110,168,0.28);
  z-index: 2;
}

.promo-badge--live {
  background: linear-gradient(135deg, #416ea8, #5f8fca);
}

.promo-badge--live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,0.18);
  animation: pulseLive 1.4s ease-in-out infinite;
}


.promo-dots {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.promo-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(65,110,168,0.22);
  cursor: pointer;
  transition: width 0.28s ease, transform 0.28s ease, background 0.28s ease;
}

.promo-dot:hover,
.promo-dot:focus-visible {
  background: rgba(65,110,168,0.48);
  transform: translateY(-1px);
}

.promo-dot.is-active {
  width: 38px;
  background: #416ea8;
}

@media (max-width: 640px) {
  .promo-item {
    width: 100%;
    padding: 8px;
    border-radius: 24px;
  }

  .promo-item::before {
    border-radius: 24px;
  }

  .promo-thumb {
    border-radius: 20px;
  }

  .promo-badge {
    inset-block-start: 18px;
    inset-inline-end: 18px;
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.72rem;
  }

}

#promo.promo-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

#promo .promo-text {
  margin: 0 auto;
}

#promo .promo-carousel .promo-badge {
  position: absolute;
  inset-block-start: 26px;
  inset-inline-end: 26px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(65,110,168,0.94);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(65,110,168,0.28);
  z-index: 2;
}

#promo .promo-carousel .promo-badge--live {
  background: linear-gradient(135deg, #416ea8, #5f8fca);
}

#promo .promo-carousel .promo-badge--live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,0.18);
  animation: pulseLive 1.4s ease-in-out infinite;
}

@media (max-width: 640px) {
  #promo .promo-carousel .promo-badge {
    inset-block-start: 18px;
    inset-inline-end: 18px;
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.72rem;
  }
}

@media (max-width: 900px) {
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .who-grid { grid-template-columns: 1fr; }
  .why-grid  { grid-template-columns: 1fr; }
}

/* =========================
   CONTACT – Creative Layout
   ========================= */
.contact-section {
  background-color: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
}

/* البطاقات */
.contact-card {
  background: #f8fbff;
  border-radius: 18px;
  padding: 22px 24px 26px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.contact-form-card .contact-title {
  text-align: right;
  margin-bottom: 10px;
}

.contact-intro {
  font-size: 0.95rem;
  color: var(--gray-dark);
  margin-bottom: 14px;
}

/* فورم الاتصال */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  color: var(--blue);
  gap: 4px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--gray-mid);
  font-family: inherit;
  font-size: 0.95rem;
  background: #ffffff;
}

.contact-form textarea {
  resize: vertical;
}

/* بطاقة المعلومات */
.contact-subtitle {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--blue);
}

.dept-list {
  list-style: none;
  margin-bottom: 18px;
}

.dept-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed #d5dfec;
  font-size: 0.95rem;
}

.dept-list li span {
  color: #333;
}

.dept-list li a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
  font-family: inherit;
}

.dept-list li a:hover {
  text-decoration: underline;
}

/* سوشيال داخل تواصل معنا */
.social-block {
  margin-top: 10px;
}

.contact-social-text {
  font-size: 0.9rem;
  color: var(--gray-dark);
  margin-bottom: 10px;
}

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

.social-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: 0.25s;
  font-size: 1.1rem;
}

.social-circle:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  background: var(--gold);
  color: #000;
}

/* ألوان المنصات */
.social-circle.whatsapp { background-color: #25D366; }
.social-circle.instagram {
  background: radial-gradient(circle at 30% 30%, #fdf497 0, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.social-circle.facebook { background-color: #1877f2; }
.social-circle.tiktok   { background-color: #000000; }
.social-circle.linkedin { background-color: #0a66c2; }
.social-circle.youtube  { background-color: #ff0000; }
.social-circle.email    { background-color: var(--blue); }
.social-circle.website  { background-color: var(--light-blue); }

/* =========================
   PROMO SECTION (العروض و الجديد)
   ========================= */
.promo-section {
  background-color: #ffffff;
}

.promo-text {
  max-width: 700px;
  margin: 0 auto 20px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--gray-dark);
}

/* =========================
   PROMO SECTION – Redesign
   ========================= */

/* العرض الحالي */
.promo-featured-wrap {
  margin-top: 18px;
}

.promo-featured {
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 8px 32px rgba(15,23,42,0.12);
  transition: box-shadow 0.28s, transform 0.28s;
  background: #f0f4fb;
  display: block;
}

.promo-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(15,23,42,0.18);
}

.promo-featured .promo-thumb {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* شارة "مباشر" */
.promo-badge--live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #416ea8;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(65,110,168,0.35);
}

.promo-live-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulseLive 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* overlay "اضغط للتكبير" */
.promo-overlay-cta {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,0);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: background 0.28s, opacity 0.28s;
  border-radius: 16px;
}

.promo-featured:hover .promo-overlay-cta {
  background: rgba(15,23,42,0.35);
  opacity: 1;
}

/* عنوان "عروض سابقة" */
.promo-archive-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 22px 0 10px;
}

/* شريط العروض السابقة */
.promo-archive-strip {
  display: flex;
  flex-direction: row;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.promo-archive-strip::-webkit-scrollbar { display: none; }

.promo-archive-strip .promo-item {
  flex: 0 0 calc(33.33% - 8px);
  min-width: 0;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 14px rgba(15,23,42,0.09);
  transition: transform 0.25s, box-shadow 0.25s;
  background: #f0f4fb;
}

.promo-archive-strip .promo-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(15,23,42,0.15);
}

.promo-archive-strip .promo-thumb {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* شارة عامة للعروض السابقة إن أُضيفت */
.promo-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(65,110,168,0.88);
  color: #fff;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 2;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .promo-archive-strip .promo-item {
    flex: 0 0 70%;
  }
}

@media (max-width: 400px) {
  .promo-archive-strip .promo-item {
    flex: 0 0 80%;
  }
}

/* =========================
   CONTACT – Responsive
   ========================= */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 18px 16px 22px;
  }

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

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

}

@media (max-width: 520px) {
  .social-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}

/* buttons */
.btn-primary {
  background-color: var(--orange);
  border: 2px solid transparent;
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.25s;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary:hover {
  background-color: var(--gold);
  color: #000;
}

.btn-outline {
  border-radius: 50px;
  padding: 10px 20px;
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  font-size: 1rem;
  text-decoration: none;
  transition: 0.25s;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
  cursor: pointer;
}

.btn-outline:hover {
  background-color: #fff;
  color: var(--blue);
}

/* map (لو احتجته لاحقاً) */
.map-box h3 {
  text-align: right;
  margin-bottom: 10px;
  color: var(--blue);
}

.map-placeholder {
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  overflow: hidden;
  min-height: 220px;
  background-color: #eef4fb;
}

.map-placeholder iframe {
  width: 100%;
  height: 260px;
  border: 0;
}

/* =========================
   TESTIMONIALS SLIDER
   ========================= */
.testimonial-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.testimonial-viewport {
  position: relative;
  width: min(100%, 650px);
  min-height: 260px;
}

/* كل الشرائح فوق بعض */
.testimonial-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.testimonial-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* بطاقة الفيسبوك */
.fb-card {
  background-color: #fff;
  border-radius: 12px;
  border: 1px solid var(--gray-light);
  padding: 8px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  width: 100%;
}

.fb-card iframe {
  width: 100% !important;
  max-width: 100% !important;
}

/* =========================
   خلفية موحدة للأقسام
   ========================= */
.section,
.strip-section,
.strip-section.alt {
  background-color: #ffffff !important;
}

section {
  background-color: #ffffff !important;
}

/* =========================
   PROMO MODAL – Responsive
   ========================= */
.promo-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.promo-modal.open {
  display: flex;
}

.promo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

/* حجم الإطار المنبثق */
.promo-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 10px;
  width: 90%;
  max-width: 420px;
  max-height: 80vh;
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
  animation: promoPop 0.35s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* الصورة داخل الإطار */
.promo-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  border-radius: 10px;
  object-fit: contain;
}

/* زر الإغلاق */
.promo-close {
  position: absolute;
  top: 6px;
  left: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.12);
  color: #333;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-close:hover {
  background: var(--orange);
  color: #fff;
}

/* --- Platform Modal Keyframes --- */
@keyframes slideFromTop {
  from { opacity: 0; transform: translateY(-24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

@keyframes slideToTop {
  from { opacity: 1; transform: translateY(0)    scale(1); }
  to   { opacity: 0; transform: translateY(-24px) scale(0.97); }
}

@keyframes progressDrain {
  from { width: 100%; }
  to   { width: 0%; }
}

/* --- Platform Modal (top-center notification) --- */
.platform-modal {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  width: 92%;
  max-width: 390px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0s;
}

.platform-modal.open {
  pointer-events: auto;
  opacity: 1;
}

.platform-modal-backdrop {
  display: none;
}

.platform-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.2), 0 4px 14px rgba(65,110,168,0.14);
  text-align: right;
}

.platform-modal.open .platform-modal-content {
  animation: slideFromTop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.platform-modal.closing .platform-modal-content {
  animation: slideToTop 0.28s ease-in forwards;
}

/* Header gradient */
.platform-modal-header {
  background: linear-gradient(135deg, var(--blue) 0%, var(--light-blue) 100%);
  padding: 14px 16px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.platform-modal-header-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.22);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  flex-shrink: 0;
}

.platform-modal-header-text {
  flex: 1;
}

.platform-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff !important;
  margin: 0 0 2px;
}

.platform-modal-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85) !important;
  margin: 0;
}

/* Links body */
.platform-links {
  padding: 13px 14px 14px;
  display: grid;
  gap: 9px;
}

.platform-link {
  text-decoration: none;
  border: 1.5px solid #e4edf9;
  border-radius: 14px;
  background: #f6faff;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  transition: 0.22s ease;
}

.platform-link-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), var(--light-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

.platform-link-icon.nfc {
  background: linear-gradient(135deg, #0e4578, #1a6dbf);
}

.platform-link-text {
  flex: 1;
  text-align: right;
}

.platform-link strong {
  display: block;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 700;
}

.platform-link span {
  color: #6b7280;
  font-size: 0.76rem;
  direction: ltr;
  display: block;
}

.platform-link-arrow {
  color: var(--blue);
  opacity: 0.35;
  font-size: 0.8rem;
  transition: opacity 0.2s, transform 0.2s;
}

.platform-link:hover {
  border-color: var(--blue);
  background: #eaf2ff;
  box-shadow: 0 6px 18px rgba(65,110,168,0.13);
  transform: translateY(-1px);
}

.platform-link:hover .platform-link-arrow {
  opacity: 1;
  transform: translateX(-3px);
}

/* Progress bar countdown */
.platform-progress-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  width: 100%;
  transform-origin: right;
}

.platform-modal.open .platform-progress-bar {
  animation: progressDrain 3s linear forwards;
}

/* Close button (inside header) */
.platform-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.22);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-close:hover {
  background: rgba(255,255,255,0.42);
  color: #fff;
}

/* =========================
   PLATFORM LAUNCHER (persistent top bar)
   ========================= */
.platform-launcher {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(65,110,168,0.14);
  border-radius: 999px;
  padding: 5px 12px 5px 8px;
  box-shadow: 0 6px 24px rgba(15,23,42,0.12), 0 1px 4px rgba(65,110,168,0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s ease, transform 0.38s ease;
}

.platform-launcher.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.platform-launcher-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.platform-launcher-sep {
  width: 1px;
  height: 16px;
  background: rgba(65,110,168,0.18);
  border-radius: 1px;
}

.platform-launcher-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.platform-launcher-btn.site {
  background: linear-gradient(135deg, var(--blue), var(--light-blue));
}

.platform-launcher-btn.nfc {
  background: linear-gradient(135deg, #0e4578, #1a6dbf);
}

.platform-launcher-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(65,110,168,0.35);
}

.platform-launcher-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,23,42,0.88);
  color: #fff;
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}

.platform-launcher-btn:hover::after {
  opacity: 1;
}

/* =========================
   PLATFORM – MOBILE REDESIGN
   ========================= */
@media (max-width: 600px) {

  /* تعريف أنيميشن خاص بالموبايل */
  @keyframes slideFromBottom {
    from { opacity: 0; transform: translateY(110%); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes slideToBottom {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(110%); }
  }

  /* إعادة تموضع النافذة → Bottom Sheet
     نستخدم display:flex دائماً على الموبايل
     والإخفاء يكون عبر transform على الـ content */
  .platform-modal {
    display: flex !important;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
    opacity: 1;
    flex-direction: column;
    justify-content: flex-end;
    background: transparent;
    transition: background 0.3s ease;
    pointer-events: none;
  }

  .platform-modal.open {
    pointer-events: auto;
    background: rgba(15,23,42,0.35);
  }

  .platform-modal-content {
    border-radius: 22px 22px 0 0;
    /* مقبض سحب بصري */
    padding-top: 6px;
  }

  .platform-modal-content::before {
    content: "";
    display: block;
    width: 38px;
    height: 4px;
    background: rgba(0,0,0,0.13);
    border-radius: 999px;
    margin: 0 auto 6px;
  }

  /* أنيميشن من الأسفل */
  .platform-modal.open .platform-modal-content {
    animation: slideFromBottom 0.38s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  }

  .platform-modal.closing .platform-modal-content {
    animation: slideToBottom 0.26s ease-in forwards;
  }

  /* الإخفاء الكامل عند عدم الفتح */
  .platform-modal:not(.open):not(.closing) .platform-modal-content {
    transform: translateY(120%);
    opacity: 0;
  }

  /* تصغير الـ Header */
  .platform-modal-header {
    padding: 11px 14px 10px;
    gap: 9px;
  }

  .platform-modal-header-icon {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .platform-modal-title {
    font-size: 0.88rem;
  }

  .platform-modal-text {
    font-size: 0.72rem;
  }

  .platform-close {
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
  }

  /* تصغير الروابط */
  .platform-links {
    padding: 10px 12px 16px;
    gap: 8px;
  }

  .platform-link {
    padding: 10px 12px;
    border-radius: 13px;
    gap: 10px;
  }

  .platform-link-icon {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .platform-link strong {
    font-size: 0.86rem;
  }

  .platform-link span {
    font-size: 0.71rem;
  }

  .platform-link-arrow {
    font-size: 0.72rem;
  }

  /* شريط التقدم أرفع */
  .platform-progress-bar {
    height: 2.5px;
  }

  /* إخفاء المنصات على الموبايل – تظهر فقط على الديسكتوب */
  .platform-launcher,
  .platform-launcher.show {
    display: none !important;
  }
}

/* =========================
   LTR OVERRIDES
   ========================= */
html[dir="ltr"] .main-nav {
  justify-content: flex-start;
}

html[dir="ltr"] .hero {
  text-align: left;
}

html[dir="ltr"] .hero-slide {
  text-align: left;
}

html[dir="ltr"] .service-number {
  left: auto;
  right: 10px;
}

html[dir="ltr"] .promo-close {
  left: auto;
  right: 8px;
}

/* Services List – LTR overrides */
html[dir="ltr"] .svc-card::before     { right: auto; left: 0; border-radius: 2px 0 0 2px; }
html[dir="ltr"] .svc-card-title,
html[dir="ltr"] .svc-card-desc        { text-align: left; }
html[dir="ltr"] .svc-card-cta         { flex-direction: row-reverse; transform: translateX(-6px); }
html[dir="ltr"] .svc-card:hover .svc-card-cta { transform: translateX(0); }
html[dir="ltr"] .svc-card:hover .svc-card-cta i { transform: translateX(3px); }

html[dir="ltr"] .platform-modal-header {
  flex-direction: row-reverse;
}

html[dir="ltr"] .platform-link {
  flex-direction: row-reverse;
}

html[dir="ltr"] .platform-link-text {
  text-align: left;
}

html[dir="ltr"] .platform-link-arrow {
  transform: rotate(180deg);
}

html[dir="ltr"] .platform-link:hover .platform-link-arrow {
  transform: rotate(180deg) translateX(-3px);
}

html[dir="ltr"] .contact-form-card .contact-title,
html[dir="ltr"] .map-box h3,
html[dir="ltr"] .faq-question {
  text-align: left;
}

html[dir="ltr"] .contact-form label {
  align-items: flex-start;
}

html[dir="ltr"] .dept-list li {
  direction: ltr;
}

/* أنيميشن بسيطة عند الظهور */
@keyframes promoPop {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================
   FOOTER
   ========================= */
.footer {
  background-color: var(--blue);
  color: #fff;
  text-align: center;
  padding: 12px;
  font-size: 0.9rem;
}

/* =========================
   RESPONSIVE عامة
   ========================= */
@media (max-width: 1024px) {
  /* services-grid is now flex — no grid overrides needed */
}

@media (max-width: 768px) {
  /* شريط العروض أرفع */
  .offer-bar {
    padding: 5px 0;
    font-size: 0.78rem;
  }

  .offer-title { font-size: 0.78rem; }

  /* هيدر مضغوط */
  .top-bar-inner {
    flex-direction: row;
    align-items: center;
    padding: 8px 0;
    gap: 0;
  }

  /* إخفاء الـ subtitle وتصغير اللوجو */
  .logo-image img {
    width: 36px;
    height: 36px;
  }

  .logo-text h1 { font-size: 1.05rem; }
  .logo-text p  { display: none; }

  /* إخفاء اللغة الرئيسية — تنتقل داخل القائمة */
  .lang-switcher { display: none; }

  /* صف اللغة داخل القائمة */
  .mobile-lang-row {
    display: flex;
    gap: 6px;
    padding: 10px 0 4px;
    border-top: 1px solid #eee;
    margin-top: 4px;
  }

  .main-nav {
    top: calc(100% + 4px) !important;
  }

  html[dir="ltr"] .main-nav {
    right: auto !important;
    left: 0 !important;
    border-radius: 0 8px 8px 0 !important;
  }

  .hero {
    text-align: right;
  }

  .hero-inner {
    gap: 24px;
  }

  .hero p {
    max-width: 100%;
  }

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

  .testimonial-viewport {
    width: 100%;
    min-height: 220px;
  }

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

@media (max-width: 480px) {
  .counter-circle {
    width: 120px;
    height: 120px;
  }

  .counter-number {
    font-size: 1.45rem;
  }

  .counter-label {
    font-size: 0.76rem;
  }

}


.faq-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

.faq-item {
  flex: 1 1 calc(50% - 16px);
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e6e9f2;
  box-shadow: 0 8px 16px rgba(15,23,42,0.04);
  overflow: hidden;
  transition: 0.25s ease;
  cursor: pointer;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px;
  font-size: 1rem;
  color: #1b3150;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: right;
}

.faq-toggle-icon i {
  color: #f4a100;
  font-size: 15px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle-icon i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.7;
  transition: max-height 0.35s ease, padding 0.3s ease;
  border-top: 1px solid #e6e9f2;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 10px 18px 16px;
}

.faq-item.active {
  border-color: #416ea8;
  background: #f7f9ff;
  box-shadow: 0 10px 26px rgba(15,23,42,0.08);
}

@media (max-width: 768px) {
  .faq-item {
    flex: 1 1 100%;
  }
}



/* ===== تثبيت الأزرار أسفل بطاقات المدونة ===== */
.blog-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.blog-card p {
    flex-grow: 1;
}
.blog-card .btn-primary,
.blog-card .btn-secondary {
    margin-top: auto;
}

/* =========================
   DESKTOP LAYOUT (min-width: 769px)
   ========================= */
@media (min-width: 769px) {

  /* ── HERO – جانبي ── */
  .hero {
    padding: 80px 0 90px;
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    text-align: right;
    gap: 60px;
  }

  .hero-left {
    flex: 1.3;
    text-align: right;
  }

  .hero-right {
    flex: 1;
    min-width: 340px;
  }

  .hero h1 {
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 14px;
  }

  .hero p {
    font-size: 1.05rem;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-mini {
    text-align: right;
  }

  .hero-counters {
    justify-content: flex-start;
  }

  .counter-circle {
    width: 150px;
    height: 150px;
  }

  .counter-number {
    font-size: 1.9rem;
  }

  /* ── HERO LOGO أكبر ── */
  .hero-logo img {
    width: 280px;
  }

  /* ── SLIDER أعلى ── */
  .hero-slider-viewport {
    min-height: 140px;
  }

  /* ── SERVICES – شبكة عمودين ── */
  .svc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: none;
    gap: 1px;
    background-color: #e8ecf0;
    border: 1.5px solid #e8ecf0;
    border-radius: 14px;
    overflow: hidden;
  }

  .svc-card {
    border: none;
    border-radius: 0;
    background: #fff;
    padding: 22px 20px;
  }

  .svc-card-title {
    font-size: 1rem;
  }

  .svc-card-desc {
    -webkit-line-clamp: 2;
  }

  /* ── SECTIONS ── */
  .section-title {
    font-size: 2rem;
  }

  .section {
    padding: 60px 0;
  }

  /* ── HERO RIGHT مرتكز ── */
  .hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  /* ── ICONS – أكبر وأوضح على الديسكتوب ── */
  .svc-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #eef2f9;
  }

  .svc-card-icon img {
    width: 40px;
    height: 40px;
  }

  .who-icon {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    background: #eef2f9;
  }

  .who-icon img {
    width: 48px;
    height: 48px;
  }

  .why-icon {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    background: #eef2f9;
  }

  .why-icon img {
    width: 48px;
    height: 48px;
  }

  /* ألوان مخصصة حسب الـ accent لكل بطاقة – تستبدل color-mix() */
  .who-card:nth-child(1) .who-icon { background: #e0f4fa; }
  .who-card:nth-child(2) .who-icon { background: #e8eef8; }
  .who-card:nth-child(3) .who-icon { background: #ede8f9; }

  .why-card:nth-child(1) .why-icon { background: #e0f5ee; }
  .why-card:nth-child(2) .why-icon { background: #e8eef8; }
  .why-card:nth-child(3) .why-icon { background: #fdf0e7; }
  .why-card:nth-child(4) .why-icon { background: #fdf5e0; }

  .svc-card:nth-child(1) .svc-card-icon { background: #e8eef8; }
  .svc-card:nth-child(2) .svc-card-icon { background: #e0f4fa; }
  .svc-card:nth-child(3) .svc-card-icon { background: #ede8f9; }
  .svc-card:nth-child(4) .svc-card-icon { background: #fdf0e7; }
  .svc-card:nth-child(5) .svc-card-icon { background: #e0f5ee; }
  .svc-card:nth-child(6) .svc-card-icon { background: #e6ecf5; }
}



/* ===== تخطيط صفحة المدونة مع شريط جانبي ===== */
.blog-layout {
  padding-top: 40px;
  padding-bottom: 60px;
}

.blog-layout-inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.blog-main {
  flex: 3;
}

.blog-sidebar {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-sidebar-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid #dde3f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.blog-sidebar-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--blue);
}

.blog-sidebar-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-sidebar-card li {
  margin-bottom: 8px;
}

.blog-sidebar-card a.sidebar-link {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--blue);
}

.blog-sidebar-card a.sidebar-link:hover {
  text-decoration: underline;
}

.blog-sidebar-card small {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #666;
}

@media (max-width: 900px) {
  .blog-layout-inner {
    flex-direction: column;
  }
  .blog-sidebar {
    width: 100%;
  }
}
/* Popup Overlay */
.promo-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.promo-popup.show {
  opacity: 1;
  pointer-events: auto;
}

/* Popup Box */
.promo-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  max-width: 90%;
  width: 420px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.promo-content img {
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
}

/* Close Button */
.promo-popup .promo-close {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 34px;
  height: 34px;
  background: #f29516;
  color: #fff;
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* =========================
   ANIMATIONS
   ========================= */

/* --- Keyframes --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.75); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0   rgba(255,255,255,0.45); }
  70%  { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0   rgba(255,255,255,0); }
}

@keyframes underlineGrow {
  from { width: 0; }
  to   { width: 60px; }
}

@keyframes shimmerBg {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* --- Hero entrance (page load) --- */
.hero-left {
  animation: fadeInRight 0.8s ease both;
}

.hero-right {
  animation: fadeInLeft 0.8s ease 0.2s both;
}

/* --- Logo float --- */
.hero-logo img {
  animation: floatY 4s ease-in-out infinite;
}

/* --- Counter circles pulse --- */
.counter-circle {
  animation: pulseRing 2.5s ease-out infinite;
}

/* --- Section title underline --- */
.section-title {
  position: relative;
  padding-bottom: 14px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  border-radius: 999px;
  transition: width 0.6s ease 0.3s;
}

.section-title.title-visible::after {
  width: 60px;
}

/* --- Scroll reveal base --- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger helpers */
.reveal[data-delay="1"] { --reveal-delay: 0.08s; }
.reveal[data-delay="2"] { --reveal-delay: 0.16s; }
.reveal[data-delay="3"] { --reveal-delay: 0.24s; }
.reveal[data-delay="4"] { --reveal-delay: 0.32s; }
.reveal[data-delay="5"] { --reveal-delay: 0.40s; }
.reveal[data-delay="6"] { --reveal-delay: 0.48s; }

/* --- reduce-motion fallback --- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-left, .hero-right { animation: none; }
  .hero-logo img { animation: none; }
  .counter-circle { animation: none; }
  .section-title::after { width: 60px; transition: none; }
  .promo-item,
  .promo-dot { transition: none; }
  .platform-modal-content, .platform-modal.open .platform-modal-content,
  .platform-modal.closing .platform-modal-content { animation: none !important; }
  .platform-progress-bar { animation: none !important; }
}

/* ============================================================
   أقسام جديدة مشتركة: معرض أعمال، شهادات، FAQ، زر العقد
   ============================================================ */

/* --- معرض الأعمال --- */
.portfolio-section { background: #f8fbff; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.portfolio-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15,23,42,0.07);
  border: 1px solid #e2eaf4;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(15,23,42,0.12);
}

.portfolio-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: #1a73e8;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-info {
  padding: 14px 16px;
}

.portfolio-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2e4a;
  margin: 0 0 4px;
}

.portfolio-info p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

.portfolio-tag {
  display: inline-block;
  margin-top: 8px;
  background: #eff6ff;
  color: #1a73e8;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* بطاقة أعمال بملف حقيقي (صورة أو فيديو) */
.portfolio-thumb.has-media {
  background: #ffffff;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid #e8f0fb;
}
.portfolio-thumb.has-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 10px;
  box-sizing: border-box;
  transition: transform 0.4s ease;
}
.portfolio-thumb.has-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.portfolio-card:hover .portfolio-thumb.has-media img,
.portfolio-card:hover .portfolio-thumb.has-media video {
  transform: scale(1.04);
}
.portfolio-thumb .video-play-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.6);
  color: #fff;
  border-radius: 6px;
  font-size: 0.72rem;
  padding: 3px 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}
/* حالة الشبكة الفارغة (قبل إضافة أعمال) */
.portfolio-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: #94a3b8;
}
.portfolio-empty-state i { font-size: 2.8rem; margin-bottom: 10px; display: block; }

/* --- قسم الشهادات --- */
.testimonials-section { background: #ffffff; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.testimonial-card {
  background: #f8fbff;
  border: 1px solid #dde8f7;
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testimonial-stars {
  color: #f5a623;
  font-size: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.85;
  flex: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: #f0f6ff;
  border: 1px solid #dde8f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a73e8;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  overflow: hidden;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 5px;
  box-sizing: border-box;
  background: #ffffff;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1a2e4a;
}

.testimonial-role {
  font-size: 0.78rem;
  color: #64748b;
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* --- قسم FAQ --- */
.faq-section { background: #f8fbff; }

.faq-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
  margin-inline: auto;
  margin-top: 30px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #dde8f7;
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  text-align: right;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2e4a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}

.faq-question:hover { background: #f0f7ff; }

.faq-question i {
  color: #1a73e8;
  font-size: 0.85rem;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 20px 16px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.9;
  margin: 0;
}

/* --- زر العقد CTA --- */
.contract-cta-section {
  background: #f0f4f8;
  padding: 55px 20px;
  text-align: center;
}

.contract-cta-card {
  display: inline-block;
  background: #ffffff;
  border: 1.5px solid #dde8f7;
  border-radius: 22px;
  padding: 40px 48px;
  box-shadow: 0 8px 40px rgba(26, 62, 107, 0.10);
  max-width: 620px;
  width: 100%;
}

.contract-cta-section h2 {
  color: #1a2e4a;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.contract-cta-section p {
  color: #64748b;
  font-size: 1rem;
  margin-bottom: 28px;
  line-height: 1.7;
}

.contract-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f5a623;
  color: #1a2e4a;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 99px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(245, 166, 35, 0.35);
}

.contract-cta-btn:hover {
  background: #e8940f;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(245, 166, 35, 0.45);
}

@media (max-width: 768px) {
  .contract-cta-card { padding: 28px 20px; }
  .contract-cta-section h2 { font-size: 1.3rem; }
  .contract-cta-btn { font-size: 0.95rem; padding: 12px 24px; }
}


/* SEO: single H1 per page — header brand and split hero titles (2026-11-26) */
.logo-text .logo-title { font-size: 1.3rem; font-weight: 700; color: var(--blue); }
.hero-left h1 .hero-line { display: block; }
.hero-left h1 .hero-line + .hero-line { margin-top: 10px; }
@media (max-width: 768px) {
  .logo-text .logo-title { font-size: 1.05rem; }
}
@media (min-width: 769px) {
  .hero-left h1 .hero-line + .hero-line { margin-top: 14px; }
}

/* ===== Header: single row on wide screens, hamburger menu below 1300px (incl. mobile) (2026-11-26) ===== */
.top-bar .logo-text .logo-title,
.top-bar .logo-text p,
.top-bar .main-nav a { white-space: nowrap; }

@media (min-width: 1300px) {
  .top-bar .container.top-bar-inner { max-width: 1280px; width: 94%; }
  .top-bar .main-nav { flex-wrap: nowrap; gap: 2px; align-items: center; }
  .top-bar .main-nav a { font-size: 0.84rem; padding: 6px 8px; }
  .top-bar .main-nav a[href$="rdv/"] { background: var(--gold); color: #000; font-weight: 700; padding: 7px 14px; margin-inline-start: 6px; }
  .top-bar .logo-text p { display: none; }
}
@media (min-width: 1500px) {
  .top-bar .logo-text p { display: block; font-size: 0.75rem; }
}

@media (max-width: 1299px) {
  .top-bar .top-bar-inner { position: relative; }
  .top-bar .mobile-menu-btn { display: block; margin-inline-start: auto; }
  .top-bar .logo-text p { display: none; }
  .top-bar .lang-switcher { display: none; }
  .top-bar .mobile-lang-row { display: flex; gap: 6px; padding: 10px 0 4px; border-top: 1px solid #eee; margin-top: 4px; }
  .top-bar .main-nav {
    position: absolute; top: calc(100% + 4px); right: 0; left: auto;
    width: 320px; max-width: 75%;
    background: #fff; padding: 16px 20px; border-radius: 8px 0 0 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    display: flex; flex-direction: column; flex-wrap: nowrap; gap: 12px; z-index: 999;
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .top-bar .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .top-bar .main-nav a { padding: 8px 0; border-bottom: 1px solid #eee; font-size: 15px; border-radius: 0; }
  html[dir="ltr"] .top-bar .main-nav { right: auto; left: 0; border-radius: 0 8px 8px 0; }
}
@media (min-width: 1300px) {
  .top-bar .mobile-menu-btn { display: none; }
}

/* ===== Prevent entrance animations from widening the page on mobile + keep popup close button on screen (2026-11-26) ===== */
html, body { overflow-x: clip; }
@media (max-width: 480px) {
  .promo-popup .promo-close { top: 6px; left: 6px; }
}

/* ===== Language switcher links (separate /fr/ and /en/ pages, 2026-11-26) ===== */
a.lang-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }

/* ===== LTR (French / English pages): undo right alignment written for Arabic (2026-11-26) ===== */
html[dir="ltr"] .hero,
html[dir="ltr"] .hero-inner,
html[dir="ltr"] .hero-left,
html[dir="ltr"] .hero-mini,
html[dir="ltr"] .hero-slide,
html[dir="ltr"] .contact-form-card .contact-title,
html[dir="ltr"] .map-box h3,
html[dir="ltr"] .platform-modal-content,
html[dir="ltr"] .platform-link-text,
html[dir="ltr"] .faq-question,
html[dir="ltr"] .faq-intro,
html[dir="ltr"] .faq-hero-note,
html[dir="ltr"] .pricing-list,
html[dir="ltr"] .pricing-list li,
html[dir="ltr"] .nfc-hero-right,
html[dir="ltr"] .nfc-hero-card { text-align: left; }

/* ===== Contact form redesign – all languages (2026-11-26) ===== */
.contact-form-card {
  background: #fff;
  border: 1px solid #e3ebf5;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(65, 110, 168, 0.10);
}
.contact-form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--light-blue), var(--orange));
}
.contact-form-card .contact-intro { line-height: 1.8; }

/* homepage form: two columns (name + phone, email + service, message, button) */
.contact-form:has(> label) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.contact-form:has(> label) > label:nth-of-type(5),
.contact-form:has(> label) > button,
.contact-form:has(> label)::after { grid-column: 1 / -1; }

.contact-form label,
html[dir="ltr"] .contact-form label {
  align-items: stretch;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #24364f;
}
.contact-form .form-group label { display: block; margin-bottom: 7px; font-size: 0.9rem; font-weight: 600; color: #24364f; }

/* required marker */
.contact-form label:has(> [required]) .field-label-text::after,
.contact-form .form-group:has([required]) > label::after { content: " *"; color: var(--orange); }

/* fields */
.contact-form input:not([type="hidden"]),
.contact-form select,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid #dbe4f0;
  border-radius: 12px;
  background-color: #f7faff;
  color: #13233a;
  font-size: 1rem;
  font-weight: 400;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.contact-form textarea { min-height: 130px; line-height: 1.7; }
.contact-form input:not([type="hidden"]):hover,
.contact-form select:hover,
.contact-form textarea:hover { border-color: #b9cbe3; }
.contact-form input:not([type="hidden"]):focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(65, 110, 168, 0.14);
}
.contact-form :user-invalid {
  border-color: #e06b5b !important;
  box-shadow: 0 0 0 4px rgba(224, 107, 91, 0.12) !important;
}

/* icons inside the fields */
.contact-form input[name="name"],
.contact-form input[name="fullName"],
.contact-form input[type="tel"],
.contact-form input[type="email"] {
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: right 14px center;
  padding-right: 44px;
}
html[dir="ltr"] .contact-form input[name="name"],
html[dir="ltr"] .contact-form input[name="fullName"],
html[dir="ltr"] .contact-form input[type="tel"],
html[dir="ltr"] .contact-form input[type="email"] {
  background-position: left 14px center;
  padding-right: 14px;
  padding-left: 44px;
}
.contact-form input[name="name"],
.contact-form input[name="fullName"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23416ea8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E");
}
.contact-form input[type="tel"] {
  direction: ltr;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23416ea8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
}
html[dir="rtl"] .contact-form input[type="tel"] { text-align: right; }
.contact-form input[type="email"] {
  direction: ltr;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23416ea8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 6-10 7L2 6'/%3E%3C/svg%3E");
}
html[dir="rtl"] .contact-form input[type="email"] { text-align: right; }

/* custom select arrow */
.contact-form select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23416ea8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: left 14px center;
  padding-left: 40px;
}
html[dir="ltr"] .contact-form select { background-position: right 14px center; padding-left: 14px; padding-right: 40px; }

/* submit button */
.contact-form button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), #f7b23b);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(242, 149, 22, 0.30);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.contact-form button[type="submit"]::after { content: "←"; font-size: 1.15em; transition: transform .2s; }
html[dir="ltr"] .contact-form button[type="submit"]::after { content: "→"; }
.contact-form button[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(242, 149, 22, 0.38); filter: saturate(1.1); }
.contact-form button[type="submit"]:hover::after { transform: translateX(-4px); }
html[dir="ltr"] .contact-form button[type="submit"]:hover::after { transform: translateX(4px); }
.contact-form button[type="submit"]:focus-visible { outline: 3px solid rgba(65, 110, 168, .45); outline-offset: 3px; }

/* privacy reassurance under the button */
.contact-form::after {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  color: #6b7a90;
  margin-top: 2px;
}
html[lang="ar"] .contact-form::after { content: "🔒 بياناتك تبقى سرية ولا نشاركها مع أي طرف آخر"; }
html[lang="fr"] .contact-form::after { content: "🔒 Vos données restent confidentielles et ne sont jamais partagées"; }
html[lang="en"] .contact-form::after { content: "🔒 Your details stay private and are never shared"; }

@media (max-width: 600px) {
  .contact-form:has(> label) { grid-template-columns: 1fr; }
  .contact-form-card { padding: 22px 18px 24px; }
}

/* title accent line follows the title side */
.contact-form-card .contact-title::after { left: auto; right: 0; transform: none; }
html[dir="ltr"] .contact-form-card .contact-title::after { right: auto; left: 0; }
