/* RBM ELDERCARE HOME SERVICE - Modern International Healthcare Palette */
:root {
  --rbm-azure-primary: #0284c7;
  --rbm-azure-deep: #0369a1;
  --rbm-navy-deep: #082f49;
  --rbm-navy-night: #041d27;
  
  --rbm-emerald-vibrant: #059669;
  --rbm-emerald-teal: #0d9488;
  --rbm-emerald-soft: #ecfdf5;
  
  --rbm-gold: #f59e0b;
  --rbm-gold-dark: #d97706;
  --rbm-gold-soft: #fef3c7;
  
  --rbm-ruby: #e11d48;
  --rbm-border: rgba(226, 232, 240, 0.85);
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background: 
    radial-gradient(circle at 12% 15%, rgba(224, 242, 254, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 88% 30%, rgba(209, 250, 229, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(254, 243, 199, 0.25) 0%, transparent 55%),
    #f8fafc;
  color: #0f172a;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

/* Fixed Header Styling */
.glass-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px -4px rgba(12, 74, 110, 0.08);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

/* Compact Nav Link Styling */
.nav-link {
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 700;
  font-size: 0.95rem; /* ~15px professional compact */
  letter-spacing: 0.01em;
  padding: 6px 14px;
  border-radius: 10px;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
}

.nav-link.active, .nav-link[aria-current="page"] {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
  font-weight: 800;
}

/* Emergency Pulse Animations */
@keyframes sosPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7); }
  70% { transform: scale(1.03); box-shadow: 0 0 0 8px rgba(225, 29, 72, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

.emergency-pulse {
  animation: sosPulse 2.4s infinite;
}

/* Running Marquee / Ticker Header */
.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  position: relative;
  width: 100%;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  flex-shrink: 0;
  animation: marquee-scroll 32s linear infinite;
  will-change: transform;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Hero Slider Auto Transition */
#sliderTrack {
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Hero Slider Container & Exact 2px Gap below Fixed Header */
#home {
  padding-top: 100px; /* 98px header + 2px gap (dynamically synced by app.js) */
  background: #050b14;
}

/* Hero Slider Images: 100% Full Width, Compact Height, Absolutely Zero Cropping */
.hero-slide-img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  display: block !important;
  object-fit: contain !important;
  user-select: none;
}

/* International Service Cards - Strictly No Image Cropping & No Overlay */
.luxury-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #ffffff;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
}

@media (min-width: 640px) {
  .luxury-card {
    border-radius: 1.25rem;
  }
}

.luxury-card:hover {
  transform: translateY(-4px);
  border-color: #0284c7;
  box-shadow: 0 16px 32px -8px rgba(2, 132, 199, 0.15), 0 6px 12px -4px rgba(5, 150, 105, 0.08);
}

/* Card Image Container: Aspect Ratio with Top Centering so Heads Are Never Cut Off */
.luxury-card .card-img-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #f1f5f9;
}

.luxury-card .card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* CRITICAL: Keeps all heads, faces and clinical instruments 100% in view */
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.luxury-card:hover .card-img-container img {
  transform: scale(1.01);
}

/* Modal styling */
.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Text and Button Safeguards */
.nowrap-btn {
  white-space: nowrap !important;
  flex-shrink: 0;
}

/* Bulletproof Mobile & Desktop Footer Grid */
.footer-main-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 1rem !important;
  row-gap: 1.5rem !important;
}

@media (min-width: 1024px) {
  .footer-main-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    column-gap: 1.5rem !important;
    row-gap: 1.5rem !important;
  }
}

.footer-col-identity {
  grid-column: span 2 / span 2 !important;
}
@media (min-width: 1024px) {
  .footer-col-identity {
    grid-column: span 4 / span 4 !important;
  }
}

.footer-col-quicklinks {
  grid-column: span 1 / span 1 !important;
}
@media (min-width: 1024px) {
  .footer-col-quicklinks {
    grid-column: span 2 / span 2 !important;
  }
}

.footer-col-services {
  grid-column: span 1 / span 1 !important;
}
@media (min-width: 1024px) {
  .footer-col-services {
    grid-column: span 3 / span 3 !important;
  }
}

.footer-col-helpline {
  grid-column: span 2 / span 2 !important;
}
@media (min-width: 1024px) {
  .footer-col-helpline {
    grid-column: span 3 / span 3 !important;
  }
}

