/* ═══════════════════════════════════════════════════════════════════
   CoHealth – Main Stylesheet
   Pre-compiled from React/Vite/Tailwind source (no runtime dependency)
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. CSS Custom Properties ─────────────────────────────────────── */
:root {
  /* Semantic tokens */
  --background:         hsl(210, 40%, 98%);
  --foreground:         hsl(235, 51%, 23%);
  --card:               hsl(0, 0%, 100%);
  --card-foreground:    hsl(235, 51%, 23%);
  --primary:            hsl(239, 51%, 37%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary:          hsl(195, 90%, 59%);
  --secondary-foreground: hsl(0, 0%, 100%);
  --muted:              hsl(210, 40%, 96%);
  --muted-foreground:   hsl(235, 20%, 45%);
  --accent:             hsl(195, 90%, 59%);
  --accent-foreground:  hsl(0, 0%, 100%);
  --border:             hsl(214, 32%, 91%);
  --input-bg:           hsl(214, 32%, 91%);
  --ring:               hsl(239, 51%, 37%);

  /* Border radius scale */
  --radius:    0.75rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl:calc(var(--radius) + 8px);

  /* CoHealth brand tokens */
  --cohealth-navy:    hsl(239, 51%, 37%);
  --cohealth-sky:     hsl(195, 90%, 59%);
  --cohealth-light:   hsl(200, 60%, 97%);
  --cohealth-gradient:       linear-gradient(135deg, hsl(239 51% 37%) 0%, hsl(195 90% 59%) 100%);
  --cohealth-gradient-soft:  linear-gradient(180deg, hsl(200 60% 97%) 0%, hsl(0 0% 100%) 100%);
  --cohealth-gradient-radial:radial-gradient(ellipse at top, hsl(195 90% 95%) 0%, hsl(0 0% 100%) 70%);
  --cohealth-shadow:    0 4px 20px -4px hsl(239 51% 37% / 0.15);
  --cohealth-shadow-lg: 0 10px 40px -10px hsl(239 51% 37% / 0.2);

  /* Avatar palette */
  --avatar-1: hsl(224, 76%, 40%);
  --avatar-2: hsl(188, 78%, 25%);
  --avatar-3: hsl(262, 83%, 58%);
  --avatar-foreground: hsl(0, 0%, 100%);
}

/* ── 3. Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid var(--border);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[lang="ar"] body {
  font-family: 'Cairo', sans-serif;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  background: none;
  border: none;
}

ul, ol { list-style: none; }

/* ── 4. Bilingual Language Toggle ─────────────────────────────────── */
/* Default: show English, hide Arabic */
.lang-ar { display: none; }
.lang-en { display: inline; }

/* When Arabic is active */
html[lang="ar"] .lang-en { display: none !important; }
html[lang="ar"] .lang-ar { display: inline !important; }

/* Block-level bilingual elements */
p.lang-en, p.lang-ar,
div.lang-en, div.lang-ar,
h2.lang-en, h2.lang-ar,
h3.lang-en, h3.lang-ar,
h4.lang-en, h4.lang-ar,
li.lang-en, li.lang-ar {
  display: block;
}
p.lang-ar, div.lang-ar, h2.lang-ar, h3.lang-ar, h4.lang-ar, li.lang-ar { display: none; }
html[lang="ar"] p.lang-en,
html[lang="ar"] div.lang-en,
html[lang="ar"] h2.lang-en,
html[lang="ar"] h3.lang-en,
html[lang="ar"] h4.lang-en,
html[lang="ar"] li.lang-en  { display: none !important; }
html[lang="ar"] p.lang-ar,
html[lang="ar"] div.lang-ar,
html[lang="ar"] h2.lang-ar,
html[lang="ar"] h3.lang-ar,
html[lang="ar"] h4.lang-ar,
html[lang="ar"] li.lang-ar  { display: block !important; }

/* ── 5. Layout Primitives ─────────────────────────────────────────── */
.container-custom {
  width: 100%;
  max-width: 80rem; /* 1280px */
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 768px) {
  .container-custom { padding-inline: 2rem; }
}

.section-padding {
  padding-block: 4rem;
  padding-inline: 1rem;
}

@media (min-width: 768px) {
  .section-padding { padding-block: 6rem; padding-inline: 2rem; }
}

/* ── 6. Colour Utility Classes ────────────────────────────────────── */
.gradient-text {
  background: var(--cohealth-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.gradient-bg        { background: var(--cohealth-gradient); }
.gradient-bg-soft   { background: var(--cohealth-gradient-soft); }
.gradient-bg-radial { background: var(--cohealth-gradient-radial); }

.card-shadow    { box-shadow: var(--cohealth-shadow); }
.card-shadow-lg { box-shadow: var(--cohealth-shadow-lg); }

.bg-primary    { background-color: var(--primary); }
.bg-card       { background-color: var(--card); }
.bg-background { background-color: var(--background); }

.text-primary          { color: var(--primary); }
.text-foreground       { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-cohealth-sky     { color: var(--cohealth-sky); }

/* ── 7. Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: var(--cohealth-gradient);
  color: #fff;
}
.btn-primary:hover { opacity: 0.9; }

.btn-outline {
  background: transparent;
  border: 1.5px solid hsl(239 51% 37% / 0.3);
  color: var(--foreground);
}
.btn-outline:hover { background: hsl(239 51% 37% / 0.05); }

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
}

/* ── 8. Section Headers ───────────────────────────────────────────── */
.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  background: hsl(239 51% 37% / 0.1);
  color: var(--primary);
}

.section-badge--sky {
  background: hsl(195 90% 59% / 0.1);
  color: var(--cohealth-sky);
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 3.125rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ── 9. Animation Keyframes ───────────────────────────────────────── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes word-appear {
  from { opacity: 0; transform: translateY(20px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);     filter: blur(0); }
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}

/* ── 10. Scroll-Triggered Animation Classes ───────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

.fade-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-left.is-visible { opacity: 1; transform: translateX(0); }

.fade-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-right.is-visible { opacity: 1; transform: translateX(0); }

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}
.fade-in.is-visible { opacity: 1; }

html[lang="ar"] .fade-left  { transform: translateX(32px); }
html[lang="ar"] .fade-right { transform: translateX(-32px); }
html[lang="ar"] .fade-left.is-visible  { transform: translateX(0); }
html[lang="ar"] .fade-right.is-visible { transform: translateX(0); }

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }

/* ══════════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: hsl(0 0% 100% / 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.header-logo { height: 3rem; width: auto; }

.header-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .header-nav { display: flex; } }

.nav-link {
  font-weight: 500;
  font-size: 0.9375rem;
  color: hsl(235 51% 23% / 0.8);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: inline-flex; } }

/* Language toggle button */
.lang-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--muted);
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s;
}
.lang-toggle-btn:hover { background: hsl(210 40% 90%); }

/* Mobile menu button */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem;
  color: var(--foreground);
}
@media (min-width: 768px) { .mobile-menu-toggle { display: none; } }

.mobile-menu-toggle .icon-close { display: none; }
.mobile-menu-toggle[aria-expanded="true"] .icon-menu  { display: none; }
.mobile-menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile dropdown menu */
.mobile-menu {
  display: none;
  background: var(--card);
  border-top: 1px solid var(--border);
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.mobile-menu.is-open { display: block; }

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-block: 1.5rem;
}

.mobile-nav-link {
  font-weight: 500;
  font-size: 1rem;
  color: hsl(235 51% 23% / 0.8);
  padding-block: 0.625rem;
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--primary); }

.mobile-cta { margin-top: 1rem; }

/* Page wrapper – adds top padding so content clears the fixed header */
.page-wrapper { padding-top: 5rem; }

/* ══════════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--cohealth-gradient-radial);
  overflow: hidden;
}

/* Decorative blobs */
.hero-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
  pointer-events: none;
}
.hero-blob--top-right {
  top: 25%; right: -5rem;
  width: 20rem; height: 20rem;
  background: hsl(195 90% 59% / 0.1);
}
.hero-blob--bottom-left {
  bottom: 25%; left: -5rem;
  width: 24rem; height: 24rem;
  background: hsl(239 51% 37% / 0.05);
}
.hero-blob--center {
  top: 50%; left: 50%;
  width: 37.5rem; height: 37.5rem;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, hsl(195 90% 59% / 0.05) 0%, hsl(239 51% 37% / 0.05) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content {
  max-width: 64rem;
  margin-inline: auto;
  text-align: center;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  border-radius: 9999px;
  background: hsl(239 51% 37% / 0.1);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--primary);
  animation: fade-in-up 0.6s ease-out both;
}

/* Hero title */
.hero-title {
  max-width: 56rem;
  margin-inline: auto;
  margin-top: 2rem;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
html[lang="ar"] .hero-title { line-height: 1.3; }

/* Typewriter word animation */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  animation: word-appear 0.4s ease-out forwards;
}

/* AR: words are revealed instantly (PHP sets correct delays for EN words only) */
html[lang="ar"] .hero-word.lang-ar {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
}

/* AR: badge appears immediately */
html[lang="ar"] .hero-badge.lang-ar {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Subtitle */
.hero-subtitle {
  max-width: 48rem;
  margin-inline: auto;
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--muted-foreground);
  opacity: 0;
  animation: fade-in-up 0.6s 0.8s ease-out forwards;
}

/* AR: subtitle appears immediately */
html[lang="ar"] .hero-subtitle.lang-ar {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.25rem; } }

/* CTA buttons */
.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fade-in-up 0.6s 1s ease-out forwards;
}
@media (min-width: 576px) { .hero-ctas { flex-direction: row; } }

.hero-cta-arrow {
  transition: transform 0.2s;
}
.hero-ctas .btn-primary:hover .hero-cta-arrow { transform: translateX(4px); }
html[lang="ar"] .hero-ctas .btn-primary:hover .hero-cta-arrow { transform: translateX(-4px); }

/* Stats strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 36rem;
  margin-inline: auto;
  margin-top: 5rem;
}
@media (min-width: 768px) { .hero-stats { gap: 2rem; } }

.hero-stat-card {
  background: var(--card);
  border-radius: var(--radius-2xl);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--cohealth-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.hero-stat-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px hsl(239 51% 37% / 0.1);
}
@media (min-width: 768px) { .hero-stat-card { padding: 1.5rem; } }

.hero-stat-value {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  background: var(--cohealth-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
@media (min-width: 768px) { .hero-stat-label { font-size: 0.875rem; } }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fade-in-up 0.6s 1.5s ease-out forwards;
}

.scroll-indicator-inner {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid hsl(239 51% 37% / 0.3);
  border-radius: 9999px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.25rem;
  animation: scroll-bounce 1.5s ease-in-out infinite;
}

.scroll-indicator-dot {
  width: 0.375rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: hsl(239 51% 37% / 0.5);
}

/* ══════════════════════════════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════════════════════════════ */
.about-section {
  background: var(--card);
  position: relative;
  overflow: hidden;
}

.about-bg-accent {
  position: absolute;
  top: 0; right: 0;
  width: 33%;
  height: 100%;
  background: linear-gradient(to left, var(--cohealth-light) 0%, transparent 100%);
  opacity: 0.5;
  pointer-events: none;
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.about-content { position: relative; z-index: 1; }
.about-visual   { position: relative; z-index: 1; }

/* Feature pills */
.about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.about-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}
.about-pill--blue   { background: hsl(239 51% 37% / 0.1); color: var(--primary); }
.about-pill--sky    { background: hsl(195 90% 59% / 0.1); color: var(--cohealth-sky); }
.about-pill--green  { background: hsl(142 76% 36% / 0.1); color: hsl(142, 60%, 32%); }

/* Visual card */
.about-card {
  background: var(--cohealth-gradient);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  color: var(--primary-foreground);
  box-shadow: var(--cohealth-shadow-lg);
  position: relative;
}
@media (min-width: 768px) { .about-card { padding: 3rem; } }

.about-card-title {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-stat-number {
  font-size: clamp(2.5rem, 5vw, 3.125rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.about-stat-label { font-size: 0.875rem; opacity: 0.9; }

.about-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(32px);
  pointer-events: none;
}
.about-blob--br {
  bottom: -1.5rem; right: -1.5rem;
  width: 8rem; height: 8rem;
  background: hsl(195 90% 59% / 0.2);
}
.about-blob--tl {
  top: -1.5rem; left: -1.5rem;
  width: 6rem; height: 6rem;
  background: hsl(239 51% 37% / 0.2);
}

/* RTL: swap column order */
@media (min-width: 1024px) {
  html[lang="ar"] .about-content { order: 2; }
  html[lang="ar"] .about-visual  { order: 1; }
}

/* ══════════════════════════════════════════════════════════════════
   SERVICES SECTION
   ══════════════════════════════════════════════════════════════════ */
.services-section { background: var(--cohealth-gradient-soft); }

.services-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--cohealth-shadow);
  transition: box-shadow 0.3s, transform 0.3s;
  overflow: hidden;
}
.service-card:hover {
  box-shadow: var(--cohealth-shadow-lg);
  transform: translateY(-4px);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
  background: var(--cohealth-gradient);
}

.service-icon svg { color: #fff; }

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.service-card:hover .service-title { color: var(--primary); }

.service-desc {
  color: var(--muted-foreground);
  line-height: 1.75;
  font-size: 0.9375rem;
}

/* Bottom accent bar */
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cohealth-gradient);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}
.service-card:hover::after { opacity: 1; }

/* ══════════════════════════════════════════════════════════════════
   WHO WE SERVE
   ══════════════════════════════════════════════════════════════════ */
.serve-section {
  background: var(--card);
  position: relative;
  overflow: hidden;
}

/* Dot-grid background */
.serve-dot-bg {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, var(--primary) 1px, transparent 0);
  background-size: 40px 40px;
}

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

.serve-card {
  background: linear-gradient(135deg, var(--background) 0%, var(--muted) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
@media (min-width: 768px) { .serve-card { padding: 2rem; } }

.serve-card:hover {
  background: linear-gradient(135deg, hsl(239 51% 37% / 0.05) 0%, hsl(195 90% 59% / 0.05) 100%);
  border-color: hsl(239 51% 37% / 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px hsl(239 51% 37% / 0.1);
}

.serve-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, hsl(239 51% 37% / 0.1) 0%, hsl(195 90% 59% / 0.1) 100%);
  margin-bottom: 1rem;
  transition: transform 0.3s;
}
.serve-card:hover .serve-icon-wrap { transform: scale(1.1); }

.serve-icon-wrap svg { color: var(--primary); }

.serve-label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--foreground);
}

/* ══════════════════════════════════════════════════════════════════
   CLIENTS SECTION
   ══════════════════════════════════════════════════════════════════ */
.clients-section { background: var(--cohealth-gradient-soft); overflow: hidden; }

.marquee-wrapper { overflow: hidden; }

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

.client-card {
  flex-shrink: 0;
  width: 14rem;
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--cohealth-shadow);
  border: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.client-card:hover {
  box-shadow: var(--cohealth-shadow-lg);
  border-color: hsl(239 51% 37% / 0.1);
}

.client-logo-wrap {
  width: 5rem;
  height: 5rem;
  margin-inline: auto;
  margin-bottom: 1rem;
  border-radius: var(--radius-xl);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.5rem;
}

.client-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.client-name-en { font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.25rem; }
.client-name-ar { font-size: 0.75rem;   color: var(--muted-foreground); }

/* ══════════════════════════════════════════════════════════════════
   PARTNERS SECTION
   ══════════════════════════════════════════════════════════════════ */
.partners-section { background: var(--cohealth-gradient-soft); overflow: hidden; }

.partner-card {
  flex-shrink: 0;
  width: 7.5rem;
  height: 5rem;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--cohealth-shadow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cohealth-shadow-lg);
}

.partner-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ══════════════════════════════════════════════════════════════════
   TESTIMONIALS SECTION
   ══════════════════════════════════════════════════════════════════ */
.testimonials-section {
  background: var(--card);
  position: relative;
  overflow: hidden;
}

.testimonials-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
}
.testimonials-blob--tl {
  top: 2.5rem; left: 2.5rem;
  width: 16rem; height: 16rem;
  background: hsl(239 51% 37% / 0.05);
}
.testimonials-blob--br {
  bottom: 2.5rem; right: 2.5rem;
  width: 24rem; height: 24rem;
  background: hsl(195 90% 59% / 0.05);
}

.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  position: relative;
  background: linear-gradient(135deg, var(--background) 0%, var(--muted) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px hsl(239 51% 37% / 0.1);
  border-color: hsl(239 51% 37% / 0.2);
}

.testimonial-quote-badge {
  position: absolute;
  top: -1rem; right: -1rem;
  width: 3rem; height: 3rem;
  border-radius: 9999px;
  background: var(--cohealth-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px hsl(239 51% 37% / 0.3);
}
html[lang="ar"] .testimonial-quote-badge { right: auto; left: -1rem; }

.testimonial-text {
  color: var(--muted-foreground);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

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

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--avatar-foreground);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  ring: 2px solid var(--background);
  outline: 2px solid var(--background);
  flex-shrink: 0;
}
.avatar-1 { background-color: var(--avatar-1); }
.avatar-2 { background-color: var(--avatar-2); }
.avatar-3 { background-color: var(--avatar-3); }

.testimonial-name { font-weight: 600; font-size: 0.9375rem; }
.testimonial-role { font-size: 0.8125rem; color: var(--muted-foreground); margin-top: 0.125rem; }

/* ══════════════════════════════════════════════════════════════════
   WHY COHEALTH SECTION
   ══════════════════════════════════════════════════════════════════ */
.why-section { background: var(--cohealth-gradient-soft); }

.why-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.why-visual {
  position: relative;
  order: 2;
}
.why-content { order: 1; }

@media (min-width: 1024px) {
  .why-visual  { order: 1; }
  .why-content { order: 2; }

  html[lang="ar"] .why-visual  { order: 2; }
  html[lang="ar"] .why-content { order: 1; }
}

.why-card {
  background: var(--cohealth-gradient);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  color: var(--primary-foreground);
}

.why-card-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.why-card-list { display: flex; flex-direction: column; gap: 1rem; }

.why-card-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.0625rem;
}

.why-card-check { flex-shrink: 0; }

/* Floating success rate badge */
.why-float-badge {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  background: var(--card);
  border-radius: var(--radius-2xl);
  padding: 1rem;
  box-shadow: var(--cohealth-shadow-lg);
  animation: float 3s ease-in-out infinite;
}
html[lang="ar"] .why-float-badge { right: auto; left: -1.5rem; }

.why-float-inner { display: flex; align-items: center; gap: 0.75rem; }

.why-float-icon {
  width: 3rem; height: 3rem;
  border-radius: var(--radius-xl);
  background: hsl(142 76% 36% / 0.1);
  display: flex; align-items: center; justify-content: center;
}

.why-float-number { font-size: 1.5rem; font-weight: 700; color: var(--foreground); }
.why-float-label  { font-size: 0.8125rem; color: var(--muted-foreground); }

/* Reason rows */
.why-reasons { display: flex; flex-direction: column; gap: 0.25rem; }

.why-reason {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-xl);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: default;
}
.why-reason:hover {
  background: var(--card);
  box-shadow: var(--cohealth-shadow);
  transform: translateY(-2px);
}

.why-reason-icon {
  flex-shrink: 0;
  width: 3rem; height: 3rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, hsl(239 51% 37% / 0.1) 0%, hsl(195 90% 59% / 0.1) 100%);
  display: flex; align-items: center; justify-content: center;
}

.why-reason-icon svg { color: var(--primary); }

.why-reason-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--foreground);
}
.why-reason-desc {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

/* ══════════════════════════════════════════════════════════════════
   FAQ SECTION
   ══════════════════════════════════════════════════════════════════ */
.faq-section {
  background: hsl(210 40% 96% / 0.3);
  padding-block: 5rem;
}

.faq-inner {
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 1px 4px hsl(239 51% 37% / 0.06);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--foreground);
  text-align: start;
  font-family: inherit;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--primary); }

.faq-chevron {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted-foreground);
  transition: transform 0.3s ease-out;
}

.faq-item.is-open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}
.faq-item.is-open .faq-answer { max-height: 20rem; }

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.75;
  font-size: 0.9375rem;
  text-align: start;
}

/* ══════════════════════════════════════════════════════════════════
   CONTACT SECTION
   ══════════════════════════════════════════════════════════════════ */
.contact-section {
  background: var(--card);
  position: relative;
  overflow: hidden;
}

.contact-bg-right {
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: linear-gradient(to left, hsl(239 51% 37% / 0.05), transparent);
  pointer-events: none;
}
.contact-bg-left {
  position: absolute;
  bottom: 0; left: 0;
  width: 50%; height: 50%;
  background: linear-gradient(to top, hsl(195 90% 59% / 0.05), transparent);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  gap: 3rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 2fr 3fr; }

  html[lang="ar"] .contact-grid { grid-template-columns: 3fr 2fr; }
  html[lang="ar"] .contact-info-col { order: 2; }
  html[lang="ar"] .contact-form-col { order: 1; }
}

/* Info card */
.contact-info-card {
  background: var(--cohealth-gradient);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  color: var(--primary-foreground);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-info-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-info-desc {
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-methods { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: opacity 0.2s;
}
.contact-method:hover { opacity: 0.8; }

.contact-method-icon {
  width: 3rem; height: 3rem;
  border-radius: var(--radius-xl);
  background: hsl(0 0% 100% / 0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact-method-label {
  font-weight: 500;
}

.contact-social {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid hsl(0 0% 100% / 0.2);
}

.contact-social-label {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: 1rem;
}

.contact-social-links { display: flex; gap: 1rem; }

.contact-social-link {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius-lg);
  background: hsl(0 0% 100% / 0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.contact-social-link:hover { background: hsl(0 0% 100% / 0.2); }

/* Contact form */
.contact-form {
  background: var(--background);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--cohealth-shadow);
}

.contact-form-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .contact-form-grid { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group--full { grid-column: 1 / -1; }

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(239 51% 37% / 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 8rem;
}

html[lang="ar"] .form-input:not([type="tel"]):not([type="email"]):not([type="url"]),
html[lang="ar"] .form-textarea {
  direction: rtl;
  text-align: right;
}

.form-submit {
  width: 100%;
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--primary);
  color: var(--primary-foreground);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: start;
  }
  html[lang="ar"] .footer-grid { text-align: end; }
}

.footer-logo {
  height: 4rem;
  width: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}
@media (min-width: 768px) { .footer-logo { display: block; } }

.footer-tagline {
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.footer-description {
  font-size: 0.875rem;
  opacity: 0.75;
  line-height: 1.75;
  max-width: 20rem;
  margin-inline: auto;
}
@media (min-width: 768px) { .footer-description { margin-inline: 0; } }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  justify-content: center;
}
@media (min-width: 768px) { .footer-social { justify-content: flex-start; } }
html[lang="ar"] .footer-social { justify-content: flex-end; }

.social-link {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius-lg);
  background: hsl(0 0% 100% / 0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.social-link:hover { background: hsl(0 0% 100% / 0.2); }

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
@media (min-width: 768px) { .footer-links-nav { align-items: flex-start; } }
html[lang="ar"] .footer-links-nav { align-items: flex-end; }

.footer-link {
  font-size: 0.875rem;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
}
.footer-link:hover { opacity: 1; transform: translateX(4px); }
html[lang="ar"] .footer-link:hover { transform: translateX(-4px); }

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
@media (min-width: 768px) { .footer-contact-list { align-items: flex-start; } }
html[lang="ar"] .footer-contact-list { align-items: flex-end; }

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  opacity: 0.9;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.footer-contact-link:hover { opacity: 1; }

.footer-divider {
  border: none;
  border-top: 1px solid hsl(0 0% 100% / 0.1);
  margin-block: 2rem;
}

.footer-copyright {
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.6;
}

/* ══════════════════════════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
   ══════════════════════════════════════════════════════════════════ */
.whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
}
html[lang="ar"] .whatsapp-btn { right: auto; left: 1.5rem; }

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: var(--foreground);
  color: var(--background);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: opacity 0.3s;
}
.whatsapp-btn:hover .whatsapp-tooltip { opacity: 1; }
html[lang="ar"] .whatsapp-tooltip { right: auto; left: calc(100% + 0.75rem); }

.whatsapp-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 4rem; height: 4rem;
  border-radius: 9999px;
  background: #25D366;
}

.whatsapp-ring--ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.4;
}
.whatsapp-ring--pulse {
  animation: pulse-glow 2s ease-in-out infinite;
  opacity: 0.3;
}

.whatsapp-icon {
  position: relative;
  width: 4rem; height: 4rem;
  border-radius: 9999px;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px hsl(145 63% 41% / 0.4);
  outline: 4px solid var(--background);
  transition: transform 0.3s;
}
.whatsapp-btn:hover .whatsapp-icon { transform: scale(1.1); }

/* ══════════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 18rem;
  max-width: 24rem;
}

.toast {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  animation: fade-in-up 0.3s ease-out;
}

.toast--success { border-left: 4px solid hsl(142 76% 36%); }
.toast--error   { border-left: 4px solid hsl(0 84% 60%); }

.toast-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}
.toast-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* ══════════════════════════════════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════════════════════════════════ */
.notfound-page {
  min-height: 80svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cohealth-gradient-radial);
}
.notfound-inner { text-align: center; padding: 2rem; }
.notfound-code  { font-size: 8rem; font-weight: 700; line-height: 1; margin-bottom: 1rem; }
.notfound-title { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.notfound-desc  { color: var(--muted-foreground); margin-bottom: 2rem; font-size: 1.125rem; }
