/* ==========================================================================
   Madhav Nursing Services - Core Styling & Design System
   Color Scheme: Royal Navy Blue (#0A3977), Healing Leaf Green (#16A34A),
   Golden Accent (#F59E0B), Soft Ice Blue (#F0F7FF)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --primary: #0A3977;
  --primary-dark: #062550;
  --primary-light: #1E5AB0;
  --secondary: #16A34A;
  --secondary-dark: #15803D;
  --secondary-light: #DCFCE7;
  --accent: #F59E0B;
  --accent-light: #FEF3C7;
  --dark: #0F172A;
  --slate-600: #475569;
  --slate-500: #64748B;
  --light-bg: #F8FAFC;
  --ice-blue: #F0F7FF;
  --card-bg: #FFFFFF;
  --border: #E2E8F0;

  --gradient-primary: linear-gradient(135deg, #0A3977 0%, #16A34A 100%);
  --gradient-hero: linear-gradient(135deg, #062550 0%, #0A3977 50%, #0E53A7 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(240,247,255,0.85));

  --shadow-sm: 0 4px 6px -1px rgba(10, 57, 119, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(10, 57, 119, 0.1);
  --shadow-lg: 0 20px 40px -10px rgba(10, 57, 119, 0.15);
  --shadow-glow: 0 0 25px rgba(22, 163, 74, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--light-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

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

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

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

.section {
  padding: 5rem 0;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--secondary-light);
  color: var(--secondary-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--primary-dark);
}

.section-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--slate-600);
  max-width: 650px;
  margin-bottom: 3rem;
}

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

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

/* Top Utility Bar */
.top-bar {
  background-color: var(--primary-dark);
  color: #FFFFFF;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-item i {
  color: var(--secondary);
}

.top-bar-badge {
  background-color: var(--secondary);
  color: #FFFFFF;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.75rem;
  animation: pulse-glow 2s infinite;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon-svg {
  width: 48px;
  height: 48px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

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

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

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
  border-radius: 2px;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--secondary);
  color: #FFFFFF;
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--ice-blue);
  color: var(--primary-dark);
}

.btn-accent {
  background: var(--accent);
  color: var(--dark);
}

.btn-accent:hover {
  background: #E08E0B;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* Hero Section & Slider Carousel */
.hero {
  position: relative;
  background: var(--ice-blue);
  overflow: hidden;
  padding: 2.5rem 0 4rem;
}

.hero-slider-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--primary-dark);
}

.hero-slider {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.hero-slide {
  min-width: 100%;
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(6, 37, 80, 0.94) 0%, rgba(10, 57, 119, 0.82) 45%, rgba(10, 57, 119, 0.35) 100%);
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  padding: 4rem 4rem;
  max-width: 760px;
}

.hero-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.25rem;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  color: var(--secondary-light);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.hero-slide-title {
  font-size: 3.1rem;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.hero-slide-title span {
  color: var(--accent);
}

.hero-slide-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Slider Navigation Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.slider-btn:hover {
  background: var(--secondary);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(22, 163, 74, 0.6);
}

.slider-btn-prev { left: 1.5rem; }
.slider-btn-next { right: 1.5rem; }

.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  width: 34px;
  background: var(--accent);
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.12) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.25rem;
  background: #FFFFFF;
  border: 1px solid rgba(22, 163, 74, 0.3);
  border-radius: var(--radius-full);
  color: var(--secondary-dark);
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.hero-badge i {
  color: var(--secondary);
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.hero-title span.green-text {
  color: var(--secondary);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--slate-600);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--dark);
}

.feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--secondary-light);
  color: var(--secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

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

.hero-image-wrapper {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #FFFFFF;
}

.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.floating-card-1 {
  bottom: 25px;
  left: -25px;
  animation: float 4s ease-in-out infinite;
}

.floating-card-2 {
  top: 30px;
  right: -20px;
  animation: float 5s ease-in-out infinite 1s;
}

.float-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #FFFFFF;
}

.float-icon.blue { background: var(--primary); }
.float-icon.green { background: var(--secondary); }

.float-info h5 {
  font-size: 1rem;
  color: var(--primary-dark);
}

.float-info p {
  font-size: 0.8rem;
  color: var(--slate-500);
}

/* Quick Inquiry Box in Hero */
.quick-inquiry-box {
  margin-top: 2rem;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.quick-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 0.75rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
}

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

/* Stats Counter Section */
.stats-section {
  background: var(--gradient-primary);
  color: #FFFFFF;
  padding: 3.5rem 0;
  margin-top: -2rem;
  position: relative;
  z-index: 5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-card {
  text-align: center;
  position: relative;
}

.stat-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.service-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(10, 57, 119, 0.9);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.service-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.service-desc {
  color: var(--slate-600);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-bullets {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-bullets li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-600);
  margin-bottom: 0.4rem;
}

.service-bullets li i {
  color: var(--secondary);
}

/* Modal Popup for Service Details */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

/* Preloader Screen */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  position: relative;
}

.loader-logo-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(10, 57, 119, 0.18);
  animation: loader-pulse 2s infinite ease-in-out;
}

.loader-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3.5px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--secondary);
  border-bottom-color: var(--accent);
  animation: loader-spin 1.2s linear infinite;
}

@keyframes loader-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes loader-pulse {
  0%, 100% { transform: scale(0.96); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.loader-subtext {
  font-size: 0.9rem;
  color: var(--secondary-dark);
  font-weight: 600;
}

.logo-img {
  height: 56px;
  width: 56px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(10, 57, 119, 0.12);
  border: 2px solid var(--secondary);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--slate-600);
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: var(--primary);
  color: #FFFFFF;
}

/* Agreement Modal & Tabs Styling */
.agreement-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--ice-blue);
  padding: 0.4rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.tab-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--slate-600);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tab-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.agreement-box-content h3 {
  color: var(--primary-dark);
  font-size: 1.15rem;
  margin: 1.25rem 0 0.4rem;
}

.agreement-box-content p, .agreement-box-content ul {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.65;
}

.agreement-box-content ul {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

.modal-header-banner {
  height: 180px;
  background: var(--gradient-primary);
  color: #FFFFFF;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.modal-body {
  padding: 2rem;
}

.modal-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.modal-checklist {
  list-style: none;
}

.modal-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.modal-checklist i {
  color: var(--secondary);
  margin-top: 0.2rem;
}

/* Why Choose Us Section */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: #FFFFFF;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.why-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ice-blue);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
  transition: var(--transition);
}

.why-card:hover .why-icon {
  background: var(--primary);
  color: #FFFFFF;
}

.why-title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.why-desc {
  font-size: 0.9rem;
  color: var(--slate-600);
}

/* Process Timeline Section */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-card {
  background: #FFFFFF;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  position: relative;
}

.step-num {
  position: absolute;
  top: -15px;
  left: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--secondary);
  color: #FFFFFF;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.process-title {
  font-size: 1.1rem;
  margin: 0.75rem 0 0.5rem;
  color: var(--primary-dark);
}

.process-desc {
  font-size: 0.875rem;
  color: var(--slate-600);
}

/* ICU Equipment Banner */
.equipment-banner {
  background: var(--primary-dark);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
}

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

.equip-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.equip-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

.equip-item i {
  color: var(--accent);
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
  color: var(--slate-600);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.25rem;
  max-height: 300px;
}

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

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--gradient-hero);
  color: #FFFFFF;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--secondary-light);
  flex-shrink: 0;
}

.contact-text h5 {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
}

.contact-text p, .contact-text a {
  font-size: 1.1rem;
  font-weight: 600;
  color: #FFFFFF;
}

.contact-form-box {
  background: #FFFFFF;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

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

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Fixed Floating Action Buttons */
.fixed-floating-buttons {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1500;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.float-btn-whatsapp {
  background: #25D366;
}

.float-btn-whatsapp::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulse-ring 1.8s infinite;
}

.float-btn-phone {
  background: var(--primary);
}

.float-btn-phone::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary);
  animation: pulse-ring 2.2s infinite;
}

.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(0,0,0,0.35);
}

.float-tooltip {
  position: absolute;
  right: 70px;
  background: var(--dark);
  color: #FFFFFF;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
}

.float-btn:hover .float-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Mobile Bottom Navigation Action Bar */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  z-index: 1400;
  padding: 0.75rem 1rem;
}

.mobile-action-bar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-title {
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
}

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

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

.footer-links a:hover {
  color: var(--secondary-light);
  padding-left: 5px;
}

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

/* Animations Keyframes */
@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

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

/* Responsive Breakpoints & Mobile Optimization */
@media (max-width: 1024px) {
  .hero-slide-title { font-size: 2.4rem; }
  .hero-slide-content { padding: 3rem 2.5rem; max-width: 680px; }
  .services-grid, .why-us-grid, .process-steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stat-card:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Utility Bar & Header */
  .top-bar { font-size: 0.75rem; padding: 0.4rem 0; }
  .top-bar-info { gap: 0.75rem; justify-content: center; }
  .top-bar-item:nth-child(3) { display: none; } /* Hide address on small screens to save space */
  .top-bar-badge { display: none; }

  .header { height: 70px; }
  .nav-container { height: 70px; }
  .logo-img { width: 38px; height: 38px; }
  .logo-name { font-size: 1.25rem; }
  .logo-sub { font-size: 0.65rem; }
  .nav-actions { display: none; } /* Handled by mobile action bar */

  .mobile-toggle { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 42px; 
    height: 42px; 
    background: var(--ice-blue); 
    border-radius: var(--radius-sm); 
    color: var(--primary);
    font-size: 1.35rem;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: #FFFFFF;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    transition: left 0.3s ease-in-out;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    z-index: 999;
  }
  .nav-links.active { left: 0; }
  .nav-link { font-size: 1.1rem; width: 100%; border-bottom: 1px solid var(--light-bg); padding-bottom: 0.75rem; }

  /* Hero Slider Banner Mobile Optimization */
  .hero { padding: 1rem 0 2rem; }
  .hero-slider-wrapper { border-radius: var(--radius-md); }
  .hero-slide { min-height: 440px; background-position: center center; }
  .hero-slide-overlay {
    background: linear-gradient(180deg, rgba(6, 37, 80, 0.88) 0%, rgba(6, 37, 80, 0.95) 100%);
  }
  .hero-slide-content {
    padding: 2.25rem 1.25rem 2.75rem;
    max-width: 100%;
    text-align: center;
  }
  .hero-slide-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.85rem;
    margin: 0 auto 0.85rem;
  }
  .hero-slide-title {
    font-size: 1.65rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }
  .hero-slide-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
  }
  .hero-slide-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
  }
  .hero-slide-actions .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  /* Slider Navigation Controls Mobile */
  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .slider-btn-prev { left: 6px; }
  .slider-btn-next { right: 6px; }
  .slider-dots { bottom: 8px; gap: 0.4rem; }
  .slider-dot { width: 8px; height: 8px; }
  .slider-dot.active { width: 20px; }

  /* Quick Inquiry Box Mobile */
  .quick-inquiry-box {
    padding: 1.25rem 1rem !important;
    border-radius: var(--radius-md) !important;
    margin-top: 1.25rem !important;
  }
  .quick-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  .quick-form .form-control {
    font-size: 0.9rem !important;
    padding: 0.75rem 1rem !important;
  }
  .quick-form .btn {
    width: 100% !important;
    padding: 0.85rem 1rem !important;
  }

  /* Sections & Layout Grids */
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.8rem; }
  .section-desc { font-size: 0.95rem; }

  .hero-grid, 
  .services-grid, 
  .why-us-grid, 
  .process-steps, 
  .equipment-grid, 
  .reviews-grid, 
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Founder Section Mobile */
  #founder .container > div {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  #founder img {
    height: 300px !important;
  }
  #founder [style*="position: absolute"] {
    position: relative !important;
    right: 0 !important;
    bottom: 0 !important;
    margin-top: 1rem !important;
    max-width: 100% !important;
    text-align: center !important;
  }
  #founder [style*="display: flex; align-items: center; gap: 1rem;"] {
    flex-direction: column !important;
    width: 100% !important;
  }
  #founder [style*="display: flex; align-items: center; gap: 1rem;"] .btn {
    width: 100% !important;
  }
  #founder [style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* 1. Home ICU Setup Section Mobile Responsiveness */
  .equipment-banner {
    padding: 1.75rem 1.25rem !important;
    border-radius: var(--radius-md) !important;
  }
  .equip-banner-title {
    font-size: 1.5rem !important;
    margin: 0.75rem 0 !important;
    line-height: 1.25 !important;
  }
  .equip-banner-desc {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }
  .equip-list {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    margin: 1.25rem 0 1.5rem !important;
  }
  .equip-item {
    font-size: 0.88rem !important;
  }
  .equip-img-wrapper {
    margin-top: 1rem !important;
  }
  .equip-banner-img {
    max-height: 230px !important;
    width: 100% !important;
    object-fit: cover !important;
  }

  /* 2. Reach Us Directly Section Mobile Responsiveness */
  .contact-info-card {
    padding: 1.5rem 1.25rem !important;
    border-radius: var(--radius-md) !important;
  }
  .contact-card-title {
    font-size: 1.45rem !important;
    margin-bottom: 1.25rem !important;
  }
  .contact-item {
    gap: 0.85rem !important;
    margin-bottom: 1.25rem !important;
  }
  .contact-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    font-size: 1.1rem !important;
  }
  .contact-text h5 {
    font-size: 0.95rem !important;
    margin-bottom: 0.2rem !important;
  }
  .contact-text a, .contact-text p {
    font-size: 0.88rem !important;
    word-break: break-word !important;
  }

  /* 3. Send Us a Message Section Mobile Responsiveness */
  .contact-form-box {
    padding: 1.5rem 1.25rem !important;
    border-radius: var(--radius-md) !important;
  }
  .contact-form-title {
    font-size: 1.45rem !important;
    margin-bottom: 1.25rem !important;
  }
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .form-group {
    margin-bottom: 1.1rem !important;
  }
  .form-group label {
    font-size: 0.85rem !important;
    margin-bottom: 0.4rem !important;
  }
  .form-control {
    font-size: 0.9rem !important;
    padding: 0.75rem 0.85rem !important;
    height: auto !important;
  }
  .contact-form-box .btn {
    width: 100% !important;
    padding: 0.85rem 1rem !important;
    font-size: 1rem !important;
  }

  /* Modal Mobile Responsiveness */
  .modal-box {
    width: 94% !important;
    max-height: 88vh !important;
    border-radius: var(--radius-md) !important;
  }
  .modal-header-banner {
    padding: 1.25rem 1rem !important;
    height: auto !important;
  }
  .modal-header-banner h3 {
    font-size: 1.35rem !important;
  }
  .modal-body {
    padding: 1.25rem 1rem !important;
  }
  .agreement-tabs {
    flex-direction: column !important;
    gap: 0.4rem !important;
  }
  .tab-btn {
    padding: 0.65rem 0.85rem !important;
    font-size: 0.85rem !important;
  }

  /* Mobile Floating Buttons & Action Bar */
  .fixed-floating-buttons {
    bottom: 75px !important;
    right: 0.85rem !important;
  }
  .float-btn {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.35rem !important;
  }
  .float-tooltip { display: none !important; }

  .mobile-action-bar { display: block; }
  body { padding-bottom: 65px; }
}

@media (max-width: 480px) {
  .hero-slide { min-height: 400px; }
  .hero-slide-title { font-size: 1.45rem; }
  .hero-slide-badge { font-size: 0.7rem; }
  .section-title { font-size: 1.6rem; }
  .equip-banner-title { font-size: 1.35rem !important; }
  .contact-card-title, .contact-form-title { font-size: 1.3rem !important; }
}

