/* ============================================
   SHARED CSS — Wellness Advance
   CSS Vars, Reset, Navbar, Footer, WhatsApp, Animations, Responsive
   ============================================ */

/* --- CSS CUSTOM PROPERTIES --- */
:root {
  --brand-primary: #0F4C8A;
  --brand-primary-dark: #0A3366;
  --brand-primary-light: #1565B8;
  --brand-teal: #1A8A8A;
  --brand-teal-light: #2DA89E;
  --brand-teal-dark: #147070;
  --brand-accent: #4ECDC4;
  --bg-light: #E8F4F8;
  --bg-cream: #F5F9FB;
  --bg-white: #FFFFFF;
  --text-dark: #0A1628;
  --text-body: #3A4A5C;
  --text-muted: #6B7B8D;
  --text-white: #FFFFFF;
  --border-light: #D0E3ED;
  --shadow-sm: 0 1px 3px rgba(15, 76, 138, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 76, 138, 0.08);
  --shadow-lg: 0 8px 32px rgba(15, 76, 138, 0.12);
  --shadow-xl: 0 16px 48px rgba(15, 76, 138, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-en: 'Montserrat', system-ui, sans-serif;
  --font-ar: 'Frutiger LT Arabic', 'Montserrat', system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-en);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* --- TOP BAR --- */
.nav-top-bar {
  background: var(--brand-primary);
  padding: 8px 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.85);
  position: sticky; top: 0; z-index: 1001;
}
.nav-top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.nav-top-contact { display: flex; align-items: center; gap: 20px; }
.nav-top-contact a {
  color: rgba(255,255,255,0.85);
  display: flex; align-items: center; gap: 6px;
  transition: color var(--transition);
}
.nav-top-contact a:hover { color: #fff; }
.nav-top-contact svg { width: 14px; height: 14px; flex-shrink: 0; }
.nav-lang { display: flex; align-items: center; gap: 8px; }
.nav-lang a {
  color: rgba(255,255,255,0.6);
  font-size: 0.8125rem; font-weight: 500;
  transition: color var(--transition);
}
.nav-lang a.active, .nav-lang a:hover { color: #fff; }
.nav-lang span { color: rgba(255,255,255,0.3); }

/* --- NAVBAR --- */
.navbar {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  position: sticky; top: 33px; z-index: 1000;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar .container {
  display: flex; justify-content: space-between; align-items: center;
  height: 110px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { height: 86px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.9375rem; font-weight: 500;
  color: var(--text-body); position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--brand-primary); border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--brand-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--brand-primary) !important;
  color: var(--text-white) !important;
  padding: 10px 24px; border-radius: 50px;
  font-weight: 600 !important; font-size: 0.875rem !important;
  transition: all var(--transition) !important;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--brand-primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(15, 76, 138, 0.3);
}
.nav-cta svg { width: 16px; height: 16px; }
.mobile-lang { display: none; }
.mobile-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px;
}
.mobile-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-dark); margin: 5px 0;
  transition: var(--transition); border-radius: 2px;
}

/* --- PAGE HERO & BREADCRUMB --- */
.page-hero {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  padding: 48px 0 56px;
  color: var(--text-white);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--brand-accent); }

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.page-hero .tagline {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px;
  width: 60px; height: 60px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999; transition: all var(--transition); cursor: pointer;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg { width: 28px; height: 28px; color: #fff; }

/* --- FOOTER --- */
.footer {
  background: var(--brand-primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p {
  font-size: 0.875rem; line-height: 1.75;
  margin-bottom: 24px; margin-top: 20px; max-width: 300px;
}
.footer h4 {
  font-size: 0.9375rem; font-weight: 700;
  color: var(--text-white); margin-bottom: 20px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.875rem; color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.footer-links a:hover { color: var(--brand-accent); }
.footer-hours li {
  font-size: 0.875rem; display: flex;
  justify-content: space-between; padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-hours li .day { color: rgba(255,255,255,0.6); }
.footer-hours li .time { color: var(--brand-accent); font-weight: 500; }
.footer-bottom {
  padding: 20px 0; text-align: center;
  font-size: 0.8125rem; color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: var(--brand-accent); }

/* --- SCROLL ANIMATIONS --- */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE: NAVBAR --- */
@media (max-width: 1200px) {
  .nav-top-bar { display: none; }
  .navbar { top: 0; }
  .navbar .container { height: 96px; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-logo-img { height: 72px; }
  .nav-links.active {
    display: flex; flex-direction: column; align-items: center;
    position: absolute; top: 96px; left: 0; right: 0;
    background: var(--bg-white); padding: 24px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg); gap: 16px;
    max-height: calc(100vh - 96px); overflow-y: auto;
  }
  .mobile-lang {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; padding-top: 16px;
    border-top: 1px solid var(--border-light); margin-top: 8px;
  }
  .mobile-lang a { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); }
  .mobile-lang a.active { color: var(--brand-primary); }
  .mobile-lang span { color: var(--text-muted); opacity: 0.4; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .page-hero { padding: 36px 0 44px; }
  .page-hero h1 { font-size: 1.75rem; }
}

/* --- Social Links (footer) --- */
.contact-social { display: flex; gap: 12px; }
.social-link {
  width: 44px; height: 44px;
  background: var(--brand-primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-white); transition: all var(--transition);
}
.social-link:hover {
  background: var(--brand-teal);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(26, 138, 138, 0.3);
}
.social-link svg { width: 20px; height: 20px; }

/* --- CTA Call Banner --- */
.cta-section {
  padding: 0 0 48px;
}

.cta-call-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, #0c2d4a 0%, #142f47 100%);
  color: #fff;
  border-radius: 60px;
  padding: 18px 36px;
  margin: 0 auto;
  max-width: 680px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.cta-call-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 76, 138, 0.35);
}

.cta-call-banner > svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: #fff;
}

.cta-call-banner .cta-number {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.cta-call-banner .cta-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.cta-call-banner .cta-tagline {
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .cta-call-banner {
    flex-wrap: wrap;
    padding: 16px 28px;
    gap: 10px;
    border-radius: 20px;
    text-align: center;
    justify-content: center;
  }
  .cta-call-banner .cta-divider { display: none; }
  .cta-call-banner .cta-number { font-size: 1.2rem; }
  .cta-call-banner .cta-tagline { width: 100%; font-size: 0.8rem; }
}

/* Updated: 03:44 21-Apr-2026 */
/* --- Search filter tabs (used on /search/ and /ar/search/) --- */
.search-filter-tab {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.search-filter-tab:hover {
  background: #e0f2fe;
  color: var(--brand-primary, #0F4C8A);
}
.search-filter-tab.active {
  background: var(--brand-primary, #0F4C8A);
  color: #fff;
  border-color: var(--brand-primary, #0F4C8A);
}

/* --- Header search button (sits between nav links and CTA) --- */
.nav-search-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--brand-primary, #0F4C8A);
  transition: background 0.15s;
}
.nav-search-btn:hover { background: rgba(15,76,138,0.08); }
