/* ==========================================================================
   SAFANA360 - Design System & Modern Medical Tech Stylesheet
   ========================================================================== */

:root {
  /* Brand Palette */
  --primary-hsl: 158, 85%, 32%;
  --primary: #0d8253;
  --primary-hover: #0a6942;
  --primary-light: #e6f7f0;
  --primary-glow: rgba(13, 130, 83, 0.25);
  --primary-gradient: linear-gradient(135deg, #0d8253 0%, #10b981 100%);
  
  --secondary: #065f46;
  --accent-cyan: #0284c7;
  --accent-cyan-light: #e0f2fe;
  --accent-amber: #f59e0b;
  --accent-amber-light: #fef3c7;
  --accent-rose: #e11d48;
  --accent-rose-light: #ffe4e6;
  --accent-purple: #7c3aed;
  --accent-purple-light: #ede9fe;

  /* Neutrals */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-alt: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #94a3b8;
  --text-inverse: #ffffff;
  
  --border-light: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-focus: #10b981;
  
  /* HayatCare Venture Accents */
  --hayat-gold: #d97706;
  --hayat-blue: #0284c7;
  --hayat-emerald: #0d8253;
  
  /* Elevation & Glassmorphism */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.14);
  --shadow-primary: 0 10px 25px -5px rgba(13, 130, 83, 0.35);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-arabic: 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-fast: 150ms ease;
  --transition-normal: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg-body: #0b111e;
  --bg-surface: #111a2e;
  --bg-surface-elevated: #18233c;
  --bg-alt: #0e1626;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-inverse: #0b111e;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --primary-light: rgba(16, 185, 129, 0.15);
  
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 24px 50px rgba(0, 0, 0, 0.6);
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] {
  font-family: var(--font-arabic);
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-body);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Background Subtle Medical Grid */
.bg-ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg-ambient-glow .glow-1 {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(13, 130, 83, 0) 70%);
  filter: blur(60px);
}

.bg-ambient-glow .glow-2 {
  position: absolute;
  top: 40%;
  left: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.1) 0%, rgba(2, 132, 199, 0) 70%);
  filter: blur(80px);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5.5rem 0;
}

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

p {
  color: var(--text-muted);
}

.gradient-text {
  background: linear-gradient(135deg, #0d8253 0%, #10b981 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Buttons & Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(13, 130, 83, 0.2);
}

.badge-pulse::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -5px rgba(13, 130, 83, 0.45);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-alt);
  border-color: var(--text-subtle);
  transform: translateY(-1px);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary-light);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .site-header {
  background-color: rgba(17, 26, 46, 0.85);
  border-bottom-color: var(--border-light);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.75rem;
}

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

.brand-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d8253, #10b981);
  border-radius: 12px;
  color: white;
  box-shadow: 0 4px 12px rgba(13, 130, 83, 0.3);
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0d8253;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-tagline {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-normal);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background-color: var(--bg-surface);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background-color: var(--bg-alt);
  color: var(--primary);
}

.lang-toggle {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0 0.75rem;
  width: auto;
  border-radius: var(--radius-full);
}

.mobile-nav-toggle {
  display: none;
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  position: relative;
}

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

.hero-content {
  max-width: 650px;
}

.hero-badge-wrap {
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.hero-stat-item .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.hero-stat-item .stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-weight: 500;
}

/* Hero Visual Showcase */
.hero-preview-frame {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-normal);
}

.hero-preview-frame:hover {
  transform: translateY(-4px);
}

.preview-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.browser-dots span:nth-child(1) { background-color: #ef4444; }
.browser-dots span:nth-child(2) { background-color: #f59e0b; }
.browser-dots span:nth-child(3) { background-color: #10b981; }

.hero-img-wrap {
  overflow: hidden;
  border-radius: var(--radius-md);
  position: relative;
  background-color: var(--bg-alt);
}

.hero-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.floating-card-metric {
  position: absolute;
  bottom: -20px;
  right: -15px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: float 4s ease-in-out infinite;
}

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

.floating-icon-pill {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Value Props / Problem-Solution Section */
.swiss-cheese-banner {
  background: linear-gradient(135deg, rgba(13, 130, 83, 0.04) 0%, rgba(2, 132, 199, 0.05) 100%);
  border: 1px solid rgba(13, 130, 83, 0.12);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-bottom: 4rem;
}

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

.section-subtitle {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  margin-bottom: 1.15rem;
}

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

/* Feature Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: rgba(13, 130, 83, 0.3);
  box-shadow: var(--shadow-lg);
}

.pillar-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
}

.icon-green { background: #e6f7f0; color: #0d8253; }
.icon-cyan { background: #e0f2fe; color: #0284c7; }
.icon-amber { background: #fef3c7; color: #d97706; }
.icon-purple { background: #ede9fe; color: #7c3aed; }
.icon-rose { background: #ffe4e6; color: #e11d48; }
.icon-indigo { background: #e0e7ff; color: #4338ca; }

.pillar-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pillar-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
  flex-grow: 1;
}

.pillar-points {
  margin-top: 1.25rem;
  list-style: none;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pillar-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.pillar-points li svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Interactive Platform Explorer */
.interactive-demo-section {
  background-color: var(--bg-alt);
  position: relative;
}

.demo-tabs-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.demo-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.demo-tab-btn:hover {
  color: var(--text-main);
  border-color: var(--primary);
}

.demo-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(13, 130, 83, 0.3);
}

.demo-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.demo-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.demo-screen-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.demo-screen-header {
  padding: 1rem 1.5rem;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-screen-body {
  padding: 1.5rem;
}

.demo-screenshot-view {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  display: block;
}

/* Multidisciplinary Handover Interactive Simulator */
.handover-sim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.discipline-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  background: var(--bg-surface);
  position: relative;
  transition: all var(--transition-fast);
}

.discipline-card.completed {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.02);
}

.discipline-card.pending {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.02);
}

.discipline-card.flagged {
  border-color: #e11d48;
  background: rgba(225, 29, 72, 0.03);
}

.discipline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.discipline-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.status-badge {
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.status-badge.complete { background: #e6f7f0; color: #0d8253; }
.status-badge.pending { background: #fef3c7; color: #d97706; }
.status-badge.review { background: #ede9fe; color: #7c3aed; }
.status-badge.critical { background: #ffe4e6; color: #e11d48; }

.discipline-details {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.discipline-details p {
  margin-bottom: 0.35rem;
}

/* Interactive Escalation Demo Box */
.escalation-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
}

.escalation-step-chain {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
  margin-top: 1.5rem;
}

.escalation-step {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-alt);
  position: relative;
  transition: all var(--transition-normal);
}

.escalation-step.active {
  border-color: var(--accent-amber);
  background: #fffbeb;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--text-subtle);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.escalation-step.active .step-num {
  background: var(--accent-amber);
}

/* Departments Supported */
.departments-section {
  padding: 5rem 0;
}

.dept-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

.dept-chip {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.dept-chip-icon {
  font-size: 1.35rem;
}

.dept-chip-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
}

.dept-modal-preview {
  margin-top: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
}

/* Interactive ROI & Impact Calculator */
.calculator-section {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-alt) 100%);
}

.calculator-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.calc-control-group {
  margin-bottom: 2rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.calc-val-bubble {
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9375rem;
}

.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #cbd5e1;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(13, 130, 83, 0.5);
  border: 2px solid white;
}

.calc-results-pane {
  background: linear-gradient(135deg, #092e1e 0%, #0d8253 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calc-res-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 1.25rem;
}

.calc-res-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.calc-res-num {
  font-size: 2.3rem;
  font-weight: 800;
  color: #34d399;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.calc-res-lbl {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Interoperability & EMR Section */
.interop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.emr-logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.emr-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-sm);
}

/* Intellectual Property & SAIP Patent Banner */
.patent-banner {
  background: var(--bg-surface);
  border: 1px solid rgba(13, 130, 83, 0.2);
  border-left: 6px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-md);
}

[dir="rtl"] .patent-banner {
  border-left: 1px solid rgba(13, 130, 83, 0.2);
  border-right: 6px solid var(--primary);
}

/* Modal for Request Demo / Contact */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-dialog {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-subtle);
  cursor: pointer;
  line-height: 1;
}

[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f172a;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  gap: 0.75rem;
  z-index: 2000;
  border-left: 4px solid var(--primary);
}

[dir="rtl"] .toast-notice {
  right: auto;
  left: 2rem;
  border-left: none;
  border-right: 4px solid var(--primary);
}

.toast-notice.show {
  display: flex;
  animation: slideUp 0.3s ease;
}

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

/* Footer */
.site-footer {
  background: #090e17;
  color: #94a3b8;
  padding: 5rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: #64748b;
  margin-top: 1rem;
  max-width: 320px;
  font-size: 0.9rem;
}

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

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

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #34d399;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
  color: #64748b;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    margin: 0 auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats-strip {
    justify-content: center;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calculator-card {
    grid-template-columns: 1fr;
  }
  .interop-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .hero-title {
    font-size: 2.35rem;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .escalation-step-chain {
    grid-template-columns: 1fr;
  }
  .handover-sim-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ==========================================================================
   HayatCare Group Portfolio & Venture Showcase Styles
   ========================================================================== */

.venture-spotlight-card {
  background: var(--bg-surface);
  border: 2px solid rgba(13, 130, 83, 0.35);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  margin-bottom: 3.5rem;
}

.venture-ribbon {
  background: linear-gradient(135deg, #0d8253, #10b981);
  color: white;
  padding: 0.5rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.04em;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.portfolio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-lg);
}

.portfolio-card.flagship {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(13, 130, 83, 0.03) 100%);
}

.portfolio-status {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

[dir="rtl"] .portfolio-status {
  right: auto;
  left: 1.5rem;
}

.portfolio-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.portfolio-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

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

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.portfolio-tag {
  background: var(--bg-alt);
  color: var(--text-muted);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.group-mission-banner {
  background: linear-gradient(135deg, #091a13 0%, #0d2b1f 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
}

.group-mission-banner h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.group-mission-banner p {
  color: #cbd5e1;
  font-size: 1.1rem;
  max-width: 800px;
  line-height: 1.8;
}

.vision-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.vision-pill {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

