/* ==========================================================================
   Responsive CSS File - Mobile & Tablet Optimizations
   ========================================================================== */

/* Mobile First Approach - Base styles are mobile */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  
  /* NO animations on mobile scroll - rule compliance */
  [data-sal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.25rem;
    line-height: 1.4;
  }
  
  /* Section padding reduction */
  section {
    padding: 3rem 0;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-section .container {
    padding: 1rem;
  }
  
  /* Navigation mobile */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    text-align: center;
  }
  
  /* Cards mobile */
  .card {
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  /* Services cards mobile */
  .services-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .services-card .card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  /* Team photos mobile */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Process steps mobile */
  .process-step {
    padding: 1.5rem 0.5rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Gallery mobile */
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* FAQ mobile */
  .faq-card {
    padding: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  /* Timeline mobile */
  .timeline-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .timeline-item::before {
    left: -8px;
    width: 16px;
    height: 16px;
  }
  
  /* Contact form mobile */
  .form-control {
    padding: 0.75rem;
    font-size: 1rem;
  }
  
  /* Footer mobile */
  footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Button adjustments */
  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Price tag mobile */
  .price-tag {
    font-size: 1rem;
    padding: 0.375rem 0.75rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  
  /* NO animations on mobile scroll - rule compliance */
  [data-sal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .services-card .card-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }
  
  .team-photo {
    width: 130px;
    height: 130px;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  
  section {
    padding: 5rem 0;
  }
  
  .hero-section {
    min-height: 90vh;
  }
  
  /* Re-enable animations for tablets and above */
  [data-sal] {
    transition-duration: 0.5s;
    transition-property: opacity, transform;
  }
  
  .services-card .card-icon {
    width: 75px;
    height: 75px;
    font-size: 1.875rem;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
  
  .gallery-item img {
    height: 230px;
  }
  
  .process-number {
    width: 55px;
    height: 55px;
    font-size: 1.375rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  
  section {
    padding: 6rem 0;
  }
  
  .hero-section {
    min-height: 100vh;
  }
  
  .gallery-item img {
    height: 240px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  
  section {
    padding: var(--section-padding);
  }
  
  .hero-section {
    min-height: 100vh;
  }
  
  .container {
    max-width: 1140px;
  }
  
  .gallery-item img {
    height: 250px;
  }
}

/* Mobile Menu Customization Prevention */
/* Standard Bootstrap 5 navbar-toggler is used without modifications */
.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Portrait orientation specific */
@media (orientation: portrait) and (max-width: 768px) {
  
  .hero-section {
    min-height: 60vh;
    padding: 2rem 0;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  .services-card {
    margin-bottom: 1rem;
  }
}

/* Landscape orientation mobile */
@media (orientation: landscape) and (max-height: 500px) {
  
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  section {
    padding: 2rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  
  .team-photo,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Accessibility - Focus states for mobile */
@media (max-width: 767.98px) {
  
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
  }
  
  /* Ensure touch targets are minimum 44px */
  .btn,
  .nav-link,
  .form-control {
    min-height: 44px;
  }
}

/* Print styles */
@media print {
  
  .navbar,
  footer,
  .btn,
  [data-sal] {
    display: none !important;
  }
  
  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  .hero-section {
    min-height: auto;
    background: none !important;
  }
  
  .card {
    border: 1px solid #d4d1d1;
    box-shadow: none;
  }
} 

.hero-section h1 {
    padding-top: 250px;
}