/* ============================================================
   ebsrv14 — Appliance Brands Services Section
   Namespace: ebsrv14
============================================================ */

/* 1. Variables & Colors */
.ebsrv14 {
  --ebsrv14-bg: #F8F9FA;
  --ebsrv14-card-bg: #FFFFFF;
  

  --ebsrv14-primary: #005F99;
  --ebsrv14-text: #7C7C7C;
  --ebsrv14-accent: #A6A6A6;

 
  --ebsrv14-btn-bg: #005F99;
  --ebsrv14-btn-text: #FFFFFF;
  --ebsrv14-btn-hover: #004670;
  
  --ebsrv14-shadow: rgba(0, 95, 153, 0.08);
  --ebsrv14-shadow-hover: rgba(0, 95, 153, 0.18);
  
  --ebsrv14-padding-top: 5rem;
  --ebsrv14-padding-bottom: 7rem;
  --ebsrv14-gap: 2.5rem;
  
  font-family: "El Messiri", sans-serif;
  direction: rtl;
  background-color: var(--ebsrv14-bg);
  padding: var(--ebsrv14-padding-top) 0 var(--ebsrv14-padding-bottom) 0;
  overflow: hidden;
}

/* 2. Reset داخل الـ namespace */
*,
.ebsrv14 *,
.ebsrv14 *::before,
.ebsrv14 *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


.ebsrv14__container {
  width: 90%;
  margin: 0 auto;
}

.ebsrv14__header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.ebsrv14__subtitle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ebsrv14__subtitle {
  color: var(--ebsrv14-accent);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 700;
}

.ebsrv14__subtitle-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--ebsrv14-accent);
  border-radius: 50%;
  opacity: 0.6;
}

.ebsrv14__title {
  color: var(--ebsrv14-primary);
  font-size: clamp(1.25rem, 4vw, 2.2rem);
  line-height: 1.4;
  font-weight: 700;
}

.ebsrv14__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ebsrv14-gap);
}

.ebsrv14__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  position: relative;
  transition: transform 0.4s ease;
  opacity: 0;          
  transform: translateY(2rem); 
}

.ebsrv14__card.ebsrv14--visible {
  opacity: 1;
  transform: translateY(0);
}

.ebsrv14__img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
  background-color: var(--ebsrv14-card-bg);
}

.ebsrv14__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.ebsrv14__circle {
  width: 90%;
  max-width: 20rem;
  aspect-ratio: 1 / 1;
  background-color: var(--ebsrv14-card-bg);
  border-radius: 50%;
  margin-top: -4rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 0.5rem 1.5rem var(--ebsrv14-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  text-align: center;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.ebsrv14__icon-check {
  color: var(--ebsrv14-primary);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin-bottom: 0.4rem;
}

.ebsrv14__card-title {
  color: var(--ebsrv14-primary);
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.ebsrv14__card-desc {
  color: var(--ebsrv14-text);
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  line-height: 1.4;
  margin-bottom: 0.8rem;
  width: 92%;
}

.ebsrv14__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--ebsrv14-btn-bg);
  color: var(--ebsrv14-btn-text);
  padding: 0.45rem 1.25rem;
  border-radius: 50vw;
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.ebsrv14__btn-icon {
  font-size: 0.85em;
  transition: transform 0.3s ease;
}


.ebsrv14__card:hover .ebsrv14__img {
  transform: scale(1.08);
}

.ebsrv14__card:hover .ebsrv14__circle {
  box-shadow: 0 1rem 2.5rem var(--ebsrv14-shadow-hover);
  transform: translateY(-0.5rem);
}

.ebsrv14__card:hover .ebsrv14__btn {
  background-color: var(--ebsrv14-btn-hover);
  transform: scale(1.05);
  box-shadow: 0 0.3rem 0.8rem rgba(0, 95, 153, 0.3);
}

.ebsrv14__card:hover .ebsrv14__btn-icon {
  transform: translateX(-0.25rem);
}

/* 4. Breakpoints بالترتيب (Mobile-First) */
@media (min-width: 481px) {
  .ebsrv14__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem 1.5rem;
  }
}

@media (min-width: 769px) {
  .ebsrv14__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4.5rem 2rem;
  }
}

@media (min-width: 1025px) {
  .ebsrv14__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 5rem 1.5rem;
  }
}

@media (min-width: 1281px) {
  .ebsrv14__container {
    width: 85%;
  }
  .ebsrv14__grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 5.5rem 1.5rem;
  }
}

@media (min-width: 1441px) {
  .ebsrv14__container {
    width: 80%;
  }
}

@media (min-width: 1921px) {
  .ebsrv14__container {
    width: 70%;
  }
}