/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .section-desc {
    font-size: 0.95rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  #hero {
    padding: 60px 0;
    text-align: center;
  }
  
  .hero-shape {
    display: none;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card {
    margin-bottom: 30px;
  }
  
  .price-card.featured {
    transform: none;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .feature-icon,
  .feature-item i {
    font-size: 2.5rem;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  /* No animations on mobile for better performance */
  .feature-card:hover,
  .service-card:hover,
  .gallery-item:hover img {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .navbar-brand {
    font-size: 1.15rem;
  }
  
  .service-card,
  .review-card {
    margin-bottom: 30px;
  }
  
  .price-card.featured {
    transform: scale(1.02);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .section-title {
    font-size: 2.2rem;
  }
  
  .section-subtitle {
    font-size: 1.15rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .service-card {
    margin-bottom: 30px;
  }
  
  .price-card.featured {
    transform: scale(1.03);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .section-title {
    font-size: 2.3rem;
  }
  
  .price-card.featured {
    transform: scale(1.04);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .section-title {
    font-size: 2.5rem;
  }
  
  .price-card.featured {
    transform: scale(1.05);
  }
}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .team-photo {
    border-width: 3px;
  }
  
  .service-card,
  .price-card,
  .review-card {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  }
}

/* Landscape Mobile Orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
  #hero {
    min-height: 70vh;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .navbar {
    padding: 0.25rem 1rem;
  }
}

/* Print Styles */
@media print {
  #header,
  #footer {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
    overflow-x: hidden;
}
  
  .section-title {
    font-size: 18pt;
    margin-bottom: 10pt;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .review-card {
    border: 1pt solid #ccc;
    margin-bottom: 15pt;
    page-break-inside: avoid;
  }
}

/* Accessibility Improvements */
@media (prefers-high-contrast: high) {
  :root {
    --primary-color: #0000FF;
    --secondary-color: #800080;
    --accent-color: #008000;
    --warning-color: #FF8C00;
    --danger-color: #FF0000;
  }
  
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .faq-card {
    border: 2px solid #000;
  }
}

/* Focus Management for Keyboard Navigation */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .navbar-nav .nav-link:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Container Responsive Adjustments */
@media (max-width: 575.98px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .col,
  [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }
} 