/* ============================================================
   DR. NAIRA HANY — MEDICAL PORTFOLIO v2
   Design System CSS
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
  /* Backgrounds */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-border: #cbd5e1;

  /* Text */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  /* Primary — Deep Purple */
  --purple-dark: #4a148c;
  --purple-main: #9c27b0;
  --purple-light: #e1bee7;
  --purple-xlight: #f3e5f5;

  /* Secondary — Magenta */
  --magenta-dark: #c2185b;
  --magenta-main: #e91e63;
  --magenta-light: #fce4ec;

  /* Accent — Teal (WhatsApp / Success) */
  --teal-dark: #0d9488;
  --teal-mid: #14b8a6;
  --teal-light: #ccfbf1;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #4a148c 0%, #7b1fa2 100%);
  --grad-primary-hover: linear-gradient(135deg, #6a1b9a 0%, #9c27b0 100%);
  --grad-magenta: linear-gradient(135deg, #d81b60 0%, #c2185b 100%);
  --grad-teal: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  --grad-hero: linear-gradient(135deg, #1a0030 0%, #2d0060 40%, #4a0082 70%, #6a1b9a 100%);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(74,20,140,0.12), 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(74,20,140,0.18), 0 4px 16px rgba(0,0,0,0.10);
  --shadow-xl: 0 20px 60px rgba(74,20,140,0.25), 0 8px 24px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 40px rgba(156,39,176,0.3);

  /* Typography */
  --font-arabic: 'Cairo', 'Segoe UI', sans-serif;
  --font-latin: 'Outfit', 'Inter', sans-serif;

  /* Spacing */
  --section-py: 100px;
  --container-max: 1200px;
  --container-px: 24px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-mid: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-arabic);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-primary);
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ---------- Section Utilities ---------- */
.section-py {
  padding: var(--section-py) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-main);
  background: var(--purple-xlight);
  border: 1px solid var(--purple-light);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-title span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-line {
  width: 64px;
  height: 4px;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  margin: 0 auto 20px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--transition-slow), transform 0.7s var(--transition-slow);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="400"] { transition-delay: 0.4s; }
.reveal[data-delay="500"] { transition-delay: 0.5s; }
.reveal[data-delay="600"] { transition-delay: 0.6s; }

/* ---------- Glassmorphism ---------- */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-dark {
  background: rgba(26, 0, 48, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all var(--transition-mid);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.15);
  transform: skewX(-20deg);
  transition: left 0.4s ease;
}

.btn:hover::before {
  left: 200%;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(74,20,140,0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(74,20,140,0.5);
  transform: translateY(-2px);
}

.btn-teal {
  background: var(--grad-teal);
  color: #fff;
  box-shadow: 0 4px 20px rgba(13,148,136,0.35);
}

.btn-teal:hover {
  box-shadow: 0 6px 28px rgba(13,148,136,0.5);
  transform: translateY(-2px);
}

.btn-outline-purple {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  box-shadow: 0 0 0 0 rgba(156,39,176,0);
}

.btn-outline-purple:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-map {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 3px 12px rgba(74,20,140,0.25);
  padding: 10px 20px;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
}

.btn-map:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74,20,140,0.4);
}

.btn-call {
  background: transparent;
  color: var(--purple-dark);
  border: 2px solid var(--purple-light);
  padding: 10px 20px;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
}

.btn-call:hover {
  background: var(--purple-xlight);
  border-color: var(--purple-main);
  transform: translateY(-2px);
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: all var(--transition-mid);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.5);
  box-shadow: 0 4px 24px rgba(74,20,140,0.08);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.6);
  box-shadow: 0 2px 12px rgba(74,20,140,0.2);
  transition: transform var(--transition-mid);
}

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

.nav-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  transition: color var(--transition-mid);
}

.navbar.scrolled .nav-name {
  color: var(--purple-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  font-size: 0.925rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav-links a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.navbar.scrolled .nav-links a {
  color: var(--text-secondary);
}

.navbar.scrolled .nav-links a:hover {
  background: var(--purple-xlight);
  color: var(--purple-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
  cursor: pointer;
  transition: all var(--transition-mid);
}

.navbar.scrolled .lang-toggle {
  background: var(--purple-xlight);
  border-color: var(--purple-light);
}

.lang-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-fast);
  letter-spacing: 0.05em;
}

.lang-btn.active {
  background: #fff;
  color: var(--purple-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.navbar.scrolled .lang-btn {
  color: var(--text-muted);
}

.navbar.scrolled .lang-btn.active {
  background: var(--purple-dark);
  color: #fff;
}

.nav-cta {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-mid);
  backdrop-filter: blur(8px);
}

.nav-cta:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-1px);
}

.navbar.scrolled .nav-cta {
  background: var(--grad-primary);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(74,20,140,0.3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition-mid);
}

.navbar.scrolled .hamburger span {
  background: var(--purple-dark);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 0, 48, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity var(--transition-mid);
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.mobile-menu-links a {
  color: rgba(255,255,255,0.85);
  font-size: 1.4rem;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  display: block;
  text-align: center;
}

.mobile-menu-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.mobile-close {
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.mobile-close:hover {
  background: rgba(255,255,255,0.22);
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--grad-hero);
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Animated background orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #9c27b0 0%, transparent 70%);
  top: -150px;
  inset-inline-end: -100px;
  animation: floatOrb 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #e91e63 0%, transparent 70%);
  bottom: -100px;
  inset-inline-start: -80px;
  animation: floatOrb 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #14b8a6 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: floatOrb 12s ease-in-out infinite;
  opacity: 0.2;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* Grid background pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  color: #fff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fadeInDown 0.8s ease 0.2s both;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-title .gradient-text {
  background: linear-gradient(90deg, #e1bee7, #f48fb1, #80cbc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  margin-bottom: 32px;
  font-weight: 400;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.95);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.hero-badge:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.45);
}

.hero-badge-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

/* Hero Image */
.hero-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeInRight 0.9s ease 0.4s both;
}

[dir="ltr"] .hero-image-wrap {
  animation: fadeInLeft 0.9s ease 0.4s both;
}

.hero-image-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(156,39,176,0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.1); opacity: 0.6; }
}

.hero-image-ring {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(156,39,176,0.3), rgba(233,30,99,0.3));
  animation: rotateRing 8s linear infinite;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-image-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.15);
  animation: rotateRing 8s linear infinite reverse;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  font-weight: 500;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll-icon {
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.hero-scroll-dot {
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

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

/* ---------- Animation Keyframes ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---------- ABOUT & CREDENTIALS SECTION ---------- */
.about-section {
  padding: var(--section-py) 0;
  background: var(--bg-main);
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cred-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-mid);
  box-shadow: var(--shadow-sm);
}

.cred-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: inset-inline-start;
  transition: transform var(--transition-mid);
}

.cred-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-light);
}

.cred-card:hover::before {
  transform: scaleX(1);
}

.cred-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.cred-icon-wrap.purple {
  background: var(--purple-xlight);
}

.cred-icon-wrap.magenta {
  background: var(--magenta-light);
}

.cred-icon-wrap.teal {
  background: var(--teal-light);
}

.cred-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.cred-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ---------- CLINICS SECTION ---------- */
.clinics-section {
  padding: var(--section-py) 0;
  background: linear-gradient(180deg, var(--bg-main) 0%, #f1e8f7 50%, var(--bg-main) 100%);
}

.clinics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.clinic-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--bg-border);
  transition: all var(--transition-mid);
  display: flex;
  flex-direction: column;
}

.clinic-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--purple-light);
}

.clinic-card-header {
  background: var(--grad-primary);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}

.clinic-card-header::after {
  content: '';
  position: absolute;
  bottom: -20px;
  inset-inline-end: -20px;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.clinic-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.clinic-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.clinic-card-body {
  padding: 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clinic-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.clinic-info-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.clinic-info-icon.addr { background: var(--purple-xlight); }
.clinic-info-icon.time { background: var(--teal-light); }

.clinic-info-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.clinic-info-text {
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.55;
  font-weight: 500;
}

.clinic-info-time {
  font-size: 0.9rem;
  color: var(--teal-dark);
  font-weight: 700;
}

.clinic-card-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--bg-border);
  display: flex;
  gap: 10px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: linear-gradient(135deg, #1a0030 0%, #2d0060 60%, #4a0082 100%);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 32px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-mid), var(--purple-main), var(--magenta-main));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}

.footer-brand-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.2);
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(156,39,176,0.3);
}

.footer-brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.footer-brand-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 280px;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition-fast);
}

.footer-contact-item:hover {
  color: #fff;
}

.footer-contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.footer-contact-icon.whatsapp { background: rgba(13,148,136,0.25); }
.footer-contact-icon.phone { background: rgba(156,39,176,0.25); }

.footer-contact-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  margin-bottom: 2px;
}

.footer-contact-number {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-latin);
  letter-spacing: 0.03em;
  direction: ltr;
}

.footer-quick-links {
  list-style: none;
}

.footer-quick-links li {
  margin-bottom: 10px;
}

.footer-quick-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-quick-links a:hover {
  color: #fff;
}

.footer-arrow {
  font-size: 0.7rem;
  opacity: 0.5;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-copy strong {
  color: rgba(255,255,255,0.7);
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.footer-social-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Floating WhatsApp ---------- */
.floating-wa {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--grad-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(13,148,136,0.5);
  color: #fff;
  text-decoration: none;
  animation: floatWA 3s ease-in-out infinite;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.floating-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 36px rgba(13,148,136,0.65);
  animation: none;
}

.floating-wa::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(13,148,136,0.35);
  animation: waPulse 2.5s ease-out infinite;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

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

/* ---------- Responsive Design ---------- */
@media (max-width: 1024px) {
  :root { --section-py: 80px; }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-badges { justify-content: center; }
  .hero-actions { justify-content: center; }

  .hero-image-wrap {
    animation: fadeInUp 0.9s ease 0.4s both !important;
  }

  .hero-image-ring {
    width: 240px;
    height: 240px;
  }

  .credentials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 64px;
    --container-px: 20px;
  }

  /* Navbar mobile */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-container {
    display: flex;
    flex-direction: column-reverse;
  }

  .clinics-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .cred-card {
    padding: 24px 20px;
  }

  .clinic-card-footer {
    flex-direction: column;
  }

  .btn-map, .btn-call {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .hero-image-ring {
    width: 200px;
    height: 200px;
  }

  .nav-cta {
    display: none;
  }
}

/* ---------- RTL Specific Tweaks ---------- */
[dir="rtl"] .cred-card::before {
  transform-origin: right;
}

[dir="ltr"] .cred-card::before {
  transform-origin: left;
}

[dir="rtl"] .footer-arrow::before {
  content: '←';
}

[dir="ltr"] .footer-arrow::before {
  content: '→';
}

/* ---------- Scrollbar Styling ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--purple-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--purple-main);
}

/* ---------- Selection Color ---------- */
::selection {
  background: var(--purple-light);
  color: var(--purple-dark);
}
