:root {
  --basar-primary: #ED1A3B;
  --basar-primary-dark: #c0102f;
  --basar-dark: #1A1A1A;
  --basar-light: #f8f8f8;
  --basar-gradient: linear-gradient(135deg, #ED1A3B, #ff4a61);
  --basar-secondary: #050505;
  --basar-accent: #f59e0b;
  --basar-bg: #f8fafc;
  --text-color: #0f172a;
  --muted: #64748b;
  --fs-base: clamp(15px, 1.8vw, 18px);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Tajawal, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  background: var(--basar-bg);
  color: var(--text-color);
  text-align: start;
  font-size: var(--fs-base);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}

img {
  max-width: 100%;
  height: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: .75rem 1rem;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--basar-primary);
  color: #fff;
  box-shadow: 0 6px 14px rgba(237, 26, 59, .25);
}

.btn-primary:hover {
  background: var(--basar-primary-dark);
}

.btn-outline {
  background: #fff;
  color: var(--basar-secondary);
  border: 1px solid rgba(2, 6, 23, .1);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}

.btn.full {
  width: 100%;
}

.btn-download {
  background: var(--basar-secondary);
  color: #fff;
  box-shadow: 0 6px 14px rgba(30, 58, 138, .25);
  border: 1px solid rgba(30, 58, 138, .22);
  border-radius: 10px;
}

.btn-download:hover {
  background: #ED1A3B;
}

.btn-download:disabled,
.btn-download[aria-disabled="true"] {
  opacity: .6;
  pointer-events: none;

}

.badge {
  display: inline-block;
  background: rgba(237, 26, 59, .12);
  color: var(--basar-primary);
  border: 1px solid rgba(237, 26, 59, .22);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid rgba(2, 6, 23, .06);
  backdrop-filter: none;
  padding-top: env(safe-area-inset-top);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: clamp(56px, 9vw, 72px);
  direction: ltr;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-color);
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 28px;
}

.brand-logo.small {
  width: 34px;
  height: 34px;
}

.brand-name {
  font-weight: 800;
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--basar-primary);
  overflow-wrap: anywhere;
}

.nav-desktop {
  display: none;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: clamp(8px, 2vw, 16px);
  justify-content: center;
  align-items: center;
  direction: rtl;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: clamp(15px, 1.7vw, 17px);
  font-weight: 600;
  position: relative;
  transition: color .15s ease, background .15s ease;
  overflow-wrap: anywhere;
}

.nav-link:hover {
  color: var(--text-color);
  background: rgba(2, 6, 23, .05);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: var(--basar-gradient);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .15s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(2, 6, 23, .06);
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
}

.icon-btn:hover {
  background: rgba(2, 6, 23, .1);
}

.nav-login {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav-login:hover {
  background: rgba(2, 6, 23, .06);
}

.menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e5e7eb;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-icon {
  width: 20px;
  height: 2px;
  background: var(--text-color);
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  width: 20px;
  height: 2px;
  background: var(--text-color);
}

.menu-icon::before {
  transform: translateY(-6px);
}

.menu-icon::after {
  transform: translateY(6px);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .95);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.mobile-menu.open,
.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-inner {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 78%;
  max-width: 360px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(2, 6, 23, .18);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drop {
  border-radius: 10px;
}

.mobile-drop[open] .mobile-link {
  background: rgba(2, 6, 23, .06);
}

.mobile-drop .mobile-sub {
  display: grid;
  gap: 6px;
  padding: 8px;
}

.mobile-link {
  padding: 12px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-color);
}

.mobile-link:hover {
  background: rgba(2, 6, 23, .06);
}

.hero {
  background:
    linear-gradient(to bottom, #ffffff, #f7f8fc);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.hero-title {
  font-size: clamp(24px, 6vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  margin-block: 12px 20px;
}

/* .hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
} */

.hero-highlights {
  display: flex;
  gap: 8px;
  margin-block-start: 12px;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
}

.hero-art {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 180deg at 50% 50%, rgba(237, 26, 59, .08), transparent);
  border-radius: 24px;
  filter: blur(20px);
}

.hero-image {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(2, 6, 23, .18);
  position: relative;
}

.section {
  padding-block: 56px;
}

.section-alt {
  background: #fff;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  margin-block-end: 18px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
}

/* تخطيط قسمين (من نحن + تواصل معنا) */
.two-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}

.col {
  flex: 1;
  min-width: 0;
}

.about-image {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(2, 6, 23, .12);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-block-start: 20px;
}

.stat {
  background: rgba(2, 6, 23, .04);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--basar-secondary);
}

.stat-label {
  color: var(--muted);
  font-weight: 600;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.card {
  background: #fff;
  border: 1px solid rgba(2, 6, 23, .08);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--basar-primary);
  background: rgba(237, 26, 59, .08);
}

.card-title {
  font-weight: 800;
  font-size: 18px;
}

.card-text {
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  display: block;
  aspect-ratio: 3 / 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* .clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.clients-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-block: 10px 16px; }
.clients-input, .clients-select { border-radius: 10px; height: 40px; }
.clients-input:focus-visible, .clients-select:focus-visible { outline: 2px solid var(--basar-primary); outline-offset: 2px; }
.client-card {
  background: #fff;
  border: 1px solid rgba(2,6,23,.08);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  place-items: center;
}
.client-card:focus-visible { outline: 2px solid var(--basar-primary); outline-offset: 2px; }
.client-logo {
  width: clamp(80px, 12vw, 120px);
  height: auto;
  object-fit: contain;
  display: block;
}
.client-name { font-weight: 700; color: var(--text-color); margin-top: 8px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; } */

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  background: rgba(2, 6, 23, .04);
  border-radius: 14px;
  padding: 16px;
}

.check {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(237, 26, 59, .12);
  color: var(--basar-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.benefit-title {
  font-weight: 800;
}

.benefit-text {
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.step {
  border: 1px solid rgba(2, 6, 23, .08);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--basar-secondary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-block-end: 8px;
}

.step-title {
  font-weight: 800;
}

.step-text {
  color: var(--muted);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.testimonial {
  background: #fff;
  border: 1px solid rgba(2, 6, 23, .08);
  border-radius: 16px;
  padding: 18px;
}

.g-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-block-start: 16px;
}

.g-review-card {
  background: #fff;
  border: 1px solid rgba(2, 6, 23, .08);
  border-radius: 16px;
  padding: 16px;
}

.g-review-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.g-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  display: inline-block;
}

.g-initial {
  background: #e2e8f0;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.g-name {
  font-weight: 800;
}

.g-sub {
  color: var(--muted);
  font-size: .9rem;
}

.g-stars {
  color: var(--basar-accent);
  font-weight: 700;
}

.g-date {
  color: var(--muted);
  font-size: .9rem;
  margin-block: 8px;
}

.g-text {
  color: var(--text-color);
  font-weight: 600;
}

.g-reviews-cta {
  margin-top: 14px;
}

.g-reviews-embed {
  margin-top: 14px;
}

.g-reviews-embed iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(2, 6, 23, .12);
}

.stars {
  color: var(--basar-accent);
  font-weight: 700;
  margin-block-end: 6px;
}

.quote {
  color: var(--text-color);
  font-weight: 600;
}

.author {
  color: var(--muted);
}

.form {
  background: #fff;
  border: 1px solid rgba(2, 6, 23, .08);
  border-radius: 16px;
  padding: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.label {
  font-weight: 700;
  color: var(--text-color);
}

.input {
  border-radius: 12px;
  border: 1px solid rgba(2, 6, 23, .12);
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: var(--text-color);
}

.input:focus {
  outline: 2px solid rgba(237, 26, 59, .35);
  border-color: transparent;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-block-start: 8px;
}

.form-status {
  margin-block-start: 10px;
  font-weight: 700;
  color: var(--basar-primary);
}

/* خريطة الاتصال */
.map {
  background: #fff;
  border: 1px solid rgba(2, 6, 23, .08);
  border-radius: 16px;
  padding: 8px;
  overflow: hidden;
  height: auto;
  aspect-ratio: 4 / 3;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

.map-placeholder {
  height: 100%;
  border-radius: 12px;
  background: var(--basar-gradient);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  opacity: .92;
}

.footer {
  background: var(--basar-dark);
  color: #fff;
  padding-block: 40px 24px;
  margin-top: 40px;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.footer .brand-logo {
  width: clamp(110px, 12vw, 140px);
  height: auto;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  padding: 8px;
  filter: drop-shadow(0 14px 34px rgba(237, 26, 59, .25));
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}

.footer-col {
  flex: 1 1 220px;
  min-width: 0;
}

.footer-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-brand-name {
  font-weight: 800;
  color: #fff;
}

.footer-brand-sub {
  font-size: 0.85rem;
  color: #f3f4f6;
}

.footer-text {
  color: #f3f4f6;
  margin: 0;
  margin-top: 8px;
  max-width: 340px;
}

.footer-title {
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.footer-links a {
  color: #f3f4f6;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ED1A3B;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  background: var(--basar-primary);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  text-decoration: none;
}

.social-btn:hover {
  background: rgba(255, 255, 255, .22);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.footer .brand-name {
  color: #fff;
}

.footer .brand-sub {
  color: #f3f4f6;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-block-start: 28px;
  padding-block-start: 14px;
}

.footer-links-inline {
  display: inline-flex;
  gap: 16px;
}

.footer-links-inline a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

@media (min-width: 768px) {
  .footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 28px;
    align-items: start;
  }
}

.footer::before,
.footer::after {
  content: "";
  position: absolute;
  filter: blur(80px);
  opacity: .35;
  border-radius: 999px;
  pointer-events: none;
}

.footer::before {
  width: 280px;
  height: 280px;
  background: rgba(237, 26, 59, .45);
  inset-inline-start: -80px;
  top: -40px;
}

.footer::after {
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, .08);
  inset-inline-end: -60px;
  bottom: -60px;
}

.top-btn {
  position: fixed;
  bottom: 20px;
  inset-inline-start: 20px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--basar-gradient);
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(237, 26, 59, .25);
  transition: transform .3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity .2s ease, background .2s ease;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  z-index: 1000;
  cursor: pointer;
  touch-action: manipulation;
  will-change: transform;
}

.top-btn:hover {
  background: var(--basar-primary-dark);
}

.top-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.top-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.top-btn::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: conic-gradient(var(--basar-primary) var(--progress, 0deg), rgba(255, 255, 255, .2) 0);
  mask: radial-gradient(closest-side, transparent 70%, #000 72%);
  opacity: .95;
  pointer-events: none;
}

.top-btn:hover::after {
  opacity: 1;
}

.top-btn:active,
.top-btn.pressed {
  transform: translateY(-10px);
  background: var(--basar-primary-dark);
  box-shadow: 0 14px 24px rgba(237, 26, 59, .35);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: inline-flex;
    justify-self: center;
  }

  .menu-btn {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1.1fr .9fr;
  }

  /* في الشاشات الكبيرة: عمودين جنب بعض مع form/النص على اليمين */
  .two-col {
    flex-direction: row-reverse;
    align-items: center;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonials {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 52px;
  }
}

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .footer {
    padding-block: 24px 18px;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer .brand-logo {
    width: clamp(80px, 30vw, 120px);
    height: auto;
  }

  .footer-brand-name {
    font-size: 0.96rem;
  }

  .footer-brand-sub {
    font-size: 0.84rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding-block: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 768px) {

  .search-btn,
  .nav-login {
    display: none;
  }
}

body.ltr {
  direction: ltr;
}

body.ltr .footer {
  text-align: start;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-toggle::after {
  content: "▾";
  font-size: 12px;
  color: var(--muted);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(2, 6, 23, .08);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(2, 6, 23, .12);
  padding: 8px;
  display: none;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: grid;
  gap: 4px;
}

.dropdown-item {
  color: var(--text-color);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
}

.dropdown-item:hover {
  background: rgba(2, 6, 23, .06);
}

/* 1) جعل two-col تعمل بـ flex بدلاً من grid */
/* الفورم على اليمين — الخريطة على اليسار */
.container.two-col {
  display: flex !important;
  flex-direction: row-reverse !important;
  /* هذا يخلي أول عمود (الفورم) يمين */
  gap: 24px;
  align-items: stretch;
}

/* كل عمود يأخذ نصف المساحة */
.container.two-col .col {
  flex: 1;
  min-width: 0;
}

/* 2) على الشاشات الصغيرة ترجع تحت بعض */
@media (max-width: 768px) {
  .container.two-col {
    flex-direction: column !important;
    /* فوق بعض */
  }
}

/* 3) مساواة ارتفاع الفورم والخريطة */
#contact .col {
  display: flex;
  flex-direction: column;
}

#contact .form,
#contact .map {
  height: 100%;
}

/* 4) ضبط كارد الخريطة والـ iframe */
.map {
  background: #fff;
  border: 1px solid rgba(2, 6, 23, .08);
  border-radius: 16px;
  padding: 8px;
  overflow: hidden;
  height: auto;
}

.map-placeholder,
.map iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 0;
}

.map iframe {
  pointer-events: none;
}

/* تحسين عرض الموقع على الشاشات الصغيرة */
@media (max-width: 640px) {

  /* الهيدر في الجوال */
  .header {
    padding-block: 6px;
  }

  .nav {
    height: auto;
    grid-template-columns: 1fr auto;
    /* الشعار ثم زر القائمة */
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .menu-btn {
    width: 40px;
    height: 40px;
    margin-inline-start: 8px;
    /* مسافة بسيطة عن الحافة */
  }

  /* قسم الهيرو */
  .hero {
    padding-block: 28px 36px;
  }

  .hero-title {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .hero-sub {
    font-size: 0.95rem;
    line-height: 1.9;
    margin-block: 10px 18px;
  }

  /* الأزرار في الهيرو: زرين جنب بعض بشكل متوازن */
  .hero-actions {
    gap: 8px;
  }

  .hero-actions .btn {
    flex: 1 1 calc(50% - 6px);
    /* كل زر حوالي نصف العرض */
    min-width: 140px;
  }

  /* البادجات (جودة مضمونة..إلخ) */
  .hero-highlights {
    gap: 6px;
    margin-top: 14px;
  }

  .badge {
    padding: 4px 10px;
    font-size: 0.85rem;
  }

  /* صورة الهيرو */
  .hero-media {
    margin-top: 18px;
  }

  .hero-image {
    max-height: 240px;
    object-fit: contain;
    border-radius: 14px;
  }
}

/* تحسين بسيط جداً لجوال أكبر شوي (حتى 768px) */
@media (max-width: 768px) {
  .section {
    padding-block: 40px;
  }

  .section-title {
    text-align: center;
  }

  .form {
    padding: 16px;
  }

  /* شبكة معرض الأعمال – 3 أعمدة على الديسكتوب، 2 على التابلت، 1 على الجوال */
  .gallery {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    /* جوال: عمود واحد */
  }

  /* تابلت: عمودين */
  @media (min-width: 640px) {
    .gallery {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  /* ديسكتوب: 3 أعمدة ثابتة => 3 فوق + 3 تحت */
  @media (min-width: 1024px) {
    .gallery {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
}

/* الكارت */
.gallery-item {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
  transform: translateY(0);
  transition:
    transform 0.35s cubic-bezier(.21, .72, .27, .99),
    box-shadow 0.35s ease,
    filter 0.35s ease;
}

/* الصورة داخل الكارت */
.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  transform: scale(1.02);
  transition:
    transform 0.6s cubic-bezier(.16, .84, .44, 1),
    filter 0.6s ease;
  filter: saturate(1.05) contrast(1.02);
}

/* طبقة تدرّج خفيفة + لمعة */
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 55%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* إطار خفيف يظهر مع الهوفر */
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, 0.0);
  box-shadow: 0 0 0 0 rgba(237, 26, 59, 0.0);
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* ✨ Hover: Zoom + Elevation + Glow */
.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
  filter: brightness(1.03);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: saturate(1.15) contrast(1.06);
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item:hover::after {
  border-color: rgba(237, 26, 59, 0.75);
  /* لون الهوية */
  box-shadow: 0 0 0 1px rgba(237, 26, 59, 0.55);
}

/* أنيميشن ظهور عناصر المعرض */
@keyframes galleryFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* تطبيق الأنيميشن مع تأخير بسيط لكل عنصر */
.gallery-item {
  opacity: 0;
  animation: galleryFadeUp 0.6s ease-out forwards;
}

.gallery-item:nth-child(2) {
  animation-delay: 0.08s;
}

.gallery-item:nth-child(3) {
  animation-delay: 0.16s;
}

.gallery-item:nth-child(4) {
  animation-delay: 0.24s;
}

.gallery-item:nth-child(5) {
  animation-delay: 0.32s;
}

.gallery-item:nth-child(6) {
  animation-delay: 0.40s;
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  .gallery-item {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.gallery-figure {
  position: relative;
  margin: 0;
  height: 100%;
}

.gallery-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #f9fafb;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
  direction: rtl;
}

@media (max-width: 640px) {
  .gallery-caption {
    font-size: 0.95rem;
  }
}

.gallery-caption {
  position: absolute;
  bottom: 12px;
  right: 12px;
  left: 12px;

  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 400;
  text-align: right;
  direction: rtl;

  color: #fff;
  letter-spacing: 0.2px;

  background: rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(6px);

  border-radius: 14px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);

  opacity: 0;
  transform: translateY(6px);
  transition: all 0.28s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* إظهار الوصف بشكل أفضل على الجوال */
@media (max-width: 640px) {
  .gallery-caption {
    opacity: 1;
    /* يظهر دائمًا */
    transform: translateY(0);
    /* بدون حركة نزول */
    bottom: 8px;
    right: 8px;
    left: 8px;
    padding: 8px 10px;
    font-size: 0.75rem;
    /* أصغر شوي عشان ما يغطي الصورة */
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  }

  .gallery-item:hover .gallery-caption {
    /* على الجوال ما نحتاج تأثير هوفر */
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== خريطة تواصل معنا – ديسكتوب + جوال ===== */



/* iframe يملأ الكرت بالكامل */
.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/*يبيبيبيب */

/* افتراضياً: عناصر الديسكتوب ظاهرة، وعناصر الموبايل نعرّفها حسب الحاجة */
.desktop-only {
  display: inline-flex;
}

/* هيدر القائمة في الموبايل */
.mobile-menu-header {
  display: none;
  /* نخفيه في الديسكتوب، نُظهره في الميديا كويري */
}

/* استجابة الموبايل */
@media (max-width: 900px) {

  /* إخفاء الشعار + زر اللغة من الهيدر */
  .desktop-only {
    display: none !important;
  }

  /* إظهار هيدر القائمة داخل الموبايل */
  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
  }

  .mobile-menu-header .brand-logo.small {
    height: 34px;
    width: auto;
  }

  .mobile-menu-header .icon-btn {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
  }
}

.clients-slider {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.clients-slider::before,
.clients-slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  pointer-events: none;
  z-index: 0;
}

.clients-slider::before {
  inset-inline-start: 0;
  background: linear-gradient(to right, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0));
}

.clients-slider::after {
  inset-inline-end: 0;
  background: linear-gradient(to left, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0));
}

.clients-track {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  width: max-content;
  animation: clients-scroll var(--clients-speed, 36s) linear infinite;
  position: relative;
  z-index: 1;
}

@keyframes clients-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.clients-slider:hover .clients-track {
  animation-play-state: paused;
}


/* ===== خريطة Google في قسم التواصل ===== */
.contact-map {
  border-radius: var(--basar-radius-md);
  background: #ffffff;
  overflow: hidden;
  /* عشان الحواف تكون ناعمة */
}

/* خلي الـ iframe يملأ الكرت بالكامل */
.contact-map iframe {
  width: 100%;
  height: 260px;
  /* ارتفاع مناسب للديسكتوب */
  border: 0;
  display: block;
}

/* ما نحتاج الـ placeholder بعد الآن */
.map-placeholder {
  display: none;
}

/* === ضبط خاص للجوال === */
@media (max-width: 900px) {
  .contact-map {
    /* لا تجبره على ارتفاع معيّن في الجوال */
    border-radius: var(--basar-radius-md);
  }

  .contact-map iframe {
    height: 220px;
    /* ارتفاع أقل يناسب شاشة الجوال */
  }
}

/* ضبط خريطة التواصل للجوال */
#contact .form,
#contact .map {
  height: auto !important;
}

#contact .map {
  min-height: 0;
  aspect-ratio: 4 / 3;
}

#contact .map iframe {
  height: 100%;
}


/* إصلاح تساوي ارتفاع الفورم والخريطة */
#contact .two-col {
  align-items: stretch;
}

#contact .col {
  display: flex;
  flex-direction: column;
}

/* الخريطة */
#contact .map {
  flex: 1;
  height: 100%;
  min-height: 100%;
}

#contact iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* جعل الفورم يتمدد بنفس ارتفاع الخريطة */
#contact form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* شعار بصر المتحرك في خلفية الهيرو */
.hero {
  position: relative;
  overflow: hidden;
}

/* عنصر الشعار */
.hero-logo-orbit {
  position: absolute;
  top: 40px;
  right: -40px;
  width: 120px;
  height: 120px;

  /* المسار الصحيح من ملف style.css إلى مجلد الصور */
  background-image: url("../images/logo.svg");
  /* أو logo.svg إذا عندك */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  opacity: 0.06;
  pointer-events: none;
  animation: heroLogoFloat 9s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.15));
}

/* حركة بسيطة (طلوع/نزول + دوران خفيف) */
@keyframes heroLogoFloat {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  50% {
    transform: translate3d(-10px, 12px, 0) rotate(-4deg) scale(1.05);
  }

  100% {
    transform: translate3d(10px, -8px, 0) rotate(4deg) scale(1.02);
  }
}

/* تصغير الشعار أكثر في الجوال */
@media (max-width: 768px) {
  .hero-logo-orbit {
    width: 80px;
    height: 80px;
    top: 70px;
    right: -20px;
    opacity: 0.07;
  }
}

.clients-filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
  margin-block: 10px 16px;
  direction: rtl;
}

body.ltr .clients-filters {
  direction: ltr;
}

.clients-input,
.clients-select {
  border: 1px solid rgba(2, 6, 23, .12);
  background: #fff;
  padding-inline: 12px;
  height: 40px;
  border-radius: 10px;
}

.clients-input:focus-visible,
.clients-select:focus-visible {
  outline: 2px solid var(--basar-primary);
  outline-offset: 2px;
}

.client-name {
  font-weight: 700;
  color: var(--text-color);
  margin-top: 8px;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .clients-filters {
    grid-template-columns: 1fr;
  }
}

/* ================== شريط ترويجي أعلى الصفحة ================== */

.promo-bar {
  background: #111827;
  color: #f9fafb;
  font-size: 0.9rem;
}

.promo-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-block: 6px;
}

.promo-text {
  opacity: 0.9;
  text-align: center;
}


/* ================== شاشة تحميل بسيطة ================== */

.page-transition {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.28);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  z-index: 1500;
  pointer-events: none;
}

.page-transition.active {
  opacity: 1;
  visibility: visible;
}

.page-spinner {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2), transparent 60%);
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}



/* ================== تقليل الحركة ================== */

@media (prefers-reduced-motion: reduce) {
  .page-spinner {
    animation: none;
  }

  .animate-section {
    transition: none;
  }

  .scroll-top {
    transition: none;
  }
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 2990;
}


.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -40px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  z-index: 3000;
}

.skip-link:focus {
  top: 12px;
}


.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 4 أعمدة */
  gap: 24px;
  align-items: start;
}

/* في الشاشات المتوسطة يصبح 3 أعمدة */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* في الشاشات الصغيرة يصبح 2 */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* في الجوال عمود واحد */
@media (max-width: 500px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ================== معرض الأعمال (شكل احترافي) ================== */

.portfolio {
  background: var(--basar-bg);
}

/* شبكة 4 × 4 مع استجابة للشاشات */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

/* كرت العمل */
.portfolio-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.25);
  isolation: isolate;
  cursor: pointer;
}

/* إزالة الهوامش الافتراضية لـ figure */
.portfolio-item {
  margin: 0;
}

/* الصورة */
.portfolio-item img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

/* طبقة جريدينت فوق الصورة */
.portfolio-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.7),
      rgba(0, 0, 0, 0.02));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

/* العنوان فوق الصورة */
.portfolio-item figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 14px 18px 16px;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 600;
  text-align: center;
  transform: translateY(14px);
  opacity: 0;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
  z-index: 2;
}

/* أيقونة صغيرة في الزاوية (اختيارية) */
.portfolio-item::after {
  content: "↗";
  position: absolute;
  inset-inline-end: 14px;
  inset-block-start: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  z-index: 2;
}

/* هوفر */
.portfolio-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.portfolio-item:hover::before {
  opacity: 1;
}

.portfolio-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* ================== استجابة الشاشات ================== */

/* شاشات متوسطة: 3 أعمدة */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* تابلت: عمودين */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* جوال: عمود واحد */
@media (max-width: 540px) {
  .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

#clients {
  padding: 60px 0;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.client-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  transition: 0.3s ease;
  border: 1px solid #eee;
}

.client-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.client-logo {
  max-width: 120px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 12px;
}

.client-name {
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
}

/* زر Basar AI */
#basar-ai-button {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1400;
  background: #ed1a3b;
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

#basar-ai-button span::before {
  content: "🤖";
  margin-inline-end: 4px;
}

/* صندوق الشات */
#basar-ai-box {
  position: fixed;
  bottom: 90px;
  left: 24px;
  width: 340px;
  max-height: 480px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  z-index: 1400;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#basar-ai-box.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* الهيدر */
#basar-ai-box .ai-header {
  background: linear-gradient(135deg, #ed1a3b, #ff4a61);
  color: #fff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
}

.ai-title strong {
  font-size: 0.95rem;
}

.ai-title small {
  opacity: 0.9;
}

.ai-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

/* جسم الشات */
.ai-body {
  flex: 1;
  padding: 10px;
  background: #fafafa;
  overflow-y: auto;
}

/* الرسائل */
.msg {
  padding: 8px 11px;
  border-radius: 12px;
  margin: 5px 0;
  max-width: 85%;
  font-size: 0.9rem;
  line-height: 1.6;
}

.msg.user {
  margin-inline-start: auto;
  background: #ed1a3b;
  color: #fff;
  border-bottom-left-radius: 2px;
}

.msg.bot {
  margin-inline-end: auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #111827;
  border-bottom-right-radius: 2px;
}

/* منطقة الإدخال */
.ai-input-area {
  padding: 8px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 6px;
  background: #fff;
}

.ai-input-area input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.ai-input-area button {
  border-radius: 999px;
  border: none;
  background: #ed1a3b;
  color: #fff;
  padding: 8px 14px;
  font-size: 0.85rem;
  cursor: pointer;
}

/* استجابة على الجوال */
@media (max-width: 600px) {
  #basar-ai-box {
    left: 12px;
    right: 12px;
    width: auto;
  }

  #basar-ai-button {
    left: 12px;
  }
}

.policy-card {
  padding: 20px;
  border: 1px solid rgba(2, 6, 23, .08);
  border-radius: 16px;
  background: #fff;
}

.policy-lead {
  margin-bottom: 12px;
}

.policy-toc {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 16px;
}

.policy-toc a {
  color: var(--basar-secondary);
  text-decoration: none;
  border: 1px solid rgba(2, 6, 23, .12);
  border-radius: 10px;
  padding: 8px 12px;
}

.policy-toc a:hover {
  background: rgba(2, 6, 23, .06);
}

.policy-section {
  margin-top: 16px;
}

.policy-title {
  font-weight: 800;
  margin-bottom: 8px;
}

.policy-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
}

/* --- Pulse Animation --- */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(237, 26, 59, 0.4);
  }

  70% {
    transform: scale(1.06);
    box-shadow: 0 0 12px 8px rgba(237, 26, 59, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(237, 26, 59, 0);
  }
}

/* تطبيق النبض التلقائي على زر التحميل */
.btn-download {
  animation: pulse 2s infinite ease-in-out;
  position: relative;
  overflow: hidden;
}

.btn-download .btn-icon {
  transition: transform 0.4s ease;
}

/* حركة السهم عند المرور فقط */
.btn-download:hover .btn-icon {
  transform: translateY(4px);
}

/* ---- Shine Animation ---- */
@keyframes shine {
  0% {
    left: -120%;
  }

  100% {
    left: 120%;
  }
}

.btn-download {
  position: relative;
  overflow: hidden;
  animation: pulse 2s infinite ease-in-out;
  /* النبض التلقائي */
}

/* شريط اللمعان */
.btn-download::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, 0.55),
      transparent);
  transform: skewX(-20deg);
  animation: shine 2.5s infinite ease-in-out;
  pointer-events: none;
}

/* زر واتساب الرسمي داخل الهيرو */
.hero-whatsapp {
  background: #25D366;
  /* اللون الرسمي لواتساب */
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  box-shadow: 0 12px 25px rgba(37, 211, 102, 0.25);
  transition: 0.25s ease-in-out;
}

.hero-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.35);
}

.hero-whatsapp .btn-icon svg {
  fill: #ffffff;
  /* الأيقونة بيضاء */
}



/* خلفية ناعمة مع تدرّج وضبابيات */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(237, 26, 59, 0.12), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(148, 163, 253, 0.12), transparent 55%),
    radial-gradient(circle at 50% 90%, rgba(248, 250, 252, 1), #f9fafb);
  z-index: -2;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.7;
  z-index: -1;
}

.hero::before {
  background: rgba(237, 26, 59, 0.35);
  /* basar red */
  top: -80px;
  right: 5%;
}

.hero::after {
  background: rgba(15, 23, 42, 0.12);
  bottom: -120px;
  left: 10%;
}

/* توزيع المحتوى يمين/يسار */
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

/* جانب النص */
.hero-content {
  flex: 1;
  max-width: 520px;
}

/* كبسولة تعريف أعلى العنوان */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(237, 26, 59, 0.06);
  border: 1px solid rgba(237, 26, 59, 0.18);
  color: #ef4444;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.hero-badge::before {
  content: "●";
  font-size: 0.6rem;
}

/* العنوان */
.hero-title {
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1.25;
  color: var(--basar-primary, #ED1A3B);
  margin-bottom: 0.75rem;
}

/* النص */
.hero-lead {
  font-size: 1rem;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 1.7rem;
}

/* الأزرار */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* شوية ظل ناعم للأزرار */
.hero-actions .btn {
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
}

/* التاجز أسفل الأزرار */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tag {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #b91c1c;
}

/* جانب الصورة + حركة طافية */
.hero-media {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-mockup {
  max-width: 460px;
  width: 100%;
  animation: heroFloat 8s ease-in-out infinite;
  filter: drop-shadow(0 25px 45px rgba(15, 23, 42, 0.18));
}

/* حركة طفو للصورة */
@keyframes heroFloat {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* أنيميشن دخول لعناصر الهيرو */
.hero-content,
.hero-media {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.9s ease-out forwards;
}

.hero-media {
  animation-delay: 0.15s;
}

.hero-content {
  animation-delay: 0.25s;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* موبايل */
@media (max-width: 992px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions,
  .hero-tags {
    justify-content: center;
  }

  .hero-badge {
    margin-inline: auto;
  }
}


.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-family: inherit;
}

.hero-stat {
  min-width: 90px;
}

.hero-stat-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--basar-primary, #ED1A3B);
}

.hero-stat-label {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
}

/* في الموبايل: محاذاة في المنتصف */
@media (max-width: 768px) {
  .hero-stats {
    justify-content: center;
    text-align: center;
  }
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #6b7280;
  pointer-events: none;
}

.hero-scroll-text {
  letter-spacing: 0.05em;
}

/* شكل الماوس */
.hero-scroll-mouse {
  width: 24px;
  height: 38px;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.8);
  display: flex;
  justify-content: center;
  padding-top: 6px;
  box-sizing: border-box;
  position: relative;
}

.hero-scroll-wheel {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.9);
  animation: scrollWheel 1.5s infinite ease-in-out;
}

@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(6px);
    opacity: 0.4;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* في الموبايل: نخففه أو نخفيه لو حاب */
@media (max-width: 640px) {
  .hero-scroll {
    bottom: 1rem;
    font-size: 0.75rem;
  }
}

.hero {
  position: relative;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 3.3rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--basar-primary);
  text-shadow: 0 2px 10px rgba(237, 26, 59, 0.15);
}

.hero-stat-label {
  font-size: 1rem;
  color: #4b5563;
  margin-top: 0.3rem;
}

.hero {
  position: relative;
  /* مهم عشان المؤشر يثبت تحت الهيرو */
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #6b7280;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  bottom: 25px;
}

.hero-scroll-text {
  font-size: 1rem;
  opacity: 0.8;
}

/* شكل الماوس */
.hero-scroll-mouse {
  width: 24px;
  height: 38px;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.8);
  display: flex;
  justify-content: center;
  padding-top: 6px;
  box-sizing: border-box;
  position: relative;
}

.hero-scroll-mouse {
  width: 28px;
  height: 44px;
  border: 2px solid #cbd5e1;
  border-radius: 50px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(6px);
    opacity: 0.4;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 640px) {
  .hero-scroll {
    bottom: 1rem;
    font-size: 0.75rem;
  }
}

.hero-inner {
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

/* تحسين الصورة */
.hero-media {
  display: flex;
  justify-content: center;
}

.hero-media img {
  max-width: 500px;
  /* max-height: max-content; */
  width: 100%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.18));
  animation: floatHero 7s ease-in-out infinite;
  opacity: 90%;
}

@keyframes floatHero {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.2rem;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--basar-primary);
  display: block;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 8px rgba(237, 26, 59, 0.15);
}

.hero-stat-label {
  color: #6b7280;
  font-size: 0.95rem;
}

.hero-title {
  font-weight: 900;
  background: linear-gradient(135deg,
      #090909 50%,
      #ff4d6b 65%
      /* #ff8fa3 5%,
        #ffffff 80% */
    );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  /* عمق للنص */
  filter: drop-shadow(0 4px 12px rgba(212, 5, 36, 0.25));

  animation: heroFade 1.2s ease forwards;
  opacity: 0;
}


@keyframes heroFade {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  box-shadow: 0 0 20px rgba(237, 26, 59, 0.15);
}

/* ===== Animated WhatsApp Button ===== */
.hero-whatsapp {
  animation: whatsPulse 1.8s infinite ease-in-out,
    whatsShake 3.5s infinite ease-in-out;
  transform-origin: center;
}

/* نبضة لطيفة */
@keyframes whatsPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

/* اهتزاز خفيف يلفت الانتباه */
@keyframes whatsShake {

  0%,
  90%,
  100% {
    transform: translateX(0);
  }

  93% {
    transform: translateX(-3px);
  }

  96% {
    transform: translateX(3px);
  }

  99% {
    transform: translateX(-2px);
  }
}

/* ===== WhatsApp Button Glow + Bounce Animation ===== */

.hero-whatsapp {
  animation: whatsBounce 2s infinite ease-in-out,
    whatsGlow 2.2s infinite ease-in-out;
  box-shadow: 0 0 0 rgba(37, 211, 102, 0.0);
  /* أساس للأنيميشن */
}

/* Bounce */
@keyframes whatsBounce {
  0% {
    transform: translateY(0);
  }

  20% {
    transform: translateY(-6px);
  }

  40% {
    transform: translateY(0);
  }

  60% {
    transform: translateY(-4px);
  }

  80% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(0);
  }
}

/* Glow (Pulse Light) */
@keyframes whatsGlow {
  0% {
    box-shadow: 0 0 0px rgba(37, 211, 102, 0.0);
  }

  50% {
    box-shadow: 0 0 18px rgba(37, 211, 102, 0.55);
  }

  100% {
    box-shadow: 0 0 0px rgba(37, 211, 102, 0.0);
  }
}

#download-profile {
  background: linear-gradient(135deg, #ed0b0b, #ffffff);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fffefe;

}

/* حاوية الأزرار في الهيرو */
.hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  /* على الديسكتوب: خط واحد */
  gap: 14px;
  justify-content: center;
  /* أو flex-start لو تبيها تبدأ من اليمين */
  align-items: center;
}

/* الأزرار نفسها */
.hero-actions .btn {
  white-space: nowrap;
  /* يمنع كسر النص داخل الزر */
  min-width: 190px;
}

/* على الشاشات الصغيرة: نخليها تلتف */
@media (max-width: 768px) {
  .hero-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-actions .btn {
    flex: 1 1 calc(50% - 10px);
    min-width: 160px;
  }

  /* خلي زر تحميل الملف ياخذ سطر كامل تحت */
  #download-profile {
    flex-basis: 100%;
  }
}


/* new */

.btn-primary {
  background: linear-gradient(135deg, #ED1A3B, #ff4a61);
  color: #fff;
  box-shadow: 0 10px 24px rgba(237, 26, 59, 0.35);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #c0102f, #ED1A3B);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(237, 26, 59, 0.45);
}


.btn-download {
  background: linear-gradient(135deg, #111827, #4b5563);
  color: #fff;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .25);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.35);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.45);
}

.hero-slider {
  width: 100%;
  max-width: 520px;
  /* نفس حجم الصورة الحالية */
  margin-top: 50px;
}

.hero-slider img {
  width: 100%;
  display: block;
  max-width: 700px;
  /* border-radius: 18px; */
  /* box-shadow: 0 20px 40px rgba(2,6,23,.18); */
  object-fit: contain;
}


/* ===== تحسينات بصرية (Animations & Interactions) و UI/UX Overhaul ===== */

/* 1. Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* 2. Modern Navigation */
.header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(2, 6, 23, 0.04);
  transition: all 0.3s ease;
}

.header-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.nav-link {
  border-radius: 99px;
  padding: 8px 16px;
  font-weight: 500;
  color: var(--text-color);
}

.nav-link:hover {
  background: rgba(2, 6, 23, 0.04);
  color: var(--basar-primary);
}

.nav-link::after {
  display: none;
}

/* 3. Hero Polish */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  padding-block: 80px 60px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -1px;
  text-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
}

.hero-actions {
  gap: 12px;
}

.hero-actions .btn {
  border-radius: 99px;
  padding: 12px 28px;
  font-size: 1rem;
  min-height: 52px;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.25);
  border: 1px solid transparent;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.35);
}

.btn-download {
  background: transparent;
  color: var(--text-color);
  border: 2px solid rgba(15, 23, 42, 0.1);
  box-shadow: none;
}

.btn-download:hover {
  background: rgba(15, 23, 42, 0.03);
  border-color: var(--basar-primary);
  color: var(--basar-primary);
  transform: translateY(-2px);
}

/* Shine Effect on Primary Btn */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
}

.btn-primary:hover::after {
  left: 100%;
  transition: 0.5s;
}


/* 4. Card & Global Polish */
.card,
.step,
.benefit,
.testimonial,
.g-review-card,
.policy-card {
  border: 1px solid rgba(2, 6, 23, 0.04);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 30px -10px rgba(2, 6, 23, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.step:hover,
.benefit:hover,
.testimonial:hover {
  border-color: rgba(237, 26, 59, 0.15);
  box-shadow: 0 20px 40px -10px rgba(237, 26, 59, 0.1);
  transform: translateY(-6px);
}

.card:hover .icon svg {
  transform: scale(1.1) rotate(5deg);
  transition: transform 0.3s ease;
}

.icon svg {
  transition: transform 0.3s ease;
}

.icon {
  background: linear-gradient(135deg, rgba(237, 26, 59, 0.1), rgba(237, 26, 59, 0.05));
  border-radius: 16px;
  width: 56px;
  height: 56px;
}

p.lead,
.hero-sub,
.card-text {
  line-height: 1.75;
  color: #475569;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--basar-primary);
  border-radius: 2px;
  margin-top: 8px;
}

/* Footer Polish */
.footer {
  background: #0f172a;
  border-top: 0;
}

.footer-title {
  color: #fff;
  opacity: 0.9;
}

.footer-links a {
  color: #94a3b8;
  transition: color 0.2s;
  padding-block: 2px;
  display: inline-block;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(-4px);
}

/* ===== 7. Services Redesign (User Request) ===== */
#services .cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

#services .card {
  background: #ffffff;
  border: 1px solid rgba(2, 6, 23, 0.05);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

#services .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(237, 26, 59, 0.08);
  border-color: rgba(237, 26, 59, 0.2);
}

/* Red decorative accent on top-right */
#services .card::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  /* RTL layout: left is actually left visually, but check dir */
  width: 48px;
  height: 48px;
  background: rgba(237, 26, 59, 0.03);
  border-radius: 12px;
  z-index: 0;
  transition: all 0.3s ease;
}

#services .card:hover::before {
  background: rgba(237, 26, 59, 0.08);
  transform: scale(1.1);
}

#services .icon {
  width: 56px;
  height: 56px;
  background: rgba(237, 26, 59, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--basar-primary);
  position: relative;
  z-index: 1;
  transition: background 0.3s ease;
}

#services .card:hover .icon {
  background: var(--basar-primary);
  color: #ffffff;
}

#services .card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

#services .card-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #64748b;
  position: relative;
  z-index: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  #services .cards {
    grid-template-columns: 1fr;
  }

  #services .card {
    padding: 24px;
  }
}

/* Hero Pattern - Geometric Brand Shapes */
.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20L10 20H0V0zm25 0h20L35 20H25V0zm25 0h10v20H50V0zM10 25h20L20 45H10V25zm25 0h20L45 45H35V25zm-25 25h20L20 70H10V50z' fill='%23ED1A3B' fill-opacity='1' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
  animation: patternMove 60s linear infinite;
}

/* Subtle animation for the pattern */
@keyframes patternMove {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 60px 60px;
  }
}