/* دار المسالك والذكورة — professional medical theme */
:root {
  --blue: #0051A3;
  --blue-dark: #003A78;
  --navy: #0A2540;
  --teal: #0E9AA7;
  --sky: #EAF3FB;
  --line: #DCE6F0;
  --bg: #F7FAFD;
  --white: #FFFFFF;
  --text: #1C2B3A;
  --muted: #5B6B7C;
  --red: #C71217;
  --font: "Cairo", system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(10, 37, 64, .18);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.8 var(--font); color: var(--text); background: var(--white); }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; color: var(--navy); }
p { margin: 0; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { direction: ltr; unicode-bidi: isolate; }
.ic { width: 22px; height: 22px; flex: none; }

/* ---------- top bar ---------- */
.topbar { background: var(--navy); color: #C9D6E3; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; flex-wrap: wrap; }
.topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar .ic { width: 16px; height: 16px; color: #7FB6E8; }
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.topbar .emergency .ic { color: #FF7A7E; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 48px; height: 48px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.logo-mark .ic { width: 28px; height: 28px; }
.logo-img { width: 56px; height: 56px; flex: none; }
.footer .logo-img { background: #fff; border-radius: 50%; padding: 3px; }
.logo b { display: block; font-size: 20px; font-weight: 800; color: var(--navy); line-height: 1.3; }
.logo small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.menu { display: flex; gap: 28px; }
.menu a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.menu a:hover { color: var(--blue); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font: 700 15px/1.3 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: #fff; color: var(--blue); }
.btn-wa { background: #1FAF57; color: #fff; }
.btn-wa:hover { background: #178f46; }
.btn-light { background: var(--sky); color: var(--blue); }
.btn-light:hover { background: #d9e9f7; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, #0A6FC2 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 15% 110%, rgba(14,154,167,.35), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-block: 72px 88px; }
.hero .tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.hero .tag .ic { width: 16px; height: 16px; }
.hero h1 { color: #fff; font-size: clamp(32px, 4.2vw, 50px); font-weight: 800; margin: 18px 0 8px; }
.hero h1 span { display: block; font-size: .56em; font-weight: 600; color: #CFE3F7; margin-top: 6px; }
.hero .lead { font-size: 18px; color: #DCEAF8; max-width: 36em; margin: 16px 0 30px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .actions .btn-primary { background: #fff; color: var(--blue); }
.hero .actions .btn-primary:hover { background: var(--sky); }

.book-card { background: #fff; color: var(--text); border-radius: 18px; padding: 30px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); }
.book-card h2 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.book-card h2 .ic { color: var(--blue); }
.book-card > p { color: var(--muted); font-size: 14px; margin: 4px 0 18px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; font: 500 15px/1.5 var(--font); color: var(--text); padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; background: #fff; }
.form-error { color: var(--red); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.book-card .btn, .contact-form .btn { width: 100%; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 10px; }

/* ---------- trust bar ---------- */
.trust { background: #fff; position: relative; z-index: 2; }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: -44px; border: 1px solid var(--line); }
.trust-item { display: flex; gap: 14px; align-items: center; padding: 22px 24px; }
.trust-item + .trust-item { border-inline-start: 1px solid var(--line); }
.trust-item .ic-box { width: 50px; height: 50px; border-radius: 12px; background: var(--sky); color: var(--blue); display: grid; place-items: center; flex: none; }
.trust-item b { display: block; font-size: 17px; color: var(--navy); line-height: 1.4; }
.trust-item small { color: var(--muted); font-size: 13.5px; line-height: 1.5; display: block; }

/* ---------- sections ---------- */
.sec { padding-block: 88px; }
.sec-alt { background: var(--bg); }
.sec-title { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.sec-title .over { display: inline-block; color: var(--teal); font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.sec-title h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.sec-title p { color: var(--muted); margin-top: 10px; }
.sec-title::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--blue); margin: 18px auto 0; }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: box-shadow .2s, border-color .2s, transform .2s; }
.service:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-3px); }
.service .ic-box { width: 58px; height: 58px; border-radius: 14px; background: var(--sky); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.service .ic-box .ic { width: 28px; height: 28px; }
.service h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.service ul { list-style: none; margin: 0; padding: 0; }
.service li { display: flex; gap: 8px; font-size: 15px; color: var(--muted); padding: 4px 0; line-height: 1.7; }
.service li .ic { width: 17px; height: 17px; color: var(--teal); margin-top: 5px; }

/* doctor */
.doctor { display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: center; }
.doctor-card { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%); border-radius: 20px; padding: 40px 32px; color: #fff; text-align: center; box-shadow: var(--shadow); }
.doctor-card { padding: 16px 16px 28px; }
.doctor-card .photo { display: block; width: 100%; height: auto; aspect-ratio: 544 / 608; object-fit: cover; border-radius: 14px; margin-bottom: 20px; background: #fff; }
.doctor-card .stats { margin-inline: 12px; }
.doctor-card h3 { color: #fff; font-size: 26px; font-weight: 800; }
.doctor-card p { color: #CFE3F7; font-size: 15px; }
.doctor-card .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.doctor-card .stats div { background: rgba(255,255,255,.1); border-radius: 12px; padding: 14px 8px; }
.doctor-card .stats b { display: block; font-size: 24px; font-weight: 800; }
.doctor-card .stats small { color: #CFE3F7; font-size: 13px; }
.doctor-info .over { color: var(--teal); font-weight: 700; }
.doctor-info h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin: 4px 0 14px; }
.doctor-info > p { color: var(--muted); font-size: 17px; margin-bottom: 22px; }
.creds { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.creds li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15px; line-height: 1.6; }
.creds li .ic { color: var(--blue); width: 20px; height: 20px; margin-top: 2px; }
.doctor-info .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* why us */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-item { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.why-item .ic-box { width: 50px; height: 50px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
.why-item h3 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.why-item p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 16px; position: relative; }
.steps li::before { content: counter(step); position: absolute; top: 12px; inset-inline-start: 14px; font-size: 13px; font-weight: 800; color: var(--blue); background: var(--sky); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.steps .ic-box { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px; background: var(--sky); color: var(--blue); display: grid; place-items: center; }
.steps h3 { font-size: 17px; font-weight: 800; }
.steps p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 4px; }
.steps-note { text-align: center; margin-top: 26px; font-weight: 700; color: var(--navy); }
.steps-note .ic { color: var(--teal); vertical-align: -5px; margin-inline-end: 6px; }

/* international band */
.intl { background: linear-gradient(135deg, var(--teal), #0B7F8A); color: #fff; border-radius: 20px; padding: 40px 44px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.intl .ic-big { width: 64px; height: 64px; border-radius: 16px; background: rgba(255,255,255,.15); display: grid; place-items: center; flex: none; }
.intl .ic-big .ic { width: 32px; height: 32px; }
.intl .txt { flex: 1; min-width: 260px; }
.intl h2 { color: #fff; font-size: 26px; font-weight: 800; }
.intl p { color: #E3F6F7; margin-top: 4px; }
.intl .tel { font-size: 22px; font-weight: 800; color: #fff; text-decoration: none; display: block; margin-bottom: 8px; }

/* articles */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .2s; }
.post:hover { box-shadow: var(--shadow); }
.post .band { height: 120px; background: linear-gradient(135deg, var(--sky), #D6E8F8); display: grid; place-items: center; color: var(--blue); }
.post .band .ic { width: 46px; height: 46px; }
.post .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post small { color: var(--teal); font-weight: 700; }
.post h3 { font-size: 19px; font-weight: 800; margin: 4px 0 8px; }
.post p { font-size: 14.5px; color: var(--muted); line-height: 1.75; margin-bottom: 16px; }
.post .more { margin-top: auto; color: var(--blue); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.post .more .ic { width: 16px; height: 16px; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-list { display: grid; gap: 14px; margin-bottom: 20px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.contact-row .ic-box { width: 46px; height: 46px; border-radius: 12px; background: var(--sky); color: var(--blue); display: grid; place-items: center; flex: none; }
.contact-row small { color: var(--muted); display: block; font-size: 13.5px; }
.contact-row b, .contact-row a { color: var(--navy); font-weight: 800; font-size: 16.5px; text-decoration: none; }
.map { border: 0; width: 100%; height: 260px; border-radius: var(--radius); display: block; background: var(--sky); }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); align-self: start; }
.contact-form h3 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.contact-form > p { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }

/* footer */
.footer { background: var(--navy); color: #AFC1D3; padding-top: 60px; font-size: 15px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.footer p { line-height: 1.9; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 3px 0; }
.footer a { color: #D8E4EF; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .logo b { color: #fff; }
.footer .logo small { color: #AFC1D3; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px; font-size: 13.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* mobile action bar */
.mobile-bar { display: none; }

/* ---------- article page ---------- */
.page-hero { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #fff; padding-block: 46px; }
.page-hero .crumbs { font-size: 14px; color: #CFE3F7; }
.page-hero .crumbs a { color: #fff; text-decoration: none; font-weight: 600; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin-top: 8px; }
.page-hero p { color: #CFE3F7; margin-top: 4px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; padding-block: 48px 80px; }
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; font-size: 17px; line-height: 2; }
.prose h2 { font-size: 22px; font-weight: 800; color: var(--blue-dark); margin: 1.5em 0 .5em; padding-inline-start: 14px; border-inline-start: 4px solid var(--blue); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-inline-start: 1.4em; }
.sidebar { position: sticky; top: 100px; display: grid; gap: 18px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.side-card.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.side-card.blue h3 { color: #fff; }
.side-card.blue p { color: #CFE3F7; }
.side-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.side-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.side-card .btn { width: 100%; margin-bottom: 8px; }
.side-card.blue .btn-primary { background: #fff; color: var(--blue); }
.side-card ul { list-style: none; margin: 0; padding: 0; }
.side-card li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--navy); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .menu { display: none; }
  .hero .wrap, .doctor, .contact, .article-grid { grid-template-columns: 1fr; }
  .services, .why, .posts { grid-template-columns: 1fr 1fr; }
  .trust .wrap { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-inline-start: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .doctor-card { max-width: 440px; margin-inline: auto; width: 100%; }
  .sidebar { position: static; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topbar .addr { display: none; }
  .topbar .wrap { justify-content: center; }
  .header .btn { display: none; }
  .logo b { font-size: 17px; }
  .hero .wrap { padding-block: 44px 72px; gap: 32px; }
  .hero .actions { flex-direction: column; }
  .hero .actions .btn { width: 100%; }
  .services, .why, .posts, .creds, .trust .wrap, .steps, .footer .cols { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-inline-start: 0; border-top: 1px solid var(--line); }
  .sec { padding-block: 60px; }
  .intl { padding: 28px 24px; }
  .prose { padding: 24px; }
  .book-card, .contact-form { padding: 22px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 60; box-shadow: 0 -6px 20px rgba(10,37,64,.15); }
  .mobile-bar .btn { border-radius: 0; padding-block: 15px; }
  .footer { padding-bottom: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
