/* ==========================================================
   components.css — عناصر مشتركة: أزرار، عنوان السكشن، أيقونة، سلايدر، مؤشر
   ========================================================== */
:root {
  /* Buttons */
  --ebmnt1-btn-primary-gradient: linear-gradient(270deg, var(--ebmnt1-color-primary-light), var(--ebmnt1-color-primary), var(--ebmnt1-color-accent-sky));
  --ebmnt1-btn-primary-background-color: var(--ebmnt1-color-primary);
  --ebmnt1-btn-primary-text-color: var(--ebmnt1-color-white);
  --ebmnt1-btn-primary-shadow-color: var(--ebmnt1-color-primary-glow);
  --ebmnt1-btn-outline-background-color: transparent;
  --ebmnt1-btn-outline-border-color: var(--ebmnt1-color-border-violet);
  --ebmnt1-btn-outline-text-color: var(--ebmnt1-color-secondary);
  --ebmnt1-btn-outline-hover-background-color: var(--ebmnt1-color-primary-soft);
  --ebmnt1-btn-dark-background-color: var(--ebmnt1-color-secondary);
  --ebmnt1-btn-dark-text-color: var(--ebmnt1-color-white);
  --ebmnt1-btn-height: 3.4375rem;
  --ebmnt1-btn-padding-inline: 1.625rem;
  --ebmnt1-btn-font-size: var(--ebmnt1-font-size-label);

  /* Section head */
  --ebmnt1-label-dot-color: var(--ebmnt1-color-primary);
  --ebmnt1-label-text-color: var(--ebmnt1-color-secondary);
  --ebmnt1-label-dot-size: 0.5rem;
  --ebmnt1-head-title-color: var(--ebmnt1-color-secondary);

  /* Icon badge */
  --ebmnt1-icon-badge-gradient: linear-gradient(160deg, var(--ebmnt1-color-primary-light), var(--ebmnt1-color-primary));
  --ebmnt1-icon-badge-icon-color: var(--ebmnt1-color-white);
  --ebmnt1-icon-badge-size: 3rem;
  --ebmnt1-icon-badge-radius: 12px;

  /* Slider */
  --ebmnt1-slider-gap: 1rem;
  --ebmnt1-slider-peek: 2.25rem;
  --ebmnt1-slider-visible: 1;
  --ebmnt1-slider-arrow-size: 3rem;
  --ebmnt1-slider-arrow-background-color: var(--ebmnt1-color-white);
  --ebmnt1-slider-arrow-border-color: var(--ebmnt1-color-border-violet);
  --ebmnt1-slider-arrow-icon-color: var(--ebmnt1-color-secondary);
  --ebmnt1-slider-arrow-hover-background-color: var(--ebmnt1-color-primary);
  --ebmnt1-slider-arrow-hover-icon-color: var(--ebmnt1-color-white);

  /* Cursor */
  --ebmnt1-cursor-ring-size: 2.25rem;
  --ebmnt1-cursor-ring-border-color: var(--ebmnt1-color-primary);
  --ebmnt1-cursor-ring-background-color: var(--ebmnt1-color-primary-soft);
  --ebmnt1-cursor-dot-color: var(--ebmnt1-color-primary);
  --ebmnt1-cursor-label-text-color: var(--ebmnt1-color-white);
  --ebmnt1-cursor-label-background-color: var(--ebmnt1-color-primary);
}

/* ---------- Buttons ---------- */
.ebmnt1-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: var(--ebmnt1-btn-height);
  padding-inline: var(--ebmnt1-btn-padding-inline);
  border: 1px solid transparent;
  border-radius: var(--ebmnt1-radius-button);
  font-size: var(--ebmnt1-btn-font-size);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--ebmnt1-transition-duration) var(--ebmnt1-transition-easing),
    box-shadow var(--ebmnt1-transition-duration) var(--ebmnt1-transition-easing),
    background-color var(--ebmnt1-transition-duration) var(--ebmnt1-transition-easing),
    background-position 0.6s var(--ebmnt1-transition-easing);
}

.ebmnt1-btn:hover {
  transform: translateY(-2px);
}

.ebmnt1-btn__text {
  position: relative;
  display: inline-block;
  height: 1.5em;
  line-height: 1.5em;
  overflow: hidden;
}

.ebmnt1-btn__text-inner {
  display: block;
  transition: transform var(--ebmnt1-transition-duration) var(--ebmnt1-transition-easing);
}

.ebmnt1-btn__text-inner::after {
  content: attr(data-text);
  position: absolute;
  inset-inline: 0;
  top: 100%;
  display: block;
}

.ebmnt1-btn:hover .ebmnt1-btn__text-inner {
  transform: translateY(-100%);
}

.ebmnt1-btn__icon {
  font-size: 1em;
  transition: transform var(--ebmnt1-transition-duration) var(--ebmnt1-transition-easing);
}

.ebmnt1-btn:hover .ebmnt1-btn__icon {
  transform: translateX(-4px) rotate(-8deg);
}

.ebmnt1-btn--primary {
  color: var(--ebmnt1-btn-primary-text-color);
  background-color: var(--ebmnt1-btn-primary-background-color);
  background-image: var(--ebmnt1-btn-primary-gradient);
  background-size: 200% 100%;
  background-position: 0% 0;
}

.ebmnt1-btn--primary:hover {
  background-position: 100% 0;
  box-shadow: 0 10px 24px var(--ebmnt1-btn-primary-shadow-color);
}

.ebmnt1-btn--outline {
  color: var(--ebmnt1-btn-outline-text-color);
  background-color: var(--ebmnt1-btn-outline-background-color);
  border-color: var(--ebmnt1-btn-outline-border-color);
}

.ebmnt1-btn--outline:hover {
  background-color: var(--ebmnt1-btn-outline-hover-background-color);
}

.ebmnt1-btn--dark {
  color: var(--ebmnt1-btn-dark-text-color);
  background-color: var(--ebmnt1-btn-dark-background-color);
}

.ebmnt1-btn--on-dark {
  --ebmnt1-btn-outline-text-color: var(--ebmnt1-color-white);
  --ebmnt1-btn-outline-hover-background-color: var(--ebmnt1-color-white-soft);
}

/* ---------- Label + Section head ---------- */
.ebmnt1-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--ebmnt1-font-size-label);
  font-weight: 500;
  color: var(--ebmnt1-label-text-color);
}

.ebmnt1-label::before {
  content: "";
  width: var(--ebmnt1-label-dot-size);
  height: var(--ebmnt1-label-dot-size);
  border-radius: 50%;
  background-color: var(--ebmnt1-label-dot-color);
}

.ebmnt1-section-head {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  text-align: start;
}

.ebmnt1-section-head__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.ebmnt1-section-head__title {
  font-size: var(--ebmnt1-font-size-section-title);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ebmnt1-head-title-color);
  max-width: 20ch;
}

.ebmnt1-section-head--center {
  align-items: center;
  text-align: center;
}

.ebmnt1-section-head--center .ebmnt1-section-head__text {
  align-items: center;
}

.ebmnt1-section-head--center .ebmnt1-section-head__title {
  max-width: 24ch;
}

.ebmnt1-section-head__description {
  max-width: var(--ebmnt1-text-max-width-section);
  font-size: var(--ebmnt1-font-size-body);
}

@media (min-width: 768px) {
  .ebmnt1-section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .ebmnt1-section-head--center {
    flex-direction: column;
    align-items: center;
  }
}

.ebmnt1-on-dark {
  --ebmnt1-label-dot-color: var(--ebmnt1-color-primary-light);
  --ebmnt1-label-text-color: var(--ebmnt1-color-white);
  --ebmnt1-head-title-color: var(--ebmnt1-color-white);
}

/* ---------- Icon badge ---------- */
.ebmnt1-icon-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ebmnt1-icon-badge-size);
  height: var(--ebmnt1-icon-badge-size);
  border-radius: var(--ebmnt1-icon-badge-radius);
  background-image: var(--ebmnt1-icon-badge-gradient);
  color: var(--ebmnt1-icon-badge-icon-color);
  font-size: calc(var(--ebmnt1-icon-badge-size) * 0.42);
}

/* ---------- Slider ---------- */
.ebmnt1-slider {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ebmnt1-slider__track {
  display: flex;
  gap: var(--ebmnt1-slider-gap);
  padding-inline: var(--ebmnt1-slider-peek);
  scroll-padding-inline: var(--ebmnt1-slider-peek);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
  text-align: start;
  touch-action: pan-y;
}

.ebmnt1-slider__track::-webkit-scrollbar {
  display: none;
}

.ebmnt1-slider__track.ebmnt1-is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.ebmnt1-slider__track img {
  -webkit-user-drag: none;
  user-select: none;
}

.ebmnt1-slider__slide {
  flex: 0 0 calc((100% - (var(--ebmnt1-slider-visible) - 1) * var(--ebmnt1-slider-gap)) / var(--ebmnt1-slider-visible));
  scroll-snap-align: start;
  min-width: 0;
}

.ebmnt1-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.ebmnt1-slider__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ebmnt1-slider-arrow-size);
  height: var(--ebmnt1-slider-arrow-size);
  border: 1px solid var(--ebmnt1-slider-arrow-border-color);
  border-radius: 50%;
  background-color: var(--ebmnt1-slider-arrow-background-color);
  color: var(--ebmnt1-slider-arrow-icon-color);
  transition: background-color var(--ebmnt1-transition-duration) var(--ebmnt1-transition-easing),
    color var(--ebmnt1-transition-duration) var(--ebmnt1-transition-easing),
    opacity var(--ebmnt1-transition-duration) var(--ebmnt1-transition-easing);
}

.ebmnt1-slider__arrow:hover:not(:disabled) {
  background-color: var(--ebmnt1-slider-arrow-hover-background-color);
  color: var(--ebmnt1-slider-arrow-hover-icon-color);
}

.ebmnt1-slider__arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- Custom cursor (desktop only) ---------- */
.ebmnt1-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .ebmnt1-cursor {
    display: block;
  }

  .ebmnt1-cursor__ring,
  .ebmnt1-cursor__dot {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
  }

  .ebmnt1-cursor__ring {
    width: var(--ebmnt1-cursor-ring-size);
    height: var(--ebmnt1-cursor-ring-size);
    margin-top: calc(var(--ebmnt1-cursor-ring-size) / -2);
    margin-left: calc(var(--ebmnt1-cursor-ring-size) / -2);
    border: 1px solid var(--ebmnt1-cursor-ring-border-color);
    background-color: var(--ebmnt1-cursor-ring-background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ebmnt1-cursor-label-text-color);
    transition: width 0.25s var(--ebmnt1-transition-easing), height 0.25s var(--ebmnt1-transition-easing),
      margin 0.25s var(--ebmnt1-transition-easing), background-color 0.25s, opacity 0.25s;
  }

  .ebmnt1-cursor__dot {
    width: 0.375rem;
    height: 0.375rem;
    margin-top: -0.1875rem;
    margin-left: -0.1875rem;
    background-color: var(--ebmnt1-cursor-dot-color);
  }

  .ebmnt1-cursor.ebmnt1-is-link .ebmnt1-cursor__ring {
    --ebmnt1-cursor-ring-size: 3.5rem;
  }

  .ebmnt1-cursor.ebmnt1-is-drag .ebmnt1-cursor__ring {
    --ebmnt1-cursor-ring-size: 4.75rem;
    background-color: var(--ebmnt1-cursor-label-background-color);
  }

  .ebmnt1-cursor.ebmnt1-is-hidden {
    opacity: 0;
  }
}
