
:root {
  --navy: #14284b;
  --navy-deep: #0d1b33;
  --navy-soft: #21395f;
  --gold: #d4a94a;
  --gold-soft: #f1e3bd;
  --page: #f6f2ee;
  --card: #ffffff;
  --ink: #161a20;
  --muted: #5c6472;
  --line: #e6e0d8;
  --danger: #a4352b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 40, 75, .06), 0 8px 24px rgba(20, 40, 75, .06);
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, 'Noto Sans Arabic', 'Geeza Pro', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }

.skip {
  position: absolute; inset-inline-start: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { inset-inline-start: 12px; top: 12px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 242, 238, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.topbar.stuck { border-bottom-color: var(--line); box-shadow: 0 6px 18px rgba(20, 40, 75, .06); }
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--navy); color: var(--gold);
  display: grid; place-items: center; font-size: 14px; font-weight: 700; letter-spacing: .5px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-ar { font-size: 15px; font-weight: 700; }
.brand-en { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.topnav { display: none; gap: 22px; margin-inline-start: auto; }
.topnav a { text-decoration: none; color: var(--muted); font-size: 14px; }
.topnav a:hover { color: var(--navy); }
.topbar-cta { margin-inline-start: auto; }
.topnav + .topbar-cta { margin-inline-start: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1px solid transparent; text-decoration: none; font-weight: 600; font-size: 15px;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #241c07; }
.btn-gold:hover { background: #e0b757; }
.btn-outline { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .12); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn .ico { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- hero ---------- */
.hero { padding: 18px 0 6px; }
.hero-panel {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 88% 8%, #233c63 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff; border-radius: 22px; padding: 30px 26px;
  box-shadow: 0 18px 40px rgba(13, 27, 51, .18);
}
.hero-panel::after {
  content: ""; position: absolute; inset-inline-start: -80px; bottom: -120px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 169, 74, .22), transparent 65%);
  pointer-events: none;
}
.hero-grid { position: relative; display: flex; flex-direction: column-reverse; gap: 18px; }
.hero-text { min-width: 0; }
.eyebrow {
  margin: 0 0 12px; color: var(--gold); font-size: 12px; letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); display: inline-block; }
.hero-name {
  font-size: 34px; line-height: 1.1; margin: 0; font-weight: 700; letter-spacing: -.01em;
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}
.hero-title {
  margin: 6px 0 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 600;
}
.hero-ar { margin: 16px 0 0; font-size: 17px; font-weight: 600; color: #fff; }
.hero-lead { margin: 8px 0 0; font-size: 15px; color: #cfd8e8; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-social { margin: 16px 0 0; font-size: 12.5px; color: var(--gold-soft); opacity: .9; }
.hero-photo {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 22%;
  border: 3px solid var(--gold); box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}

.cover { margin: 14px 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cover img { width: 100%; }

/* ---------- sections ---------- */
.section { padding: 34px 0 6px; scroll-margin-top: 76px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.section-head h2 {
  font-size: 22px; margin: 0; font-weight: 700; color: var(--navy); letter-spacing: -.01em;
}
.section-head .num {
  font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .16em;
}
.section-sub { margin: 6px 0 18px; color: var(--muted); font-size: 14.5px; }
.rule { height: 2px; width: 44px; background: var(--gold); border-radius: 2px; margin: 10px 0 18px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 16px; box-shadow: var(--shadow);
}

/* booking rows */
.book-grid { display: grid; gap: 12px; }
.book-row {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  box-shadow: var(--shadow); transition: border-color .15s ease, transform .15s ease;
}
.book-row:hover { border-color: var(--gold); transform: translateY(-1px); }
.book-num {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--navy);
  color: var(--gold-soft); display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.book-name { font-weight: 700; font-size: 15.5px; }
.book-phone { margin-inline-start: auto; font-weight: 700; color: var(--navy); direction: ltr; font-variant-numeric: tabular-nums; }
.book-note { margin: 12px 2px 0; color: var(--muted); font-size: 14px; }

/* clinics */
.clinic-grid { display: grid; gap: 14px; }
.clinic-card { border-inline-start: 4px solid var(--gold); }
.clinic-card h3 { margin: 0 0 10px; font-size: 17px; color: var(--navy); }
.hours { display: grid; gap: 6px; margin: 0 0 12px; }
.hours div { display: flex; gap: 10px; font-size: 14.5px; }
.hours dt { color: var(--muted); min-width: 64px; margin: 0; }
.hours dd { margin: 0; font-weight: 600; }
.clinic-meta { margin: 0; font-size: 14.5px; color: var(--muted); }
.clinic-meta a { color: var(--navy); }
.clinic-phone { margin: 6px 0 0; }
.clinic-phone a { color: var(--navy); font-weight: 700; direction: ltr; text-decoration: none; }

/* services */
.services { display: grid; gap: 10px; counter-reset: svc; }
.service {
  display: flex; align-items: flex-start; gap: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px;
}
.service::before {
  counter-increment: svc; content: counter(svc);
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  background: #f4ecda; color: #8a6a17; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; margin-top: 2px;
}

/* reels */
.reels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.reel {
  display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.reel:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.reel-thumb { position: relative; display: block; aspect-ratio: 9 / 16; background: var(--navy); overflow: hidden; }
.reel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.reel-play {
  position: absolute; inset-inline-start: 10px; top: 10px;
  width: 28px; height: 28px; border-radius: 50%; background: rgba(13, 27, 51, .72);
  display: grid; place-items: center; color: #fff; font-size: 11px;
}
.reel-body { display: block; padding: 10px 12px 12px; }
.reel-title { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; }
.reel-date { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }

/* posts */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.chip {
  font: inherit; font-size: 13.5px; cursor: pointer; min-height: 38px; padding: 0 15px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--gold); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.count { margin: 0 0 16px; font-size: 13px; color: var(--muted); }

.posts { display: grid; gap: 16px; }
.post {
  display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.post:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.post[hidden] { display: none; }
.post-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #efe9e2; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: contain; }
.post-topic {
  position: absolute; inset-inline-start: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px;
  background: rgba(13, 27, 51, .9); color: #fff; font-size: 11.5px; line-height: 1.7;
  backdrop-filter: blur(4px);
}
.post-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; }
.post-date { font-size: 12px; color: var(--muted); }
.post-title { font-size: 15.5px; font-weight: 700; line-height: 1.45; color: var(--ink); }
.post-excerpt { font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.post-link { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--navy); }
.post-link::after { content: " ←"; }

/* warning */
.warn { border-inline-start: 4px solid var(--danger); background: #fdf6f4; }
.warn h2 { color: #7f2a22; }
.warn ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.warn li { display: flex; gap: 10px; font-size: 15px; }
.warn li::before { content: "!"; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 4px; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px;
  padding: 14px 0; font-weight: 700; font-size: 15.5px; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-inline-start: auto; font-size: 20px; color: var(--gold); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 16px; color: var(--muted); font-size: 14.5px; }

/* contact */
.contact-grid { display: grid; gap: 12px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.contact-item .k { color: var(--muted); min-width: 62px; }
.contact-item a { color: var(--navy); font-weight: 600; }

/* footer */
.footer { margin-top: 44px; background: var(--navy); color: #cdd7e6; padding: 30px 0 26px; }
.footer a { color: var(--gold-soft); text-decoration: none; }
.footer-grid { display: grid; gap: 16px; }
.footer-name { color: #fff; font-weight: 700; font-size: 16px; margin: 0; }
.footer p { margin: 6px 0 0; font-size: 13.5px; }
.footer-bottom { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 12.5px; color: #9fb0c9; }
.disclaimer { margin: 0; font-size: 13px; color: #9fb0c9; }

@media (min-width: 700px) {
  .book-grid { grid-template-columns: 1fr 1fr; }
  .clinic-grid { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .reels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
}

@media (min-width: 900px) {
  .topnav { display: flex; }
  .hero-panel { padding: 42px 40px; }
  .hero-grid { flex-direction: row; align-items: center; gap: 36px; }
  .hero-text { flex: 1 1 auto; }
  .hero-photo { width: 208px; height: 208px; flex: 0 0 auto; }
  .hero-name { font-size: 44px; }
  .hero-ar { font-size: 19px; }
  .hero-lead { font-size: 16px; }
  .section { padding: 46px 0 6px; }
  .section-head h2 { font-size: 25px; }
  .reels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clinic-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* narrow phones: centered hero reads better than a floating portrait */
@media (max-width: 599px) {
  .hero-panel { text-align: center; }
  .eyebrow { justify-content: center; }
  .eyebrow::before { display: none; }
  .hero-photo { margin: 0 auto; }
  .hero-lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-social { text-align: center; }
  .hero-panel .btn { flex: 1 1 auto; }
  .post-media { aspect-ratio: 1 / 1; }
}
