/*
Theme Name: بيت الشفاء الطبي
Theme URI: https://beit-alshifa.com/
Author: Beit Al-Shifa Medical Center
Author URI: https://beit-alshifa.com/
Description: قالب ووردبريس طبي احترافي لمركز بيت الشفاء — تصميم حديث يدعم العربية RTL والإنجليزية، متوافق مع Elementor وWooCommerce، محسّن للسرعة ومحركات البحث.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beit-alshifa
Tags: medical, healthcare, clinic, hospital, rtl, arabic, elementor, woocommerce
*/

/* ════════════════════════════════════════════════════════
   DESIGN TOKENS
   مُشتقة من شعار بيت الشفاء: كحلي + تدرج أزرق سماوي
════════════════════════════════════════════════════════ */
:root {
  /* ── الألوان الأساسية (من الشعار) ── */
  --navy:        #1F2B5B;
  --navy-deep:   #161D42;
  --navy-soft:   rgba(31,43,91,0.06);
  --blue-mid:    #4B8EF8;
  --sky:         #3DBCEB;
  --sky-light:   #E8F7FC;

  /* ── تدرج العلامة (مأخوذ من شريط الشعار) ── */
  --brand-gradient: linear-gradient(100deg, var(--blue-mid) 0%, var(--sky) 100%);

  /* ── ألوان وظيفية ── */
  --teal:        #1FA98D;   /* أخضر طبي للحالات الإيجابية/التوفر */
  --teal-soft:   rgba(31,169,141,0.08);
  --amber:       #E8A23D;   /* تنبيهات */
  --coral:       #E8584A;   /* طوارئ / تنبيه عاجل */

  /* ── محايدات ── */
  --ink:         #16213E;
  --body-text:   #475168;
  --muted:       #8893A8;
  --line:        #E7ECF4;
  --surface:     #FFFFFF;
  --surface-alt: #F6F9FD;
  --surface-deep:#EEF3FA;

  /* ── الطباعة ── */
  --font-ar: 'Tajawal', 'Segoe UI', sans-serif;
  --font-en: 'Inter', 'Segoe UI', sans-serif;
  --font-display-ar: 'Tajawal', sans-serif;

  /* ── القياسات ── */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(22,33,69,0.06);
  --shadow-md: 0 10px 32px rgba(22,33,69,0.10);
  --shadow-lg: 0 24px 64px rgba(22,33,69,0.14);
  --container: 1240px;
  --header-h: 84px;
}

/* ════════════════════════════════════════════════════════
   RESET
════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

body {
  font-family: var(--font-ar);
  color: var(--body-text);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

html[dir="ltr"] body,
body.lang-en { font-family: var(--font-en); }

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.25;
}

::selection { background: var(--sky); color: var(--navy-deep); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb { background: var(--blue-mid); border-radius: 8px; }

:focus-visible {
  outline: 2px solid var(--blue-mid);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ════════════════════════════════════════════════════════
   UTILITIES
════════════════════════════════════════════════════════ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link {
  position: absolute; top: -100px; right: 12px; z-index: 9999;
  background: var(--navy); color: #fff; padding: 12px 22px;
  border-radius: var(--radius-sm); transition: top .2s;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--blue-mid); text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; width: 22px; height: 2px;
  background: var(--brand-gradient); border-radius: 2px;
}

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 14px; }
.section-title .accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-desc { font-size: 16px; color: var(--muted); line-height: 1.85; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: var(--brand-gradient); color: #fff;
  box-shadow: 0 10px 28px rgba(75,142,248,.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(75,142,248,.4); }
.btn-outline {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--blue-mid); background: var(--navy-soft); }
.btn-white {
  background: #fff; color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 10px 22px; font-size: 13px; }
.btn-whatsapp {
  background: #25D366; color: #fff;
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37,211,102,.4); }

/* ════════════════════════════════════════════════════════
   WAVE DIVIDER — العنصر التوقيعي (مستوحى من شريط الشعار)
════════════════════════════════════════════════════════ */
.wave-divider { position: relative; height: 64px; overflow: hidden; }
.wave-divider svg { width: 100%; height: 100%; }

/* ════════════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-top {
  background: var(--navy-deep); color: #cfd9f5;
  font-size: 13px;
}
.header-top .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 8px; flex-wrap: wrap; gap: 8px;
}
.header-top-info { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.header-top-info a { display: inline-flex; align-items: center; gap: 6px; color: #cfd9f5; transition: color .2s; }
.header-top-info a:hover { color: var(--sky); }
.header-top-lang { display: flex; align-items: center; gap: 14px; }
.header-top-lang a { color: #cfd9f5; opacity: .65; transition: opacity .2s; }
.header-top-lang a.is-active, .header-top-lang a:hover { opacity: 1; color: var(--sky); }

.header-main { height: var(--header-h); display: flex; align-items: center; }
.header-main .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.site-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-logo img { height: 52px; width: auto; }
.site-logo-text { line-height: 1.2; }
.site-logo-name { font-size: 19px; font-weight: 800; color: var(--navy); display: block; }
.site-logo-tag  { font-size: 11px; color: var(--blue-mid); letter-spacing: .04em; display: block; }

.main-nav { display: flex; }
.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: block; padding: 10px 16px; font-size: 15px; font-weight: 600;
  color: var(--ink); border-radius: var(--radius-sm); transition: color .2s, background .2s;
  position: relative;
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--blue-mid); background: var(--navy-soft); }
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 230px;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .22s ease; z-index: 50;
}
.main-nav .menu-item-has-children:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { padding: 10px 14px; border-radius: 8px; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.mobile-toggle {
  display: none; flex-direction: column; gap: 5px; width: 28px;
}
.mobile-toggle span { height: 2.5px; background: var(--navy); border-radius: 2px; transition: all .3s; }
.mobile-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; inset: 0; top: var(--header-h);
  background: #fff; z-index: 400; padding: 24px 28px; overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: block; padding: 14px 8px; font-size: 17px; font-weight: 700; border-bottom: 1px solid var(--line); }
.mobile-nav .sub-menu { padding-inline-start: 16px; }
.mobile-nav .sub-menu a { font-size: 15px; font-weight: 600; color: var(--muted); }
.mobile-nav-cta { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.mobile-nav-cta .btn { width: 100%; }

/* ════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  background: var(--surface-alt);
  padding-block: 84px 0;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 8px 18px 8px 8px; font-size: 13px; font-weight: 700; color: var(--navy);
  box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.hero-badge .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
}
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); margin-bottom: 22px; }
.hero h1 .accent {
  background: var(--brand-gradient); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 36px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 28px; }
.hero-trust-item { display: flex; align-items: center; gap: 10px; }
.hero-trust-num { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1; }
.hero-trust-label { font-size: 12.5px; color: var(--muted); max-width: 110px; line-height: 1.4; }

.hero-visual { position: relative; }
.hero-visual-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/4.3; box-shadow: var(--shadow-lg);
}
.hero-visual-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-float-card {
  position: absolute; background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
}
.hero-float-card.card-1 { top: 8%; right: -8%; }
.hero-float-card.card-2 { bottom: 9%; left: -10%; }
.hero-float-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.hero-float-icon.teal { background: var(--teal-soft); color: var(--teal); }
.hero-float-icon.blue { background: var(--navy-soft); color: var(--blue-mid); }
.hero-float-title { font-size: 14px; font-weight: 700; color: var(--navy); }
.hero-float-sub { font-size: 12px; color: var(--muted); }

.hero-wave { margin-top: 70px; }

/* ════════════════════════════════════════════════════════
   SECTION SPACING
════════════════════════════════════════════════════════ */
.section { padding-block: 90px; }
.section.bg-alt { background: var(--surface-alt); }
.section.bg-navy {
  background: var(--navy-deep); color: #cfd9f5;
}
.section.bg-navy .section-title { color: #fff; }
.section.bg-navy .section-desc { color: #9aa8cf; }

/* ════════════════════════════════════════════════════════
   SERVICES GRID
════════════════════════════════════════════════════════ */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: var(--brand-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 22px; color: #fff;
}
.service-name { font-size: 19px; margin-bottom: 10px; }
.service-desc { font-size: 14.5px; color: var(--muted); line-height: 1.75; margin-bottom: 18px; }
.service-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--blue-mid); }
.service-link .arrow { transition: transform .2s; }
.service-card:hover .service-link .arrow { transform: translateX(-4px); }
html[dir="ltr"] .service-card:hover .service-link .arrow { transform: translateX(4px); }

/* ════════════════════════════════════════════════════════
   DOCTORS
════════════════════════════════════════════════════════ */
.doctors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.doctor-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s;
}
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.doctor-photo { aspect-ratio: 1/1.05; overflow: hidden; background: var(--surface-deep); position: relative; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.doctor-card:hover .doctor-photo img { transform: scale(1.06); }
.doctor-status {
  position: absolute; top: 14px; left: 14px;
  background: #fff; border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: 700; color: var(--teal);
  padding: 5px 12px; display: flex; align-items: center; gap: 6px;
  box-shadow: var(--shadow-sm);
}
.doctor-status::before { content:''; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.doctor-body { padding: 22px 22px 26px; }
.doctor-name { font-size: 17px; margin-bottom: 4px; }
.doctor-spec { font-size: 13.5px; color: var(--blue-mid); font-weight: 700; margin-bottom: 12px; }
.doctor-meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.doctor-meta span { display: flex; align-items: center; gap: 5px; }
.doctor-book {
  display: block; text-align: center; padding: 10px; border-radius: var(--radius-sm);
  background: var(--navy-soft); color: var(--navy); font-weight: 700; font-size: 13.5px;
  transition: background .2s, color .2s;
}
.doctor-book:hover { background: var(--brand-gradient); color: #fff; }

/* ════════════════════════════════════════════════════════
   FEATURES (مميزات المركز)
════════════════════════════════════════════════════════ */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.feature-item {
  text-align: center; padding: 36px 22px;
}
.feature-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 20px;
}
.feature-name { font-size: 17px; color: #fff; margin-bottom: 8px; }
.feature-desc { font-size: 13.5px; color: #9aa8cf; line-height: 1.7; }

/* ════════════════════════════════════════════════════════
   TESTIMONIALS
════════════════════════════════════════════════════════ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px;
}
.testimonial-stars { color: var(--amber); font-size: 15px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { font-size: 15px; color: var(--ink); line-height: 1.85; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 46px; height: 46px; border-radius: 50%; overflow: hidden;
  background: var(--navy-soft); flex-shrink: 0;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-size: 14.5px; font-weight: 700; color: var(--navy); }
.testimonial-role { font-size: 12.5px; color: var(--muted); }

/* ════════════════════════════════════════════════════════
   BLOG / ARTICLES
════════════════════════════════════════════════════════ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--surface-deep); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-thumb img { transform: scale(1.07); }
.blog-body { padding: 24px 24px 28px; }
.blog-cat {
  display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--blue-mid);
  background: var(--navy-soft); padding: 4px 12px; border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.blog-title { font-size: 17.5px; margin-bottom: 10px; line-height: 1.5; }
.blog-title a:hover { color: var(--blue-mid); }
.blog-excerpt { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 18px; }
.blog-meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line); }
.blog-meta span { display: flex; align-items: center; gap: 5px; }

/* ════════════════════════════════════════════════════════
   APPOINTMENT CTA BAND
════════════════════════════════════════════════════════ */
.appt-band {
  background: var(--navy); border-radius: var(--radius-lg);
  padding: 56px 50px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.appt-band::before {
  content: ''; position: absolute; inset: 0;
  background: var(--brand-gradient); opacity: .12;
}
.appt-band-text { position: relative; z-index: 1; max-width: 520px; }
.appt-band-text h3 { color: #fff; font-size: 26px; margin-bottom: 10px; }
.appt-band-text p { color: #aebbe3; font-size: 15px; }
.appt-band-actions { position: relative; z-index: 1; display: flex; gap: 14px; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════
   CONTACT SECTION
════════════════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; }
.contact-info-list { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-info-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: var(--navy-soft); color: var(--blue-mid);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.contact-info-text strong { display: block; font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.contact-info-text span, .contact-info-text a { font-size: 14px; color: var(--muted); }
.contact-info-text a:hover { color: var(--blue-mid); }

.contact-social { display: flex; gap: 10px; margin-top: 30px; }
.contact-social a {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--surface-alt); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  transition: background .2s, border-color .2s, transform .2s;
}
.contact-social a:hover { background: var(--brand-gradient); border-color: transparent; color: #fff; transform: translateY(-3px); }

.contact-form-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 38px; box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-group label { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  background: var(--surface-alt); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 13px 16px; font-size: 14.5px;
  transition: border-color .2s, background .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue-mid); background: #fff; outline: none;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-success {
  background: var(--teal-soft); border: 1px solid rgba(31,169,141,.3);
  color: var(--teal); border-radius: var(--radius-sm); padding: 16px 20px;
  font-size: 14px; margin-bottom: 18px; display: none;
}
.form-success.is-visible { display: block; }

.map-embed {
  margin-top: 36px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 21/7;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.15); }

/* ════════════════════════════════════════════════════════
   WHATSAPP FLOAT
════════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed; bottom: 26px; left: 26px; z-index: 600;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  box-shadow: 0 10px 28px rgba(37,211,102,.4);
  transition: transform .2s;
}
html[dir="ltr"] .whatsapp-float { left: auto; right: 26px; }
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float .pulse {
  position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; animation: wa-pulse 2.2s infinite;
}
@keyframes wa-pulse { 0%{transform:scale(1);opacity:.6} 100%{transform:scale(1.9);opacity:0} }

/* ════════════════════════════════════════════════════════
   PAGE HERO (للصفحات الداخلية)
════════════════════════════════════════════════════════ */
.page-hero {
  background: var(--navy); position: relative; overflow: hidden;
  padding-block: 64px 56px; text-align: center;
}
.page-hero::before {
  content:''; position: absolute; inset: 0;
  background: var(--brand-gradient); opacity: .14;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(28px,4vw,46px); margin-bottom: 14px; }
.breadcrumbs { display: flex; gap: 8px; justify-content: center; font-size: 13.5px; color: #aebbe3; }
.breadcrumbs a { color: #aebbe3; transition: color .2s; }
.breadcrumbs a:hover { color: var(--sky); }
.breadcrumbs .sep { opacity: .5; }

/* ════════════════════════════════════════════════════════
   ARCHIVE / BLOG LISTING
════════════════════════════════════════════════════════ */
.archive-layout { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.archive-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }

.sidebar-widget {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 26px; margin-bottom: 22px;
}
.sidebar-widget h4 { font-size: 16px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sidebar-search { display: flex; gap: 8px; }
.sidebar-search input { flex: 1; background: var(--surface-alt); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; }
.sidebar-search button { background: var(--brand-gradient); color: #fff; border-radius: var(--radius-sm); padding: 0 16px; }
.sidebar-cat-list li { border-bottom: 1px solid var(--line); }
.sidebar-cat-list li:last-child { border-bottom: 0; }
.sidebar-cat-list a {
  display: flex; justify-content: space-between; padding: 11px 4px; font-size: 14px; transition: color .2s;
}
.sidebar-cat-list a:hover { color: var(--blue-mid); }
.sidebar-cat-list .count { color: var(--muted); font-size: 12.5px; }
.sidebar-recent-post { display: flex; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.sidebar-recent-post:last-child { border-bottom: 0; }
.sidebar-recent-thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--surface-deep); }
.sidebar-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-recent-title { font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.sidebar-recent-title a:hover { color: var(--blue-mid); }
.sidebar-recent-date { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.sidebar-cta {
  background: var(--navy); border-radius: var(--radius-md); padding: 26px; text-align: center;
}
.sidebar-cta h4 { color: #fff; border: 0; padding: 0; margin-bottom: 8px; }
.sidebar-cta p { color: #aebbe3; font-size: 13.5px; margin-bottom: 18px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination a, .pagination span {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--line); font-size: 14px; font-weight: 700;
  transition: all .2s;
}
.pagination a:hover { border-color: var(--blue-mid); color: var(--blue-mid); }
.pagination .current { background: var(--brand-gradient); color: #fff; border-color: transparent; }

/* ════════════════════════════════════════════════════════
   SINGLE POST
════════════════════════════════════════════════════════ */
.single-layout { display: grid; grid-template-columns: 1fr 320px; gap: 44px; }
.single-content { max-width: 100%; }
.single-thumb { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 36px; aspect-ratio: 16/8; }
.single-thumb img { width: 100%; height: 100%; object-fit: cover; }
.single-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.single-meta span { display: flex; align-items: center; gap: 6px; }
.entry-content { font-size: 16.5px; line-height: 1.95; color: var(--body-text); }
.entry-content h2 { font-size: 26px; margin: 40px 0 18px; }
.entry-content h3 { font-size: 21px; margin: 32px 0 14px; }
.entry-content p { margin-bottom: 20px; }
.entry-content ul, .entry-content ol { margin: 0 0 20px; padding-inline-start: 24px; }
.entry-content li { margin-bottom: 8px; list-style: disc; }
.entry-content blockquote {
  border-inline-start: 4px solid var(--blue-mid); background: var(--navy-soft);
  padding: 20px 24px; border-radius: var(--radius-sm); margin: 28px 0; font-style: italic;
}
.entry-content img { border-radius: var(--radius-md); margin: 24px 0; }
.entry-content a { color: var(--blue-mid); text-decoration: underline; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-tags a {
  font-size: 12.5px; font-weight: 600; padding: 6px 16px;
  background: var(--surface-alt); border-radius: var(--radius-pill);
  transition: background .2s, color .2s;
}
.post-tags a:hover { background: var(--brand-gradient); color: #fff; }

.author-box {
  display: flex; gap: 18px; background: var(--surface-alt); border-radius: var(--radius-md);
  padding: 26px; margin-top: 36px; align-items: flex-start;
}
.author-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-size: 15.5px; margin-bottom: 6px; }
.author-bio { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

.related-posts { margin-top: 56px; }
.related-posts h3 { font-size: 22px; margin-bottom: 26px; }

.comments-area { margin-top: 56px; }
.comments-title { font-size: 22px; margin-bottom: 26px; }
.comment-list { display: flex; flex-direction: column; gap: 22px; }
.comment-body { display: flex; gap: 16px; }
.comment-avatar { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.comment-meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.comment-author { font-weight: 700; color: var(--navy); }
.comment-content { font-size: 14.5px; line-height: 1.75; }
.comment-respond { margin-top: 36px; background: var(--surface-alt); padding: 30px; border-radius: var(--radius-md); }

/* ════════════════════════════════════════════════════════
   404 / NO RESULTS
════════════════════════════════════════════════════════ */
.error-404 { text-align: center; padding-block: 100px; }
.error-404 .code { font-size: 100px; font-weight: 900; color: var(--blue-mid); line-height: 1; margin-bottom: 16px; }

/* ════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════ */
.site-footer { background: var(--navy-deep); color: #aebbe3; }
.footer-top { padding-block: 70px 50px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-logo img { height: 44px; }
.footer-logo-name { color: #fff; font-size: 17px; font-weight: 800; }
.footer-desc { font-size: 13.5px; line-height: 1.85; margin-bottom: 22px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: background .2s, transform .2s;
}
.footer-social a:hover { background: var(--brand-gradient); transform: translateY(-3px); }

.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 13.5px; transition: color .2s; }
.footer-col a:hover { color: var(--sky); }

.footer-newsletter input {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm); padding: 12px 16px; color: #fff; margin-bottom: 12px; font-size: 13.5px;
}
.footer-newsletter input::placeholder { color: #7d8bb5; }
.footer-newsletter .btn { width: 100%; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-block: 22px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px;
}
.footer-bottom a { transition: color .2s; }
.footer-bottom a:hover { color: var(--sky); }
.footer-legal { display: flex; gap: 20px; }

/* ════════════════════════════════════════════════════════
   WOOCOMMERCE
════════════════════════════════════════════════════════ */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(3,1fr); gap: 24px; }
.woocommerce ul.products li.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; transition: transform .25s, box-shadow .25s;
}
.woocommerce ul.products li.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.woocommerce ul.products li.product img { border-radius: var(--radius-md); margin-bottom: 16px; }
.woocommerce ul.products li.product .price { color: var(--blue-mid); font-weight: 800; }
.woocommerce a.button, .woocommerce button.button {
  background: var(--brand-gradient) !important; color: #fff !important;
  border-radius: var(--radius-pill) !important; padding: 12px 26px !important;
  font-weight: 700 !important; border: none !important;
}
.woocommerce span.onsale {
  background: var(--coral) !important; border-radius: var(--radius-pill) !important;
  font-size: 12px !important;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border-radius: var(--radius-sm) !important; border-color: var(--line) !important;
}

/* ════════════════════════════════════════════════════════
   ELEMENTOR COMPATIBILITY
════════════════════════════════════════════════════════ */
.elementor-page .site-content { max-width: none; padding: 0; }
.elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--container); }

/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .doctors-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .archive-layout, .single-layout { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 960px) {
  .main-nav, .header-cta, .header-top { display: none; }
  .mobile-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .services-grid, .testimonials-grid, .blog-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  :root { --header-h: 72px; }
  .header-main { height: var(--header-h); }
}

@media (max-width: 640px) {
  .services-grid, .testimonials-grid, .blog-grid, .doctors-grid, .features-grid, .archive-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding-block: 60px; }
  .appt-band { padding: 36px 26px; flex-direction: column; text-align: center; }
  .appt-band-actions { justify-content: center; }
  .hero { padding-block: 56px 0; }
  .hero-trust { gap: 18px; }
}

/* ════════════════════════════════════════════════════════
   ACCESSIBILITY — تقليل الحركة
════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
