/*
 * spectra.css — Spectra Egypt custom styles (v2.0)
 * Replaces every inline <style> that used to live in functions.php.
 * Loaded site-wide via spectra/loader.php (home, services, doctors EN + AR).
 * Uses logical properties (margin-inline-*) so RTL (Arabic) works without overrides.
 */

/* ---------- 1. Theme fixes ---------- */

/* .content-header p — was h4 before the SEO change */
.content-header p {
  margin: 0;
  padding-inline-start: 6px;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  display: inline;
}

/* Footer logo size (replaces JS style.setProperty !important) */
.scc-fw-about img {
  width: 170px !important;
  height: auto !important;
}

/* ---------- 2. Hero WhatsApp CTA (home) ---------- */
.sp-wa-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff !important;
  padding: 13px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  margin-inline-start: 12px;
  margin-top: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(37, 211, 102, .4);
  transition: background .2s, transform .2s;
}
.sp-wa-cta:hover { background: #1ebe5d; transform: translateY(-2px); }
@media (max-width: 575px) {
  .sp-wa-cta { margin-inline-start: 0; }
}

/* ---------- 3. Footer map ---------- */
.sp-maps-wrap { padding: 0 20px 32px; max-width: 400px; }
.sp-maps-wrap iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 10px;
  display: block;
}
@media (max-width: 768px) { .sp-maps-wrap { max-width: 100%; } }

/* ---------- 4. Nav arrows removed (was injected by JS in 2 places) ---------- */
header.style4 .navbar-links li.menu-item-has-children > a::after,
header.style4 .navbar-links li.menu-item-has-children:hover > a::after,
html body .sticky-menu ul.mb-0 > li > a::after,
html body .sticky-menu ul.mb-0 > li > a::before,
html body .sticky-menu ul.mb-0 > li.menu-item-has-children > a::after,
html body .sticky-menu ul.mb-0 > li.menu-item-has-children > a::before {
  content: none !important;
  display: none !important;
  font-size: 0 !important;
}

/* WhatsApp button moved inline in the main header bottom bar */
header.style4 .bottom-bar .topbar-wa {
  position: static !important;
  inset-inline: auto !important;
  top: auto !important;
  transform: none !important;
  flex-shrink: 0 !important;
}

/* ---------- 5. Header v5 (top hours, primary CTA, sticky CTA) ----------
 * TODO (Day 1): paste here the existing rules for these selectors from
 * Appearance > Customize > Additional CSS (or Elementor Custom CSS), then
 * delete them there:
 *   .sp-top-hours, .sp-primary-book, .sp-sticky-cta-wrap, .sp-sticky-wa,
 *   .sp-sticky-book, .sp-theme-header-spacer
 */

/* ---------- 6. Mobile drawer ----------
 * TODO (Day 1): paste the existing rules for:
 *   .sp-drawer, .sp-drawer-overlay, .sp-open, .sp-drawer-top,
 *   .sp-drawer-nav, .sp-drawer-link, .sp-drawer-acc*, .sp-drawer-group,
 *   .sp-drawer-footer, .sp-drawer-contact, .sp-drawer-actions,
 *   .sp-drawer-wa, .sp-drawer-book, body.sp-drawer-active
 * Minimum safety net below so the drawer never shows unstyled if the
 * paste is forgotten:
 */
.sp-drawer { visibility: hidden; }
.sp-drawer.sp-open { visibility: visible; }
body.sp-drawer-active { overflow: hidden; }

/* Legacy mobile menu is replaced by the drawer */
.rsnp-mnu[inert] { display: none !important; }

/* ---------- 7. Doctor / team pages ----------
 * Same header/footer behaviour as the home page (loaded site-wide).
 * Page-specific tweaks only: */
.single-team .sp-theme-header-spacer { min-height: 0; }
[dir="rtl"] .breadcrumb,
.rtl .breadcrumb { direction: rtl; }
