/* ==============================================================
   مركز أبكار الطبي — نظام التصميم الموحد الحديث v3.0
   مستوحى من هوية الشعار الطبي وفخامة تصميم الصياد
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  /* ألوان الشعار الملكي */
  --p: #0a63c9;             /* أزرق الشعار الملكي */
  --pd: #063973;            /* أزرق داكن */
  --pl: #f0f7ff;            /* أزرق فاتح وناعم جداً */
  --b: #0284c7;             /* سماوي طبي */
  --bd: #0369a1;
  --bl: #e0f2fe;
  
  --red: #d4141c;           /* أحمر الشعار القرمزي الحيوي */
  --red-dark: #991b1b;
  --red-soft: #fee2e2;
  
  --g: linear-gradient(135deg, #063973 0%, #0a63c9 55%, #0284c7 100%);
  --g-btn: linear-gradient(135deg, #0a63c9 0%, #0284c7 100%);
  --g-red: linear-gradient(135deg, #d4141c 0%, #ef4444 100%);
  
  --bar: #041c3b;
  --glow1: #0284c7;
  --glow2: #38bdf8;
  
  --ink: #0f172a;
  --ink2: #334155;
  --mut: #64748b;
  --line: #e2e8f0;
  --line-light: #f1f5f9;
  --bg: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.96);
  --ok: #059669;
  
  --r-sm: 8px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 9999px;
  
  --sh-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --sh: 0 10px 30px -10px rgba(10, 99, 201, 0.09), 0 2px 8px -2px rgba(0, 0, 0, 0.04);
  --sh-lg: 0 20px 45px -12px rgba(6, 57, 115, 0.22);
  --font: 'Tajawal', 'Cairo', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Sans', -apple-system, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 15.5px;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all 0.22s ease; }
.container { width: min(1240px, 92%); margin-inline: auto; }
.ic { width: 1.2em; height: 1.2em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 1. الشريط العلوي بنمط الصياد المطور */
.topbar {
  background: var(--bar);
  color: #dbeafe;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.topbar .ph {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar .ph a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 700;
}

.topbar .ph a:hover { color: #38bdf8; }

.topbar .tick {
  font-weight: 600;
  color: #bae6fd;
}

/* 2. الترويسة الزجاجية الفخمة */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.brand .logos {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ffffff;
  border: 1.5px solid var(--line);
  box-shadow: 0 4px 12px rgba(10, 99, 201, 0.12);
  display: grid;
  place-items: center;
  padding: 4px;
  transition: transform 0.2s ease;
}

.brand:hover .logos { transform: scale(1.05); }

.brand-title-box b {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--pd);
  display: block;
  line-height: 1.2;
}

.brand-title-box small {
  font-size: 0.8rem;
  color: var(--mut);
  font-weight: 600;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--ink2);
}

.nav a:hover {
  background: var(--pl);
  color: var(--p);
}

.nav a.on {
  background: var(--g-btn);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(10, 99, 201, 0.3);
}

.hdr-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* زر الدخول للنظام بنمط الصياد المطور */
.btn-his-login {
  background: var(--g-btn) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  padding: 8px 18px !important;
  border-radius: var(--r-pill) !important;
  border: 1.5px solid rgba(255,255,255,0.4) !important;
  box-shadow: 0 4px 14px rgba(10, 99, 201, 0.3) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.9rem !important;
}

.btn-his-login:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(10, 99, 201, 0.45) !important;
}

/* الأزرار العامة */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  transition: all 0.22s ease;
  line-height: 1.4;
}

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

.btn-primary {
  background: var(--g-btn);
  color: #fff;
  box-shadow: 0 6px 18px rgba(10, 99, 201, 0.25);
}

.btn-light {
  background: #ffffff;
  color: var(--pd);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.6);
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.btn-outline:hover { background: rgba(255,255,255,0.2); }

.btn-line {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.btn-line:hover {
  border-color: var(--p);
  color: var(--p);
  background: var(--pl);
}

.btn-sm { padding: 7px 16px; font-size: 0.88rem; border-radius: var(--r-pill); }

/* 3. قسم Hero الافتتاحية الملكية */
.hero {
  background: var(--g);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 60px 0 70px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.4) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 20, 28, 0.25) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 16px;
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  font-weight: 700;
  color: #bae6fd;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.25;
  font-weight: 900;
  margin: 16px 0;
  color: #ffffff;
}

.hero h1 span {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #bae6fd;
  opacity: 0.95;
  margin-top: 4px;
}

.hero p.lead {
  font-size: 1.12rem;
  color: #e0f2fe;
  line-height: 1.8;
  max-width: 620px;
  margin-bottom: 24px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-side {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.hero-side-logo-wrap {
  width: 105px;
  height: 105px;
  margin: 0 auto 18px;
  background: #ffffff;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-side ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-side li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.hero-side li .ic { color: #38bdf8; }

.hero-side-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

/* شريط الإحصاءات الأنيق */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.stat {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat .si {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  color: #38bdf8;
}

.stat b { font-size: 1.25rem; font-weight: 900; display: block; color: #fff; line-height: 1.2; }
.stat span { font-size: 0.82rem; color: #bae6fd; font-weight: 600; }

/* 4. البطاقات والشبكات للعيادات والأطباء */
.section { padding: 64px 0; }
.section.alt { background: #ffffff; }

.head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 46px;
}

.head .eyebrow {
  display: inline-block;
  background: var(--pl);
  color: var(--p);
  padding: 4px 14px;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.head h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 10px;
}

.head p {
  color: var(--mut);
  font-size: 1.05rem;
  margin: 0;
}

.grid { display: grid; gap: 24px; }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }

.dept {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 24px;
  box-shadow: var(--sh);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.dept:hover {
  transform: translateY(-5px);
  border-color: #38bdf8;
  box-shadow: var(--sh-lg);
}

.dept .di {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--pl);
  color: var(--p);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.dept h3 {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
}

.dept p {
  font-size: 0.92rem;
  color: var(--ink2);
  line-height: 1.7;
  margin: 0;
}

/* بطاقات الأطباء */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.doctor-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  box-shadow: var(--sh);
  transition: all 0.25s ease;
}

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

.doctor-photo-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--pl);
  border: 2px solid #bae6fd;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.doctor-info h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 4px;
}

.doctor-specialty {
  color: var(--p);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.doctor-schedule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--ink2);
  font-weight: 700;
}

/* 5. نموذج الحجز والتواصل بنمط البطاقة الزجاجية */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.form-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  box-shadow: var(--sh-lg);
}

.fgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field.full { grid-column: span 2; }

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink2);
  margin-bottom: 6px;
}

.input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #f8fafc;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.2s ease;
}

.input:focus {
  background: #fff;
  border-color: var(--p);
  box-shadow: 0 0 0 4px rgba(10, 99, 201, 0.15);
  outline: 0;
}

.locked {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
}

/* بطاقات الوصول */
.reach {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.reach-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  text-align: center;
  box-shadow: var(--sh);
}

.reach-item .ri {
  width: 50px;
  height: 50px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--pl);
  color: var(--p);
  display: grid;
  place-items: center;
}

.reach-item h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--ink);
}

.reach-item p {
  margin: 0;
  color: var(--mut);
  font-weight: 600;
}

/* 6. الفوتر الفخم */
.site-footer {
  background: #021226;
  color: #94a3b8;
  padding: 60px 0 20px;
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fgrid4 {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 18px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer a:hover { color: #38bdf8; }

.site-footer .copy {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

.fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99;
}

.fab .w1 {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  font-size: 1.8rem;
  transition: transform 0.2s ease;
}

.fab .w1:hover { transform: scale(1.1); }

/* Responsive Media Queries */
@media (max-width: 960px) {
  .hero-grid, .booking-grid { grid-template-columns: 1fr; }
  .grid.g4, .grid.g3, .doctors-grid, .reach, .stats { grid-template-columns: 1fr; }
  .fgrid4 { grid-template-columns: 1fr; }
  .nav { display: none; }
  .menu-btn { display: block; }
}
