/* ====================================
   Responsive Styles
   Bootstrap 5 Compatible
   ==================================== */

/* Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.25rem;
    --font-size-h4: 1.1rem;
  }

  .hero-section {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }

  .hero-content h1 {
    font-size: 1.875rem;
  }

  .section {
    padding: 3rem 0;
  }

  .service-card,
  .team-card,
  .review-card,
  .case-study-card,
  .price-card {
    margin-bottom: 1.5rem;
  }

  .gallery-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .gallery-item img {
    height: 200px;
  }

  .core-info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .process-step {
    padding: 1.5rem 0.5rem;
  }

  .team-photo {
    width: 100px;
    height: 100px;
  }

  /* NO scroll animations on mobile */
  [data-sal],
  .sal-animate {
    transform: none;
    opacity: 1;
    animation: none;
    transition: none;
  }

  /* Button adjustments */
  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }

  /* Form adjustments */
  .form-control {
    padding: 0.625rem 0.875rem;
  }

  /* Navbar brand smaller on mobile */
  .navbar-brand {
    font-size: 1.1rem;
  }

  /* Footer adjustments */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }

  .footer .row > div {
    margin-bottom: 2rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 85vh;
  }

  .gallery-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .core-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Reduced animations on small screens */
  [data-sal] {
    animation-duration: 0.3s;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }

  .gallery-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .core-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step {
    padding: 2rem 1rem;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .core-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }

  .gallery-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .core-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .container {
    max-width: 1200px;
  }
}

/* Extra Extra Large Devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .gallery-row {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }

  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .service-card,
  .team-card,
  .review-card,
  .case-study-card,
  .price-card,
  .feature-item,
  .faq-card {
    border: 2px solid var(--color-neutral-dark);
  }

  .btn-primary {
    border: 2px solid var(--color-primary-dark);
  }
}

/* Dark Mode Support */

/* Focus Styles for Accessibility */
button:focus,
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Smooth Scrolling for Anchor Links (Respects Reduced Motion) */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
} 
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
