/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Typography */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.87rem;
  }
  
  h3 {
    font-size: 1.34rem;
  }
  
  .navbar-brand {
    font-size: 1.29rem;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 60px 0;
    text-align: center;
  }
  
  .hero-section .container {
    padding: 0 18px;
  }
  
  /* Section Padding */
  .section-padding {
    padding: 40px 0;
  }
  
  /* Service Cards */
  .service-card {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .service-card .card-img-top {
    height: 150px;
  }
  
  /* Team Cards */
  .team-card {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .team-card img {
    width: 120px;
    height: 120px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 20px;
  }
  
  /* Process Steps */
  .process-step::after {
    display: none;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 200px;
  }
  
  /* Footer */
  .footer {
    padding: 30px 0 15px;
    text-align: center;
  }
  
  .footer .col-md-3 {
    margin-bottom: 30px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero Section */
  .hero-section {
    padding: 80px 0;
  }
  
  /* Section Padding */
  .section-padding {
    padding: 60px 0;
  }
  
  /* Service Cards */
  .service-card {
    padding: 25px;
  }
  
  /* Process Steps */
  .process-step::after {
    display: none;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero Section */
  .hero-section {
    padding: 100px 0;
  }
  
  /* Section Padding */
  .section-padding {
    padding: 70px 0;
  }
  
  /* Service Cards */
  .service-card {
    padding: 25px;
  }
  
  /* Process Steps */
  .process-step::after {
    width: 30px;
    right: -15px;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 240px;
  }
  
  /* Footer */
  .footer .col-md-3 {
    margin-bottom: 20px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Hero Section */
  .hero-section {
    padding: 120px 0;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 250px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Hero Section */
  .hero-section {
    padding: 140px 0;
  }
  
  /* Container max-width adjustments */
  .container {
    max-width: 1140px;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 768px) {
  .hero-section {
    min-height: 100vh;
    padding: 40px 0;
  }
  
  .hero-section h1 {
    font-size: 2.55rem;
    padding-top: 150px;
}
  
  .section-padding {
    padding: 50px 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for retina displays */
  .hero-section::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  }
  
  .service-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  }
  
  .service-card:hover {
    box-shadow: 0 11px 25px rgba(0, 0, 0, 0.12);
  }
}

/* Print Styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: 20px 0;
  }
  
  .section-padding {
    padding: 30px 0;
  }
  
  .navbar, .footer {
    display: none;
  }
  
  .service-card, .team-card, .review-card, .faq-card {
    border: 1px solid #c9c9c9;
    box-shadow: none;
    break-inside: avoid;
  }
  
  .gallery-item {
    break-inside: avoid;
  }
}

/* Accessibility - Focus States */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
  
  .form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Dark Mode Support */

/* Utility Classes for Responsive Design */
.hide-mobile {
  display: block;
}

.show-mobile {
  display: none;
}

@media (max-width: 767.98px) {
  .hide-mobile {
    display: none;
  }
  
  .show-mobile {
    display: block;
  }
}

/* Responsive Text Alignment */
@media (max-width: 767.98px) {
  .text-md-left {
    text-align: center;
  }
  
  .text-md-right {
    text-align: center;
  }
}

/* Responsive Spacing */
@media (max-width: 575.98px) {
  .mb-xs-3 {
    margin-bottom: 1rem;
  }
  
  .mt-xs-3 {
    margin-top: 1rem;
  }
  
  .px-xs-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Responsive Grid Adjustments */
@media (max-width: 767.98px) {
  .row > [class*="col-"] {
    margin-bottom: 20px;
  }
  
  .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
} 