/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-title {
    font-size: 2rem !important;
  }
  
  .section-title {
    font-size: 1.78rem !important;
  }
  
  .hero-section {
    text-align: center;
    padding: 2rem 0;
  }
  
  .navbar-brand {
    font-size: 1.37rem !important;
  }
  
  .service-card,
  .feature-card,
  .team-card,
  .price-card {
    margin-bottom: 1.69rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .gallery-image {
    height: 200px;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .service-price,
  .price-amount {
    font-size: 1.53rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.64rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-card,
  .feature-card,
  .team-card,
  .price-card {
    margin-bottom: 2rem;
  }
  
  .gallery-image {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 2.79rem;
  }
  
  .section-title {
    font-size: 2.30rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem !important;
  }
  
  .gallery-image {
    height: 240px;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* Large devices (desktops, 993px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.54rem;
  }
  
  .service-image {
    height: 220px;
  }
  
  .gallery-image {
    height: 260px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-title {
    font-size: 3.60rem;
  }
  
  .section-title {
    font-size: 2.85rem;
  }
  
  .service-image {
    height: 240px;
  }
  
  .gallery-image {
    height: 280px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .team-photo,
  .service-image,
  .gallery-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  .hero-shapes,
  .contact-form,
  .footer {
    display: none !important;
  }
  
  .hero-section {
    background: none !important;
    color: var(--black) !important;
    min-height: auto;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  .service-card,
  .feature-card,
  .team-card,
  .price-card {
    border: 1px solid var(--medium-gray) !important;
    box-shadow: none !important;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .feature-card:hover,
  .team-card:hover,
  .price-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary {
    padding: 1rem 2rem;
    font-size: 1.11rem;
  }
  
  .navbar-nav .nav-link {
    padding: 1rem !important;
  }
  
  .faq-header {
    padding: 2rem 1.5rem;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-shape {
    animation: none;
  }
  
  .fade-in,
  .slide-up {
    animation: none;
  }
  
  .service-card,
  .feature-card,
  .team-card,
  .price-card,
  .gallery-item {
    transition: none;
  }
}

/* Dark mode support (though not implemented per requirements) */
@media (prefers-color-scheme: dark) {
  /* Placeholder for future dark mode implementation if needed */
}

/* Container responsive adjustments */
.container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 576px) {
  .container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Accessibility improvements for small screens */
@media (max-width: 767.98px) {
  .faq-header {
    font-size: 1rem;
    padding: 1.25rem;
  }
  
  .faq-body {
    padding: 0 1.25rem 1.25rem;
  }
  
  .navbar-toggler {
    border: 2px solid var(--white);
    padding: 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 2px var(--primary-orange);
  }
}

/* Grid system adjustments */
.row {
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.col,
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
.col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-xl, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6,
.col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Utility classes for responsive design */
.d-mobile-none {
  display: none;
}

@media (min-width: 768px) {
  .d-mobile-none {
    display: block;
  }
  
  .d-desktop-none {
    display: none;
  }
}

/* Flexible images and media */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Responsive tables */
.table-responsive {
  -webkit-overflow-scrolling: touch;
}

/* Focus improvements for keyboard navigation */
@media (max-width: 767.98px) {
  a:focus,
  button:focus,
  input:focus,
  textarea:focus,
  select:focus {
    outline-width: 3px;
    outline-offset: 3px;
  }
} 