:root {
  --primary: #1a4f8b; /* Deep Medical Blue */
  --secondary: #27ae60; /* Trust Green */
  --accent: #e74c3c; /* Contrast for CTAs */
  --bg-light: #f8fbff; /* Soft Blue Tint */
  --text-dark: #111827; /* Near black for sharpness */
  --text-mid: #4b5563; /* Crisp gray */
  --white: #ffffff;
  --font-main: "Inter", sans-serif;
  --font-heading: "Plus Jakarta Sans", sans-serif;
  --shadow: 0 10px 30px rgba(26, 79, 139, 0.08); /* Softer shadow */
  --border-radius: 12px;
}

/* RTL Support */
[dir="rtl"] {
  --font-main: "IBM Plex Sans Arabic", sans-serif;
  --font-heading: "IBM Plex Sans Arabic", sans-serif;
  font-family: var(--font-main);
  text-align: right;
}

[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .btn-primary {
  margin-right: 0;
  margin-left: initial;
}

[dir="rtl"] .footer-contact {
  text-align: right;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1140px; /* Industry standard for 1200px screens */
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

/* Typography Standards */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
}

h2 {
  letter-spacing: -0.02em;
}

.text-center {
  text-align: center;
}

/* Standard Section Headers */
.section-header {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 15px;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary);
  border-radius: 3px;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* Standardizing Card Spacing */
.card,
.visual-card,
.stat-card,
.roadmap-card {
  border: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

/* Header & Nav */
.main-header {
  background: var(--white);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none !important;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  letter-spacing: -0.04em;
}

.logo:visited,
.logo:hover,
.logo:active {
  text-decoration: none !important;
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none !important;
  list-style-type: none !important;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none !important;
  list-style-type: none !important;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.lang-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #f1f5f9;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.lang-pill:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-primary-nav {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(26, 79, 139, 0.2);
  display: inline-block;
}

.btn-primary-nav:hover {
  background: var(--secondary);
  box-shadow: 0 6px 15px rgba(39, 174, 96, 0.3);
  transform: translateY(-1px);
}

/* Main CTA Button */
.btn-primary {
  background: var(--primary);
  color: var(--white) !important;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 20px rgba(26, 79, 139, 0.2);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(39, 174, 96, 0.3);
}

.btn-primary:active {
  transform: translateY(-1px);
}

/* Hero Section Upgrade */
.hero {
  background:
    linear-gradient(
      135deg,
      rgba(26, 79, 139, 0.92) 0%,
      rgba(13, 44, 82, 0.96) 100%
    ),
    url("/images/hero/bg-main.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 280px;
  display: flex;
  align-items: center;
  padding: 40px 0 60px;
  color: var(--white);
  position: relative;
  clip-path: ellipse(150% 100% at 50% 0%);
  text-align: center;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 25px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--white);
}

.hero p {
  font-size: 1.4rem;
  max-width: 800px;
  margin: 0 auto 40px;
  opacity: 0.95;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

/* Specialties / Anatomy Section */
.flex-special {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 60px 0;
}

.spec-text {
  flex: 1;
}

.spec-text ul li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

/* Modern Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.visual-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.visual-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(26, 79, 139, 0.15);
}

.card-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 30px;
  flex-grow: 1;
}

.card-body h3 {
  margin-bottom: 15px;
  color: var(--primary);
  font-size: 1.5rem;
}

/* Span classes for Bento */
.span-4 {
  grid-column: span 4;
}
.span-6 {
  grid-column: span 6;
}
.span-12 {
  grid-column: span 12;
}

@media (max-width: 900px) {
  .span-4,
  .span-6 {
    grid-column: span 12;
  }
  .card-img-top {
    height: 200px;
  }
}

/* Mistakes Section */
.mistakes-section {
  background: var(--bg-light);
}

.mistake-badge {
  display: inline-block;
  background: #ffeaea;
  color: var(--accent);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Footer */
.main-footer {
  background: #0d1b2a;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 20px;
}

.grid-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.main-footer h3,
.main-footer h4 {
  color: var(--white);
  margin-bottom: 20px;
}

.main-footer ul {
  list-style: none;
}

.main-footer ul li {
  margin-bottom: 10px;
}

.main-footer a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 50px;
  text-align: center;
  font-size: 0.9rem;
}

/* CTA Box Style - Compact Version */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, #0d2c52 100%);
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  color: var(--white);
  max-width: 600px;
  margin: 0 auto 80px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cta-box h2 {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 10px;
  font-weight: 700;
}

.cta-box p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

/* WhatsApp Sticky */
.whatsapp-sticky {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: 0.3s;
  text-decoration: none;
}

.whatsapp-sticky:hover {
  transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 60px 0 80px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .hero-btns {
    flex-direction: column;
    gap: 15px;
  }
  .btn-whatsapp {
    margin-left: 0 !important;
  }
  .grid-footer {
    grid-template-columns: 1fr;
  }
  .nav-center {
    display: none;
  }
  .lang-text {
    display: none; /* Only show icon/glob on mobile if needed */
  }
  .lang-pill {
    padding: 8px;
  }
  .flex-special {
    flex-direction: column;
    text-align: center;
  }
}

/* Form Styles */
.quote-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

[dir="rtl"] .form-group {
  text-align: right;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary);
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 79, 139, 0.1);
}

.form-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 10px;
}

/* Roadmap UI Components */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: start;
}

.roadmap-card {
  background: var(--white);
  padding: 50px 30px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f0f0;
  position: relative;
  transition: all 0.3s ease;
}

.roadmap-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(26, 79, 139, 0.1);
}

.roadmap-card.featured {
  border: 2px solid var(--secondary);
  background: #fdfdfd;
}

.month-pill {
  position: absolute;
  top: 20px;
  inset-inline-start: 30px;
  background: var(--bg-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.roadmap-card.featured .month-pill {
  background: var(--secondary);
  color: var(--white);
}

.roadmap-card h4 {
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 5px;
}

.phase-desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  font-weight: 600;
  margin-bottom: 25px;
}

.roadmap-bullets {
  list-style: none !important;
  padding: 0;
  margin: 0;
}

.roadmap-bullets li {
  padding-inline-start: 28px;
  position: relative;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-dark);
}

.roadmap-bullets li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
    color: var(--secondary);
    font-weight: 700;
}

/* Capabilities Checklist */
.capabilities-section {
    background: var(--bg-light);
    padding: 60px 0;
    border-bottom: 1px solid #e2e8f0;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.capability-item {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    font-weight: 600;
    color: var(--primary);
    opacity: 0;
    transform: translateY(10px);
    animation: reveal-capability 0.4s ease forwards;
}

.capability-check {
    width: 20px;
    height: 20px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transform: scale(0);
    animation: pop-check 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes reveal-capability {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pop-check {
    to { transform: scale(1); }
}

/* Mobile optimizations */
@media (max-width: 600px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    .capability-item {
        padding: 12px 15px;
    }
}

