/* ==========================================================================
   AYURVATI NURSING HOME CARE - MASTER STYLESHEET (#responsive Standard)
   Location: Tirupati, Andhra Pradesh
   Zero-Overflow Fluid Architecture, Pure CSS3, WCAG 2.1 AA Accessible
   ========================================================================== */

:root {
  /* Fluid Container Dimensions */
  --container-max: 1240px;
  --container-pad: clamp(1rem, 4vw, 2.5rem);

  /* Color System */
  --primary: #0d9488;         /* Healthcare Teal */
  --primary-dark: #0f766e;    /* Deep Teal */
  --primary-light: #ccfbf1;   /* Pale Mint */
  --primary-tint: #f0fdfa;    /* Soft Tint Background */
  
  --secondary: #0284c7;       /* Clinical Sky Blue */
  --secondary-dark: #0369a1;
  --secondary-light: #e0f2fe;

  --accent-green: #16a34a;    /* WhatsApp Green */
  --accent-green-hover: #15803d;

  --emergency-red: #dc2626;   /* 24/7 Emergency Accent */
  --emergency-bg: #fef2f2;

  --navy: #0f172a;            /* Slate Navy Trust */
  --navy-light: #1e293b;
  --slate: #334155;           /* Body Text */
  --slate-light: #64748b;     /* Subdued Text */
  --border: #e2e8f0;          /* Clean Line Dividers */
  --bg-light: #f8fafc;        /* Soft Canvas */
  --white: #ffffff;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.04);

  /* Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Typography & Transitions */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Reset, Box-Sizing & Root Layout
   Strictly NO quick-fix overflow: hidden on body or html
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--slate);
  background-color: var(--bg-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  /* Extra bottom padding on mobile to ensure floating bar never obscures content */
  padding-bottom: 5rem;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

img, picture, svg, video, iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

/* Accessible Focus Ring */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Typography Hierarchy & Word-Wrap Rules
   Prevent awkward splits; Use text-wrap: balance & pretty
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.85rem, 4vw + 0.5rem, 2.85rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw + 0.4rem, 2.2rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: clamp(1.15rem, 1.8vw + 0.2rem, 1.5rem);
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  font-size: clamp(0.95rem, 1vw + 0.5rem, 1.05rem);
  color: var(--slate);
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: pretty;
}

.text-lead {
  font-size: clamp(1.05rem, 1.2vw + 0.4rem, 1.22rem);
  color: var(--navy-light);
  line-height: 1.55;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Layout Container
   Fluid min(), max(), clamp() — Zero Horizontal Scroll
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* --------------------------------------------------------------------------
   Top Emergency Alert Bar
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: var(--navy);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .top-bar {
    display: none !important;
  }
}

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

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.top-bar-badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #ef4444;
  animation: pulse-dot 1.5s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #cbd5e1;
  transition: var(--transition);
}

.top-bar-link:hover {
  color: var(--white);
}

.top-bar-link strong {
  color: #38bdf8;
}

/* --------------------------------------------------------------------------
   Site Header & Main Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0; /* Prevents overflow */
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-name span {
  color: var(--primary);
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--slate-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.nav-link {
  font-weight: 600;
  color: var(--slate);
  padding: 0.5rem 0.25rem;
  transition: var(--transition);
  position: relative;
  font-size: 0.95rem;
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: min(320px, 90vw);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem 0;
  z-index: 50;
  max-height: 70vh;
  overflow-y: auto;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--slate);
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: var(--primary-tint);
  color: var(--primary-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .site-header .header-actions .btn-call {
    display: none !important;
  }
  .nav-container {
    min-height: 3.75rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
  .brand-logo {
    gap: 0.5rem;
  }
  .brand-icon {
    width: 38px;
    height: 38px;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .brand-tagline {
    font-size: 0.65rem;
  }
}

.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background-color: var(--white);
  border-radius: var(--radius-md);
  color: var(--navy);
  cursor: pointer;
  transition: var(--transition);
}

.mobile-toggle:hover {
  background-color: var(--bg-light);
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
  .mobile-toggle {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Mobile Navigation Drawer (Accessible Modal Pattern)
   -------------------------------------------------------------------------- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-drawer.open {
  visibility: visible;
  opacity: 1;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 380px);
  background-color: var(--white);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.mobile-drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.drawer-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--bg-light);
  color: var(--slate);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.drawer-nav {
  padding: 1rem 0;
}

.drawer-link {
  display: block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid #f1f5f9;
  font-size: 1rem;
}

.drawer-link:hover, .drawer-link.active {
  background-color: var(--primary-tint);
  color: var(--primary);
}

.drawer-services-title {
  padding: 0.75rem 1.5rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-light);
}

.drawer-sublink {
  display: block;
  padding: 0.5rem 1.5rem 0.5rem 2rem;
  font-size: 0.9rem;
  color: var(--slate);
  border-bottom: 1px solid #f8fafc;
}

.drawer-sublink:hover {
  color: var(--primary);
  background-color: var(--primary-tint);
}

.drawer-footer {
  margin-top: auto;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background-color: var(--bg-light);
}

/* --------------------------------------------------------------------------
   Buttons & Touch Targets (Min 44x44px / 48px)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  min-height: 48px;
  line-height: 1.2;
}

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

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--navy);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

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

.btn-whatsapp {
  background-color: var(--accent-green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
  gap: 0.65rem;
}

.btn-whatsapp:hover {
  background-color: var(--accent-green-hover);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}

.btn-whatsapp i,
.btn-whatsapp .ri-whatsapp-fill,
.btn-whatsapp .ri-whatsapp-line {
  font-size: 1.45rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn-whatsapp:hover i,
.btn-whatsapp:hover .ri-whatsapp-fill {
  transform: scale(1.15);
}

.btn-lg.btn-whatsapp i,
.btn-lg .ri-whatsapp-fill {
  font-size: 1.7rem;
}

.btn-sm.btn-whatsapp i,
.btn-sm .ri-whatsapp-fill {
  font-size: 1.25rem;
}

.btn-call {
  background-color: var(--emergency-red);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
  gap: 0.55rem;
}

.btn-call:hover {
  background-color: #b91c1c;
}

.btn-call i,
.btn-call .ri-phone-fill,
.btn-call .ri-phone-line {
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-lg.btn-call i,
.btn-lg .ri-phone-fill {
  font-size: 1.45rem;
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
  min-height: 44px;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs-bar {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  font-size: 0.875rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  color: var(--slate-light);
}

.breadcrumbs a {
  color: var(--slate);
  transition: var(--transition);
}

.breadcrumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumbs .separator {
  color: #94a3b8;
  font-size: 0.75rem;
}

.breadcrumbs .current {
  color: var(--navy);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 50%, #f0f9ff 100%);
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.hero-title {
  color: var(--navy);
  margin-bottom: 1rem;
}

.hero-title .highlight {
  color: var(--primary);
  display: inline-block;
}

.hero-description {
  margin-bottom: 1.75rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .hero-actions .btn-call,
  .hero-actions .btn-whatsapp {
    display: none !important;
  }
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.7rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.hero-stat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #99f6e4;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-tint), #ccfbf1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #99f6e4;
  flex-shrink: 0;
}

.stat-text {
  min-width: 0;
}

.stat-text strong {
  display: block;
  font-size: clamp(0.9rem, 1.05vw, 1.02rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  white-space: nowrap;
}

.stat-text span {
  display: block;
  font-size: 0.8rem;
  color: var(--slate-light);
  line-height: 1.3;
  margin-top: 0.15rem;
  white-space: nowrap;
}

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

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background-color: var(--white);
  border: 4px solid var(--white);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.hero-floating-card {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .hero-image-wrapper {
    overflow: visible;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }
  .hero-image-wrapper img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 3px solid var(--white);
  }
  .hero-floating-card {
    position: static;
    margin-top: 0.65rem;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    background: var(--white);
  }
  .floating-card-info {
    gap: 0.4rem;
  }
  .floating-card-info .check-icon {
    font-size: 1.1rem;
  }
  .floating-card-info strong {
    font-size: 0.82rem !important;
  }
  .floating-card-info span {
    font-size: 0.72rem !important;
  }
  .hero-floating-card .btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }
}

.floating-card-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.floating-card-info .check-icon {
  color: var(--accent-green);
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Sections General
   -------------------------------------------------------------------------- */
.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-alt {
  background-color: var(--white);
}

.section-tint {
  background-color: var(--primary-tint);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.section-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--slate-light);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Cards & Fluid Grids
   Strictly use minmax(min(100%, 280px), 1fr) for zero overflow
   -------------------------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

/* Service Card */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: #99f6e4;
}

.service-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.85rem;
  background-color: var(--bg-light);
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.04);
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  min-width: 0;
}

.service-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0;
  transition: var(--transition);
  flex-shrink: 0;
}

.service-card:hover .service-card-icon {
  background-color: var(--primary);
  color: var(--white);
}

.service-card-title {
  font-size: clamp(0.92rem, 3.5vw, 1.12rem);
  font-weight: 700;
  margin: 0;
  color: var(--navy);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.service-card-title a {
  color: inherit;
  text-decoration: none;
}

.service-card-title a:hover {
  color: var(--primary);
}

.service-card-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--slate);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.learn-more-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition);
}

.learn-more-link:hover {
  color: var(--primary-dark);
  gap: 0.45rem;
}

/* Feature Card */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  min-width: 0;
}

.feature-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background-color: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

.feature-card-title {
  font-size: clamp(0.95rem, 3.5vw, 1.1rem);
  font-weight: 700;
  margin: 0;
  color: var(--navy);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

@media (max-width: 768px) {
  .feature-card {
    padding: 1rem 1.15rem;
  }
  .service-card {
    padding: 1rem;
  }
}

/* --------------------------------------------------------------------------
   In-Patient Care Spotlight Section (#responsive standard)
   -------------------------------------------------------------------------- */
.in-patient-spotlight {
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 50%, #f1f5f9 100%);
  border-top: 1px solid #ccfbf1;
  border-bottom: 1px solid #ccfbf1;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.spotlight-card {
  background: var(--white);
  border: 2px solid #99f6e4;
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: 0 10px 30px -5px rgba(13, 148, 136, 0.12);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .spotlight-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #ccfbf1;
  color: #0f766e;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.spotlight-title {
  font-size: clamp(1.35rem, 3.5vw, 2.1rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.spotlight-desc {
  font-size: 1rem;
  color: var(--slate);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.spotlight-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 600px) {
  .spotlight-pillars {
    grid-template-columns: 1fr 1fr;
  }
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background-color: var(--bg-light);
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.pillar-icon {
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.pillar-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.pillar-text span {
  font-size: 0.8rem;
  color: var(--slate-light);
  line-height: 1.35;
  display: block;
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

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

.spotlight-image-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.spotlight-floating-stat {
  position: relative;
  margin-top: 0.85rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.spotlight-floating-stat strong {
  font-size: 0.88rem;
  display: block;
  color: #38bdf8;
}

.spotlight-floating-stat span {
  font-size: 0.78rem;
  color: #cbd5e1;
}

/* Service Card Featured Badge */
.service-card-featured {
  border-color: #0d9488;
  box-shadow: 0 4px 20px -2px rgba(13, 148, 136, 0.15);
}

.service-card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.03em;
}

/* Process Step Card */
.process-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.process-step-num {
  position: absolute;
  top: -14px;
  left: 20px;
  background: var(--primary);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   Filter Buttons for Services
   -------------------------------------------------------------------------- */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--slate);
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
}

.filter-btn:hover {
  background-color: var(--primary-tint);
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.25);
}

/* --------------------------------------------------------------------------
   Accordions (FAQ)
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--slate);
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

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

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease-out;
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  color: var(--slate);
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Service Detail Page Styles
   -------------------------------------------------------------------------- */
.service-header {
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--border);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
  }
}

.service-content-body {
  background: var(--white);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.service-content-body h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.service-content-body h2:first-child {
  margin-top: 0;
}

.feature-check-list {
  list-style: none;
  margin: 1.25rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0.85rem;
}

.feature-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: var(--bg-light);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid #f1f5f9;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-light);
}

.feature-check-item .check-bullet {
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Sidebar Widget */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 6rem;
  margin-bottom: 2rem;
}

.sidebar-widget-title {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-services-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate);
  transition: var(--transition);
}

.sidebar-service-link:hover, .sidebar-service-link.active {
  background-color: var(--primary-tint);
  color: var(--primary-dark);
  font-weight: 600;
}

.emergency-banner-widget {
  background: linear-gradient(135deg, var(--navy), #1e3a5f);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  margin-top: 1.5rem;
}

.emergency-banner-widget h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.emergency-banner-widget p {
  color: #cbd5e1;
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   Contact Form & Location Cards
   -------------------------------------------------------------------------- */
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

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

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--white);
  color: var(--navy);
  transition: var(--transition);
  font-size: 0.95rem;
  min-height: 48px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}

.contact-info-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.service-areas-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.area-chip {
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--slate);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--navy);
  color: #cbd5e1;
  padding: 4rem 0 2.5rem;
  margin-top: auto;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-title {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-link:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   Floating Action Buttons & Mobile Sticky Bottom Bar
   Never overlap or obscure critical UI
   -------------------------------------------------------------------------- */
.fab-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .fab-container {
    display: none !important;
  }
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.fab:hover {
  transform: scale(1.08);
}

.fab-whatsapp {
  background-color: var(--accent-green);
}

.fab-whatsapp:hover {
  background-color: var(--accent-green-hover);
}

.fab-call {
  background-color: var(--primary);
}

.fab-call:hover {
  background-color: var(--primary-dark);
}

/* Mobile Sticky Bottom Bar (Viewports <= 768px) */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background-color: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0.6rem 0.75rem;
  gap: 0.5rem;
}

@media (min-width: 769px) {
  .mobile-bottom-bar {
    display: none !important;
  }
}

.mobile-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  white-space: nowrap;
  min-height: 44px;
}

.mobile-bar-btn i {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.mobile-bar-btn.btn-whatsapp i,
.mobile-bar-btn .ri-whatsapp-fill {
  font-size: 1.45rem;
}

/* --------------------------------------------------------------------------
   Accessibility & Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print Stylesheet */
@media print {
  .top-bar, .site-header, .fab-container, .mobile-bottom-bar, .site-footer {
    display: none !important;
  }
  body {
    background: white;
    color: black;
    padding-bottom: 0;
  }
}
