:root {
  --navy: #15284b;
  --navy-light: #1e3a68;
  --teal: #1ff6e5;
  --whatsapp: #25d366;
  --bg: #f5f9fb;
  --surface: #ffffff;
  --text-body: #222938;
  --text-muted: #5e6c84;
  --border: #e3e8ef;
  --font-en: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-ar: 'Cairo', Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text-body);
  font-family: var(--font-ar);
  line-height: 1.7;
}
html[dir="ltr"] body { font-family: var(--font-en); line-height: 1.6; }

a { color: inherit; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---- Header / nav ---- */
header.site-header {
  background-color: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: bold;
  font-size: 17px;
  white-space: nowrap;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background-color: var(--teal);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.nav-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
nav.main-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
nav.main-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
}
nav.main-nav a:hover { background-color: rgba(255,255,255,0.1); color: #fff; }
nav.main-nav a.active { background-color: rgba(31,246,229,0.15); color: var(--teal); }

.lang-switch {
  display: flex;
  background-color: rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}
.lang-switch button {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-size: 12.5px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.lang-switch button.active { background-color: var(--teal); color: var(--navy); }

@media (max-width: 640px) {
  .nav-row { flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; }
  nav.main-nav { justify-content: center; width: 100%; gap: 2px; }
  nav.main-nav a { padding: 6px 8px; font-size: 13px; }
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 56px 0 60px;
  text-align: center;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4.5vw, 38px);
  color: var(--teal);
}
.hero .specialty-line {
  font-size: 17px;
  color: rgba(255,255,255,0.9);
  margin: 0 0 6px;
}
.hero .credential-line {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin: 0 0 14px;
}
.hero .tagline {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 17px;
  color: #c0cbd9;
}
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 40px 0 44px;
  text-align: center;
}
.page-hero h1 { margin: 0 0 10px; font-size: clamp(22px, 4vw, 32px); color: var(--teal); }
.page-hero p { max-width: 620px; margin: 0 auto; color: #c0cbd9; font-size: 15px; }

.cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-whatsapp { background-color: var(--whatsapp); color: #fff; }
.btn-outline { background-color: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-primary { background-color: var(--teal); color: var(--navy); }

/* ---- Sections ---- */
section { padding: 56px 0; }
section.alt { background-color: var(--surface); }
section.tight { padding: 40px 0; }
h2.section-title {
  font-size: 26px;
  color: var(--navy);
  margin: 0 0 8px;
  text-align: center;
}
p.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 15px;
}

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.service-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.service-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--navy);
}
.service-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---- About ---- */
.about-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
.about-card {
  background-color: var(--navy);
  color: #fff;
  border-radius: 16px;
  padding: 24px;
  position: sticky;
  top: 90px;
}
.about-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--teal);
  color: var(--navy);
  font-weight: 800;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.about-card h3 { margin: 0 0 4px; font-size: 17px; }
.about-card .credential-list { margin: 14px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: #c0cbd9; }
.about-card .credential-list li { padding: 5px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.about-card .credential-list li:first-child { border-top: none; }
.about-body p {
  font-size: 14.5px;
  color: var(--text-body);
}
@media (max-width: 720px) {
  .about-wrap { grid-template-columns: 1fr; }
  .about-card { position: static; }
}

/* ---- Locations ---- */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.location-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.location-card h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.location-card .address-ar {
  direction: rtl;
  text-align: right;
  font-size: 14.5px;
  color: var(--text-body);
  margin: 10px 0 16px;
  line-height: 1.7;
  font-family: var(--font-ar);
}
.hours-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 13.5px; }
.hours-table td { padding: 5px 0; }
html[dir="rtl"] .hours-table td:first-child { color: var(--text-muted); }
html[dir="rtl"] .hours-table td:last-child { text-align: left; font-weight: 600; color: var(--navy); }
html[dir="ltr"] .hours-table td:first-child { color: var(--text-muted); }
html[dir="ltr"] .hours-table td:last-child { text-align: right; font-weight: 600; color: var(--navy); }
.map-note {
  font-size: 12px;
  color: var(--text-muted);
  background-color: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 14px;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  text-align: center;
}
.contact-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 18px;
}
.contact-item .icon { font-size: 26px; margin-bottom: 8px; }
.contact-item h3 { margin: 0 0 6px; font-size: 15px; color: var(--navy); }
.contact-item p { margin: 0; font-size: 13.5px; color: var(--text-muted); }

/* ---- Updates ---- */
.updates-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.update-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
}
.update-card .update-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.update-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: rgba(21,40,75,0.08);
  color: var(--navy);
}
.update-tag.news { background-color: rgba(37,211,102,0.12); color: #1a8f4b; }
.update-tag.health { background-color: rgba(31,246,229,0.15); color: #0e7d72; }
.update-date { font-size: 12.5px; color: var(--text-muted); }
.update-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--navy); }
.update-card p { margin: 0; font-size: 14px; color: var(--text-body); }
.updates-note {
  max-width: 760px;
  margin: 0 auto 30px;
  font-size: 12.5px;
  color: var(--text-muted);
  background-color: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
}

/* ---- Videos ---- */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.video-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.video-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  text-align: center;
  padding: 16px;
}
.video-thumb .play-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin: 0 auto 10px;
}
.video-card .video-body { padding: 16px 18px; }
.video-card h3 { margin: 0 0 4px; font-size: 15px; color: var(--navy); }
.video-card p { margin: 0; font-size: 13px; color: var(--text-muted); }
.video-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.youtube-cta {
  text-align: center;
  margin-top: 36px;
}

footer {
  background-color: var(--navy);
  color: #c0cbd9;
  text-align: center;
  padding: 26px 0;
  font-size: 12.5px;
}
