/* ==========================================================================
   Assista Soins Pro - High-End MedTech Design System & Premium Ergonomics
   Inspired by Apple Health, Alan, and Oscar Health
   ========================================================================== */

:root {
  /* Ultra-refined Palette */
  --as-primary: #0284c7;
  --as-primary-hover: #0369a1;
  --as-primary-light: #e0f2fe;
  --as-primary-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  --as-brand-gradient: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);

  --as-secondary: #0d9488;
  --as-secondary-hover: #0f766e;
  --as-secondary-light: #ccfbf1;

  --as-accent: #f43f5e;
  --as-accent-hover: #e11d48;
  --as-accent-light: #ffe4e6;

  --as-whatsapp: #25d366;
  --as-whatsapp-dark: #128c7e;

  /* Neutrals */
  --as-dark: #090e17;
  --as-dark-800: #131c2e;
  --as-gray-600: #475569;
  --as-gray-400: #94a3b8;
  --as-gray-200: #e2e8f0;
  --as-gray-100: #f8fafc;
  --as-gray-50: #f8fafc;
  --as-white: #ffffff;

  /* Typography */
  --as-font-latin: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --as-font-arabic: 'Tajawal', system-ui, -apple-system, sans-serif;
  --as-font-main: var(--as-font-latin);

  /* Shadows & Glassmorphism */
  --as-shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.04);
  --as-shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.08);
  --as-shadow-lg: 0 16px 32px -4px rgba(15, 23, 42, 0.1);
  --as-shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.15);
  --as-shadow-glow: 0 10px 30px -4px rgba(2, 132, 199, 0.3);
  --as-glass-bg: rgba(255, 255, 255, 0.88);
  --as-glass-border: 1px solid rgba(255, 255, 255, 0.7);

  /* Radii & Transitions */
  --as-radius-sm: 10px;
  --as-radius-md: 16px;
  --as-radius-lg: 24px;
  --as-radius-full: 9999px;
  --as-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --as-container: 1240px;
  --as-header-height: 80px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  display: block !important;
  width: 100% !important;
  overflow-x: hidden;
}

body {
  font-family: var(--as-font-main);
  background-color: #f8fafc;
  color: var(--as-gray-600);
  line-height: 1.65;
  overflow-x: hidden;
  width: 100% !important;
  display: block !important;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body[dir="rtl"], html[lang="ar"] body {
  font-family: var(--as-font-arabic);
}

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

a {
  color: var(--as-primary);
  text-decoration: none;
  transition: var(--as-transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--as-container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (max-width: 640px) {
  .container {
    padding-inline: 1.25rem;
  }
}

.section {
  padding-block: 5.5rem;
  position: relative;
}

@media (max-width: 992px) {
  .section {
    padding-block: 4rem;
  }
}

.section-title-wrap {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.1) 0%, rgba(13, 148, 136, 0.1) 100%);
  color: #0369a1;
  padding: 0.45rem 1.15rem;
  border-radius: var(--as-radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.15rem;
  color: var(--as-dark);
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--as-gray-600);
  line-height: 1.7;
}

/* ==========================================================================
   Buttons & Interactive Elements (Apple / MedTech Aesthetic)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--as-radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--as-transition);
  white-space: nowrap;
  min-height: 50px;
  text-align: center;
}

@media (max-width: 480px) {
  .btn {
    padding: 0.85rem 1.35rem;
    font-size: 0.92rem;
    width: 100%;
  }
}

.btn-primary {
  background: var(--as-brand-gradient);
  color: var(--as-white);
  box-shadow: 0 8px 20px -2px rgba(2, 132, 199, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: var(--as-transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(2, 132, 199, 0.45);
  color: var(--as-white);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-secondary {
  background: var(--as-white);
  color: var(--as-dark);
  border: 1.5px solid var(--as-gray-200);
  box-shadow: var(--as-shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--as-primary);
  color: var(--as-primary);
  background-color: var(--as-primary-light);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: var(--as-white);
  box-shadow: 0 8px 20px -2px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(37, 211, 102, 0.45);
  color: var(--as-white);
}

/* ==========================================================================
   Header & Top Announcement Bar
   ========================================================================== */
.top-bar {
  background: #090e17;
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar-contact a, .top-bar-contact span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
  font-weight: 500;
}

.top-bar-contact a:hover {
  color: #38bdf8;
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(13, 148, 136, 0.2);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.3);
  padding: 0.25rem 0.85rem;
  border-radius: var(--as-radius-full);
  font-weight: 700;
  font-size: 0.75rem;
}

@media (max-width: 992px) {
  .top-bar-badge { display: none; }
}

@media (max-width: 640px) {
  .top-bar-contact span:first-child,
  .top-bar-contact a[href^="mailto:"] { display: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
  transition: var(--as-transition);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.site-header.scrolled {
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--as-header-height);
  gap: 1.25rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--as-radius-sm);
  filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.2));
  transition: var(--as-transition);
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--as-dark);
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--as-primary);
}

.brand-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--as-gray-400);
}

/* Ergonomic Floating Nav Bar */
.main-navigation {
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--as-radius-full);
  padding: 0.3rem 0.4rem;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-navigation li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--as-gray-600);
  padding: 0.48rem 0.95rem;
  border-radius: var(--as-radius-full);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  line-height: 1;
}

.main-navigation a:hover {
  color: var(--as-primary-hover);
  background: rgba(2, 132, 199, 0.08);
  transform: translateY(-1px);
}

.main-navigation .current-menu-item > a {
  color: var(--as-primary);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.header-actions .btn-primary {
  padding: 0.58rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: var(--as-radius-full);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.header-actions .btn-whatsapp {
  padding: 0.58rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--as-radius-full);
  white-space: nowrap;
  background: rgba(37, 211, 102, 0.12);
  color: #15803d;
  border: 1px solid rgba(37, 211, 102, 0.35);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--as-transition);
}

.header-actions .btn-whatsapp:hover {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  transform: translateY(-1px);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--as-gray-200);
  border-radius: var(--as-radius-full);
  padding: 0.2rem;
  background-color: var(--as-gray-100);
}

.lang-btn {
  padding: 0.25rem 0.65rem;
  border-radius: var(--as-radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--as-gray-600);
  transition: var(--as-transition);
}

.lang-btn.active {
  background-color: var(--as-white);
  color: var(--as-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Multi-Language (FR / AR / EN) Display Engine
   ========================================================================== */
/* Default (French Active) */
[data-lang-ar],
[data-lang-en] {
  display: none !important;
}

[data-lang-fr] {
  display: inline !important;
}

div[data-lang-fr],
p[data-lang-fr],
section[data-lang-fr],
h1[data-lang-fr],
h2[data-lang-fr],
h3[data-lang-fr],
h4[data-lang-fr],
h5[data-lang-fr],
h6[data-lang-fr] {
  display: block !important;
}

.hero-features-list [data-lang-fr],
.service-features [data-lang-fr],
.faq-question [data-lang-fr],
.hero-quick-chips [data-lang-fr],
.quick-commune-pills [data-lang-fr],
.dock-item [data-lang-fr],
.btn [data-lang-fr],
.service-action-link [data-lang-fr] {
  display: inline-flex !important;
}

/* Arabic Active */
body.lang-ar [data-lang-fr],
body.lang-ar [data-lang-en] {
  display: none !important;
}

body.lang-ar [data-lang-ar] {
  display: inline !important;
}

body.lang-ar div[data-lang-ar],
body.lang-ar p[data-lang-ar],
body.lang-ar section[data-lang-ar],
body.lang-ar h1[data-lang-ar],
body.lang-ar h2[data-lang-ar],
body.lang-ar h3[data-lang-ar],
body.lang-ar h4[data-lang-ar],
body.lang-ar h5[data-lang-ar],
body.lang-ar h6[data-lang-ar] {
  display: block !important;
}

body.lang-ar .hero-features-list [data-lang-ar],
body.lang-ar .service-features [data-lang-ar],
body.lang-ar .faq-question [data-lang-ar],
body.lang-ar .hero-quick-chips [data-lang-ar],
body.lang-ar .quick-commune-pills [data-lang-ar],
body.lang-ar .dock-item [data-lang-ar],
body.lang-ar .btn [data-lang-ar],
body.lang-ar .service-action-link [data-lang-ar] {
  display: inline-flex !important;
}

/* English Active */
body.lang-en [data-lang-fr],
body.lang-en [data-lang-ar] {
  display: none !important;
}

body.lang-en [data-lang-en] {
  display: inline !important;
}

body.lang-en div[data-lang-en],
body.lang-en p[data-lang-en],
body.lang-en section[data-lang-en],
body.lang-en h1[data-lang-en],
body.lang-en h2[data-lang-en],
body.lang-en h3[data-lang-en],
body.lang-en h4[data-lang-en],
body.lang-en h5[data-lang-en],
body.lang-en h6[data-lang-en] {
  display: block !important;
}

body.lang-en .hero-features-list [data-lang-en],
body.lang-en .service-features [data-lang-en],
body.lang-en .faq-question [data-lang-en],
body.lang-en .hero-quick-chips [data-lang-en],
body.lang-en .quick-commune-pills [data-lang-en],
body.lang-en .dock-item [data-lang-en],
body.lang-en .btn [data-lang-en],
body.lang-en .service-action-link [data-lang-en] {
  display: inline-flex !important;
}

/* ==========================================================================
   Bidirectional (BiDi) Protection: Phone Numbers & Numerical Data
   Guarantees telephone numbers never reverse in Arabic (RTL) mode
   ========================================================================== */
a[href^="tel:"],
.tel-link,
.phone-number,
.phone-number-ltr,
bdi,
span[dir="ltr"],
bdi[dir="ltr"],
.phone-val {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-flex !important;
  align-items: center;
  text-align: left;
}

body.lang-ar a[href^="tel:"],
body[dir="rtl"] a[href^="tel:"],
.lang-ar a[href^="tel:"] {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-flex !important;
  align-items: center;
}

body.lang-ar .top-bar-contact a,
body[dir="rtl"] .top-bar-contact a {
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

bdi.phone-val {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block;
}

.mobile-menu-toggle {
  display: none;
  background: var(--as-gray-100);
  border: 1px solid var(--as-gray-200);
  border-radius: var(--as-radius-sm);
  cursor: pointer;
  padding: 0.6rem;
  color: var(--as-dark);
  align-items: center;
  justify-content: center;
}

@media (max-width: 992px) {
  .site-header { --as-header-height: 72px; }

  .main-navigation {
    position: fixed;
    top: var(--as-header-height);
    left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: none;
    border-top: 1px solid var(--as-gray-200);
  }

  .main-navigation.is-open { display: block; }

  .main-navigation ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .main-navigation a {
    display: block;
    padding: 0.85rem 0.5rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--as-gray-100);
  }

  .mobile-menu-toggle { display: flex; }
  .header-actions .btn-whatsapp { display: none; }
}

@media (max-width: 540px) {
  .header-actions .btn-primary { display: none; }
}

/* ==========================================================================
   Hero Section (Innovative with Live Availability Dispatcher)
   ========================================================================== */
.hero {
  position: relative;
  padding: 4.5rem 0 6rem;
  background: radial-gradient(120% 100% at 50% 0%, #edf7ff 0%, #ffffff 60%, #f8fafc 100%);
  overflow: hidden;
}

/* Ambient animated background glows */
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

.hero-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  padding: 0.45rem 1.1rem;
  border-radius: var(--as-radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  background: var(--as-brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--as-gray-600);
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Service Category Quick Chips in Hero */
.hero-quick-chips {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.quick-chip {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--as-gray-200);
  border-radius: var(--as-radius-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--as-dark-800);
  cursor: pointer;
  transition: var(--as-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.quick-chip:hover {
  background: var(--as-primary-light);
  border-color: var(--as-primary);
  color: var(--as-primary);
  transform: translateY(-2px);
}

/* Hero Visual Box with Real Photography */
.hero-visual-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}

.hero-photo-wrapper {
  position: relative;
  border-radius: var(--as-radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(2, 132, 199, 0.25);
  border: 4px solid var(--as-white);
  background: #ffffff;
  aspect-ratio: 4 / 3.2;
}

.hero-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-photo-wrapper:hover img {
  transform: scale(1.03);
}

/* Floating Glass Cards */
.floating-glass-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.16);
  border-radius: var(--as-radius-md);
  padding: 0.95rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

.floating-card-1 {
  bottom: -25px;
  left: -25px;
}

.floating-card-2 {
  top: 25px;
  right: -25px;
  animation-delay: -2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.icon-bubble.blue {
  background: var(--as-primary-light);
  color: var(--as-primary);
}

.icon-bubble.green {
  background: var(--as-secondary-light);
  color: var(--as-secondary);
}

.glass-card-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  color: var(--as-dark);
}

.glass-card-info p {
  font-size: 0.8rem;
  color: var(--as-gray-400);
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3.5rem;
  }
  .hero-desc { margin-inline: auto; }
  .hero-cta-group, .hero-quick-chips { justify-content: center; }
  .floating-card-1 { bottom: -10px; left: 0; }
  .floating-card-2 { top: 0; right: 0; }
}

@media (max-width: 540px) {
  .hero-visual-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .floating-glass-card {
    position: static;
    animation: none;
    width: 100%;
    text-align: left;
  }
}

/* ==========================================================================
   Trust & Metrics Bar
   ========================================================================== */
.trust-metrics-section {
  background-color: var(--as-white);
  border-block: 1px solid var(--as-gray-200);
  padding: 3rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: var(--as-radius-md);
  transition: var(--as-transition);
}

.metric-item:hover {
  background: var(--as-primary-light);
}

.metric-number {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--as-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  font-weight: 700;
  color: var(--as-gray-600);
}

@media (max-width: 768px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 400px) {
  .metrics-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Services Grid (Glassmorphism & Interactive Hover Depth)
   ========================================================================== */
.services-section {
  background-color: #f8fafc;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.25rem;
}

.service-card {
  background: var(--as-white);
  border-radius: var(--as-radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--as-shadow-sm);
  transition: var(--as-transition);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--as-brand-gradient);
  opacity: 0;
  transition: var(--as-transition);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: #bae6fd;
  box-shadow: 0 20px 40px -10px rgba(2, 132, 199, 0.15);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--as-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--as-primary-light) 0%, #f0fdfa 100%);
  color: var(--as-primary);
  border: 1px solid rgba(2, 132, 199, 0.15);
  transition: var(--as-transition);
}

.service-card:hover .service-icon-box {
  transform: scale(1.1) rotate(4deg);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--as-gray-600);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features {
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--as-dark-800);
  font-weight: 600;
}

.service-features li svg {
  color: var(--as-secondary);
  flex-shrink: 0;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--as-gray-100);
}

.service-action-link {
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--as-primary);
}

.service-action-link:hover {
  gap: 0.85rem;
  color: var(--as-primary-hover);
}

/* ==========================================================================
   Partners & Institutional Recognition Section
   ========================================================================== */
.partners-section {
  background-color: var(--as-white);
  border-top: 1px solid var(--as-gray-200);
}

.partners-category {
  margin-bottom: 3.5rem;
}

.partners-category-title {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--as-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.partner-card {
  background: #f8fafc;
  border: 1.5px solid var(--as-gray-200);
  border-radius: var(--as-radius-md);
  padding: 1.25rem 2rem;
  min-width: 170px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--as-transition);
}

.partner-card:hover {
  background: var(--as-white);
  border-color: var(--as-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(2, 132, 199, 0.12);
}

.partner-name-fallback {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--as-dark);
}

/* ==========================================================================
   Testimonials & Constantine Stories
   ========================================================================== */
.testimonials-section {
  background: linear-gradient(180deg, #f8fafc 0%, #e0f2fe 50%, #f8fafc 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--as-white);
  border-radius: var(--as-radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--as-shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--as-dark-800);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--as-primary-light);
  color: var(--as-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.author-info h5 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.author-info span {
  font-size: 0.8rem;
  color: var(--as-gray-400);
}

/* ==========================================================================
   Official Facebook Community Banner
   ========================================================================== */
.facebook-community-banner {
  background: linear-gradient(135deg, #1877f2 0%, #0d5bc6 100%);
  border-radius: var(--as-radius-lg);
  padding: 3rem 2.5rem;
  color: #ffffff;
  box-shadow: 0 20px 40px -10px rgba(24, 119, 242, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.facebook-community-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.fb-banner-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.fb-icon-bubble {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.fb-banner-info h3 {
  color: #ffffff;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 0.35rem;
}

.fb-banner-info p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  max-width: 580px;
}

.btn-facebook-white {
  background: #ffffff;
  color: #1877f2;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.btn-facebook-white:hover {
  background: #f0f7ff;
  color: #0d5bc6;
  transform: translateY(-3px);
}

@media (max-width: 840px) {
  .facebook-community-banner {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .fb-banner-content {
    flex-direction: column;
  }
  .btn-facebook-white {
    width: 100%;
  }
}

/* ==========================================================================
   How It Works - World-Class Clinical Process Stepper
   ========================================================================== */
.process-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 50%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.process-stepper-wrap {
  position: relative;
  margin-top: 3.5rem;
}

/* Connecting Timeline Track (Desktop) */
.process-stepper-wrap::before {
  content: '';
  position: absolute;
  top: 56px;
  left: 5%;
  right: 5%;
  height: 4px;
  background: linear-gradient(90deg, #0284c7 0%, #0d9488 50%, #10b981 100%);
  border-radius: var(--as-radius-full);
  z-index: 0;
  opacity: 0.35;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 1080px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .process-stepper-wrap::before { display: none; }
}

@media (max-width: 640px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.process-step-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--as-radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.process-step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--as-brand-gradient);
  opacity: 0;
  transition: var(--as-transition);
}

.process-step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(2, 132, 199, 0.15);
  border-color: #bae6fd;
}

.process-step-card:hover::before {
  opacity: 1;
}

.step-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.step-badge-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.3);
  flex-shrink: 0;
}

.step-time-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--as-radius-full);
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--as-gray-600);
}

.step-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--as-radius-md);
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
  transition: var(--as-transition);
}

.process-step-card:hover .step-icon-wrap {
  transform: scale(1.1) rotate(4deg);
  background: #dcfce7;
}

.step-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--as-dark);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.step-card-desc {
  font-size: 0.92rem;
  color: var(--as-gray-600);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.step-guarantee-tag {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--as-radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0369a1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Process Bottom Action CTA */
.process-cta-banner {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, #090e17 0%, #1e293b 100%);
  border-radius: var(--as-radius-lg);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.process-cta-info h3 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.process-cta-info p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 0;
}

.process-cta-btns {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  background-color: var(--as-white);
}

.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1.5px solid var(--as-gray-200);
  border-radius: var(--as-radius-md);
  overflow: hidden;
  transition: var(--as-transition);
}

.faq-item.active {
  border-color: var(--as-primary);
  box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.6rem;
  background: var(--as-white);
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--as-dark);
  gap: 1rem;
}

body[dir="rtl"] .faq-question { text-align: right; }

.faq-icon {
  transition: var(--as-transition);
  font-size: 1.35rem;
  color: var(--as-primary);
  flex-shrink: 0;
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  background: #f8fafc;
}

.faq-answer-inner {
  padding: 1.35rem 1.6rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--as-gray-600);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #090e17;
  color: #94a3b8;
  padding-top: 5rem;
  border-top: 1px solid #1e293b;
}

.footer-top {
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.75rem;
}

.footer-brand p {
  margin-block: 1.25rem 1.75rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
}

.footer-social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1e293b;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--as-transition);
}

.footer-social-btn:hover {
  background: var(--as-primary);
  color: var(--as-white);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: var(--as-white);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: #38bdf8;
  padding-inline-start: 4px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.footer-bottom {
  padding: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Mobile Bottom Ergonomic Dock (App-Style Experience)
   ========================================================================== */
.mobile-app-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--as-gray-200);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  z-index: 10000;
  justify-content: space-around;
  align-items: center;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--as-dark-800);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.dock-item .dock-icon {
  font-size: 1.3rem;
}

.dock-item.highlight-dock {
  color: var(--as-primary);
}

.dock-item.urgent-dock {
  color: var(--as-accent);
}

@media (max-width: 640px) {
  .mobile-app-dock {
    display: flex;
  }
  body {
    padding-bottom: 68px; /* Offset for dock */
  }
}

/* ==========================================================================
   Floating Quick Action Widgets
   ========================================================================== */
.floating-widgets {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

body[dir="rtl"] .floating-widgets {
  right: auto;
  left: 24px;
}

@media (max-width: 640px) {
  .floating-widgets {
    bottom: 80px; /* Above the mobile dock */
  }
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: var(--as-transition);
  cursor: pointer;
  position: relative;
}

.floating-btn:hover { transform: scale(1.1); }
.floating-btn.whatsapp { background-color: var(--as-whatsapp); color: var(--as-white); }
.floating-btn.emergency-call { background-color: var(--as-accent); color: var(--as-white); animation: pulse-emergency 2s infinite; }

.floating-tooltip {
  position: absolute;
  right: 68px;
  background: var(--as-dark);
  color: var(--as-white);
  padding: 0.4rem 0.85rem;
  border-radius: var(--as-radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: var(--as-transition);
}

body[dir="rtl"] .floating-tooltip { right: auto; left: 68px; }
.floating-btn:hover .floating-tooltip { opacity: 1; }

/* ==========================================================================
   Bilingual Language Switcher & Direction Styles
   ========================================================================== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--as-radius-full);
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--as-radius-full);
  cursor: pointer;
  transition: var(--as-transition);
}

.lang-btn.active {
  background: #ffffff;
  color: var(--as-primary-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Visibility Rules */
[data-lang-ar] { display: none !important; }
body.lang-ar [data-lang-fr] { display: none !important; }
body.lang-ar [data-lang-ar] { display: inline !important; }

body.lang-ar div[data-lang-ar], 
body.lang-ar p[data-lang-ar], 
body.lang-ar section[data-lang-ar],
body.lang-ar h1[data-lang-ar],
body.lang-ar h2[data-lang-ar],
body.lang-ar h3[data-lang-ar],
body.lang-ar h4[data-lang-ar],
body.lang-ar h5[data-lang-ar],
body.lang-ar h6[data-lang-ar] { 
  display: block !important; 
}

body.lang-ar .hero-features-list [data-lang-ar],
body.lang-ar .service-features [data-lang-ar],
body.lang-ar .faq-question [data-lang-ar],
body.lang-ar .hero-quick-chips [data-lang-ar],
body.lang-ar .quick-commune-pills [data-lang-ar],
body.lang-ar .dock-item [data-lang-ar],
body.lang-ar .btn [data-lang-ar],
body.lang-ar .service-action-link [data-lang-ar],
body.lang-ar .triage-badge [data-lang-ar],
body.lang-ar .triage-tab-btn [data-lang-ar],
body.lang-ar .filter-pill-btn [data-lang-ar],
body.lang-ar .checklist-label [data-lang-ar],
body.lang-ar .radar-pill-btn [data-lang-ar] { 
  display: inline-flex !important; 
}

/* ==========================================================================
   WORLD-CLASS INTERACTIVE COMPONENTS & ERGONOMIC GUIDANCE
   ========================================================================== */

/* 1. Interactive Clinical Triage & Smart Care Finder */
.smart-triage-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f0fdf4 50%, #f8fafc 100%);
  position: relative;
}

.triage-card-container {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--as-radius-lg);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08);
  padding: 2.5rem;
  margin-top: 2rem;
}

.triage-tabs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--as-gray-200);
  scrollbar-width: thin;
}

.triage-tab-btn {
  background: #f8fafc;
  border: 1px solid var(--as-gray-200);
  border-radius: var(--as-radius-full);
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--as-gray-600);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--as-transition);
}

.triage-tab-btn:hover {
  background: #f1f5f9;
  color: var(--as-primary);
  border-color: #cbd5e1;
}

.triage-tab-btn.active {
  background: var(--as-primary);
  color: #ffffff;
  border-color: var(--as-primary);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.triage-display-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .triage-display-panel { grid-template-columns: 1fr; }
}

.triage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--as-radius-full);
  margin-bottom: 1rem;
}

.triage-title {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--as-dark);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.triage-desc {
  font-size: 1rem;
  color: var(--as-gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.triage-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .triage-features-list { grid-template-columns: 1fr; }
}

.triage-feat-item {
  background: #f8fafc;
  border: 1px solid var(--as-gray-200);
  border-radius: var(--as-radius-md);
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.triage-feat-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.triage-feat-text h5 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--as-dark);
  margin-bottom: 0.2rem;
}

.triage-feat-text p {
  font-size: 0.82rem;
  color: var(--as-gray-600);
  line-height: 1.4;
  margin: 0;
}

.triage-cta-card {
  background: linear-gradient(135deg, #090e17 0%, #1e293b 100%);
  color: #ffffff;
  padding: 2.25rem;
  border-radius: var(--as-radius-lg);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.triage-cta-card h4 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
}

.triage-cta-stats {
  display: flex;
  gap: 1.5rem;
  padding-block: 0.75rem;
  border-block: 1px solid rgba(255, 255, 255, 0.15);
}

.triage-stat-unit {
  display: flex;
  flex-direction: column;
}

.triage-stat-unit strong {
  font-size: 1.4rem;
  color: #38bdf8;
  font-weight: 900;
}

.triage-stat-unit span {
  font-size: 0.75rem;
  color: var(--as-gray-400);
}

/* 2. Interactive Constantine Commune Radar & ETA */
.commune-radar-card {
  background: #ffffff;
  border: 1px solid var(--as-gray-200);
  border-radius: var(--as-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--as-shadow-md);
  margin-top: 2rem;
}

.commune-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-block: 1.5rem;
}

.radar-pill-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--as-radius-full);
  padding: 0.6rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--as-dark-800);
  cursor: pointer;
  transition: var(--as-transition);
}

.radar-pill-btn:hover {
  background: #f1f5f9;
  border-color: var(--as-primary);
  color: var(--as-primary);
}

.radar-pill-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.radar-status-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--as-radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.radar-status-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.radar-pulse-ring {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: pulse-green 2s infinite;
}

.radar-status-text strong {
  display: block;
  font-size: 1.05rem;
  color: #14532d;
}

.radar-status-text span {
  font-size: 0.85rem;
  color: #15803d;
}

/* 3. Interactive Patient Preparation Guide & Ergonomic Checklist */
.prep-guide-section {
  padding: 5rem 0;
  background: #ffffff;
}

.prep-guide-card {
  background: #f8fafc;
  border: 1px solid var(--as-gray-200);
  border-radius: var(--as-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--as-shadow-sm);
  margin-top: 2rem;
}

.prep-category-tabs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 1.75rem;
  scrollbar-width: thin;
}

.prep-tab-btn {
  background: #ffffff;
  border: 1px solid var(--as-gray-200);
  border-radius: var(--as-radius-full);
  padding: 0.6rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--as-gray-600);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--as-transition);
}

.prep-tab-btn.active {
  background: #0d9488;
  color: #ffffff;
  border-color: #0d9488;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.checklist-progress-wrap {
  background: #ffffff;
  border: 1px solid var(--as-gray-200);
  border-radius: var(--as-radius-md);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
}

.progress-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--as-dark);
}

.prep-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--as-radius-full);
  overflow: hidden;
}

.prep-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0284c7 0%, #10b981 100%);
  border-radius: var(--as-radius-full);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.checklist-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .checklist-items-grid { grid-template-columns: 1fr; }
}

.checklist-item {
  background: #ffffff;
  border: 1px solid var(--as-gray-200);
  border-radius: var(--as-radius-md);
  padding: 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  cursor: pointer;
  transition: var(--as-transition);
  user-select: none;
}

.checklist-item:hover {
  border-color: #0284c7;
  transform: translateY(-1px);
}

.checklist-item.checked {
  background: #f0fdf4;
  border-color: #86efac;
}

.checklist-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--as-transition);
  color: transparent;
  font-size: 0.85rem;
  font-weight: 900;
}

.checklist-item.checked .checklist-checkbox {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.checklist-content h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--as-dark);
  margin-bottom: 0.25rem;
}

.checklist-content p {
  font-size: 0.82rem;
  color: var(--as-gray-600);
  margin: 0;
  line-height: 1.45;
}

/* 4. Service Category Filter Bar */
.service-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-pill-btn {
  background: #ffffff;
  border: 1px solid var(--as-gray-200);
  border-radius: var(--as-radius-full);
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--as-gray-600);
  cursor: pointer;
  transition: var(--as-transition);
}

.filter-pill-btn:hover {
  background: #f8fafc;
  color: var(--as-primary);
  border-color: #cbd5e1;
}

.filter-pill-btn.active {
  background: var(--as-dark);
  color: #ffffff;
  border-color: var(--as-dark);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.service-card.hidden {
  display: none !important;
}

/* 5. Live FAQ Search & Category Filter */
.faq-search-wrapper {
  max-width: 580px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.faq-search-input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  padding-inline-start: 3rem;
  border: 1px solid var(--as-gray-200);
  border-radius: var(--as-radius-full);
  font-size: 0.95rem;
  font-family: inherit;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: var(--as-transition);
}

.faq-search-input:focus {
  outline: none;
  border-color: var(--as-primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.faq-search-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inline-size: 1.2rem;
  left: 1.2rem;
  color: var(--as-gray-400);
  pointer-events: none;
}

body[dir="rtl"] .faq-search-icon {
  left: auto;
  right: 1.2rem;
}

body[dir="rtl"] .faq-search-input {
  padding-inline-start: 3rem;
}


