/* =========================================================
   مجمع عيادات طيبة لطب الأسنان — نظام التصميم المشترك
   ========================================================= */

:root {
  /* الألوان المستمدة من الشعار: ذهبي رملي ورمادي فحمي وأزرق الزي الطبي */
  --gold-50: #fdf8ee;
  --gold-100: #f8ecd0;
  --gold-300: #efd08f;
  --gold-400: #e3b659;
  --gold-500: #d49c34;
  --gold-700: #8a6116;
  --slate-900: #1b2733;
  --slate-800: #243442;
  --slate-700: #2f4254;
  --slate-500: #52606d;
  --gray-400: #7b7f85;
  --gray-200: #e3e6ea;
  --gray-100: #f1f3f5;
  --white: #ffffff;
  --success: #1f7a4d;
  --danger: #b3261e;

  --text: #1f2a36;
  --text-muted: #4a5663;
  --bg: #ffffff;
  --bg-soft: #faf7f1;

  /* الخطوط */
  --font-body: "Tajawal", "Noto Naskh Arabic", system-ui, sans-serif;
  --font-head: "Cairo", "Tajawal", system-ui, sans-serif;

  /* مقياس الطباعة المرن */
  --fs-sm: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --fs-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --fs-3xl: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);

  /* المسافات */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: clamp(3rem, 2rem + 4vw, 6rem);

  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(27, 39, 51, 0.06), 0 1px 3px rgba(27, 39, 51, 0.08);
  --shadow: 0 6px 18px rgba(27, 39, 51, 0.08), 0 2px 6px rgba(27, 39, 51, 0.05);
  --shadow-lg: 0 18px 40px rgba(27, 39, 51, 0.14);

  --container: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--slate-700);
}

/* ---------- الأساسيات ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  text-align: start;
  overflow-wrap: break-word;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.35;
  margin: 0 0 var(--space-4);
  color: var(--slate-900);
  font-weight: 700;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }

p {
  margin: 0 0 var(--space-4);
}

a {
  color: var(--slate-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--gold-700);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius-sm);
}

ul {
  padding-inline-start: 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--slate-900);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section {
  padding-block: var(--space-8);
}

.section--soft {
  background: var(--bg-soft);
}

.section--dark {
  background: linear-gradient(160deg, var(--slate-800), var(--slate-900));
  color: #e9edf1;
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section-head {
  max-width: 46rem;
  margin-inline: auto;
  margin-block-end: var(--space-7);
  text-align: center;
}

.section-head p {
  color: var(--text-muted);
  font-size: var(--fs-lg);
}

.section--dark .section-head p {
  color: #cfd6dd;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--gold-700);
  background: var(--gold-100);
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-block-end: var(--space-3);
}

.section--dark .eyebrow {
  background: rgba(227, 182, 89, 0.16);
  color: var(--gold-300);
}

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-base);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--slate-700);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--slate-900);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn--gold {
  background: var(--gold-400);
  color: var(--slate-900);
}

.btn--gold:hover {
  background: var(--gold-300);
  color: var(--slate-900);
}

.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: var(--slate-700);
}

.btn--outline:hover {
  background: var(--slate-700);
  border-color: var(--slate-700);
  color: var(--white);
}

.btn--light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--white);
}

.btn--light:hover {
  background: var(--white);
  color: var(--slate-900);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* الأيقونات الاتجاهية تنعكس في الاتجاه من اليمين لليسار */
[dir="rtl"] .icon-dir {
  transform: scaleX(-1);
}

/* ---------- الترويسة ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
  border-block-end: 1px solid rgba(27, 39, 51, 0.08);
  transition: box-shadow 0.25s var(--ease);
}

/* طبقة الزجاج منفصلة حتى لا تصبح الترويسة حاوية للدرج الثابت */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--slate-900);
  min-width: 0;
  min-height: 48px;
}

.brand img {
  width: 64px;
  height: auto;
  aspect-ratio: 906 / 618;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--font-head);
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.1rem);
}

.brand-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.primary-nav {
  display: none;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 0.85rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--slate-800);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.nav-list a::after {
  content: "";
  position: absolute;
  inset-inline: 0.85rem;
  bottom: 8px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold-500);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  transform: scaleX(1);
}

.nav-list a.active {
  color: var(--gold-700);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding-inline: 0.75rem;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--slate-700);
  text-decoration: none;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
}

.lang-link:hover {
  border-color: var(--gold-500);
}

.header-cta {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--slate-900);
  cursor: pointer;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* درج الجوال */
.mobile-drawer {
  position: fixed;
  inset-inline: 0;
  top: var(--header-h);
  bottom: 0;
  z-index: 99;
  background: var(--white);
  padding: var(--space-5) clamp(1rem, 4vw, 2rem) var(--space-7);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.mobile-drawer.is-open {
  transform: none;
  opacity: 1;
  visibility: visible;
}

.mobile-drawer ul {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
}

.mobile-drawer li + li {
  border-block-start: 1px solid var(--gray-100);
}

.mobile-drawer a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-lg);
  color: var(--slate-900);
  text-decoration: none;
}

.mobile-drawer a.active {
  color: var(--gold-700);
}

.mobile-drawer a.active::before {
  content: "";
  width: 6px;
  height: 24px;
  border-radius: 3px;
  background: var(--gold-500);
  order: 2;
}

.mobile-drawer .btn {
  width: 100%;
  margin-block-end: var(--space-3);
}

@media (min-width: 1100px) {
  .primary-nav {
    display: block;
  }

  .menu-toggle,
  .mobile-drawer {
    display: none;
  }

  .header-cta {
    display: inline-flex;
  }

  .brand img {
    width: 76px;
  }
}

/* ---------- البطل والشرائح ---------- */
.hero {
  position: relative;
  isolation: isolate;
  color: var(--white);
  background: var(--slate-900);
  overflow: clip;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to left, rgba(27, 39, 51, 0.92) 0%, rgba(27, 39, 51, 0.78) 45%, rgba(27, 39, 51, 0.35) 100%);
}

[dir="ltr"] .hero::before {
  background: linear-gradient(to right, rgba(27, 39, 51, 0.92) 0%, rgba(27, 39, 51, 0.78) 45%, rgba(27, 39, 51, 0.35) 100%);
}

.hero-inner {
  min-height: clamp(520px, 78vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--space-8);
}

.slides {
  display: grid;
  max-width: 40rem;
}

.slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0.6s;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.slide h1,
.slide h2 {
  color: var(--white);
  font-size: var(--fs-3xl);
  margin-block-end: var(--space-4);
}

.slide p {
  font-size: var(--fs-lg);
  color: #e4e9ee;
  margin-block-end: var(--space-6);
}

.slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-block-start: var(--space-7);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.hero-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-btn svg {
  width: 20px;
  height: 20px;
}

.hero-dots {
  display: flex;
  gap: var(--space-1);
}

.hero-dot {
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hero-dot::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}

.hero-dot[aria-current="true"]::before {
  width: 28px;
  background: var(--gold-400);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-block-start: var(--space-6);
  max-width: 34rem;
}

.hero-stats div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: var(--space-3);
  text-align: center;
  min-width: 0;
}

.hero-stats strong {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  color: var(--gold-300);
  line-height: 1.3;
}

.hero-stats span {
  font-size: var(--fs-sm);
  color: #dfe5ea;
}

/* ---------- ترويسة الصفحات الداخلية ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(150deg, var(--slate-800), var(--slate-900));
  color: var(--white);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
  overflow: clip;
}

.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline-end: -6rem;
  top: -6rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  border: 3px solid rgba(227, 182, 89, 0.35);
}

.page-hero h1 {
  color: var(--white);
  margin-block-end: var(--space-3);
}

.page-hero p {
  color: #d7dee5;
  font-size: var(--fs-lg);
  max-width: 44rem;
  margin: 0;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0;
  margin: 0 0 var(--space-4);
  font-size: var(--fs-sm);
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline-end: var(--space-2);
  color: var(--gold-300);
}

.breadcrumb a {
  color: #e4e9ee;
}

.breadcrumb [aria-current] {
  color: var(--gold-300);
}

/* ---------- الشبكات ---------- */
.grid {
  display: grid;
  gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);
}

.grid > * {
  min-width: 0;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 600px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- البطاقات ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-300);
}

.card h3 {
  margin-block-end: var(--space-2);
}

.card p {
  color: var(--text-muted);
  margin: 0;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-icon {
  width: 72px;
  height: 72px;
  aspect-ratio: 1;
  flex-shrink: 0;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card .en {
  font-size: var(--fs-sm);
  color: var(--gold-700);
  font-weight: 700;
  direction: ltr;
  unicode-bidi: isolate;
}

/* ---------- قسم عن المجمع ---------- */
.split {
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: center;
}

.split > * {
  min-width: 0;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split--reverse > :first-child {
    order: 2;
  }
}

.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--gray-100);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-9x16 { aspect-ratio: 9 / 16; }
.ratio-1x1 { aspect-ratio: 1 / 1; }

.media-badge {
  position: absolute;
  inset-block-end: var(--space-4);
  inset-inline-start: var(--space-4);
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.media-badge strong {
  font-family: var(--font-head);
  font-size: var(--fs-2xl);
  color: var(--gold-700);
  line-height: 1;
}

.media-badge span {
  font-size: var(--fs-sm);
  color: var(--slate-800);
  font-weight: 700;
  line-height: 1.4;
}

.lead {
  font-size: var(--fs-lg);
  color: var(--text-muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  display: grid;
  gap: var(--space-3);
}

.check-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-block-start: 0.3rem;
  border-radius: 50%;
  background: var(--gold-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6116' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* الرؤية والرسالة والقيم */
.vm-card {
  border-block-start: 4px solid var(--gold-400);
}

.vm-card .vm-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-100);
  color: var(--gold-700);
  margin-block-end: var(--space-3);
}

.vm-card .vm-icon svg {
  width: 26px;
  height: 26px;
}

.values {
  list-style: none;
  padding: 0;
  margin: 0;
}

.value-card {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.value-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-700);
  color: var(--gold-300);
  font-family: var(--font-head);
  font-weight: 700;
}

/* كلمة رئيس مجلس الإدارة */
.quote-block {
  position: relative;
  margin: 0;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.quote-block p {
  font-size: var(--fs-lg);
  line-height: 2;
  color: #eef2f5;
}

.quote-block svg {
  width: 44px;
  height: 44px;
  color: var(--gold-400);
  margin-block-end: var(--space-3);
}

.quote-block footer {
  display: flex;
  flex-direction: column;
  border-block-start: 1px solid rgba(255, 255, 255, 0.16);
  padding-block-start: var(--space-4);
  margin-block-start: var(--space-4);
}

.quote-block cite {
  font-style: normal;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold-300);
  font-size: var(--fs-lg);
}

.quote-block footer span {
  color: #cfd6dd;
  font-size: var(--fs-sm);
}

/* ---------- الأطباء ---------- */
.doctor-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.doctor-card .media-frame {
  border-radius: 0;
  box-shadow: none;
  background: var(--white);
}

.doctor-card .media-frame img {
  object-position: center 30%;
}

.doctor-card .doctor-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.doctor-role {
  color: var(--gold-700);
  font-weight: 700;
  margin: 0;
}

.doctor-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  display: grid;
  gap: var(--space-1);
}

.exp-badge {
  align-self: flex-start;
  margin-block-start: auto;
  background: var(--slate-700);
  color: var(--white);
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
}

.doctor-card--featured {
  border-color: var(--gold-300);
}

/* جدول الأطباء */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  padding: var(--space-3) var(--space-4);
  text-align: start;
  border-block-end: 1px solid var(--gray-200);
  vertical-align: top;
}

thead th {
  background: var(--slate-700);
  color: var(--white);
  font-family: var(--font-head);
}

tbody tr:nth-child(even) {
  background: var(--gray-100);
}

/* ---------- العروض ---------- */
.offer-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
}

.offer-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-family: var(--font-head);
  color: var(--slate-900);
}

.offer-price strong {
  font-size: var(--fs-2xl);
  line-height: 1.1;
  color: var(--gold-700);
}

.offer-tag {
  align-self: flex-start;
  font-size: var(--fs-sm);
  font-weight: 700;
  background: var(--gold-100);
  color: var(--gold-700);
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-pill);
}

.offer-card blockquote {
  margin: 0;
  padding-inline-start: var(--space-3);
  border-inline-start: 3px solid var(--gold-400);
  color: var(--slate-800);
  font-weight: 600;
}

.offer-card .btn {
  margin-block-start: auto;
  align-self: flex-start;
}

/* ---------- معرض الصور ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--space-4);
}

.gallery-item {
  margin: 0;
}

.gallery-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.gallery-btn:hover img,
.gallery-btn:focus-visible img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  padding-block-start: var(--space-2);
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: var(--space-4);
}

/* النافذة المنبثقة لعرض الصور */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 1100px);
  max-height: 92vh;
  width: auto;
}

.lightbox::backdrop {
  background: rgba(15, 22, 29, 0.88);
}

.lightbox-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--white);
}

.lightbox p {
  color: var(--white);
  margin: 0;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: var(--space-2);
  inset-inline-end: var(--space-2);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--white);
  color: var(--slate-900);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.lightbox-close svg {
  width: 22px;
  height: 22px;
}

/* ---------- الأسئلة الشائعة ---------- */
.faq {
  max-width: 52rem;
  margin-inline: auto;
  display: grid;
  gap: var(--space-3);
}

.faq details {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0 var(--space-5);
  transition: border-color 0.2s var(--ease);
}

.faq details[open] {
  border-color: var(--gold-400);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--slate-900);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-100);
  color: var(--gold-700);
  font-size: 1.25rem;
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  color: var(--text-muted);
  padding-block-end: var(--space-4);
}

/* ---------- الشريط الدعوي ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--gold-100), var(--gold-50));
  border: 1px solid var(--gold-300);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 3vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: flex-start;
}

.cta-band h2 {
  margin-block-end: var(--space-2);
}

.cta-band p {
  color: var(--text-muted);
  margin: 0;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (min-width: 900px) {
  .cta-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- التواصل ---------- */
.branch-card h3 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: grid;
  gap: var(--space-2);
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.contact-list svg {
  width: 20px;
  height: 20px;
  color: var(--gold-700);
  flex-shrink: 0;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 700;
  direction: ltr;
  unicode-bidi: isolate;
}

.contact-list .email-link {
  word-break: break-all;
}

.form {
  display: grid;
  gap: var(--space-4);
}

.form-row {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}

.field label {
  font-weight: 700;
  color: var(--slate-900);
}

.field .req {
  color: var(--danger);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 0.7rem 1rem;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid #b7bec6;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--slate-700);
  box-shadow: 0 0 0 3px rgba(47, 66, 84, 0.2);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  color: var(--danger);
  font-size: var(--fs-sm);
  min-height: 1.2em;
  margin: 0;
}

.form-status {
  margin: 0;
  font-weight: 700;
  min-height: 1.5em;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--danger);
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  aspect-ratio: 16 / 10;
  background: var(--gray-100);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- التذييل ---------- */
.site-footer {
  background: var(--slate-900);
  color: #cfd6dd;
  padding-block: var(--space-8) var(--space-5);
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

.footer-grid > * {
  min-width: 0;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 1.3fr 1fr;
  }
}

.site-footer h2 {
  font-size: var(--fs-lg);
  color: var(--white);
  margin-block-end: var(--space-4);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-block-end: var(--space-4);
  padding: var(--space-2) var(--space-3);
  background: var(--white);
  border-radius: var(--radius);
}

.footer-brand img {
  width: 84px;
  aspect-ratio: 906 / 618;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-1);
}

.site-footer a {
  color: #e9edf1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer a:hover {
  color: var(--gold-300);
}

.site-footer a.active {
  color: var(--gold-300);
  font-weight: 700;
}

.footer-branch {
  margin-block-end: var(--space-4);
}

.footer-branch strong {
  display: block;
  color: var(--white);
}

.footer-branch .phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-4);
}

.footer-branch .phones a,
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

.socials {
  display: flex !important;
  flex-wrap: wrap;
  gap: var(--space-2) !important;
  margin-block-start: var(--space-4) !important;
}

.socials a {
  width: 48px;
  height: 48px;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.socials a:hover {
  background: var(--gold-400);
  color: var(--slate-900);
}

.socials svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  margin-block-start: var(--space-7);
  padding-block-start: var(--space-5);
  border-block-start: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  justify-content: space-between;
  font-size: var(--fs-sm);
}

.footer-bottom p {
  margin: 0;
}

/* ---------- زر العودة للأعلى ---------- */
.back-to-top {
  position: fixed;
  bottom: clamp(1rem, 3vw, 1.75rem);
  right: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--slate-700);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s, background-color 0.2s var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--gold-700);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ---------- الظهور التدريجي ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .back-to-top,
  .mobile-drawer,
  .hero-controls {
    display: none !important;
  }
}
