/* ===== MEDIA QUERIES FOR RESPONSIVENESS ===== */

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  #home h1 {
    font-size: 4.5rem;
  }
  
  .hero-buttons .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
  }
}

/* Large devices (desktops, 992px to 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  #home h1 {
    font-size: 3.8rem;
  }
  
  .service-card img {
    height: 180px;
  }
  
  .stats-number {
    font-size: 2.5rem;
  }
}

/* Medium devices (tablets, 768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  body {
    padding-top: 70px;
    font-size: 14px;
  }
  
  section {
    padding: 80px 0;
  }
  
  #home {
    min-height: 600px;
  }
  
  #home h1 {
    font-size: 3.2rem;
  }
  
  #home .lead {
    font-size: 1.3rem;
  }
  
  .navbar-brand img {
    width: 200px;
    height: auto;
  }
  
  .service-card img {
    height: 160px;
  }
  
  .stats-number {
    font-size: 2.2rem;
  }
  
  .stats-icon {
    font-size: 2.2rem;
  }
  
  .step-box {
    padding: 1.5rem;
  }
  
  .testimonial-card {
    margin-bottom: 20px;
  }
  
  .brand-logo {
    height: 60px;
  }
  
  .term-item {
    padding: 1.4rem;
  }
}

/* Small devices (landscape phones, 576px to 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  body {
    padding-top: 68px;
    font-size: 14px;
  }
  
  section {
    padding: 70px 0;
  }
  
  #home {
    min-height: 550px;
  }
  
  #home h1 {
    font-size: 2.8rem;
  }
  
  #home .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }
  
  .hero-buttons .btn {
    display: block;
    margin: 10px auto;
    width: 80%;
  }
  
  .navbar-brand img {
    width: 180px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-card {
    margin-bottom: 25px;
  }
  
  .service-card img {
    height: 200px;
  }
  
  .stats-box {
    margin-bottom: 20px;
  }
  
  .stats-number {
    font-size: 2rem;
  }
  
  .stats-icon {
    font-size: 2rem;
  }
  
  .step-box {
    margin-bottom: 20px;
    padding: 1.5rem;
  }
  
  .testimonial-card {
    margin-bottom: 20px;
    padding: 1.5rem;
  }
  
  .carousel-inner .row {
    padding: 30px 15px !important;
  }
  
  .brand-item {
    margin-bottom: 25px;
  }
  
  .brand-logo {
    height: 55px;
  }
  
  .term-item {
    margin-bottom: 15px;
    padding: 1.2rem;
  }
  
  .map-container {
    height: 300px;
    margin-top: 30px;
  }
  
  .contact-info {
    margin-bottom: 30px;
  }
  
  .whatsapp-button {
    left: 20px;
    bottom: 20px;
    width: 55px;
    height: 55px;
    font-size: 22px;
  }
  
  .chat-box {
    left: 20px;
    bottom: 90px;
    width: 280px;
  }
  
  .back-to-top {
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  body {
    padding-top: 65px;
    font-size: 14px;
  }
  
  section {
    padding: 60px 0;
  }
  
  #home {
    min-height: 500px;
    text-align: center;
  }
  
  #home h1 {
    font-size: 2.3rem;
    margin-bottom: 1rem;
  }
  
  #home .lead {
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
  }
  
  .hero-buttons .btn {
    display: block;
    margin: 10px auto;
    width: 90%;
    padding: 12px 20px;
  }
  
  .navbar-brand img {
    width: 160px;
  }
  
  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
    padding-top: 20px;
  }
  
  .section-title::after {
    width: 60px;
    height: 3px;
    margin: 10px auto 0;
  }
  
  .service-card {
    margin-bottom: 20px;
  }
  
  .service-card img {
    height: 180px;
  }
  
  .nav-pills .nav-link {
    margin-bottom: 10px;
    font-size: 0.9rem;
  }
  
  .stats-heading {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }
  
  .stats-box {
    margin-bottom: 15px;
    padding: 20px 15px;
  }
  
  .stats-number {
    font-size: 1.8rem;
  }
  
  .stats-icon {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  
  .stats-label {
    font-size: 1rem;
  }
  
  .step-box {
    margin-bottom: 15px;
    padding: 1.2rem;
  }
  
  .step-circle {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .step-box i {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .testimonial-card {
    margin-bottom: 15px;
    padding: 1.2rem;
  }
  
  .carousel-inner .row {
    padding: 20px 10px !important;
  }
  
  .google-avatar {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  .brand-item {
    margin-bottom: 20px;
  }
  
  .brand-logo {
    height: 50px;
  }
  
  .accordion-button {
    padding: 1rem;
    font-size: 0.95rem;
  }
  
  .term-item {
    margin-bottom: 12px;
    padding: 1rem;
  }
  
  .term-item .icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    margin-right: 12px;
  }
  
  .map-container {
    height: 250px;
    margin-top: 25px;
  }
  
  #about ul li {
    margin-bottom: 8px;
    font-size: 0.95rem;
  }
  
  .contact-info {
    margin-bottom: 25px;
  }
  
  form {
    padding: 20px;
  }
  
  .whatsapp-button {
    left: 15px;
    bottom: 15px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .chat-box {
    left: 15px;
    bottom: 80px;
    width: 260px;
    padding: 20px;
  }
  
  .back-to-top {
    right: 15px;
    bottom: 15px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  footer p {
    font-size: 0.9rem;
  }
}

/* Very small devices (phones in portrait, less than 400px) */
@media (max-width: 400px) {
  #home h1 {
    font-size: 2rem;
  }
  
  #home .lead {
    font-size: 1rem;
  }
  
  .navbar-brand img {
    width: 140px;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .hero-buttons .btn {
    font-size: 0.9rem;
    padding: 10px 15px;
  }
  
  .stats-number {
    font-size: 1.6rem;
  }
  
  .stats-heading {
    font-size: 1.8rem;
  }
  
  .testimonial-card {
    padding: 1rem;
  }
  
  .google-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
    margin-right: 10px;
  }
  
  .brand-logo {
    height: 45px;
  }
  
  .chat-box {
    width: 240px;
  }
}

/* Height adjustments for landscape mobile devices */
@media (max-height: 600px) and (orientation: landscape) {
  #home {
    min-height: 500px;
    height: auto;
    padding: 80px 0;
  }
  
  #home h1 {
    font-size: 2.5rem;
  }
  
  .navbar {
    padding: 8px 0;
  }
}

/* High-resolution displays (2x and above) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  }
  
  .service-card img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Print styles */
@media print {
  .navbar,
  .hero-buttons,
  .whatsapp-button,
  .chat-box,
  .back-to-top {
    display: none !important;
  }
  
  body {
    padding-top: 0;
    color: #000;
    background: #fff;
  }
  
  section {
    padding: 40px 0;
    page-break-inside: avoid;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
  }
}