/* Corporate Wellness Template - Responsive Styles */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --font-size-h1: 1.75rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;
    --section-padding: 3rem 0;
  }

  .hero {
    min-height: 70vh;
    text-align: center;
  }

  .hero-blob {
    width: 150px;
    height: 150px;
  }

  .navbar-brand {
    font-size: var(--font-size-lg);
  }

  .services-grid,
  .pricing-grid,
  .team-grid,
  .reviews-grid,
  .process-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-form {
    padding: 2rem 1rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .card-body {
    padding: 1rem;
  }

  .service-card,
  .team-member,
  .process-item {
    padding: 1.5rem;
  }

  .pricing-header,
  .pricing-body {
    padding: 1.5rem;
  }

  .faq-question,
  .faq-answer.show {
    padding: 1rem;
  }

  .blog-content {
    padding: 1rem;
  }

  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }

  .hero .row {
    flex-direction: column-reverse;
  }

  .hero .col-md-6:first-child {
    margin-top: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero .container {
    padding: 0 2rem;
  }

  .contact-form {
    padding: 3rem 2rem;
  }

  .footer .row {
    text-align: left;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .navbar-nav .nav-link {
    margin: 0 1rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: var(--container-max-width);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .process-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .hero-blob {
    width: 400px;
    height: 400px;
  }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero-blob {
    width: 500px;
    height: 500px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: 100vh;
    padding: 2rem 0;
  }

  .section {
    padding: 3rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero::before {
    background-image: url('../ZES_images/hero-bg@2x.webp');
  }
}



/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .navbar,
  .hero-blob,
  .btn,
  .contact-form,
  .footer {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
  }

  .card,
  .service-card,
  .team-member {
    border: 1px solid #c4c4c4;
    page-break-inside: avoid;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.navbar-nav .nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--white);
  padding: 8px;
  z-index: 9999;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
}

.skip-link:focus {
  top: 6px;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Smooth scroll behavior override for reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Container adjustments for better mobile experience */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Button responsiveness */
@media (max-width: 575.98px) {
  .btn {
    width: 100%;
    padding: 1rem 2rem;
  }
}

/* Form responsiveness */
@media (max-width: 575.98px) {
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Navigation improvements for mobile */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
  }

  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Ensure images don't break layout */
img {
  max-width: 100%;
  height: auto;
}

/* Grid fallback for older browsers */
@supports not (display: grid) {
  .services-grid,
  .pricing-grid,
  .team-grid,
  .reviews-grid,
  .process-grid,
  .gallery-grid,
  .blog-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -1rem;
  }

  .services-grid > *,
  .pricing-grid > *,
  .team-grid > *,
  .reviews-grid > *,
  .process-grid > *,
  .gallery-grid > *,
  .blog-grid > * {
    flex: 1 1 300px;
    margin: 1rem;
  }
} 