/* =========================================================
   hero.css — الهيرو بخلفية لون (بدون صورة) + CTA + كروت 3D / Glow
   ========================================================= */

:root {
  --ebmnt1-hero-inner-bg-color: #004250;
  --ebmnt1-hero-title-font-size: clamp(2rem, 1.2rem + 3.6vw, 3.4rem);
  --ebmnt1-hero-title-text-color: #ffffff;
  --ebmnt1-hero-title-accent-text-color: #ffc107;
  --ebmnt1-hero-text-font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  --ebmnt1-hero-text-color: rgba(255, 255, 255, 0.9);

  --ebmnt1-hero-visual-bg-color: #012c3d;
  --ebmnt1-hero-visual-border-color: rgba(255, 193, 7, 0.35);
  --ebmnt1-hero-visual-ring-border-color: rgba(255, 193, 7, 0.55);
  --ebmnt1-hero-visual-image-border-color: #ffc107;
  --ebmnt1-hero-visual-image-glow-color: rgba(255, 193, 7, 0.35);
  --ebmnt1-hero-dot-color: rgba(255, 255, 255, 0.16);

  --ebmnt1-hero-inner-gap: 2.5em;

  /* كروت الهيرو 3D + Glow */
  --ebmnt1-hero-cards-gap: 0.9em;
  --ebmnt1-hero-card-perspective: 900px;
  --ebmnt1-hero-card-bg-start-color: rgba(255, 255, 255, 0.12);
  --ebmnt1-hero-card-bg-end-color: rgba(255, 255, 255, 0.03);
  --ebmnt1-hero-card-border-color: rgba(255, 193, 7, 0.28);
  --ebmnt1-hero-card-hover-border-color: #ffc107;
  --ebmnt1-hero-card-radius: 1.4rem;
  --ebmnt1-hero-card-shadow-color: rgba(0, 0, 0, 0.3);
  --ebmnt1-hero-card-highlight-color: rgba(255, 255, 255, 0.2);
  --ebmnt1-hero-card-glow-color: rgba(255, 193, 7, 0.4);
  --ebmnt1-hero-card-hover-shadow-color: rgba(255, 193, 7, 0.38);
  --ebmnt1-hero-card-edge-light-color: #ffc107;
  --ebmnt1-hero-card-icon-bg-color: #ffc107;
  --ebmnt1-hero-card-icon-color: #012c3d;
  --ebmnt1-hero-card-icon-font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.55rem);
  --ebmnt1-hero-card-icon-glow-color: rgba(255, 193, 7, 0.55);
  --ebmnt1-hero-card-title-font-size: clamp(0.95rem, 0.88rem + 0.35vw, 1.2rem);
  --ebmnt1-hero-card-title-text-color: #ffffff;
  --ebmnt1-hero-card-text-font-size: clamp(0.78rem, 0.74rem + 0.2vw, 0.95rem);
  --ebmnt1-hero-card-text-color: rgba(255, 255, 255, 0.78);
}

.ebmnt1-hero__inner {
  background-color: var(--ebmnt1-hero-inner-bg-color);
}

.ebmnt1-hero__body {
  flex-direction: column;
  align-items: center;
  gap: var(--ebmnt1-hero-inner-gap);
}

.ebmnt1-hero__main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ebmnt1-hero-inner-gap);
}

.ebmnt1-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
  text-align: center;
}

.ebmnt1-hero__title {
  font-size: var(--ebmnt1-hero-title-font-size);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ebmnt1-hero-title-text-color);
}

.ebmnt1-hero__title-accent {
  color: var(--ebmnt1-hero-title-accent-text-color);
}

.ebmnt1-hero__text {
  max-width: 34rem;
  font-size: var(--ebmnt1-hero-text-font-size);
  color: var(--ebmnt1-hero-text-color);
}

/* CTA الهيرو: زرّان جنب بعض حتى في 350px */
.ebmnt1-hero__actions {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
}

/* الجزء البصري: صورة دائرية بحلقة منقطة */
.ebmnt1-hero__visual {
  position: relative;
  width: min(100%, 20rem);
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--ebmnt1-hero-visual-bg-color);
  border: 1px solid var(--ebmnt1-hero-visual-border-color);
  border-radius: 50%;
  background-image: radial-gradient(var(--ebmnt1-hero-dot-color) 1.5px, transparent 1.5px);
  background-size: 1.2em 1.2em;
}

.ebmnt1-hero__visual-ring {
  position: absolute;
  inset: 7%;
  border: 2px dashed var(--ebmnt1-hero-visual-ring-border-color);
  border-radius: 50%;
  animation: ebmnt1-hero-rotate 24s linear infinite;
}

.ebmnt1-hero__visual-core {
  width: 72%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 4px solid var(--ebmnt1-hero-visual-image-border-color);
  border-radius: 50%;
  box-shadow: 0 0 2.2em var(--ebmnt1-hero-visual-image-glow-color);
  animation: ebmnt1-hero-pulse 3.5s ease-in-out infinite;
}

.ebmnt1-hero__visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* ---------- كروت الهيرو ---------- */
.ebmnt1-hero__cards {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--ebmnt1-hero-cards-gap);
}

.ebmnt1-hero__card-item {
  flex: 1 1 calc((100% - var(--ebmnt1-hero-cards-gap)) / 2);
  max-width: calc((100% - var(--ebmnt1-hero-cards-gap)) / 2);
  display: flex;
  perspective: var(--ebmnt1-hero-card-perspective);
}

.ebmnt1-hero-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55em;
  padding: 1.2em 0.7em;
  text-align: center;
  background: linear-gradient(145deg, var(--ebmnt1-hero-card-bg-start-color), var(--ebmnt1-hero-card-bg-end-color));
  border: 1px solid var(--ebmnt1-hero-card-border-color);
  border-radius: var(--ebmnt1-hero-card-radius);
  box-shadow: 0 1.2em 2em var(--ebmnt1-hero-card-shadow-color), inset 0 1px 0 var(--ebmnt1-hero-card-highlight-color);
  transform-style: preserve-3d;
  transform: rotateX(var(--ebmnt1-tilt-x, 0deg)) rotateY(var(--ebmnt1-tilt-y, 0deg));
  transition: transform 0.25s ease-out, box-shadow 0.35s ease, border-color 0.35s ease;
}

.ebmnt1-hero-card.ebmnt1-is-tilting {
  transition: transform 0.08s linear, box-shadow 0.35s ease, border-color 0.35s ease;
}

.ebmnt1-hero-card:hover,
.ebmnt1-hero-card:active {
  border-color: var(--ebmnt1-hero-card-hover-border-color);
  box-shadow: 0 1.6em 2.4em var(--ebmnt1-hero-card-shadow-color), 0 0 1.8em var(--ebmnt1-hero-card-hover-shadow-color), inset 0 1px 0 var(--ebmnt1-hero-card-highlight-color);
}

/* توهّج يتبع المؤشر */
.ebmnt1-hero-card__glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--ebmnt1-glow-x, 50%) var(--ebmnt1-glow-y, 0%), var(--ebmnt1-hero-card-glow-color), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.ebmnt1-hero-card:hover .ebmnt1-hero-card__glow,
.ebmnt1-hero-card:active .ebmnt1-hero-card__glow {
  opacity: 1;
}

/* خط ضوء سفلي */
.ebmnt1-hero-card::after {
  content: "";
  position: absolute;
  inset-inline: 18%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right, transparent, var(--ebmnt1-hero-card-edge-light-color), transparent);
  opacity: 0.6;
}

/* عناصر بارزة بعمق Z */
.ebmnt1-hero-card__icon {
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--ebmnt1-hero-card-icon-font-size);
  color: var(--ebmnt1-hero-card-icon-color);
  background-color: var(--ebmnt1-hero-card-icon-bg-color);
  border-radius: 50%;
  box-shadow: 0 0 1.2em var(--ebmnt1-hero-card-icon-glow-color);
  transform: translateZ(2.2rem);
  animation: ebmnt1-hero-icon-glow 3s ease-in-out infinite;
}

.ebmnt1-hero-card__title {
  font-size: var(--ebmnt1-hero-card-title-font-size);
  font-weight: 700;
  color: var(--ebmnt1-hero-card-title-text-color);
  transform: translateZ(1.2rem);
}

.ebmnt1-hero-card__text {
  font-size: var(--ebmnt1-hero-card-text-font-size);
  line-height: 1.5;
  color: var(--ebmnt1-hero-card-text-color);
  transform: translateZ(0.6rem);
}

@keyframes ebmnt1-hero-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ebmnt1-hero-pulse {
  50% {
    transform: scale(1.04);
  }
}

@keyframes ebmnt1-hero-icon-glow {
  50% {
    box-shadow: 0 0 2em var(--ebmnt1-hero-card-icon-glow-color);
  }
}

@media (min-width: 768px) {
  .ebmnt1-hero__visual {
    width: min(100%, 24rem);
  }
}

@media (min-width: 992px) {
  .ebmnt1-hero__main {
    flex-direction: row;
    justify-content: space-between;
    gap: 3em;
  }

  .ebmnt1-hero__content {
    flex: 1;
    align-items: flex-start;
    text-align: start;
  }

  .ebmnt1-hero__actions {
    justify-content: flex-start;
  }

  .ebmnt1-hero__visual {
    width: 24rem;
    flex-shrink: 0;
  }

  .ebmnt1-hero__card-item {
    flex: 1 1 calc((100% - 3 * var(--ebmnt1-hero-cards-gap)) / 4);
    max-width: calc((100% - 3 * var(--ebmnt1-hero-cards-gap)) / 4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ebmnt1-hero__visual-ring,
  .ebmnt1-hero__visual-core,
  .ebmnt1-hero-card__icon {
    animation: none;
  }
}
