@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&display=swap');

/* =========================================================
   base.css — المتغيرات العامة، الريسيت، هيكل main، السكشن، العناوين، الأزرار، الأنيميشن
   ========================================================= */

:root {
  /* Typography */
  --ebmnt1-heading-font-family: "El Messiri", sans-serif;
  --ebmnt1-body-font-family: "El Messiri", sans-serif;
  --ebmnt1-body-font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --ebmnt1-body-line-height: 1.8;

  /* Body */
  --ebmnt1-body-bg-color: #ffffff;
  --ebmnt1-body-text-color: #555555;
  --ebmnt1-body-selection-bg-color: #ffc107;
  --ebmnt1-body-selection-text-color: #012c3d;
  --ebmnt1-focus-outline-color: #ffc107;

  /* Layout */
  --ebmnt1-container-max-width: 90rem;
  --ebmnt1-main-gap: 5em;
  --ebmnt1-page-gap: 1.5em;
  --ebmnt1-section-inner-gap: 2em;
  --ebmnt1-section-master-bg-color: transparent;
  --ebmnt1-section-inner-bg-color: transparent;
  --ebmnt1-block-radius: 1.5rem;
  --ebmnt1-block-edge-space: 1.5em;

  /* Section heading */
  --ebmnt1-heading-tag-font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1.05rem);
  --ebmnt1-heading-tag-text-color: #ffc107;
  --ebmnt1-heading-tag-icon-color: #ffc107;
  --ebmnt1-heading-title-font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.4rem);
  --ebmnt1-heading-title-text-color: #004250;
  --ebmnt1-heading-title-accent-text-color: #ffc107;
  --ebmnt1-heading-light-title-text-color: #ffffff;

  /* Buttons */
  --ebmnt1-button-font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
  --ebmnt1-button-bg-color: #ffc107;
  --ebmnt1-button-text-color: #012c3d;
  --ebmnt1-button-icon-color: #012c3d;
  --ebmnt1-button-border-color: #ffc107;
  --ebmnt1-button-hover-bg-color: #012c3d;
  --ebmnt1-button-hover-text-color: #ffffff;
  --ebmnt1-button-hover-icon-color: #ffc107;
  --ebmnt1-button-hover-border-color: #012c3d;
  --ebmnt1-button-radius: 1.9rem;
  --ebmnt1-button-outline-text-color: #ffffff;
  --ebmnt1-button-outline-border-color: #ffffff;
  --ebmnt1-button-outline-hover-bg-color: #ffffff;
  --ebmnt1-button-outline-hover-text-color: #012c3d;
  --ebmnt1-button-whatsapp-bg-color: #25d366;
  --ebmnt1-button-whatsapp-text-color: #ffffff;
  --ebmnt1-button-whatsapp-icon-color: #ffffff;
  --ebmnt1-button-whatsapp-border-color: #25d366;
  --ebmnt1-button-whatsapp-hover-bg-color: #1da851;
  --ebmnt1-button-whatsapp-hover-border-color: #1da851;
  --ebmnt1-button-whatsapp-hover-text-color: #ffffff;
  --ebmnt1-button-whatsapp-hover-icon-color: #ffffff;
  --ebmnt1-button-compact-font-size: clamp(0.78rem, 0.7rem + 0.45vw, 0.98rem);

  /* Reveal animation */
  --ebmnt1-reveal-distance: 2em;
  --ebmnt1-reveal-duration: 0.8s;
  --ebmnt1-reveal-easing: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ebmnt1-split-word-delay-step: 70ms;

  /* Preloader */
  --ebmnt1-preloader-bg-color: #ffffff;
  --ebmnt1-preloader-ring-accent-color: #ffc107;
  --ebmnt1-preloader-ring-base-color: #5a3a2e;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ebmnt1-body-font-family);
  font-size: var(--ebmnt1-body-font-size);
  line-height: var(--ebmnt1-body-line-height);
  color: var(--ebmnt1-body-text-color);
  background-color: var(--ebmnt1-body-bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: var(--ebmnt1-page-gap);
  overflow-x: hidden;
}

::selection {
  background-color: var(--ebmnt1-body-selection-bg-color);
  color: var(--ebmnt1-body-selection-text-color);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--ebmnt1-focus-outline-color);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--ebmnt1-heading-font-family);
  line-height: 1.4;
}

/* ---------- الهيكل العام: header => main => footer ---------- */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ebmnt1-main-gap);
  width: 100%;
}

/* عنصر وهمي أخير يعطي نفس مسافة الـ gap بين آخر سكشن والفوتر */
main::after {
  content: "";
}

/* ---------- السكشن: master + inner ---------- */
.ebmnt1-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--ebmnt1-section-master-bg-color);
}

.ebmnt1-section__inner {
  width: calc(100% - 2em);
  max-width: var(--ebmnt1-container-max-width);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: var(--ebmnt1-section-inner-gap);
  background-color: var(--ebmnt1-section-inner-bg-color);
}

/* الكتل الملونة ذات الزوايا الدائرية: المسافة من الحواف تأتي من عناصر وهمية داخل الـ flex */
.ebmnt1-section__inner--block {
  border-radius: var(--ebmnt1-block-radius);
  overflow: hidden;
  position: relative;
}

.ebmnt1-section__inner--block::before,
.ebmnt1-section__inner--block::after {
  content: "";
  flex-shrink: 0;
  height: var(--ebmnt1-block-edge-space);
}

.ebmnt1-section__body {
  width: calc(100% - 2em);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ebmnt1-section-inner-gap);
  position: relative;
  z-index: 1;
}

/* ---------- عنوان القسم ---------- */
.ebmnt1-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6em;
  text-align: center;
}

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

.ebmnt1-heading__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--ebmnt1-heading-font-family);
  font-size: var(--ebmnt1-heading-tag-font-size);
  font-weight: 700;
  color: var(--ebmnt1-heading-tag-text-color);
}

.ebmnt1-heading__tag i {
  color: var(--ebmnt1-heading-tag-icon-color);
}

.ebmnt1-heading__title {
  font-size: var(--ebmnt1-heading-title-font-size);
  font-weight: 800;
  color: var(--ebmnt1-heading-title-text-color);
}

.ebmnt1-heading--light .ebmnt1-heading__title {
  color: var(--ebmnt1-heading-light-title-text-color);
}

.ebmnt1-heading__accent {
  color: var(--ebmnt1-heading-title-accent-text-color);
}

/* ---------- الأزرار ---------- */
.ebmnt1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.75em 1.6em;
  font-family: var(--ebmnt1-heading-font-family);
  font-size: var(--ebmnt1-button-font-size);
  font-weight: 700;
  color: var(--ebmnt1-button-text-color);
  background-color: var(--ebmnt1-button-bg-color);
  border: 1px solid var(--ebmnt1-button-border-color);
  border-radius: var(--ebmnt1-button-radius);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.ebmnt1-btn i {
  color: var(--ebmnt1-button-icon-color);
  transition: color 0.3s ease, transform 0.3s ease;
}

.ebmnt1-btn:hover {
  color: var(--ebmnt1-button-hover-text-color);
  background-color: var(--ebmnt1-button-hover-bg-color);
  border-color: var(--ebmnt1-button-hover-border-color);
  transform: translateY(-2px);
}

.ebmnt1-btn:hover i {
  color: var(--ebmnt1-button-hover-icon-color);
  transform: rotate(-12deg) scale(1.15);
}

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

.ebmnt1-btn--outline i {
  color: var(--ebmnt1-button-outline-text-color);
}

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

.ebmnt1-btn--outline:hover i {
  color: var(--ebmnt1-button-outline-hover-text-color);
}

/* زر مضغوط: يتسع جنب زر تاني حتى في شاشة 350px (تقليل padding وحجم الخط) */
.ebmnt1-btn--compact {
  gap: 0.4em;
  padding: 0.6em 0.9em;
  font-size: var(--ebmnt1-button-compact-font-size);
  white-space: nowrap;
}

@media (min-width: 576px) {
  .ebmnt1-btn--compact {
    gap: 0.6em;
    padding: 0.75em 1.5em;
  }
}

.ebmnt1-btn--whatsapp {
  color: var(--ebmnt1-button-whatsapp-text-color);
  background-color: var(--ebmnt1-button-whatsapp-bg-color);
  border-color: var(--ebmnt1-button-whatsapp-border-color);
}

.ebmnt1-btn--whatsapp i {
  color: var(--ebmnt1-button-whatsapp-icon-color);
}

.ebmnt1-btn--whatsapp:hover {
  color: var(--ebmnt1-button-whatsapp-hover-text-color);
  background-color: var(--ebmnt1-button-whatsapp-hover-bg-color);
  border-color: var(--ebmnt1-button-whatsapp-hover-border-color);
}

.ebmnt1-btn--whatsapp:hover i {
  color: var(--ebmnt1-button-whatsapp-hover-icon-color);
}

/* ---------- أنيميشن الظهور بالسكرول ---------- */
.ebmnt1-js [data-ebmnt1-reveal] {
  opacity: 0;
  transition: opacity var(--ebmnt1-reveal-duration) var(--ebmnt1-reveal-easing),
    transform var(--ebmnt1-reveal-duration) var(--ebmnt1-reveal-easing);
  transition-delay: var(--ebmnt1-reveal-delay, 0s);
}

.ebmnt1-js [data-ebmnt1-reveal="up"] {
  transform: translateY(var(--ebmnt1-reveal-distance));
}

.ebmnt1-js [data-ebmnt1-reveal="start"] {
  transform: translateX(calc(var(--ebmnt1-reveal-distance) * 1.5));
}

.ebmnt1-js [data-ebmnt1-reveal="end"] {
  transform: translateX(calc(var(--ebmnt1-reveal-distance) * -1.5));
}

.ebmnt1-js [data-ebmnt1-reveal="fade"] {
  transform: none;
}

.ebmnt1-js [data-ebmnt1-reveal].ebmnt1-is-visible {
  opacity: 1;
  transform: none;
}

/* ظهور العنوان كلمة بكلمة (الحرف بحرف يكسر اتصال الحروف العربية) */
.ebmnt1-split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 0.6s ease, transform 0.6s var(--ebmnt1-reveal-easing);
  transition-delay: calc(var(--ebmnt1-word-index) * var(--ebmnt1-split-word-delay-step));
}

.ebmnt1-is-visible .ebmnt1-split-word {
  opacity: 1;
  transform: none;
}

/* ---------- Preloader ---------- */
.ebmnt1-preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--ebmnt1-preloader-bg-color);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.ebmnt1-preloader.ebmnt1-is-hidden {
  opacity: 0;
  visibility: hidden;
}

.ebmnt1-preloader__ring {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  border: 3px solid var(--ebmnt1-preloader-ring-base-color);
  border-top-color: var(--ebmnt1-preloader-ring-accent-color);
  border-inline-end-color: var(--ebmnt1-preloader-ring-accent-color);
  animation: ebmnt1-spin 0.9s linear infinite;
}

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

@media (min-width: 768px) {
  :root {
    --ebmnt1-block-radius: 2rem;
    --ebmnt1-block-edge-space: 2.5em;
  }
}

@media (min-width: 1200px) {
  :root {
    --ebmnt1-block-edge-space: 3.5em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ebmnt1-js [data-ebmnt1-reveal],
  .ebmnt1-split-word {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
