/* ── بطاقة بيانات المكتب — عند الضغط على شعار العميل ── */
.com-overlay {
  --com-navy: #1b355b;
  --com-blue: #1f6aa5;
  --com-gold: #b3853b;
  --com-brown: #7a5a2a;
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
}
.com-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.com-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.com-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease 0.2s;
}
.com-overlay.is-open .com-orb { opacity: 1; }
.com-orb--1 {
  width: 280px;
  height: 280px;
  top: 10%;
  inset-inline-start: 8%;
  background: radial-gradient(circle, rgba(179, 133, 59, 0.25), transparent 70%);
  animation: com-orb-drift 8s ease-in-out infinite;
}
.com-orb--2 {
  width: 200px;
  height: 200px;
  bottom: 12%;
  inset-inline-end: 10%;
  background: radial-gradient(circle, rgba(31, 106, 165, 0.2), transparent 70%);
  animation: com-orb-drift 6s ease-in-out infinite reverse;
}
@keyframes com-orb-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -18px); }
}

.com-panel {
  position: relative;
  width: min(480px, 100%);
  max-height: min(90vh, 640px);
  overflow-y: auto;
  background: linear-gradient(165deg, #fff 0%, #faf8f4 100%);
  border-radius: 24px;
  border: 2px solid rgba(179, 133, 59, 0.35);
  box-shadow:
    0 32px 80px rgba(13, 27, 42, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transform: scale(0.88) translateY(40px);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}
.com-overlay.is-open .com-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.com-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, var(--com-gold), var(--com-blue), var(--com-brown), var(--com-gold));
  background-size: 300% 100%;
  animation: com-stripe 4s linear infinite;
}
@keyframes com-stripe {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.com-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(27, 53, 91, 0.08);
  color: var(--com-navy);
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.25s, transform 0.25s, color 0.25s;
}
.com-close:hover {
  background: var(--com-navy);
  color: #fff;
  transform: rotate(90deg);
}

.com-hero {
  text-align: center;
  padding: 40px 32px 28px;
  position: relative;
}
.com-logo-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  border: 2px solid rgba(179, 133, 59, 0.3);
  box-shadow: 0 12px 36px rgba(27, 53, 91, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7) rotate(-8deg);
  transition: opacity 0.5s 0.15s ease, transform 0.6s 0.15s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.com-overlay.is-open .com-logo-wrap {
  opacity: 1;
  transform: scale(1) rotate(0);
}
.com-logo-wrap img {
  max-width: 100%;
  max-height: 88px;
  object-fit: contain;
}

.com-name {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 4vw, 1.45rem);
  font-weight: 800;
  color: var(--com-navy);
  line-height: 1.45;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s 0.28s ease, transform 0.5s 0.28s ease;
}
.com-overlay.is-open .com-name {
  opacity: 1;
  transform: translateY(0);
}

.com-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(179, 133, 59, 0.14);
  color: var(--com-brown);
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s 0.38s ease, transform 0.5s 0.38s ease;
}
.com-overlay.is-open .com-badge {
  opacity: 1;
  transform: translateY(0);
}
.com-badge i { color: var(--com-gold); font-size: 0.75rem; }

.com-section-title {
  margin: 0 0 16px;
  padding: 0 32px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--com-blue);
  text-align: center;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s 0.45s ease, transform 0.45s 0.45s ease;
}
.com-overlay.is-open .com-section-title {
  opacity: 1;
  transform: translateY(0);
}

.com-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 28px 32px;
}

.com-detail-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 2px solid rgba(27, 53, 91, 0.08);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(27, 53, 91, 0.06);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, box-shadow 0.3s;
}
[dir="ltr"] .com-detail-card { transform: translateX(-24px); }
.com-overlay.is-open .com-detail-card {
  opacity: 1;
  transform: translateX(0);
}
.com-detail-card:nth-child(1) { transition-delay: 0.52s; }
.com-detail-card:nth-child(2) { transition-delay: 0.64s; }
.com-detail-card:nth-child(3) { transition-delay: 0.76s; }
.com-detail-card:hover {
  border-color: rgba(179, 133, 59, 0.45);
  box-shadow: 0 10px 28px rgba(27, 53, 91, 0.1);
}

.com-detail-card__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--com-navy), var(--com-blue));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 6px 16px rgba(27, 53, 91, 0.2);
  transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.com-detail-card:hover .com-detail-card__icon {
  transform: scale(1.1) rotate(-4deg);
}

.com-detail-card__body { flex: 1; text-align: start; }
.com-detail-card__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7a8a;
  margin-bottom: 4px;
}
.com-detail-card__value {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--com-navy);
}

.com-footer {
  padding: 0 28px 28px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s 0.88s ease;
}
.com-overlay.is-open .com-footer { opacity: 1; }
.com-footer__line {
  width: 60px;
  height: 3px;
  margin: 0 auto 16px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--com-gold), var(--com-blue));
}

/* شعار قابل للنقر */
.clients-logo--interactive {
  border: none;
  font: inherit;
  cursor: pointer;
  text-align: inherit;
}
.clients-logo--interactive:focus-visible {
  outline: 3px solid var(--gold, #b3853b);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .com-panel,
  .com-logo-wrap,
  .com-name,
  .com-badge,
  .com-section-title,
  .com-detail-card,
  .com-footer,
  .com-orb {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
