/* Custom styles for Med Mart-Pacific Pulmonary Services */

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #FAF8F6;
}

::-webkit-scrollbar-thumb {
  background: #d4cfc9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a5183e;
}

/* Selection color */
::selection {
  background: #fce7eb;
  color: #6f1a31;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid #c92552;
  outline-offset: 2px;
}

/* Smooth transitions */
a, button {
  transition: all 0.3s ease;
}

/* Image loading optimization */
img {
  max-width: 100%;
  height: auto;
}

/* Print styles */
@media print {
  nav, .mobile-menu, #contactForm {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
  .hover-lift {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  
  .hover-lift:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

/* Large screen optimizations */
@media (min-width: 1920px) {
  .max-w-7xl {
    max-width: 80rem;
  }
}

/* Small screen optimizations */
@media (max-width: 360px) {
  .px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    min-height: auto;
    padding: 6rem 0;
  }
}
