@import url('https://fonts.googleapis.com/css2?family=Jura:wght@300;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ---------- ROOT VARIABLES (DEFAULT LIGHT MODE) ---------- */
:root {
  --primary-red: #d32f4c;
  --primary-red-hover: #b8233d;
  --primary-blue: #0d6efd;
  --primary-blue-light: #0a58ca;
  --text-dark: #1e2532;
  --text-muted: #6b7280;

  --bg-gradient: linear-gradient(135deg, #fff5f6 0%, #ffffff 50%, #fbf3f4 100%);
  --hero-secondary-bg: linear-gradient(180deg, #e6f1ff 0%, #ffffff 100%);
  --card-bg: #ffffff;
  --card-shadow: rgba(0, 0, 0, 0.08);
  --footer-bg: #f1f5f9;

  --nav-bg: rgba(255, 255, 255, 0.7);
  --nav-border: rgba(255, 255, 255, 0.9);
  --nav-shadow: 0 10px 30px rgba(211, 47, 76, 0.08);
}

/* ---------- AUTOMATIC DARK MODE (SYSTEM PREFERENCE) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #f5f5f7;
    --text-muted: #a1a1a6;

    --bg-gradient: linear-gradient(135deg, #121215 0%, #1a1a20 50%, #141418 100%);
    --hero-secondary-bg: linear-gradient(180deg, #111a2e 0%, #161b26 100%);
    --card-bg: #1e1e24;
    --card-shadow: rgba(0, 0, 0, 0.4);
    --footer-bg: #121215;

    --nav-bg: rgba(22, 22, 26, 0.75);
    --nav-border: rgba(255, 255, 255, 0.15);
    --nav-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}

/* ---------- MANUAL THEME OVERRIDES (FROM HEADER TOGGLE) ---------- */
[data-theme="light"] {
  --text-dark: #1e2532;
  --text-muted: #6b7280;
  --bg-gradient: linear-gradient(135deg, #fff5f6 0%, #ffffff 50%, #fbf3f4 100%);
  --hero-secondary-bg: linear-gradient(180deg, #e6f1ff 0%, #ffffff 100%);
  --card-bg: #ffffff;
  --card-shadow: rgba(0, 0, 0, 0.08);
  --footer-bg: #f1f5f9;
}

[data-theme="dark"] {
  --text-dark: #f5f5f7;
  --text-muted: #a1a1a6;
  --bg-gradient: linear-gradient(135deg, #121215 0%, #1a1a20 50%, #141418 100%);
  --hero-secondary-bg: linear-gradient(180deg, #111a2e 0%, #161b26 100%);
  --card-bg: #1e1e24;
  --card-shadow: rgba(0, 0, 0, 0.4);
  --footer-bg: #121215;
}

/* ---------- BASE ---------- */
body {
  margin: 0;
  font-family: "Poppins", "Jura", sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
}

/* ---------- HERO SECTION ---------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  color: var(--text-dark);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
  margin: 0;
}

/* ---------- HERO STATS ---------- */
.hero-stats {
  display: flex;
  gap: 1rem;
}

.stat-badge {
  background: var(--card-bg);
  color: var(--text-dark);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 8px 20px var(--card-shadow);
  border: 1px solid rgba(211, 47, 76, 0.15);
}

.red-icon {
  color: var(--primary-red);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.1rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- HERO BUTTONS ---------- */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: all 200ms ease;
}

.btn-primary {
  background-color: var(--primary-red);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(211, 47, 76, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: var(--card-bg);
  color: var(--primary-red);
  box-shadow: 0 8px 20px var(--card-shadow);
  border: 1px solid rgba(211, 47, 76, 0.2);
}

.btn-outline:hover {
  background-color: rgba(211, 47, 76, 0.08);
  transform: translateY(-2px);
}

/* ---------- MOCKUP DISPLAY ---------- */
.hero-mockup {
  display: flex;
  justify-content: center;
}

.mockup-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
}

/* ---------- SECONDARY HERO ---------- */
.hero {
  background: var(--hero-secondary-bg);
  text-align: center;
  padding: 120px 20px 80px;
}

.hero img {
  max-width: 160px;
  border-radius: 20px;
  animation: float 4s ease-in-out infinite;
  box-shadow: 0 8px 20px var(--card-shadow);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero h1 {
  font-weight: 700;
  color: var(--primary-blue);
  margin-top: 20px;
  font-size: 2.8rem;
}

.hero p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 20px auto 30px;
  font-size: 1.1rem;
}

/* ---------- FEATURES ---------- */
.features {
  background: var(--card-bg);
  padding: 80px 0;
}

.feature {
  text-align: center;
  padding: 25px 20px;
  transition: 0.3s ease;
  border-radius: 15px;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--card-shadow);
}

.feature img {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
}

.feature h5 {
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.feature a {
  font-weight: 500;
  color: var(--primary-blue);
  font-size: 0.95rem;
  transition: 0.3s;
}

.feature a:hover {
  color: var(--primary-blue-light);
}

/* ---------- HOSPITALS ---------- */
.hospitals-section {
  padding: 80px 0;
}

.hospitals-section h4 {
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 40px;
  color: var(--primary-blue);
}

.scrolling-wrapper-hospitals {
  display: flex;
  overflow-x: auto;
  gap: 25px;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

.hospital-card {
  flex: 0 0 auto;
  background: var(--card-bg);
  border-radius: 15px;
  width: 180px;
  text-align: center;
  transition: 0.3s;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hospital-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px var(--card-shadow);
}

.hospital-card img {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  height: 120px;
  object-fit: cover;
  width: 100%;
}

.hospital-card p {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 10px 0 15px;
  color: var(--primary-blue);
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--footer-bg);
  text-align: center;
  padding: 30px 0;
  font-size: 14px;
  color: var(--text-muted);
}

footer a {
  color: var(--primary-blue);
}

/* ---------- RESPONSIVE MEDIA QUERIES ---------- */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-stats,
  .hero-actions {
    justify-content: center;
  }
}