/* ===================================
   5eCare Healthcare - Refined UI
   ================================== */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700&display=swap");

/* ============ CSS Variables ============ */
:root {
  /* Brand Colors */
  --color-primary: #2d966c;
  --color-primary-light: #48bb8c;
  --color-primary-dark: #1f7655;
  --color-secondary: #4a90e2;
  --color-accent: #58c5c7;
  --brand-green: #00d4aa;
  --brand-dark: #0f172a;
  --text-dark: #1e293b;
  --text-light: #64748b;

  /* Backgrounds & Text */
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  /* Slate 50 */
  --color-bg-subtle: #f1f5f9;
  /* Slate 100 */
  --color-bg-dark: #0f172a;
  /* Slate 900 */

  --color-text-primary: #1e293b;
  /* Slate 800 */
  --color-text-secondary: #64748b;
  /* Slate 500 */
  --color-text-light: #94a3b8;
  /* Slate 400 */

  /* Borders & Shadows */
  --color-border: #e2e8f0;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05),
    0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05),
    0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-card: 0 20px 25px -5px rgb(0 0 0 / 0.05),
    0 8px 10px -6px rgb(0 0 0 / 0.01);
  --shadow-color-primary: rgba(45, 150, 108, 0.2);
  --gradient-hero: linear-gradient(
    120deg,
    rgba(72, 187, 140, 0.14),
    rgba(74, 144, 226, 0.12),
    rgba(88, 197, 199, 0.1)
  );
  --gradient-soft: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  --gradient-card: linear-gradient(
    145deg,
    rgba(72, 187, 140, 0.08),
    rgba(74, 144, 226, 0.08)
  );
  --gradient-dark: linear-gradient(180deg, #0f172a 0%, #0b1426 100%);

  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --section-padding-desktop: 70px;
  --section-padding-mobile: 40px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter",
    sans-serif;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  line-height: 1.75;
  overflow-x: hidden;
  opacity: 1 !important;
  visibility: visible !important;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "SF Pro Display", "Poppins", "Inter", sans-serif;
  line-height: 1.25;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

/* Fluid Typography */
h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
}

p {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
  max-width: 640px;
  line-height: 1.7;
}

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

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

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

.section,
.platform-section,
.feature-section,
.pmjay-section,
.locker-section,
.trust-section,
.more-services-section,
.cta-section {
  padding: var(--section-padding-desktop) 0;
}

.section-light {
  background: #eef2f6;
  /* Slightly darker than #f7fbff */
}

.more-services-section {
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.cta-section {
  text-align: center;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.cta-container {
  max-width: 700px;
  margin: 0 auto;
}

.section > .container {
  min-height: 200px;
}

.section {
  padding: var(--section-padding-desktop) 0;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-lg {
  margin-bottom: 3rem;
}

/* ============ Header ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  height: 36px;
  width: auto;
  display: block;
}

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

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

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

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

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  background: none;
  border: none;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  border-radius: 50px;
  /* Pill shape is friendlier */
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(90deg, #00b4db 0%, #0083b0 100%);
  color: white;
  box-shadow: 0 4px 12px var(--shadow-color-primary);
  height: 52px;
  border-radius: 40px;
  font-size: 16px;
  padding: 0 2rem;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #0083b0 0%, #00b4db 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px var(--shadow-color-primary);
}

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

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

/* ============ Hero Section ============ */
.hero {
  padding: 80px 0;
  background: linear-gradient(180deg, #f6faff 0%, #ffffff 100%);
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.hero-text {
  max-width: 480px;
}

.hero-text .highlight {
  color: var(--color-primary);
}

.hero-text h1 {
  font-size: clamp(2.3rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
}

.hero-text p {
  font-size: 18px;
  color: #555;
  margin: 20px 0;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.store-badge {
  height: 48px;
  width: auto;
  display: block;
  margin: 15px 0;
}

/* Phone styling simplification for better scaling */
.hero-visual img {
  max-height: 473px;
  width: 385px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.05));
  object-fit: contain;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* ============ Platform Section ============ */
.platform-section {
  text-align: center;
  background: var(--gradient-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.platform-content {
  max-width: 800px;
  margin: 0 auto;
}

.platform-description {
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(74, 144, 226, 0.1);
  color: var(--color-secondary);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* ============ Features (Zig-Zag) ============ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 0;
}

/* Specific gap for Vitals section */
#services .feature-row {
  gap: 80px;
}

.feature-section {
  background: linear-gradient(180deg, #f0f4f8 0%, #e2e8f0 100%);
  padding: var(--section-padding-desktop) 0;
}

.feature-content {
  flex: 1;
  max-width: 500px;
}

.feature-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-section:nth-of-type(odd) {
  background: linear-gradient(180deg, #ffffff 0%, #f3fbf7 100%);
}

.feature-section:nth-of-type(even) {
  background: #ffffff;
  padding: var(--section-padding-desktop) 0;
}

#features .feature-row {
  min-height: 480px;
}

#abha .feature-row {
  gap: 5.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  #features .feature-content {
    padding-left: 40px;
  }
}

.pmjay-section {
  background: linear-gradient(180deg, #ffffff 0%, #f9fef9 100%);
}

.locker-section {
  background: #f8fafc;
  padding: var(--section-padding-desktop) 0;
}

/* Specific adjustments for images */
.abha-composite-image img,
.feature-visual img {
  width: 100%;
  max-width: 460px;
  max-height: 520px;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

#features .feature-visual img {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.trust-line,
.abha-trust-line {
  font-size: 12px;
  color: #6f7a85;
  margin-top: 8px;
}

/* Vitals section tweaks */
.vitals-section {
  padding: 60px 0 !important;
  background: linear-gradient(180deg, #f0f7ff 0%, #eefaff 100%) !important;
}

.vitals-section .feature-row {
  gap: 5rem;
  align-items: center;
}

.vitals-section .feature-content h2 {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  font-weight: 700;
}

.vitals-section .feature-content p {
  color: #4a5568;
  line-height: 1.8;
}

.vitals-section .feature-list li {
  margin-bottom: 10px;
}

.vitals-section .feature-visual {
  position: relative;
}

.vitals-section .feature-visual img {
  max-width: 460px;
  max-height: 520px;
  height: auto;
  box-shadow: none;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
  background: transparent;
}

.vitals-section .vitals-chart-card {
  position: absolute;
  top: 16%;
  right: -18px;
  width: 180px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(4px);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: grid;
  gap: 10px;
}

.vitals-section .vitals-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #2d3748;
  font-weight: 600;
}

.vitals-section .vitals-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.vitals-section .vitals-chart-bars span {
  flex: 1;
  display: block;
  background: linear-gradient(180deg, #00b4db 0%, #0083b0 100%);
  border-radius: 6px;
  opacity: 0.9;
}

.vitals-section .vitals-chart-bars .bar-1 {
  height: 38px;
}

.vitals-section .vitals-chart-bars .bar-2 {
  height: 52px;
}

.vitals-section .vitals-chart-bars .bar-3 {
  height: 44px;
}

.vitals-section .vitals-chart-bars .bar-4 {
  height: 60px;
}

.vitals-section .vitals-chart-bars .bar-5 {
  height: 48px;
}

.vitals-section .vitals-chart-footer {
  font-size: 11px;
  color: #4a5568;
}

.vitals-section .btn-primary {
  min-height: 52px;
  border-radius: 40px;
  padding: 0 1.75rem;
  background: linear-gradient(90deg, #00b4db 0%, #0083b0 100%);
  box-shadow: 0 8px 16px rgba(0, 132, 176, 0.25);
}

/* ABHA hero tweaks */
#abha.feature-section {
  padding: 40px 0 80px !important;
}

#abha .feature-content h2 {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
}

#abha .feature-content p {
}

#abha .feature-list {
  margin: 1.5rem 0 1.25rem;
}

#abha .feature-list li {
  margin-bottom: 8px;
}

#abha .feature-list li:last-child {
  margin-bottom: 0;
}

#abha .abha-composite-image img {
  max-width: 460px;
  max-height: 520px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
  animation: float 4s ease-in-out infinite;
}

#abha .btn-primary {
  min-height: 52px;
  border-radius: 40px;
  padding: 0 1.75rem;
}

#abha .abha-trust-line {
  font-size: 12px;
  color: #6f7a85;
  margin-top: 8px;
}

#abha.feature-section + .section-light {
  margin-top: 40px;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0);
  }
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0;
}

.feature-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
}

.feature-list li::before {
  content: "\f00c";
  /* FontAwesome check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--color-primary);
}

.pmjay-head,
.locker-head,
.trust-head {
  margin-bottom: 40px !important;
  text-align: left;
}

.pmjay-head p,
.locker-head p,
.trust-head p {
  margin-left: 0;
  margin-right: 0;
}

/* ============ Cards Grid System (PMJAY & Locker) ============ */
/* Unified Card Styles */
.pmjay-grid,
.locker-grid,
.trust-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.pmjay-card,
.locker-card,
.trust-card,
.card {
  background: #fff;
  border-radius: 18px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  height: 100%;
  /* Make sure cards in a row match height */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.pmjay-card {
  justify-content: space-between;
}

.pmjay-card::before,
.locker-card::before,
.trust-card::before,
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  transition: var(--transition);
}

.pmjay-card:hover::before,
.locker-card:hover::before,
.trust-card:hover::before,
.card:hover::before {
  background: var(--color-primary);
}

.pmjay-card:hover,
.locker-card:hover,
.trust-card:hover,
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}

/* Icon Containers */
.pmjay-icon,
.locker-icon,
.trust-icon,
.icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

/* Specific Icon Colors */
.pmjay-amber {
  background: #f59e0b;
  box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.4);
}

.pmjay-green,
.trust-green {
  background: #10b981;
  box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.locker-blue,
.trust-blue {
  background: #3b82f6;
  box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.locker-emerald {
  background: #059669;
  box-shadow: 0 10px 20px -5px rgba(5, 150, 105, 0.4);
}

.locker-purple,
.trust-purple {
  background: #8b5cf6;
  box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.4);
}

/* ============ All-in-One Services Section ============ */
.all-services-section {
  background: #ffffff;
  padding: var(--section-padding-desktop) 0;
}

.services-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 20px;
}

.services-title-col {
  flex: 1;
  min-width: 300px;
}

.services-desc-col {
  flex: 1;
  min-width: 300px;
  padding-top: 10px;
}

.services-cta-col {
  padding-top: 10px;
}

.service-badge {
  display: inline-block;
  background: #fde68a;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.services-title-col h2 {
  font-size: clamp(2.2rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  font-weight: 700;
  color: #111827;
  max-width: 400px;
}

.services-desc-col p {
  font-size: 1.05rem;
  color: #6b7280;
  max-width: 400px;
  line-height: 1.7;
}

.btn-dark {
  background: #111827;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-dark:hover {
  background: #374151;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Grid Layout */
.services-grid-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
}

.services-col-stacked {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.service-card {
  background: #f9fafb;
  border-radius: 24px;
  padding: 32px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.service-card:hover {
  background: #f3f4f6;
  transform: translateY(-5px);
}

.service-card-text {
  flex: 1;
}

.service-card-text h3 {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}

.service-card-text p {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 0;
}

.service-card-visual {
  flex: 0 0 280px;
}

/* Tall Card Specifics */
.services-col-tall .service-card {
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.services-col-tall .service-card-visual {
  width: 100%;
  flex: 1;
  margin-top: 40px;
  display: flex;
  align-items: flex-end;
}

/* Dummy UI Elements */
.dummy-booking-ui,
.dummy-collab-ui,
.dummy-analytics-ui {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 20px;
  width: 100%;
}

/* Booking UI */
.dummy-booking-ui {
  display: flex;
  align-items: center;
  gap: 15px;
}

.db-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.db-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.db-name {
  font-weight: 700;
  color: #111827;
  font-size: 14px;
}

.db-status {
  font-size: 12px;
  color: #6b7280;
}

.btn-pay-sm {
  background: #111827;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  /* Increased padding for better touch target */
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-start;
  margin-top: 8px;
  /* Increased margin */
  width: 100%;
  /* Make button full width of the info block for better alignment */
  text-align: center;
}

.btn-pay-sm:hover {
  background: #374151;
}

/* Collab UI */
.dummy-collab-ui {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.dc-row:last-child {
  border-bottom: none;
}

.dc-tag {
  font-weight: 600;
  color: #4b5563;
  font-size: 14px;
}

.dc-avatars {
  display: flex;
  align-items: center;
}

.dc-avatars img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -8px;
}

.dc-avatars img:first-child {
  margin-left: 0;
}

.dc-more {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  margin-left: -8px;
  font-weight: 700;
}

/* Blood Bank UI */
.dummy-blood-bank-ui {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bb-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.bb-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fee2e2;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.bb-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bb-name {
  font-weight: 700;
  color: #111827;
  font-size: 14px;
}

.bb-updated {
  font-size: 11px;
  color: #6b7280;
}

.bb-stock-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bb-label {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
}

.bb-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.bb-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.bb-badge.available {
  background: #dcfce7;
  color: #166534;
}

.bb-badge.low {
  background: #ffedd5;
  color: #c2410c;
}

/* Analytics UI / Report Background */
.services-col-tall .service-card.ai-report-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Center content vertically */
  align-items: center;
  text-align: center;
  background: #f9fafb;
  /* Restore background */
  overflow: visible;
  /* Allow content to be seen */
  padding: 40px;
  /* Ensure consistent padding */
  padding-top: 60px !important;
}

/* Remove pseudo-element for blurred background */
.services-col-tall .service-card.ai-report-card::before {
  display: none;
}

.services-col-tall .service-card-text {
  padding: 0;
  margin-bottom: 40px;
  /* Increased margin for better separation */
  width: 100%;
}

.services-col-tall .service-card-text h3 {
  margin-bottom: 12px;
}

.services-col-tall .service-card-text p {
  margin-left: auto;
  margin-right: auto;
  max-width: 80%;
  /* Constrain width for better readability */
}

.services-col-tall .tall-visual {
  width: 100%;
  height: auto;
  margin-top: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  border-radius: 0;
}

/* Dummy Report UI Styles */
.dummy-report-ui {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 20px;
  width: 100%;
  max-width: 320px;
  /* Limit width for better look */
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  /* Reset text align for the card content */
}

.dr-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.dr-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #e0e7ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.dr-info {
  display: flex;
  flex-direction: column;
}

.dr-title {
  font-weight: 700;
  color: #111827;
  font-size: 14px;
}

.dr-status {
  font-size: 11px;
  color: #166534;
  font-weight: 600;
}

.dr-metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dr-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.dr-label {
  color: #4b5563;
  font-weight: 500;
}

.dr-value {
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}

.dr-value.success {
  background: #dcfce7;
  color: #166534;
}

.dr-value.warning {
  background: #ffedd5;
  color: #c2410c;
}

.dr-insight {
  background: #f5f3ff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.dr-insight-icon {
  color: #7c3aed;
  font-size: 14px;
  margin-top: 2px;
}

.dr-insight p {
  font-size: 11px;
  color: #5b21b6;
  margin: 0;
  line-height: 1.4;
  text-align: left;
}

/* Responsive */
@media (max-width: 820px) {
  .services-grid-layout {
    grid-template-columns: 1fr;
  }

  .service-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-card-visual {
    width: 100%;
    margin-top: 20px;
    flex: auto;
  }
}

@media (max-width: 768px) {
  .services-header-row {
    flex-direction: column;
    gap: 20px;
  }

  .services-title-col h2 {
    font-size: 32px;
  }
}

.icon-primary {
  background: rgba(45, 150, 108, 0.1);
  color: var(--color-primary);
}

.icon-secondary {
  background: rgba(74, 144, 226, 0.1);
  color: var(--color-secondary);
}

.icon-accent {
  background: rgba(88, 197, 199, 0.1);
  color: var(--color-accent);
}

.service-card {
  text-align: center;
}

.service-icon {
  margin: 0 auto var(--spacing-md);
  font-size: 2rem;
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.cta-actions {
  justify-content: center;
  margin-top: 2.5rem;
}

.card-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

/* Trust Section Specifics */
.trust-section {
  background: var(--gradient-dark);
  color: white;
}

.trust-section h2,
.trust-section p {
  color: white;
}

.trust-section p {
  opacity: 0.8;
}

.trust-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  backdrop-filter: blur(10px);
}

.trust-card h3 {
  color: white;
}

.trust-card p {
  color: #cbd5e1;
}

.trust-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.trust-grid {
  gap: 28px;
}

.trust-icon {
  margin-bottom: 18px;
  width: 54px;
  height: 54px;
}

/* ============ Footer ============ */
.footer {
  background: #0f172a;
  color: white;
  padding: 50px 0 40px;
}

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

.footer-section h4 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

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

.footer-links a {
  color: #cbd5e1;
  transition: 0.3s;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #64748b;
  font-size: 14px;
  opacity: 0.7;
  margin-top: 40px;
}

/* ============ Animations ============ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.45s ease;
}

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

/* ============ Dark Mode ============ */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0b1220;
    --color-bg-alt: #0f172a;
    --color-bg-subtle: #101827;
    --color-text-primary: #e2e8f0;
    --color-text-secondary: #94a3b8;
    --color-text-light: #cbd5e1;
    --color-border: rgba(255, 255, 255, 0.08);
    --gradient-hero: radial-gradient(
        circle at 20% 20%,
        rgba(88, 197, 199, 0.14),
        transparent 40%
      ),
      linear-gradient(135deg, #0f172a 0%, #0b1220 100%);
    --gradient-soft: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
    --gradient-dark: linear-gradient(180deg, #050910 0%, #0a101d 100%);
  }

  body {
    background-color: var(--color-bg);
  }

  .section-light,
  .platform-section {
    background: var(--gradient-soft);
  }

  .hero {
    background: var(--gradient-hero);
  }

  .feature-section,
  .pmjay-section,
  .locker-section,
  .more-services-section,
  .cta-section {
    background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
  }

  .card,
  .pmjay-card,
  .locker-card,
  .trust-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--color-text-primary);
  }

  .trust-card {
    background: rgba(255, 255, 255, 0.06);
  }

  .header {
    background: rgba(11, 18, 32, 0.9);
    border-color: var(--color-border);
  }

  .hero-text p {
    color: var(--color-text-secondary);
  }

  .btn-outline {
    border-color: var(--color-text-secondary);
    color: var(--color-text-primary);
  }

  .footer {
    background: #050910;
  }

  .footer-links a {
    color: #cbd5e1;
  }
}

/* ============ RESPONSIVE BREAKPOINTS ============ */

/* Tablet & Mobile (≤ 992px) */
@media (max-width: 992px) {
  :root {
    --header-height: 70px;
    --section-padding-desktop: 56px;
    --section-padding-mobile: 32px;
  }

  /* Header / Nav */
  .nav-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    position: absolute;
    top: 80px;
    right: 20px;
    width: 220px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    gap: 1.5rem;
    z-index: 1000;
  }

  .nav-menu.active {
    display: block;
  }

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

  /* Hero */
  .hero {
    padding-top: 100px;
    padding-bottom: 3rem;
    min-height: auto;
  }

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

  .hero-text {
    margin: 0 auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual img {
    max-height: 330px;
    max-width: 286px;
    margin-top: 20px;
  }

  /* === FEATURES: unified mobile layout === */
  /* Text always above image: ABHA, Locker, Vitals, etc. */
  .feature-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: left;
  }

  .feature-content {
    order: 1;
    margin: 0 auto;
    padding: 0 0.75rem;
  }

  .feature-visual,
  .abha-composite-image {
    order: 2;
    margin: 0 auto;
  }

  .feature-visual img,
  .abha-composite-image img {
    max-width: 260px !important;
  }

  .feature-list,
  #abha .feature-list {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }

  .feature-list li {
    justify-content: flex-start;
    align-items: flex-start;
  }

  /* PMJAY / Trust section headings */
  .pmjay-head,
  .locker-head,
  .trust-head {
    margin-bottom: 2rem;
  }

  .pmjay-head p,
  .locker-head p,
  .trust-head p {
    max-width: 100%;
  }

  /* Grids (PMJAY, Trust, etc.) */
  .pmjay-grid,
  .locker-grid,
  .trust-grid,
  .service-grid,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pmjay-card,
  .locker-card,
  .trust-card {
    align-items: flex-start;
    text-align: left;
  }

  /* All-in-one Services grid */
  .services-grid-layout {
    grid-template-columns: 1fr;
  }

  .services-header-row {
    flex-direction: column;
    gap: 20px;
  }

  .services-title-col h2 {
    font-size: 32px;
  }

  .services-desc-col p {
    max-width: 100%;
  }

  .service-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .service-card-visual {
    width: 100%;
    margin-top: 20px;
    flex: auto;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    justify-items: center;
  }

  /* Typography tweaks */
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .platform-description {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .section,
  .platform-section,
  .feature-section,
  .pmjay-section,
  .trust-section,
  .more-services-section,
  .cta-section {
    padding: var(--section-padding-mobile) 0;
  }
}

/* Small Mobile (≤ 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .section,
  .platform-section,
  .feature-section,
  .pmjay-section,
  .trust-section,
  .more-services-section,
  .cta-section {
    padding: var(--section-padding-mobile) 0;
  }

  .hero-visual img {
    max-width: 240px !important;
    height: auto;
  }

  .platform-badge {
    transform: scale(0.9);
  }

  #features .feature-list li {
    margin-bottom: 6px;
  }

  #services .feature-visual img {
    max-width: 300px;
  }

  .service-card {
    padding: 22px !important;
  }
}
