/* Responsive CSS for Corporate Stress-Relief Sanatorium Template */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --section-padding: 60px 0;
  }
  
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.5rem; }
  
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .service-card,
  .price-card,
  .team-member {
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0 5px;
    font-size: 0.9rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  /* Disable animations on mobile for performance */
  .shape-blob,
  .hero-section::before {
    animation: none;
  }
  
  /* Reduce motion for accessibility */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  :root {
    --section-padding: 70px 0;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.7rem; }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .contact-form {
    padding: 2.5rem 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  :root {
    --section-padding: 80px 0;
  }
  
  h1 { font-size: 3rem; }
  h2 { font-size: 2.3rem; }
  h3 { font-size: 1.9rem; }
  
  .hero-content {
    max-width: 80%;
    margin: 0 auto;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card {
    padding: 2.2rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .price-card {
    padding: 2.5rem 1.8rem;
  }
  
  /* Stack navigation on tablets */
  .navbar-nav {
  flex-direction: row;
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    margin: 0 10px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-content {
    max-width: 70%;
  }
  
  .service-card {
    padding: 2.3rem;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-content {
    max-width: 60%;
  }
  
  .container-xxl {
    max-width: 1400px;
  }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .hero-content {
    max-width: 50%;
  }
}

/* Portrait orientation adjustments */
@media (orientation: portrait) and (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
  }
  
  .service-image,
  .blog-image {
    height: 180px;
  }
  
  .gallery-image {
    height: 200px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  :root {
    --section-padding: 50px 0;
  }
  
  .hero-section {
    min-height: 100vh;
  }
  
  header {
    padding: 10px 0;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-image,
  .team-photo,
  .blog-image,
  .gallery-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #1a1a1a;
    --light-gray: #2d2d2d;
    --gray: #8e8e93;
    --dark-gray: #e5e5e7;
    --black: #ffffff;
  }
  
  .hero-section {
    background: linear-gradient(135deg, #2d3e2d, #2d3844);
  }
  
  .services-section {
    background: linear-gradient(135deg, #3e3529, #3e2d35);
  }
  
  .reviews-section {
    background: linear-gradient(135deg, #3e2d35, #3e3529);
  }
  
  .priceplan-section {
    background: linear-gradient(135deg, #2d3844, #342d3e);
  }
  
  .contact-section {
    background: linear-gradient(135deg, #342d3e, #2d3e2d);
  }
  
  .gallery-section {
    background: linear-gradient(135deg, #3e3529, #2d3844);
  }
}

/* Reduced motion for accessibility */
@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;
  }
  
  .hero-section::before,
  .shape-blob-1,
  .shape-blob-2,
  .shape-blob-3 {
    animation: none !important;
  }
  
  .service-card:hover,
  .price-card:hover,
  .team-member:hover,
  .about-feature:hover,
  .coreinfo-item:hover,
  .blog-item:hover,
  .gallery-item:hover {
    transform: none !important;
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  header,
  footer,
  .hero-section,
  .gallery-section {
    display: none;
  }
  
  .service-card,
  .price-card,
  .team-member {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .contact-form {
    display: none;
  }
}

/* Focus styles for accessibility */
@media (min-width: 768px) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-sage);
    outline-offset: 2px;
  }
}

/* Touch device optimizations */
@media (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 12px 15px;
  }
  
  .faq-question {
    min-height: 50px;
    display: flex;
    align-items: center;
  }
  
  .gallery-item {
    min-height: 44px;
  }
}

/* Container max-widths for different breakpoints */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
} 