/* Mobile-First Responsive Styles for MRI Cost Delhi */
/* Apply to all pages for consistent mobile-first design */

/* Base mobile styles (default) */
* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  touch-action: manipulation;
}

/* Prevent horizontal scroll */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Mobile navigation */
nav {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Mobile-first button sizes */
button, a.btn, .button {
  min-height: 44px; /* Apple HIG minimum touch target */
  min-width: 44px;
}

/* Mobile cards */
.card, .listing-card, .service-card {
  border-radius: 12px;
  margin-bottom: 16px;
}

/* Mobile typography */
h1 {
  font-size: 28px;
  line-height: 1.2;
}

h2 {
  font-size: 24px;
  line-height: 1.3;
}

h3 {
  font-size: 20px;
  line-height: 1.4;
}

p {
  font-size: 16px;
  line-height: 1.6;
}

/* Mobile spacing */
section {
  padding: 48px 16px;
}

/* Mobile grid */
.grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Mobile images */
.hero-image, .card-image {
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Mobile sticky bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 12px;
  background: white;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 8px;
}

/* Tablet breakpoints */
@media (min-width: 640px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  
  section { padding: 64px 24px; }
  
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Desktop breakpoints */
@media (min-width: 768px) {
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  h3 { font-size: 24px; }
  
  section { padding: 80px 32px; }
  
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  
  .mobile-sticky-bar {
    display: none;
  }
}

/* Large desktop */
@media (min-width: 1024px) {
  h1 { font-size: 56px; }
  h2 { font-size: 42px; }
  h3 { font-size: 28px; }
  
  section { padding: 96px 40px; }
  
  .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
}

/* Utility classes for mobile-first */
.mobile-hide {
  display: none;
}

@media (min-width: 768px) {
  .mobile-hide {
    display: block;
  }
  .mobile-only {
    display: none !important;
  }
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  
  .mobile-sticky-bar {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Focus states for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #258cf4;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  nav, .mobile-sticky-bar, button {
    display: none !important;
  }
}
