/* ============================================================
   ebsrv13 — Services Section | خدمات مكافحة الحشرات
   Namespace  : ebsrv13
   Mobile-First: base → 481 → 601 → 769 → 1025 → 1281 → 1441 → 1921
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400;500;600;700&display=swap');

/* ── 1. Variables & Colors ── */
.ebsrv13 {
  /* Section */
  --ebsrv13-bg:          #f7f8fa;
  --ebsrv13-text:        #7C7C7C;
  --ebsrv13-title:       #0d1b2a;
  --ebsrv13-border:      #A6A6A6;

  /* Label */
  --ebsrv13-label-color: #005F99;
  --ebsrv13-label-dot:   #005F99;

  /* Card */
  --ebsrv13-card-bg:     #ffffff;
  --ebsrv13-card-title:  #0d1b2a;
  --ebsrv13-card-text:   #7C7C7C;
  --ebsrv13-card-btn:    #005F99;

  /* Button */
  --ebsrv13-btn-bg:      #005F99;
  --ebsrv13-btn-text:    #ffffff;

  /* Input */
  --ebsrv13-input-bg:    #ffffff;
  --ebsrv13-input-text:  #7C7C7C;

  /* Circle badge */
  --ebsrv13-circle-bg:      #ffffff;
  --ebsrv13-circle-track:   #e0e5ea;
  --ebsrv13-circle-ring:    #005F99;
  --ebsrv13-circle-check:   #005F99;

  /* Image fallback */
  --ebsrv13-img-fallback: #dce8f0;

  /* Card shadow */
  --ebsrv13-shadow:       0 0.2rem 1rem rgba(0, 95, 153, 0.07);
  --ebsrv13-shadow-hover: 0 0.8rem 2.5rem rgba(0, 95, 153, 0.17);

  /* Arrow */
  --ebsrv13-arrow-idle:  #A6A6A6;
  --ebsrv13-arrow-hover: #005F99;
  --ebsrv13-arrow-hover-bg: rgba(0, 95, 153, 0.09);

  /* Spacing */
  --ebsrv13-padding-top:    2rem;
  --ebsrv13-padding-bottom: 2rem;
}

/* ── 2. Namespace Reset ── */
.ebsrv13 *,
.ebsrv13 *::before,
.ebsrv13 *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── 3. Base Styles — Mobile ── */

.ebsrv13 {
  font-family: "El Messiri", sans-serif;
  direction: rtl;
  background: var(--ebsrv13-bg);
  padding-top:    var(--ebsrv13-padding-top);
  padding-bottom: var(--ebsrv13-padding-bottom);
  width: 100%;
  overflow-x: hidden;
}

/* Container */
.ebsrv13__container {
  width: 92%;
  max-width: 90rem;
  margin-inline: auto;
}

/* ── Header ── */
.ebsrv13__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.ebsrv13__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ebsrv13-label-color);
  font-size: clamp(0.8rem, 2.5vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.9rem;
}

.ebsrv13__label-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ebsrv13-label-dot);
  flex-shrink: 0;
}

.ebsrv13__title {
  color: var(--ebsrv13-title);
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.4;
  max-width: 42rem;
  margin-inline: auto;
}

/* ── Grid ── */
.ebsrv13__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* ── Card Column — entrance animation ── */
.ebsrv13__col {
  opacity: 0;
  transform: translateY(2.5rem);
  transition:
    opacity  0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.ebsrv13__col--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Card ── */
.ebsrv13__card {
  background: var(--ebsrv13-card-bg);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--ebsrv13-shadow);
  transition:
    box-shadow 0.35s ease,
    transform   0.35s ease;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ebsrv13__card:hover {
  box-shadow: var(--ebsrv13-shadow-hover);
  transform: translateY(-0.3rem);
}

/* ── Image wrap ── */
.ebsrv13__img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ebsrv13-img-fallback);
  flex-shrink: 0;
}

.ebsrv13__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.ebsrv13__card:hover .ebsrv13__img {
  transform: scale(1.07);
}

/* ── Card body ── */
.ebsrv13__body {
  position: relative;
  padding: 3rem 1.25rem 1.5rem;
  text-align: center;
  background: var(--ebsrv13-card-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

/* ── Circle badge — sits at image / body boundary ── */
.ebsrv13__circle-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3.75rem;
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG fills the wrap */
.ebsrv13__circle-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Track circle (background ring) */
.ebsrv13__circle-track {
  fill: var(--ebsrv13-circle-bg);
  stroke: var(--ebsrv13-circle-track);
  stroke-width: 2.5;
}

/*
  Ring circle — the animated stroke
  Circumference = 2 * π * 26 ≈ 163.36
  Starts fully hidden (dashoffset = circumference)
  On hover: dashoffset → 0  (ring draws itself clockwise from 12 o'clock)
*/
.ebsrv13__circle-ring {
  fill: none;
  stroke: var(--ebsrv13-circle-ring);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 163.36 163.36;
  stroke-dashoffset: 163.36;
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(-90deg);          /* start from 12 o'clock */
  transition: stroke-dashoffset 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.ebsrv13__card:hover .ebsrv13__circle-ring {
  stroke-dashoffset: 0;               /* ring completes the circle */
}

/* Check icon */
.ebsrv13__check {
  position: relative;
  z-index: 1;
  color: var(--ebsrv13-circle-check);
  font-size: 1rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ebsrv13__card:hover .ebsrv13__check {
  transform: scale(1.25);
}

/* ── Card title ── */
.ebsrv13__card-title {
  color: var(--ebsrv13-card-title);
  font-size: clamp(0.92rem, 2.2vw, 1rem);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

/* ── Card description ── */
.ebsrv13__card-text {
  color: var(--ebsrv13-card-text);
  font-size: clamp(0.78rem, 1.8vw, 0.85rem);
  line-height: 1.75;
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ── Arrow button ── */
.ebsrv13__card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 0.1rem solid var(--ebsrv13-arrow-idle);
  color: var(--ebsrv13-arrow-idle);
  font-size: 0.85rem;
  text-decoration: none;
  transition:
    color       0.3s ease,
    border-color 0.3s ease,
    background   0.3s ease,
    transform    0.3s ease;
  flex-shrink: 0;
}

.ebsrv13__card:hover .ebsrv13__card-arrow {
  color:        var(--ebsrv13-arrow-hover);
  border-color: var(--ebsrv13-arrow-hover);
  background:   var(--ebsrv13-arrow-hover-bg);
  transform: scale(1.1);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .ebsrv13__col {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ebsrv13__circle-ring {
    transition: none;
  }
  .ebsrv13__img,
  .ebsrv13__card,
  .ebsrv13__card-arrow,
  .ebsrv13__check {
    transition: none;
  }
}

/* ── 4. Breakpoints ── */

/* Small Tablet — 481 → 600 */
@media (min-width: 481px) {
  .ebsrv13__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .ebsrv13__header {
    margin-bottom: 3rem;
  }
}

/* Medium Tablet — 601 → 768 */
@media (min-width: 601px) {
  .ebsrv13__grid {
    gap: 1.75rem;
  }
  .ebsrv13__body {
    padding: 3rem 1.5rem 1.75rem;
  }
}

/* Large Tablet — 769 → 1024 */
@media (min-width: 769px) {
  .ebsrv13__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .ebsrv13 {
    --ebsrv13-padding-top: 5rem;
    --ebsrv13-padding-bottom: 5rem;
  }
  .ebsrv13__header {
    margin-bottom: 3.5rem;
  }
}

/* Small Desktop — 1025 → 1280 */
@media (min-width: 1025px) {
  .ebsrv13__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  .ebsrv13__container {
    width: 90%;
  }
  .ebsrv13__circle-wrap {
    width: 4.25rem;
    height: 4.25rem;
  }
  .ebsrv13__check {
    font-size: 1.1rem;
  }
  .ebsrv13__body {
    padding: 3.25rem 1.5rem 2rem;
  }
  .ebsrv13__card-title {
    font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  }
  .ebsrv13__card-text {
    font-size: clamp(0.8rem, 1vw, 0.88rem);
  }
}

/* Medium Desktop — 1281 → 1440 */
@media (min-width: 1281px) {
  .ebsrv13__grid {
    gap: 2.25rem;
  }
  .ebsrv13 {
    --ebsrv13-padding-top: 6rem;
    --ebsrv13-padding-bottom: 6rem;
  }
  .ebsrv13__header {
    margin-bottom: 4rem;
  }
}

/* Large Desktop — 1441 → 1920 */
@media (min-width: 1441px) {
  .ebsrv13__container {
    width: 85%;
  }
  .ebsrv13__grid {
    gap: 2.5rem;
  }
  .ebsrv13__body {
    padding: 3.5rem 1.75rem 2rem;
  }
}

/* Extra Large — 1921+ */
@media (min-width: 1921px) {
  .ebsrv13__container {
    width: 80%;
    max-width: 110rem;
  }
  .ebsrv13__grid {
    gap: 3rem;
  }
  .ebsrv13 {
    --ebsrv13-padding-top: 8rem;
    --ebsrv13-padding-bottom: 8rem;
  }
}