/* ===============================
   Responsive Styles
   Mobile-First Approach
   =============================== */

/* Mobile First - Base Styles (up to 576px) */
/* No animations in mobile resolution */
@media (max-width: 767.98px) {
  /* Disable all animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Conservative Typography for Mobile */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  /* Navbar Brand - Extra Conservative */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Hero Section Mobile */
  .hero-section {
    min-height: 60vh;
    text-align: center;
  }
  
  /* Hide decorative shapes on mobile */
  .decorative-shape {
    display: none;
  }
  
  /* Mobile Spacing */
  .section {
    padding: 2rem 0;
  }
  
  /* Card Adjustments */
  .custom-card {
    margin-bottom: 1.5rem;
  }
  
  .service-card .card-img-top {
    height: 180px;
  }
  
  .team-card img {
    height: 200px;
  }
  
  /* Contact Form Mobile */
  .contact-form {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  /* Gallery Mobile */
  .gallery-item img {
    height: 200px;
  }
  
  /* Process Steps Mobile */
  .process-step {
    padding: 1.5rem;
  }
  
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  /* Footer Mobile */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Contact Info Cards Mobile */
  .contact-info-card {
    margin-bottom: 1rem;
  }
  
  /* FAQ Cards Mobile */
  .faq-card {
    height: auto;
    margin-bottom: 1rem;
    padding: 1rem;
  }
  
  .faq-question {
    font-size: 1.1rem;
    line-height: 1.4;
  }
}

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

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  /* Re-enable animations for desktop */
  .custom-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  
  .gallery-item img {
    transition: transform 0.3s ease;
  }
  
  .gallery-item:hover img {
    transform: scale(1.05);
  }
  
  .btn-primary {
    transition: all 0.3s ease;
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
  }
  
  .hero-section {
    min-height: 85vh;
  }
  
  /* Show decorative shapes on tablet+ */
  .decorative-shape {
    display: block;
  }
  
  /* FAQ Cards Tablet */
  .faq-card {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
  }
  
  .faq-question {
    font-size: 1.15rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-section {
    min-height: 100vh;
  }
  
  /* Larger decorative shapes on desktop */
  .shape-1 {
    width: 250px;
    height: 250px;
  }
  
  .shape-2 {
    width: 200px;
    height: 200px;
  }
  
  /* FAQ Cards Desktop */
  .faq-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    height: calc(100% - 1.5rem);
  }
  
  .faq-question {
    font-size: 1.2rem;
  }
  
  /* Make sure row height is uniform for FAQ cards */
  #faq .row {
    display: flex;
    flex-wrap: wrap;
  }
  
  #faq .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

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

/* Print Styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .decorative-shape,
  .btn,
  .navbar,
  .footer {
    display: none !important;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  img {
    max-width: 100% !important;
  }
}

/* High DPI/Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image,
  .gallery-item img,
  .service-card .card-img-top,
  .team-card img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Landscape Orientation for Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 50vh;
  }
  
  .section {
    padding: 1.5rem 0;
  }
}

/* Dark Mode Support */

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .custom-card:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

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

/* Skip to Content Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-primary-dark);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
} 

.hero-content {
    padding-top: 125px;
}
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
