/* ============================================================
   ebsrv12 — Services Cards Section
   Namespace  : ebsrv12
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400;500;600;700&display=swap');

/* 1. Variables & Colors */
.ebsrv12 {

  /* Section */
  --ebsrv12-bg:            #eef3f9;
  --ebsrv12-text:          #204A7B;
  --ebsrv12-title:         #204A7B;
  --ebsrv12-subtitle:      #5a6a7a;
  --ebsrv12-border:        #d0dce8;
  --ebsrv12-line:          #204A7B;

  /* Card */
  --ebsrv12-card-bg:       #ffffff;
  --ebsrv12-card-shadow:   0 0.25rem 1.5rem rgba(26, 54, 96, 0.10);
  --ebsrv12-card-shadow-h: 0 0.5rem 2.5rem rgba(26, 54, 96, 0.18);
  --ebsrv12-card-radius:   0.9rem;
  --ebsrv12-card-title:    #204A7B;
  --ebsrv12-card-border:   #e0eaf4;

  /* Button */
  --ebsrv12-btn-bg:        #204A7B;
  --ebsrv12-btn-bg-h:      #204A7B;
  --ebsrv12-btn-text:      #ffffff;
  --ebsrv12-btn-radius:    0.45rem;

  /* Padding */
  --ebsrv12-padding-top:    3rem;
  --ebsrv12-padding-bottom: 3rem;

}

/* 2. Reset داخل الـ namespace */
.ebsrv12 *,
.ebsrv12 *::before,
.ebsrv12 *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 3. Base Styles — Mobile */
.ebsrv12 {
  font-family: "El Messiri", sans-serif;
  direction: ltr;
  background: var(--ebsrv12-bg);
  color: var(--ebsrv12-text);
  padding-top: var(--ebsrv12-padding-top);
  padding-bottom: var(--ebsrv12-padding-bottom);
  width: 100%;
}

.ebsrv12__container {
  width: 92%;
  max-width: 75rem;
  margin-inline: auto;
}

/* Header */
.ebsrv12__header {
  text-align: center;
  margin-bottom: 2rem;
}

.ebsrv12__title {
  font-size: clamp(1.5rem, 6vw, 2.4rem);
  font-weight: 700;
  color: var(--ebsrv12-title);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ebsrv12__title-line {
  width: 4rem;
  height: 0.22rem;
  background: var(--ebsrv12-line);
  margin: 0.6rem auto 0.9rem;
  border-radius: 1rem;
}

.ebsrv12__subtitle {
  font-size: clamp(0.85rem, 3vw, 1.05rem);
  color: var(--ebsrv12-subtitle);
  font-weight: 400;
}

/* Grid */
.ebsrv12__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

/* Card */
.ebsrv12__card {
  background: var(--ebsrv12-card-bg);
  border: 0.06rem solid var(--ebsrv12-card-border);
  border-radius: var(--ebsrv12-card-radius);
  box-shadow: var(--ebsrv12-card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.ebsrv12__card:hover {
  transform: translateY(-0.35rem);
  box-shadow: var(--ebsrv12-card-shadow-h);
}

/* Image */
.ebsrv12__card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.ebsrv12__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ebsrv12__card:hover .ebsrv12__card-img {
  transform: scale(1.06);
}

/* Card Body */
.ebsrv12__card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.ebsrv12__card-title {
  font-size: clamp(0.9rem, 3.5vw, 1.05rem);
  font-weight: 600;
  color: var(--ebsrv12-card-title);
  text-align: center;
}

/* Button */
.ebsrv12__card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--ebsrv12-btn-bg);
  color: var(--ebsrv12-btn-text);
  border-radius: var(--ebsrv12-btn-radius);
  padding: 0.55rem 1.4rem;
  font-family: "El Messiri", sans-serif;
  font-size: clamp(0.82rem, 3vw, 0.92rem);
  font-weight: 600;
  text-decoration: none;
  width: 100%;
  justify-content: center;
  transition: background 0.22s ease, transform 0.18s ease;
  cursor: pointer;
}

.ebsrv12__card-btn:hover {
  background: var(--ebsrv12-btn-bg-h);
  transform: scale(1.025);
}

.ebsrv12__btn-icon {
  font-size: 0.8rem;
  transition: transform 0.22s ease;
}

.ebsrv12__card-btn:hover .ebsrv12__btn-icon {
  transform: translateX(-0.2rem);
}

/* 4. Breakpoints */
@media (min-width: 481px) {
  .ebsrv12__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 601px) {
  .ebsrv12__grid {
    gap: 1.5rem;
  }
}

@media (min-width: 769px) {
  .ebsrv12 {
    --ebsrv12-padding-top:    4rem;
    --ebsrv12-padding-bottom: 4rem;
  }

  .ebsrv12__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.7rem;
  }

  .ebsrv12__title-line {
    width: 5rem;
  }
}

@media (min-width: 1025px) {
  .ebsrv12 {
    --ebsrv12-padding-top:    5rem;
    --ebsrv12-padding-bottom: 5rem;
  }

  .ebsrv12__grid {
    gap: 2rem;
  }

  .ebsrv12__card-body {
    padding: 1.1rem 1.3rem 1.4rem;
  }
}

@media (min-width: 1281px) {
  .ebsrv12__grid {
    gap: 2.2rem;
  }
}

@media (min-width: 1441px) {
  .ebsrv12 {
    --ebsrv12-padding-top:    6rem;
    --ebsrv12-padding-bottom: 6rem;
  }
}

@media (min-width: 1921px) {
  .ebsrv12__container {
    max-width: 90rem;
  }
}