/* ==========================================================================
   مجمع مارو الطبي - Maro Medical Center
   Ultra-Luxury Multi-Page Style System & Design Tokens
   ========================================================================== */

:root {
  /* Color Palette - Medical Luxury & Royal Sapphire & Gold */
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-deep: #082f49;
  --primary-light: #e0f2fe;
  --primary-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #082f49 100%);
  --royal-blue: #1e3a8a;
  --royal-gradient: linear-gradient(135deg, #1e3a8a 0%, #0369a1 100%);
  --teal-accent: #0d9488;
  --teal-light: #ccfbf1;
  --gold-accent: #f59e0b;
  --gold-metallic: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --rose-accent: #ec4899;
  --rose-light: #fce7f3;

  /* Theme Defaults (Light Luxury Mode) */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-glass: rgba(255, 255, 255, 0.88);
  --bg-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-gold: rgba(245, 158, 11, 0.35);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 30px rgba(2, 132, 199, 0.25);
  --shadow-gold: 0 10px 30px rgba(245, 158, 11, 0.3);

  /* Typography */
  --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-display: 'Tajawal', system-ui, -apple-system, sans-serif;

  /* Layout & Spacing */
  --container-max: 1260px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --nav-height: 84px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Luxury Mode Theme */
[data-theme="dark"] {
  --bg-body: #070b14;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #1e293b;
  --bg-surface-glass: rgba(15, 23, 42, 0.88);
  --bg-subtle: #162033;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-light: #64748b;
  --border-color: #334155;
  --border-light: #1e293b;
  --border-gold: rgba(245, 158, 11, 0.45);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(2, 132, 199, 0.4);
  --primary-light: rgba(2, 132, 199, 0.18);
  --teal-light: rgba(13, 148, 136, 0.18);
  --rose-light: rgba(236, 72, 153, 0.18);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

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

body {
  font-family: var(--font-arabic);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.75;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.975rem;
  transition: all var(--transition-bounce);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.18);
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: -1;
}

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

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.5);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.45);
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #20bd5a;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.05rem 2.4rem;
  font-size: 1.1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-gold {
  background: #fef3c7;
  color: #b45309;
}

.badge-teal {
  background: var(--teal-light);
  color: var(--teal-accent);
}

.badge-rose {
  background: var(--rose-light);
  color: var(--rose-accent);
}

/* ==========================================================================
   Top Announcement Bar & Header
   ========================================================================== */

.top-bar {
  background: var(--primary-deep);
  color: #ffffff;
  font-size: 0.875rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-item i {
  color: #38bdf8;
}

.top-bar-badge {
  background: var(--gold-gradient);
  color: #fff;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  50% { transform: scale(1.03); box-shadow: 0 0 16px 4px rgba(245, 158, 11, 0.5); }
}

.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--bg-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.header.scrolled {
  height: 72px;
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.55rem;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
  position: relative;
}

.logo-pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  border: 2px solid #38bdf8;
  animation: logoPulse 2.5s infinite;
}

@keyframes logoPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

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

.logo-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
}

.logo-title span {
  color: var(--primary);
}

.logo-slogan {
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-link {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0.3rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0%;
  height: 2.5px;
  background: var(--primary);
  transition: width var(--transition-normal);
  border-radius: var(--radius-full);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

.theme-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: var(--transition-fast);
  border: 1px solid var(--border-color);
}

.theme-toggle-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: rotate(20deg);
}

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 1.3rem;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Page Hero & Breadcrumbs (For Dedicated Pages)
   ========================================================================== */

.page-hero {
  position: relative;
  padding: 4.5rem 0 3.5rem 0;
  background: linear-gradient(135deg, #082f49 0%, #0369a1 60%, #0284c7 100%);
  color: #ffffff;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 0.85rem;
}

.page-hero-desc {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 680px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.8;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
}

.breadcrumbs a {
  color: #e0f2fe;
}

.breadcrumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.breadcrumbs span.current {
  color: var(--gold-accent);
  font-weight: 800;
}

/* ==========================================================================
   Hero Section (Homepage)
   ========================================================================== */

.hero {
  position: relative;
  padding: 4.5rem 0 5rem 0;
  background: radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(13, 148, 136, 0.08) 0%, transparent 60%);
  overflow: hidden;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(2, 132, 199, 0.1) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.3rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-main);
}

.hero-title .highlight {
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.8;
}

.hero-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.3rem;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.hero-feature-item i {
  color: #10b981;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--bg-surface);
}

.hero-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.floating-badge {
  position: absolute;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  padding: 0.9rem 1.3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  z-index: 2;
  animation: floatAnim 4s ease-in-out infinite alternate;
}

.floating-badge-1 {
  bottom: 25px;
  right: -25px;
}

.floating-badge-2 {
  top: 25px;
  left: -25px;
  animation-delay: 2s;
}

@keyframes floatAnim {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

.floating-badge .icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.floating-badge .icon-box.gold {
  background: #fef3c7;
  color: #d97706;
}

.floating-badge .icon-box.blue {
  background: var(--primary-light);
  color: var(--primary);
}

.floating-badge-text h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.floating-badge-text p {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Gift Banner (هدية مجانية لكل مراجع)
   ========================================================================== */

.gift-banner {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  padding: 1.8rem 2.2rem;
  border-radius: var(--radius-lg);
  margin-top: 2rem;
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
}

.gift-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.gift-banner-content {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.gift-icon-glow {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  animation: pulseGlow 2s infinite;
}

.gift-banner-text h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.gift-banner-text p {
  font-size: 0.975rem;
  opacity: 0.95;
}

.gift-banner-btn {
  background: #ffffff;
  color: #d97706;
  font-weight: 800;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.gift-banner-btn:hover {
  background: #f8fafc;
  transform: scale(1.05);
}

/* ==========================================================================
   Stats / Highlights Bar
   ========================================================================== */

.stats-section {
  padding: 3.5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}

.stat-card.derma .stat-icon {
  background: var(--rose-light);
  color: var(--rose-accent);
}

.stat-card.gold .stat-icon {
  background: #fef3c7;
  color: var(--gold-accent);
}

.stat-card.teal .stat-icon {
  background: var(--teal-light);
  color: var(--teal-accent);
}

.stat-info h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.stat-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section Headers & Grids
   ========================================================================== */

.section {
  padding: 5.5rem 0;
}

.section-bg {
  background-color: var(--bg-subtle);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.9rem;
}

.section-desc {
  font-size: 1.075rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Offers Cards Grid (العروض والأسعار)
   ========================================================================== */

.offers-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.offer-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-bounce);
}

.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.offer-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-glow);
}

.offer-ribbon {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
}

.offer-image-box {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.offer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.offer-card:hover .offer-image {
  transform: scale(1.06);
}

.offer-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.offer-category {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.offer-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.offer-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.offer-features {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.offer-feature-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: var(--text-main);
}

.offer-feature-line i {
  color: #10b981;
  font-size: 0.95rem;
}

.offer-pricing-box {
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.price-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.price-value-box {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.price-currency {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.price-prefix {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Free Promo Callout Banner */
.free-promo-box {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, #082f49 0%, #0369a1 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.free-promo-content h3 {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.free-promo-content p {
  font-size: 1.05rem;
  opacity: 0.92;
  line-height: 1.8;
  max-width: 780px;
}

/* Calm, clear care journey on the home page */
.care-journey-section {
  position: relative;
  overflow: hidden;
}

.care-journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  position: relative;
}

.care-journey-grid::before {
  content: '';
  position: absolute;
  top: 3.25rem;
  right: 17%;
  left: 17%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #bed2e9 18%, #bed2e9 82%, transparent);
}

.care-step {
  position: relative;
  z-index: 1;
  min-height: 220px;
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid #dce7f3;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(22, 55, 100, 0.055);
}

.care-step-number {
  position: absolute;
  top: 1.15rem;
  left: 1.4rem;
  color: #8da9c7;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.care-step-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 1.4rem;
  border: 1px solid #d8e7f6;
  border-radius: 18px;
  background: #edf5fc;
  color: #18589d;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.care-step h3 {
  margin-bottom: 0.65rem;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 800;
}

.care-step p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.85;
}

[data-theme="dark"] .care-step {
  background: #10233a;
  border-color: #294766;
  box-shadow: none;
}

[data-theme="dark"] .care-journey-grid::before {
  background: linear-gradient(90deg, transparent, #315878 18%, #315878 82%, transparent);
}

[data-theme="dark"] .care-step-icon {
  background: #172f4c;
  border-color: #315878;
  color: #9dcbff;
}

html[dir="ltr"] .care-step {
  text-align: left;
}

html[dir="ltr"] .care-step-number {
  right: 1.4rem;
  left: auto;
}

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

  .care-journey-grid::before {
    display: none;
  }

  .care-step {
    min-height: 0;
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Department Showcases & Features Cards
   ========================================================================== */

.departments-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.dept-card-preview {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-bounce);
}

.dept-card-preview:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.dept-card-img-box {
  height: 230px;
  position: relative;
  overflow: hidden;
}

.dept-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.dept-card-preview:hover .dept-card-img {
  transform: scale(1.06);
}

.dept-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dept-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.dept-card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Detailed Showcase Sections (For specific department pages) */
.dept-detail-block {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
}

.dept-detail-block.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.dept-detail-block.reverse .dept-detail-media {
  order: 2;
}

.dept-detail-block.reverse .dept-detail-content {
  order: 1;
}

.dept-detail-img-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 400px;
  box-shadow: var(--shadow-md);
}

.dept-detail-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.service-card-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all var(--transition-fast);
}

.service-card-item:hover {
  background: var(--bg-surface);
  border-color: var(--primary);
  transform: translateX(-4px);
}

.service-card-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card-item.rose .service-card-num {
  background: var(--rose-accent);
}

.service-card-item.teal .service-card-num {
  background: var(--teal-accent);
}

.service-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   Doctors & Consultants Team Grid
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.doctor-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-bounce);
}

.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.doctor-avatar-box {
  height: 240px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-subtle) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--primary);
}

.doctor-info {
  padding: 1.8rem;
}

.doctor-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.doctor-specialty {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.doctor-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Booking Page & Form
   ========================================================================== */

.booking-page-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.booking-form-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.booking-summary-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}

.summary-sidebar-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
}

.summary-sidebar-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.summary-features-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.summary-feature-item i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.summary-feature-text h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.summary-feature-text p {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* Form Styles */
.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

/* ==========================================================================
   Contact & Location Page
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: stretch;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  align-items: flex-start;
  gap: 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.contact-card:hover {
  transform: translateX(-5px);
  border-color: var(--primary);
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.contact-details p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.phone-links {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-subtle);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
  direction: ltr;
}

.phone-badge:hover {
  background: var(--primary);
  color: #ffffff;
}

.work-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.work-status-badge.open {
  background: #dcfce7;
  color: #15803d;
}

.work-status-badge.open .status-dot {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.work-status-badge.closed {
  background: #fee2e2;
  color: #b91c1c;
}

.work-status-badge.closed .status-dot {
  background: #ef4444;
}

/* Map Frame Container */
.map-box-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.map-frame-wrapper {
  height: 360px;
  width: 100%;
  position: relative;
}

.map-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-footer-actions {
  padding: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg-surface);
}

.qr-code-holder {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.qr-icon-img {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 4px;
}

.qr-text h5 {
  font-size: 0.975rem;
  font-weight: 800;
}

.qr-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-accordion {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.6rem;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main);
  background: none;
}

.faq-icon-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
  background: var(--primary-light);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease;
  padding: 0 1.6rem;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 350px;
  padding: 0 1.6rem 1.35rem 1.6rem;
}

/* ==========================================================================
   Reviews / Testimonials
   ========================================================================== */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.review-stars {
  color: #f59e0b;
  display: flex;
  gap: 0.25rem;
  font-size: 0.95rem;
}

.review-text {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex-grow: 1;
  font-style: italic;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-color);
}

.reviewer-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.reviewer-info h4 {
  font-size: 0.975rem;
  font-weight: 800;
  color: var(--text-main);
}

.reviewer-info p {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: #060a12;
  color: #cbd5e1;
  padding: 5.5rem 0 2.2rem 0;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr 1.05fr;
  gap: 3.2rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.footer-brand .logo-title {
  color: #ffffff;
}

.footer-brand p {
  font-size: 0.925rem;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-heading {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.35rem;
  position: relative;
  padding-bottom: 0.55rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 2.5px;
  background: var(--primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-link {
  color: #94a3b8;
  font-size: 0.925rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: #38bdf8;
  transform: translateX(-4px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  font-size: 0.925rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: #94a3b8;
}

.footer-contact-item i {
  color: #38bdf8;
  margin-top: 0.25rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Floating Action Buttons & Modal
   ========================================================================== */

.floating-actions {
  position: fixed;
  bottom: 25px;
  left: 25px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  z-index: 999;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.45rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-bounce);
}

.floating-btn:hover {
  transform: scale(1.12);
}

.floating-whatsapp {
  background: #25D366;
}

.floating-phone {
  background: var(--primary);
}

.floating-scroll-top {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.floating-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Dialog */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 1.5rem;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 2.8rem;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-bounce);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.modal-backdrop.active .modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon-success {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.modal-box h3 {
  font-size: 1.55rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
}

.modal-box p {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-title {
    font-size: 2.7rem;
  }

  .hero-features-list, .hero-actions {
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .departments-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dept-detail-block, .dept-detail-block.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .dept-detail-block.reverse .dept-detail-media {
    order: 1;
  }

  .dept-detail-block.reverse .dept-detail-content {
    order: 2;
  }

  .booking-page-layout {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar-content {
    justify-content: center;
    text-align: center;
  }

  .top-bar-info {
    flex-direction: column;
    gap: 0.4rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: calc(100vh - var(--nav-height));
    background: var(--bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.2rem;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-normal);
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-image {
    height: 340px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .offers-grid {
    grid-template-columns: 1fr;
  }

  .departments-overview-grid {
    grid-template-columns: 1fr;
  }

  .services-list-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .free-promo-box {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .free-promo-content h3 {
    justify-content: center;
  }

  .form-group-row {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

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

/* ========================================================================
   Maro Signature - refined visual direction
   A calm, royal-blue medical identity inspired by the official Maro artwork.
   ======================================================================== */

:root {
  --primary: #2454ad;
  --primary-dark: #183c83;
  --primary-deep: #102850;
  --primary-light: #eaf2ff;
  --primary-gradient: linear-gradient(135deg, #2454ad 0%, #183c83 100%);
  --royal-blue: #1e479d;
  --royal-gradient: linear-gradient(135deg, #102850 0%, #2454ad 100%);
  --teal-accent: #4f91d9;
  --teal-light: #eaf4ff;
  --gold-accent: #b99652;
  --gold-metallic: linear-gradient(135deg, #8e7139 0%, #d5b976 52%, #9d7d3d 100%);
  --gold-gradient: linear-gradient(135deg, #a98746 0%, #c6a760 100%);
  --rose-accent: #426bb5;
  --rose-light: #edf3ff;
  --bg-body: #f6f8fc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-glass: rgba(255, 255, 255, 0.92);
  --bg-subtle: #f0f4fa;
  --text-main: #13294d;
  --text-muted: #65728a;
  --text-light: #9aa7ba;
  --border-color: #dde5f0;
  --border-light: #edf1f7;
  --border-gold: rgba(185, 150, 82, 0.42);
  --shadow-sm: 0 8px 22px rgba(17, 40, 80, 0.05);
  --shadow-md: 0 18px 42px rgba(17, 40, 80, 0.09);
  --shadow-lg: 0 28px 65px rgba(17, 40, 80, 0.13);
  --shadow-glow: 0 16px 42px rgba(36, 84, 173, 0.16);
  --shadow-gold: 0 12px 30px rgba(185, 150, 82, 0.19);
  --font-display: 'Cairo', system-ui, sans-serif;
  --container-max: 1320px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --transition-bounce: 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

body {
  background: var(--bg-body);
  letter-spacing: 0.005em;
}

.container {
  padding-right: 2rem;
  padding-left: 2rem;
}

.top-bar {
  background: #102850;
  border: 0;
  padding: 0.42rem 0;
  font-size: 0.78rem;
}

.top-bar-info {
  gap: 1.2rem;
}

.top-bar-item {
  gap: 0.42rem;
  opacity: 0.9;
}

.top-bar-item i {
  color: #a7cef7;
}

.top-bar-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(196, 220, 251, 0.2);
  box-shadow: none;
  padding: 0.22rem 0.7rem;
  animation: none;
}

.header {
  height: 86px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(21, 54, 108, 0.08);
  box-shadow: 0 4px 22px rgba(16, 40, 80, 0.035);
}

.header.scrolled {
  height: 76px;
  box-shadow: 0 12px 30px rgba(16, 40, 80, 0.09);
}

.header-container {
  gap: 1.5rem;
}

.logo-link {
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--primary-gradient);
  box-shadow: 0 8px 18px rgba(36, 84, 173, 0.24);
  font-size: 1.35rem;
}

.logo-pulse-ring {
  display: none;
}

.logo-title {
  color: #183b80;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.logo-title span {
  color: #2454ad;
}

.logo-slogan {
  color: #70809a;
  font-size: 0.7rem;
}

.nav-menu {
  gap: 0.35rem;
  justify-content: center;
  flex: 1;
}

.nav-link {
  color: #52627d;
  font-size: 0.84rem;
  padding: 0.55rem 0.55rem;
  white-space: nowrap;
}

.nav-link::after {
  right: 50%;
  bottom: 0.17rem;
  width: 0;
  height: 2px;
  transform: translateX(50%);
  background: var(--primary);
}

.nav-link:hover,
.nav-link.active {
  color: #1c4b9f;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 62%;
}

.header-actions {
  gap: 0.6rem;
  flex-shrink: 0;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  background: #f2f6fb;
  border-color: #e3eaf3;
  color: #45618d;
}

.btn {
  border-radius: 12px;
  padding: 0.82rem 1.45rem;
  font-weight: 800;
  box-shadow: none;
}

.btn::after {
  display: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 40, 80, 0.14);
}

.btn-primary {
  background: var(--primary-gradient);
  box-shadow: 0 8px 20px rgba(36, 84, 173, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(36, 84, 173, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary-dark);
  border: 1px solid #cdd9eb;
}

.btn-secondary:hover {
  background: #f2f6fc;
  border-color: #92add5;
}

.btn-gold {
  background: var(--gold-gradient);
  box-shadow: 0 9px 20px rgba(185, 150, 82, 0.22);
}

.btn-sm {
  padding: 0.62rem 1rem;
}

.badge {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0;
}

.badge-primary {
  color: #2454ad;
  background: #eaf2ff;
}

.badge-gold {
  color: #82642e;
  background: #f8f1e2;
}

.badge-teal,
.badge-rose {
  color: #2454ad;
  background: #edf4ff;
}

.page-hero {
  padding: 5.2rem 0 4.5rem;
  background: linear-gradient(115deg, #112954 0%, #1d4695 58%, #3e74bd 100%);
}

.page-hero::before {
  background: radial-gradient(circle at 20% 20%, rgba(179, 211, 248, 0.22), transparent 38%), radial-gradient(circle at 82% 80%, rgba(255,255,255,0.09), transparent 34%);
}

.page-hero-title {
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  letter-spacing: -0.035em;
}

.breadcrumbs {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  padding: 4.5rem 0 4rem;
  background: linear-gradient(115deg, #ffffff 0%, #f8fbff 48%, #ebf3ff 100%);
}

.hero::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  left: -250px;
  bottom: -340px;
  border: 1px solid rgba(75, 132, 207, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(75, 132, 207, 0.035), 0 0 0 100px rgba(75, 132, 207, 0.025);
}

.hero-grid {
  grid-template-columns: 1.08fr 0.92fr;
  gap: 4rem;
}

.hero-content {
  gap: 1.35rem;
}

.hero-banner-tag {
  background: #ffffff;
  border: 1px solid #d6e3f4;
  color: #345b9f;
  box-shadow: var(--shadow-sm);
  padding: 0.47rem 0.95rem;
}

.hero-title {
  max-width: 690px;
  font-size: clamp(2.65rem, 4.25vw, 4.1rem);
  line-height: 1.27;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.hero-title .highlight {
  color: #2454ad;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-subtitle {
  max-width: 650px;
  color: #61708a;
  font-size: 1.04rem;
  line-height: 2;
}

.hero-subtitle strong {
  color: #264c96;
}

.hero-features-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 610px);
  gap: 0.62rem 1.1rem;
}

.hero-feature-item {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0.1rem 0;
  color: #314661;
  font-size: 0.86rem;
}

.hero-feature-item i {
  color: #3d77bd;
}

.hero-actions {
  gap: 0.75rem;
  margin-top: 0.45rem;
}

.hero-visual {
  padding: 0.7rem 0 1.2rem 1rem;
}

.hero-image-wrapper {
  border: 8px solid rgba(255, 255, 255, 0.88);
  border-radius: 34px;
  box-shadow: 0 25px 55px rgba(16, 40, 80, 0.17);
}

.hero-image {
  height: 510px;
}

.hero-image-wrapper:hover .hero-image {
  transform: none;
}

.floating-badge {
  border: 1px solid rgba(210, 223, 240, 0.9);
  border-radius: 15px;
  box-shadow: 0 14px 28px rgba(20, 43, 83, 0.12);
  padding: 0.75rem 1rem;
  animation: none;
}

.floating-badge-1 {
  right: -0.75rem;
  bottom: -0.7rem;
}

.floating-badge-2 {
  left: -0.55rem;
  top: 1.5rem;
}

.floating-badge .icon-box {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.gift-banner {
  margin-top: 2.8rem;
  padding: 1.65rem 2rem;
  border: 1px solid rgba(193, 164, 102, 0.65);
  background: linear-gradient(120deg, #112a56 0%, #1b4697 100%);
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(17, 40, 80, 0.19);
}

.gift-banner::before {
  background: radial-gradient(circle at 85% 100%, rgba(175, 207, 246, 0.25), transparent 36%);
}

.gift-icon-glow {
  width: 54px;
  height: 54px;
  background: rgba(226, 203, 145, 0.18);
  color: #f2d893;
  font-size: 1.6rem;
  animation: none;
}

.gift-banner-text h3 {
  font-size: 1.2rem;
}

.gift-banner-btn {
  color: #163a82;
  background: #ffffff;
  border-radius: 11px;
  box-shadow: none;
}

.stats-section {
  padding: 2.25rem 0;
  background: #ffffff;
  border: 0;
}

.stats-grid {
  gap: 0;
}

.stat-card {
  padding: 0.65rem 1.5rem;
  border-left: 1px solid #e5ebf4;
}

.stat-card:last-child {
  border-left: 0;
}

.stat-card:hover {
  transform: none;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: #eaf2ff;
  color: #2454ad;
  font-size: 1.45rem;
}

.stat-card.derma .stat-icon,
.stat-card.teal .stat-icon,
.stat-card.gold .stat-icon {
  background: #edf4ff;
  color: #2454ad;
}

.stat-info h3 {
  color: #1e396e;
  font-size: 0.98rem;
}

.stat-info p {
  font-size: 0.79rem;
}

.section {
  padding: 6.4rem 0;
}

.section-bg {
  background: linear-gradient(180deg, #f3f6fb 0%, #f8faff 100%);
}

.section-header {
  margin-bottom: 3.75rem;
}

.section-title {
  color: #17336a;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  letter-spacing: -0.045em;
}

.section-desc {
  color: #6b7890;
  font-size: 1rem;
  line-height: 1.9;
}

.offer-card,
.dept-card-preview,
.review-card,
.team-card,
.service-card,
.faq-item,
.booking-form-box,
.booking-summary-sidebar,
.contact-info-card {
  border-color: #e1e8f2;
  box-shadow: 0 10px 28px rgba(18, 46, 91, 0.055);
}

.offer-card,
.dept-card-preview {
  border-radius: 22px;
}

.offer-card:hover,
.dept-card-preview:hover,
.team-card:hover,
.service-card:hover {
  transform: translateY(-5px);
  border-color: #aac3e4;
  box-shadow: var(--shadow-md);
}

.offer-card.featured {
  border: 1px solid #9ab8e1;
  box-shadow: 0 15px 35px rgba(36, 84, 173, 0.12);
}

.offer-image-box,
.dept-card-img-box {
  height: 225px;
}

.offer-title,
.dept-card-title,
.service-card h3,
.team-info h3 {
  color: #183a79;
}

.offer-category,
.price-label {
  color: #426bb5;
}

.price-amount,
.price-prefix,
.price-currency {
  color: #204d9f;
}

.free-promo-box {
  border: 1px solid rgba(193, 164, 102, 0.65);
  background: linear-gradient(120deg, #102850, #214d9d);
  box-shadow: 0 20px 40px rgba(17, 40, 80, 0.16);
}

.footer {
  background: #102850;
}

.footer-heading::after {
  background: #98c1ee;
}

.footer-link:hover {
  color: #b9d8f8;
}

.form-control,
.booking-form-box select,
.booking-form-box textarea {
  border-color: #dce5f0;
  border-radius: 11px;
  background: #fbfcfe;
}

.form-control:focus,
.booking-form-box select:focus,
.booking-form-box textarea:focus {
  border-color: #6f9fd8;
  box-shadow: 0 0 0 4px rgba(80, 139, 211, 0.12);
}

.floating-btn {
  border: 2px solid #ffffff;
  box-shadow: 0 10px 24px rgba(16, 40, 80, 0.2);
}

.modal-box {
  border: 1px solid #dce5f0;
  box-shadow: 0 26px 55px rgba(16, 40, 80, 0.25);
}

@media (max-width: 1180px) and (min-width: 769px) {
  .header-container {
    gap: 0.85rem;
  }

  .mobile-menu-btn {
    display: flex;
    width: 40px;
    height: 40px;
    background: #f2f6fb;
    border: 1px solid #e3eaf3;
    color: #2454ad;
  }

  .nav-menu {
    position: fixed;
    top: 86px;
    right: -100%;
    width: min(390px, calc(100vw - 2rem));
    min-height: 420px;
    padding: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.18rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e2e9f3;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 22px 42px rgba(17, 40, 80, 0.16);
    transition: right 0.28s ease;
    z-index: 1000;
  }

  .nav-menu.active {
    right: 1rem;
  }

  .nav-link {
    padding: 0.78rem 0.45rem;
    font-size: 0.94rem;
  }
}

@media (max-width: 1024px) {
  .hero {
    padding-top: 3.8rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .hero-visual {
    padding: 0 1rem 1.2rem;
  }

  .hero-features-list {
    width: auto;
  }

  .stat-card {
    border-left: 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding-right: 1.2rem;
    padding-left: 1.2rem;
  }

  .top-bar {
    font-size: 0.71rem;
  }

  .top-bar-info:first-child .top-bar-item:first-child {
    display: none;
  }

  .header {
    height: 72px;
  }

  .header.scrolled {
    height: 68px;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    font-size: 1.1rem;
  }

  .logo-title {
    font-size: 0.98rem;
  }

  .logo-slogan {
    display: none;
  }

  .theme-toggle-btn {
    display: none;
  }

  .header-actions .btn {
    display: none;
  }

  .mobile-menu-btn {
    width: 40px;
    height: 40px;
    background: #f2f6fb;
    border: 1px solid #e3eaf3;
    color: #2454ad;
  }

  .nav-menu {
    top: 72px;
    right: -100%;
    width: min(88vw, 340px);
    height: calc(100vh - 72px);
    padding: 1.4rem;
    border-left: 1px solid #e2e9f3;
    border-radius: 0;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    padding: 0.72rem 0.2rem;
  }

  .hero {
    padding: 3.2rem 0 2.6rem;
  }

  .hero-title {
    font-size: 2.35rem;
    line-height: 1.35;
  }

  .hero-subtitle {
    font-size: 0.96rem;
    line-height: 1.9;
  }

  .hero-features-list {
    grid-template-columns: 1fr;
    gap: 0.42rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-visual {
    padding: 0 0.35rem 1rem;
  }

  .hero-image-wrapper {
    border-width: 5px;
    border-radius: 24px;
  }

  .hero-image {
    height: 310px;
  }

  .floating-badge-2 {
    display: none;
  }

  .floating-badge-1 {
    right: -0.4rem;
    bottom: -0.6rem;
  }

  .gift-banner {
    margin-top: 2rem;
    padding: 1.35rem;
    border-radius: 17px;
  }

  .gift-banner-content {
    gap: 0.8rem;
  }

  .gift-banner-text h3 {
    font-size: 1.05rem;
  }

  .gift-banner-btn {
    width: 100%;
    justify-content: center;
  }

  .stats-section {
    padding: 1.8rem 0;
  }

  .stat-card {
    padding: 0.8rem 0;
  }

  .section {
    padding: 4.2rem 0;
  }

  .section-header {
    margin-bottom: 2.6rem;
  }

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

  .offer-image-box,
  .dept-card-img-box {
    height: 210px;
  }
}

/* Dark appearance - kept after the signature layer so the theme switch takes effect. */
[data-theme="dark"] {
  --primary: #76aae6;
  --primary-dark: #a8cefa;
  --primary-deep: #081426;
  --primary-light: rgba(118, 170, 230, 0.14);
  --primary-gradient: linear-gradient(135deg, #2c66b7 0%, #1b427f 100%);
  --royal-blue: #79ade8;
  --royal-gradient: linear-gradient(135deg, #0d1f3d 0%, #244f92 100%);
  --teal-accent: #8dbce8;
  --teal-light: rgba(118, 170, 230, 0.14);
  --gold-accent: #e0c078;
  --gold-gradient: linear-gradient(135deg, #a88645 0%, #d0b068 100%);
  --rose-accent: #90b8eb;
  --rose-light: rgba(118, 170, 230, 0.14);
  --bg-body: #091322;
  --bg-surface: #101d31;
  --bg-surface-elevated: #15253d;
  --bg-surface-glass: rgba(11, 23, 41, 0.92);
  --bg-subtle: #0d192b;
  --text-main: #f2f7ff;
  --text-muted: #bcc9dc;
  --text-light: #7990af;
  --border-color: #263a58;
  --border-light: #1b2d48;
  --border-gold: rgba(224, 192, 120, 0.42);
  --shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 28px 65px rgba(0, 0, 0, 0.42);
  --shadow-glow: 0 16px 42px rgba(76, 139, 220, 0.16);
  --shadow-gold: 0 12px 30px rgba(224, 192, 120, 0.16);
}

[data-theme="dark"] body {
  background: #091322;
}

[data-theme="dark"] .top-bar {
  background: #07101f;
}

[data-theme="dark"] .top-bar-badge {
  background: rgba(158, 195, 237, 0.1);
  border-color: rgba(158, 195, 237, 0.18);
}

[data-theme="dark"] .header {
  background: rgba(10, 21, 38, 0.94);
  border-bottom-color: rgba(163, 196, 236, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
}

[data-theme="dark"] .logo-title,
[data-theme="dark"] .logo-title span {
  color: #f1f6ff;
}

[data-theme="dark"] .logo-slogan,
[data-theme="dark"] .nav-link {
  color: #b6c5d9;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #9dcbff;
}

[data-theme="dark"] .theme-toggle-btn,
[data-theme="dark"] .mobile-menu-btn {
  background: #16263d;
  border-color: #263d5b;
  color: #a8cdf7;
}

[data-theme="dark"] .btn-secondary {
  background: #13243a;
  border-color: #304968;
  color: #b9d8fb;
}

[data-theme="dark"] .btn-secondary:hover {
  background: #1a3150;
  border-color: #6e9ed5;
}

[data-theme="dark"] .badge-primary,
[data-theme="dark"] .badge-teal,
[data-theme="dark"] .badge-rose {
  background: rgba(110, 166, 229, 0.14);
  color: #9cc9fb;
}

[data-theme="dark"] .badge-gold {
  background: rgba(224, 192, 120, 0.14);
  color: #e7c978;
}

[data-theme="dark"] .page-hero {
  background: linear-gradient(115deg, #091a35 0%, #14376f 58%, #285a9e 100%);
}

[data-theme="dark"] .hero {
  background: linear-gradient(115deg, #091322 0%, #0c192b 48%, #112a4b 100%);
}

[data-theme="dark"] .hero::before {
  border-color: rgba(123, 181, 244, 0.14);
  box-shadow: 0 0 0 50px rgba(98, 160, 229, 0.035), 0 0 0 100px rgba(98, 160, 229, 0.02);
}

[data-theme="dark"] .hero-banner-tag,
[data-theme="dark"] .floating-badge {
  background: rgba(17, 33, 54, 0.88);
  border-color: #2a4261;
  color: #a9cbf3;
}

[data-theme="dark"] .hero-title .highlight {
  color: #84baf7;
}

[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .hero-feature-item {
  color: #c2cde0;
}

[data-theme="dark"] .hero-subtitle strong,
[data-theme="dark"] .offer-title,
[data-theme="dark"] .dept-card-title,
[data-theme="dark"] .service-card h3,
[data-theme="dark"] .team-info h3,
[data-theme="dark"] .section-title,
[data-theme="dark"] .stat-info h3 {
  color: #edf5ff;
}

[data-theme="dark"] .hero-image-wrapper {
  border-color: rgba(159, 197, 239, 0.18);
}

[data-theme="dark"] .gift-banner,
[data-theme="dark"] .free-promo-box {
  background: linear-gradient(120deg, #0a1c39 0%, #173d7c 100%);
}

[data-theme="dark"] .gift-banner-btn {
  background: #eaf3ff;
  color: #173d7c;
}

[data-theme="dark"] .stats-section {
  background: #0c1829;
}

[data-theme="dark"] .stat-card {
  border-left-color: #243954;
}

[data-theme="dark"] .stat-icon,
[data-theme="dark"] .stat-card.derma .stat-icon,
[data-theme="dark"] .stat-card.teal .stat-icon,
[data-theme="dark"] .stat-card.gold .stat-icon {
  background: #172c48;
  color: #93c2f7;
}

[data-theme="dark"] .section-bg {
  background: linear-gradient(180deg, #0d1b2e 0%, #091524 100%);
}

[data-theme="dark"] .section-desc,
[data-theme="dark"] .stat-info p {
  color: #b5c2d5;
}

[data-theme="dark"] .offer-card,
[data-theme="dark"] .dept-card-preview,
[data-theme="dark"] .review-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .booking-form-box,
[data-theme="dark"] .booking-summary-sidebar,
[data-theme="dark"] .contact-info-card {
  border-color: #263d5a;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .offer-card.featured {
  border-color: #4979b7;
  box-shadow: 0 15px 35px rgba(31, 85, 160, 0.16);
}

[data-theme="dark"] .offer-category,
[data-theme="dark"] .price-label,
[data-theme="dark"] .price-amount,
[data-theme="dark"] .price-prefix,
[data-theme="dark"] .price-currency {
  color: #9fcaff;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .booking-form-box select,
[data-theme="dark"] .booking-form-box textarea {
  background: #0c192a;
  border-color: #2b4261;
  color: #edf5ff;
}

[data-theme="dark"] .nav-menu {
  background: rgba(12, 25, 43, 0.98);
  border-color: #293f5d;
}

/* ========================================================================
   Clinical calm direction - a quieter, patient-first presentation.
   ======================================================================== */

body {
  line-height: 1.9;
}

.top-bar > .container .top-bar-badge,
.footer .top-bar-badge {
  display: none;
}

.top-bar {
  min-height: 34px;
  color: rgba(255, 255, 255, 0.84);
}

.top-bar-info {
  gap: 1rem;
}

.header {
  height: 78px;
  box-shadow: 0 2px 14px rgba(16, 40, 80, 0.035);
}

.header.scrolled {
  height: 72px;
  box-shadow: 0 8px 22px rgba(16, 40, 80, 0.08);
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: none;
}

.logo-title {
  font-size: 1.08rem;
}

.nav-link {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0;
}

.btn {
  border-radius: 8px;
  font-weight: 700;
}

.header-actions .btn.btn-sm {
  padding: 0.58rem 0.85rem;
}

.btn-primary {
  background: #1d477f;
  box-shadow: 0 7px 16px rgba(29, 71, 127, 0.18);
}

.btn-primary:hover {
  background: #173b6b;
  box-shadow: 0 10px 20px rgba(29, 71, 127, 0.2);
}

.hero {
  padding: 5.4rem 0 4.7rem;
  background: #f8fafc;
}

.hero::before {
  display: none;
}

.hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 5rem;
}

.hero-content {
  gap: 1.5rem;
}

.hero-banner-tag {
  color: #315889;
  border-color: #d7e1ed;
  box-shadow: none;
  font-size: 0.82rem;
}

.hero-title {
  max-width: 630px;
  font-size: clamp(2.55rem, 3.75vw, 3.55rem);
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -0.04em;
}

.hero-title .highlight {
  color: #315b93;
}

.hero-subtitle {
  max-width: 610px;
  color: #5f6f84;
  font-size: 1rem;
  line-height: 2;
}

.hero-subtitle strong {
  color: #1e477f;
}

.hero-features-list {
  gap: 0.3rem 1.2rem;
}

.hero-feature-item {
  color: #465a74;
  font-size: 0.84rem;
}

.hero-feature-item i {
  color: #4c7cae;
  font-size: 0.76rem;
}

.hero-actions {
  margin-top: 0.7rem;
}

.hero-image-wrapper {
  border: 1px solid #dbe4ee;
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(23, 49, 84, 0.1);
}

.hero-image {
  height: 470px;
}

.floating-badge-2 {
  display: none;
}

.floating-badge {
  right: -0.8rem;
  bottom: -0.8rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(19, 45, 80, 0.1);
}

.floating-badge .icon-box {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 1rem;
}

.floating-badge-text h4 {
  font-size: 0.8rem;
}

.floating-badge-text p {
  font-size: 0.69rem;
}

.care-note {
  margin-top: 3rem;
  padding: 1.35rem 1.6rem;
  color: #2d4d77;
  border: 1px solid #d5e2ee;
  border-radius: 14px;
  background: #ffffff;
}

.care-note-inner,
.care-note-content {
  display: flex;
  align-items: center;
}

.care-note-inner {
  justify-content: space-between;
  gap: 1.2rem;
}

.care-note-content {
  gap: 0.9rem;
}

.care-note-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #315b93;
  border-radius: 50%;
  background: #eaf2f9;
}

.care-note-text h3 {
  margin-bottom: 0.05rem;
  color: #1b406f;
  font-size: 1rem;
  font-weight: 800;
}

.care-note-text p {
  color: #697b91;
  font-size: 0.84rem;
}

.care-note-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #244f89;
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
}

.care-note-btn:hover {
  color: #153864;
}

.stats-section {
  padding: 2.9rem 0;
  background: #ffffff;
}

.stat-card {
  gap: 0.9rem;
  padding: 0.65rem 1.35rem;
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 1.2rem;
}

.stat-info h3 {
  font-size: 0.9rem;
}

.stat-info p {
  font-size: 0.75rem;
}

.section {
  padding: 6rem 0;
}

.section-header {
  max-width: 660px;
  margin-bottom: 3.2rem;
}

.section-title {
  font-size: clamp(1.9rem, 2.8vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.section-desc {
  font-size: 0.96rem;
}

.offer-card,
.dept-card-preview,
.review-card,
.team-card,
.service-card,
.faq-item,
.booking-form-box,
.booking-summary-sidebar,
.contact-info-card {
  border-color: #dde5ed;
  box-shadow: none;
}

.offer-card,
.dept-card-preview {
  border-radius: 14px;
}

.offer-card:hover,
.dept-card-preview:hover,
.team-card:hover,
.service-card:hover {
  transform: translateY(-3px);
  border-color: #b4c7dc;
  box-shadow: 0 13px 26px rgba(25, 52, 91, 0.07);
}

.offer-card.featured {
  border-color: #c5d4e4;
  box-shadow: none;
}

.offer-image-box,
.dept-card-img-box {
  height: 215px;
}

.offer-ribbon {
  top: 14px;
  left: 14px;
}

.footer {
  background: #0f294d;
}

@media (max-width: 1180px) and (min-width: 769px) {
  .nav-menu {
    top: 78px;
  }
}

@media (min-width: 1181px) and (max-width: 1320px) {
  .header-container {
    gap: 0.35rem;
  }

  .nav-menu {
    gap: 0;
  }

  .nav-link {
    padding-right: 0.38rem;
    padding-left: 0.38rem;
    font-size: 0.77rem;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.8rem;
  }
}

@media (max-width: 768px) {
  .header {
    height: 70px;
  }

  .header.scrolled {
    height: 68px;
  }

  .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-image {
    height: 310px;
  }

  .care-note {
    margin-top: 2rem;
    padding: 1.2rem;
  }

  .care-note-inner,
  .care-note-content {
    align-items: flex-start;
  }

  .care-note-inner {
    flex-direction: column;
  }

  .care-note-btn {
    padding-right: 3.35rem;
  }

  .dept-detail-block,
  .dept-detail-block.reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.25rem;
  }

  .dept-detail-media,
  .dept-detail-content,
  .service-card-item {
    min-width: 0;
  }

  .services-list-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-list-grid .service-card-item[style] {
    grid-column: auto !important;
  }

  .service-card-name {
    overflow-wrap: anywhere;
  }
}

[data-theme="dark"] .header {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .btn-primary {
  background: #356ba9;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .btn-primary:hover {
  background: #427bbd;
}

[data-theme="dark"] .hero {
  background: #091627;
}

[data-theme="dark"] .hero-banner-tag,
[data-theme="dark"] .floating-badge,
[data-theme="dark"] .care-note {
  background: #10223a;
  border-color: #29435f;
}

[data-theme="dark"] .hero-title .highlight,
[data-theme="dark"] .care-note-icon,
[data-theme="dark"] .care-note-btn {
  color: #9ecbfb;
}

[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .hero-feature-item,
[data-theme="dark"] .care-note-text p {
  color: #bac8da;
}

[data-theme="dark"] .hero-subtitle strong,
[data-theme="dark"] .care-note-text h3 {
  color: #edf5ff;
}

[data-theme="dark"] .care-note-icon {
  background: #173556;
}

[data-theme="dark"] .stats-section {
  background: #0b192b;
}

[data-theme="dark"] .offer-card,
[data-theme="dark"] .dept-card-preview,
[data-theme="dark"] .review-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .booking-form-box,
[data-theme="dark"] .booking-summary-sidebar,
[data-theme="dark"] .contact-info-card {
  border-color: #263e5b;
}

/* ========================================================================
   Arabic / English language switcher
   ======================================================================== */

html[dir="ltr"] {
  direction: ltr;
}

.language-toggle-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #dce5f0;
  border-radius: 50%;
  background: #f4f7fb;
  color: #244f89;
  font-family: 'Outfit', 'Cairo', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  transition: var(--transition-fast);
}

.language-toggle-btn:hover {
  border-color: #94b4d8;
  background: #eaf2fb;
  color: #173d72;
}

html[dir="ltr"] .nav-link::after {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

html[dir="ltr"] .hero-content,
html[dir="ltr"] .dept-detail-content,
html[dir="ltr"] .contact-info-card,
html[dir="ltr"] .booking-form-box,
html[dir="ltr"] .booking-summary-sidebar {
  text-align: left;
}

html[dir="ltr"] .form-control,
html[dir="ltr"] select,
html[dir="ltr"] textarea {
  text-align: left;
}

html[dir="ltr"] .floating-badge-1 {
  right: auto;
  left: -0.8rem;
}

html[dir="ltr"] .footer-contact-item,
html[dir="ltr"] .footer-link {
  text-align: left;
}

@media (min-width: 1025px) {
  .header-actions > a.btn {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  html[dir="ltr"] .hero-content {
    text-align: center;
  }
}

/* Keep the LTR mobile drawer outside the viewport until it is opened. */
@media (max-width: 1180px) {
  html[dir="ltr"] .nav-menu {
    right: auto;
    left: -100%;
    border-left: 0;
    border-right: 1px solid #e2e9f3;
    transition: left 0.28s ease;
  }

  html[dir="ltr"] .nav-menu.active {
    right: auto;
    left: 0;
  }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  html[dir="ltr"] .nav-menu.active {
    left: 1rem;
  }
}

@media (max-width: 768px) {
  .floating-actions {
    top: 9.5rem;
    bottom: auto;
    left: 1rem;
    gap: 0;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .floating-phone,
  .floating-scroll-top {
    display: none;
  }

  .language-toggle-btn {
    width: 38px;
    height: 38px;
    font-size: 0.72rem;
  }
}

[data-theme="dark"] .language-toggle-btn {
  background: #16263d;
  border-color: #2b4261;
  color: #b8d8fa;
}

[data-theme="dark"] .language-toggle-btn:hover {
  background: #1c3453;
  border-color: #5d8ec5;
}

/* Refined English presentation: lighter typography and clearer spacing. */
html[dir="ltr"] body,
html[dir="ltr"] button,
html[dir="ltr"] input,
html[dir="ltr"] select,
html[dir="ltr"] textarea {
  font-family: 'Outfit', Arial, sans-serif;
  letter-spacing: 0;
}

html[dir="ltr"] .hero-title,
html[dir="ltr"] .page-hero-title,
html[dir="ltr"] .section-title,
html[dir="ltr"] .dept-card-title,
html[dir="ltr"] .offer-title,
html[dir="ltr"] .care-step h3 {
  font-family: 'Outfit', Arial, sans-serif;
}

html[dir="ltr"] .hero-title {
  max-width: 610px;
  font-size: clamp(2.45rem, 3.1vw, 3.3rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.045em;
}

html[dir="ltr"] .hero-subtitle {
  max-width: 570px;
  font-size: 1rem;
  line-height: 1.85;
}

html[dir="ltr"] .nav-link {
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

html[dir="ltr"] .logo-title {
  font-family: 'Outfit', Arial, sans-serif;
  font-weight: 700;
}

/* In English, quick actions belong on the image side, not over the copy. */
html[dir="ltr"] .floating-actions {
  right: 1.5rem;
  left: auto;
}

@media (min-width: 1025px) and (max-width: 1600px) {
  .header-actions > a.btn {
    display: none !important;
  }
}

@media (min-width: 1181px) and (max-width: 1600px) {
  html[dir="ltr"] .header-container {
    gap: 0.8rem;
  }

  html[dir="ltr"] .nav-menu {
    gap: 0.1rem;
  }

  html[dir="ltr"] .nav-link {
    padding-right: 0.42rem;
    padding-left: 0.42rem;
  }
}

@media (max-width: 1024px) {
  html[dir="ltr"] .hero-title {
    max-width: 620px;
    font-size: clamp(2.2rem, 7.5vw, 3rem);
  }
}

@media (max-width: 768px) {
  html[dir="ltr"] .floating-actions {
    right: 1rem;
    top: 6.9rem;
    bottom: auto;
    gap: 0;
  }

  html[dir="ltr"] .hero-title {
    line-height: 1.22;
  }

  /* Keep a single, unobtrusive WhatsApp action clear of the hero CTAs. */
  html[dir="ltr"] .floating-btn {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  html[dir="ltr"] .floating-phone,
  html[dir="ltr"] .floating-scroll-top {
    display: none;
  }
}

/* Mobile WhatsApp edge tab: visible, polished, and clear of page content. */
@media (max-width: 768px) {
  .floating-actions {
    left: 0;
  }

  .floating-whatsapp {
    width: auto;
    min-width: 96px;
    height: 46px;
    padding: 0 0.85rem;
    gap: 0.42rem;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-left: 0;
    border-radius: 0 16px 16px 0;
    box-shadow: 0 10px 24px rgba(22, 120, 68, 0.24);
  }

  .floating-whatsapp::after {
    content: 'واتساب';
    font-family: 'Cairo', system-ui, sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
  }

  html[dir="ltr"] .floating-actions {
    right: 0;
    left: auto;
  }

  html[dir="ltr"] .floating-whatsapp {
    width: auto;
    border-right: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 16px 0 0 16px;
  }

  html[dir="ltr"] .floating-whatsapp::after {
    content: 'WhatsApp';
    font-family: 'Outfit', Arial, sans-serif;
  }
}

.mobile-theme-menu-btn {
  display: none !important;
}

@media (max-width: 1180px) {
  .mobile-theme-menu-btn {
    width: 100%;
    margin-top: 0.55rem;
    padding: 0.78rem 0.85rem !important;
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    background: #f2f6fb;
    border: 1px solid #dfe8f3;
    border-radius: 12px;
    color: #244f89;
    text-align: start;
  }

  .mobile-theme-menu-btn::after {
    display: none;
  }

  [data-theme="dark"] .mobile-theme-menu-btn {
    background: #162a43;
    border-color: #2d4765;
    color: #c8e1fb;
  }
}

/* Premium WhatsApp action — aligned with Maro's calm clinical identity. */
.floating-whatsapp {
  background: linear-gradient(135deg, #0b2341 0%, #1f5b91 100%);
  color: #f8fbff;
  border: 1px solid rgba(166, 205, 241, 0.5);
  box-shadow: 0 10px 28px rgba(8, 35, 65, 0.25);
}

.floating-whatsapp:hover {
  background: linear-gradient(135deg, #102d50 0%, #286aa4 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(8, 35, 65, 0.3);
}

.floating-whatsapp:focus-visible {
  outline: 3px solid rgba(152, 193, 238, 0.45);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .floating-actions,
  html[dir="ltr"] .floating-actions {
    top: auto;
    right: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: auto;
    inset-inline-end: 14px;
    gap: 0;
  }

  .floating-whatsapp,
  html[dir="ltr"] .floating-whatsapp {
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
    gap: 0;
    border: 1px solid rgba(166, 205, 241, 0.5);
    border-radius: 15px;
    box-shadow: 0 12px 28px rgba(8, 35, 65, 0.24);
  }

  .floating-whatsapp::after {
    display: none;
  }
}
