/* ==========================================================
   components.css — عناصر صغيرة قابلة لإعادة الاستخدام
   أزرار، صفوف الخدمات، شارة الترخيص، بطاقات الأطباء
   ========================================================== */

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }

.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: var(--wa-dark); }

.btn--ghost { border-color: var(--plum-600); color: var(--plum-600); }
.btn--ghost:hover { background: var(--plum-600); color: var(--white); }

.btn--ghost-light { border-color: var(--blush); color: var(--blush); }
.btn--ghost-light:hover { background: var(--blush); color: var(--plum-900); }

.btn--small { padding: .55rem 1.2rem; font-size: .95rem; }

/* ---------- صفوف الخدمات ---------- */
.service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }

.service h3 { font-size: 1.2rem; }
.service p { margin-top: .15rem; font-size: .98rem; color: var(--muted); }

.service__book {
  flex: none;
  padding: .45rem 1.1rem;
  border: 1.5px solid var(--plum-600);
  border-radius: 999px;
  color: var(--plum-600);
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.service__book:hover { background: var(--plum-600); color: var(--white); }

/* مجموعة خدمات فيها خدمات فرعية (تجديد البشرة والبوتوكس والفيلر) */
.service-group { padding-block: 1.1rem; border-top: 1px solid var(--line); }
.service-group > h3 { font-size: 1.2rem; }
.service-group > p { margin-top: .15rem; font-size: .98rem; color: var(--muted); }
.service-group .service-list {
  margin-top: .75rem;
  margin-inline-start: .25rem;
  padding-inline-start: 1rem;
  border-inline-start: 3px solid var(--orchid-100);
}
.service-group .service:first-child { border-top: 0; }
.service-group .service:last-child { border-bottom: 0; }
.service-group:last-child { border-bottom: 1px solid var(--line); }

/* نسخة الخدمات على الخلفية الداكنة */
.section--plum .service,
.section--plum .service:last-child { border-color: rgba(255, 255, 255, .2); }
.section--plum .service p { color: var(--orchid-100); }
.section--plum .service__book { border-color: var(--blush); color: var(--blush); }
.section--plum .service__book:hover { background: var(--blush); color: var(--plum-900); }

/* ---------- شارة الترخيص فوق صورة الهيرو ---------- */
.license-badge {
  position: absolute;
  z-index: 2;
  bottom: 1.5rem;
  left: -1rem;
  max-width: 220px;
  padding: .8rem 1rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(43, 16, 55, .18);
  font-size: .9rem;
  line-height: 1.6;
}
.license-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--plum-600);
}

/* ---------- بطاقات الأطباء (تظهر عند إضافة أطباء في js/doctors.js) ---------- */
.doctor { text-align: center; }
.doctor__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-arch);
  background: var(--orchid-100);
}
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor h3 { margin-top: 1rem; font-size: 1.25rem; }
.doctor__role { color: var(--muted); }
.doctor .btn { margin-top: .9rem; }

/* ---------- زر واتساب العائم ---------- */
.wa-float {
  position: fixed;
  z-index: 60;
  left: 1rem;
  bottom: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
