/* ============================================
   كيوريفا - صفحة الخدمات (RTL - العربية)
   إصدار كامل للغة العربية
   ============================================ */

/* ---------- إعادة التعيين والمتغيرات ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --teal:      #1a8f8a;
  --teal-dark: #157570;
  --text:      #1a1a1a;
  --muted:     #6b7280;
  --border:    #e5e7eb;
  --bg:        #ffffff;
}

html, body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  text-align: right;
}

/* ============================================
   HERO SECTION
   ============================================ */
.service-hero {
  background: linear-gradient(#fdf8f3, #ffffff);
  text-align: center;
  padding: 4rem 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

/* heading */
.hero-heading {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 620px;
}

/* subtext */
.hero-sub {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 380px;
}

/* CTA row */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.3rem;
  margin-bottom: 2.75rem;
}

/* RTL arrow flip */
.hero-actions .btn-primary .arrow {
  display: inline-block;
  transform: rotate(180deg);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 3rem;
  padding: 0.72rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(26, 143, 138, 0.25);
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.btn-text .arrow {
  display: inline-block;
  transform: rotate(180deg);
}

.btn-text:hover { 
  color: var(--teal); 
}

/* HERO IMAGE */
.hero-image-wrap {
  width: calc(100% - 4rem);
  max-width: 960px;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.10);
  margin-bottom: 0;
}

.hero-image-wrap img {
  width: 100%;
  display: block;
  height: auto;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.hero-image-wrap:hover img {
  transform: scale(1.02);
}

/* ============================================
   SECTION WRAPPER
   ============================================ */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.features-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.65rem;
}

.features-heading {
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto;
}

/* Pill tags */
.pills-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0;
}

.pills-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 3rem;
  padding: 0.45rem 0.45rem 0.45rem 1rem;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}

[dir="rtl"] .pill {
  flex-direction: row;
}

.pill:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.09);
  transform: translateY(-1px);
}

.pill-img {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.pill-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pill-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

/* ============================================
   SERVICES CARDS SECTION
   ============================================ */
.services-header {
  text-align: center;
  margin-bottom: 2rem;
}

.services-heading {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.services-sub {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.45s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

/* gradient overlay */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.60) 0%,
    rgba(0, 0, 0, 0.12) 45%,
    transparent 100%
  );
  pointer-events: none;
}

/* card footer */
.card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.9rem 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.card-btn {
  width: 1.9rem;
  height: 1.9rem;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.service-card:hover .card-btn {
  background: var(--teal);
  border-color: var(--teal);
  transform: scale(1.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .service-hero {
    padding: 3rem 1.5rem 0;
    gap: 0.75rem;
  }

  .hero-image-wrap {
    width: calc(100% - 2.5rem);
    border-radius: 1.1rem;
  }

  .hero-heading { 
    font-size: clamp(1.75rem, 7vw, 2.2rem); 
  }
  
  .section { 
    padding: 3.5rem 1.5rem; 
  }
  
  .services-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 0.75rem; 
  }
  
  .pills-row { 
    gap: 0.6rem; 
  }
}

@media (max-width: 520px) {
  .service-hero { 
    padding: 2.5rem 1.25rem 0; 
  }

  .hero-image-wrap {
    width: calc(100% - 2rem);
    border-radius: 0.85rem;
  }

  .hero-actions { 
    gap: 0.85rem; 
  }

  .btn-primary {
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
  }
  
  .section { 
    padding: 2.5rem 1.25rem; 
  }
  
  .features-heading { 
    font-size: 1.7rem; 
  }
  
  .services-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 0.6rem; 
  }
  
  .service-card { 
    aspect-ratio: 3 / 4; 
  }
  
  .card-name { 
    font-size: 0.9rem; 
  }
  
  .pill-text { 
    font-size: 0.8rem; 
  }
  
  .pill { 
    padding: 0.4rem 0.4rem 0.4rem 0.85rem; 
  }
  
  .pill-img { 
    width: 1.8rem; 
    height: 1.8rem; 
  }
}