
/* 1. Variables & Colors */
.spec {
  --spec-bg: #F8F9FA;
  --spec-card-bg: #FFFFFF;
  

  --spec-primary: #0B9AA5;
  --spec-text: #7C7C7C;
  --spec-accent: #A6A6A6;

 
  --spec-btn-bg: #0B9AA5;
  --spec-btn-text: #FFFFFF;
  --spec-btn-hover: #087983;
  
  --spec-shadow: rgba(11, 154, 165, 0.08);
  --spec-shadow-hover: rgba(11, 154, 165, 0.18);
  
  --spec-padding-top: 2rem;
  --spec-padding-bottom: 2rem;
  --spec-gap: 5rem;
  
  font-family: "El Messiri", sans-serif;
  direction: rtl;
  background-color: var(--spec-bg);
  padding: var(--spec-padding-top) 0 var(--spec-padding-bottom) 0;
  overflow: hidden;
}

*,
.spec *,
.spec *::before,
.spec *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


.spec__container {
  width: 90%;
  margin: 0 auto;
}

.spec__header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.spec__subtitle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.spec__subtitle {
  color: var(--spec-accent);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 700;
}

.spec__subtitle-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--spec-accent);
  border-radius: 50%;
  opacity: 0.6;
}

.spec__title {
  color: var(--spec-primary);
  font-size: clamp(1.25rem, 4vw, 2.rem);
  line-height: 1.4;
  font-weight: 700;
}

.spec__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spec-gap);
}

.spec__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  position: relative;
  transition: transform 0.4s ease;
  opacity: 0;          
  transform: translateY(2rem); 
}

.spec__card.spec--visible {
  opacity: 1;
  transform: translateY(0);
}

.spec__img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
  background-color: var(--spec-card-bg);
}

.spec__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.spec__circle {
  width: 60%;
  max-width: 25rem;
  aspect-ratio: 1 / 1;
  background-color: var(--spec-card-bg);
  border-radius: 50%;
  margin-top: -4rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 0.5rem 1.5rem var(--spec-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;
}

.spec__icon-check {
  color: var(--spec-primary);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin-bottom: 0.4rem;
}

.spec__card-title {
  color: var(--spec-primary);
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.spec__card-desc {
  color: var(--spec-text);
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  line-height: 1.4;
  margin-bottom: 0.8rem;
  width: 92%;
}

.spec__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--spec-btn-bg);
  color: var(--spec-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;
}

.spec__btn-icon {
  font-size: 0.85em;
  transition: transform 0.3s ease;
}


.spec__card:hover .spec__img {
  transform: scale(1.08);
}

.spec__card:hover .spec__circle {
  box-shadow: 0 1rem 2.5rem var(--spec-shadow-hover);
  transform: translateY(-0.5rem);
}

.spec__card:hover .spec__btn {
  background-color: var(--spec-btn-hover);
  transform: scale(1.05);
  box-shadow: 0 0.3rem 0.8rem rgba(0, 95, 153, 0.3);
}

.spec__card:hover .spec__btn-icon {
  transform: translateX(-0.25rem);
}

.spec__btn-container {
  display: flex;
  align-items: center; 
  gap: 0.75rem;      
  flex-wrap: wrap;     
}


.spec__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;

}

@media (min-width: 481px) {
  .spec__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem 1.5rem;
  }
}

@media (min-width: 769px) {
  .spec__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4.5rem 2rem;
  }
  .spec__circle {
  width: 90%;

}

}

@media (min-width: 1025px) {
  .spec__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 5rem 1.5rem;
  }
}

@media (min-width: 1281px) {
  .spec__container {
    width: 85%;
  }

}

@media (min-width: 1441px) {
  .spec__container {
    width: 80%;
  }
    .spec__grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 5.5rem 1.5rem;
  }
}

@media (min-width: 1921px) {
  .spec__container {
    width: 70%;
  }
}
