/* Mobile-First Responsive Design for Onix Cleaning */

/* Base mobile styles (applied to all screen sizes) */
/* Typography adjustments for mobile */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

/* Navigation improvements for mobile */
.ftco-navbar-light .navbar-brand {
  font-size: 1.25rem;
}

.ftco-navbar-light .navbar-brand img {
  height: 30px;
}

.ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
  font-size: 0.9rem;
  padding: 0.5rem 0.8rem;
}

/* Hero section mobile adjustments */
.hero-wrap, .hero-wrap-2 {
  min-height: 60vh;
  padding: 2rem 0;
}

.hero-wrap h1, .hero-wrap-2 h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

.hero-wrap h2, .hero-wrap-2 h2 {
  font-size: 1.2rem;
}

.hero-wrap p, .hero-wrap-2 p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Appointment form mobile improvements */
.wrap-appointment {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-control {
  font-size: 1rem;
  padding: 0.75rem;
}

.btn {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}

/* Emergency cases section mobile improvements */
.desc p-4 {
  padding: 1.5rem !important;
}

.desc h3.heading {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.desc span.phone {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Counter section mobile adjustments */
.ftco-counter {
  padding: 2rem 0;
}

.block-18 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.block-18 .text strong.number {
  font-size: 2rem;
}

.block-18 .text span {
  font-size: 0.9rem;
}

/* Services section mobile improvements */
.services {
  padding: 3rem 0;
}

.services .icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

/* Testimonials mobile adjustments */
.testimony-section {
  padding: 3rem 0;
}

.testimony-wrap {
  padding: 1.5rem;
}

/* Footer mobile improvements */
.footer {
  padding: 3rem 0 1rem;
}

.footer .footer-heading {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Small screens (phones) */
@media (max-width: 575.98px) {
  /* Navigation mobile adjustments */
  .ftco-navbar-light .navbar-nav {
    background-color: rgba(33, 54, 82, 0.95);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
  }
  
  .ftco-navbar-light .navbar-nav .nav-item {
    margin-bottom: 0.5rem;
  }
  
  /* Fix mobile hamburger menu text color */
  .ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
    color: #fff !important;
  }
  
  .ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover {
    color: var(--secondary, #CADAEF) !important;
  }
  
  .ftco-navbar-light .navbar-nav > .nav-item.active > .nav-link {
    color: var(--secondary, #CADAEF) !important;
  }
  
  /* Hero mobile adjustments */
  .hero-wrap h1, .hero-wrap-2 h1 {
    font-size: 2rem;
  }
  
  .hero-wrap h2, .hero-wrap-2 h2 {
    font-size: 1rem;
  }
  
  /* Form mobile adjustments */
  .wrap-appointment {
    padding: 1rem;
  }
  
  .form-group {
    margin-bottom: 0.75rem;
  }
  
  /* Emergency cases mobile */
  .desc p-4 {
    padding: 1rem !important;
  }
  
  /* Counter mobile */
  .ftco-counter {
    padding: 1.5rem 0;
  }
  
  .block-18 .text strong.number {
    font-size: 1.75rem;
  }
  
  /* Staff section mobile */
  .staff {
    margin-bottom: 1.5rem;
  }
  
  .staff .text {
    padding: 1rem;
  }
  
  /* Testimonials mobile */
  .testimony-wrap {
    padding: 1rem;
  }
  
  /* Footer mobile */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer .footer-heading {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
}

/* Medium screens (tablets) */
@media (min-width: 576px) and (max-width: 991.98px) {
  /* Hero tablet adjustments */
  .hero-wrap h1, .hero-wrap-2 h1 {
    font-size: 2.5rem;
  }
  
  /* Navigation tablet adjustments */
  .ftco-navbar-light .navbar-brand {
    font-size: 1.5rem;
  }
  
  .ftco-navbar-light .navbar-brand img {
    height: 35px;
  }
  
  /* Form tablet adjustments */
  .wrap-appointment {
    padding: 2rem;
  }
  
  /* Emergency cases tablet */
  .desc p-4 {
    padding: 1.5rem !important;
  }
  
  /* Counter tablet */
  .block-18 .text strong.number {
    font-size: 2.25rem;
  }
  
  /* Staff tablet */
  .staff {
    margin-bottom: 2rem;
  }
}

/* Large screens (desktops) */
@media (min-width: 992px) {
  /* Ensure desktop styles remain unchanged */
  .hero-wrap, .hero-wrap-2 {
    min-height: 100vh;
  }
  
  .hero-wrap h1, .hero-wrap-2 h1 {
    font-size: 3rem;
  }
  
  .hero-wrap h2, .hero-wrap-2 h2 {
    font-size: 1.5rem;
  }
  
  .ftco-navbar-light .navbar-brand img {
    height: 40px;
  }
}

/* Extra large screens */
@media (min-width: 1200px) {
  .hero-wrap h1, .hero-wrap-2 h1 {
    font-size: 3.5rem;
  }
}

/* Touch-friendly improvements */
.btn, .nav-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile image optimizations */
.img {
  background-size: cover;
  background-position: center;
}

/* Mobile form focus improvements */
.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 0.2rem rgba(202, 218, 239, 0.25);
}

/* Mobile table adjustments */
.table {
  font-size: 0.9rem;
}

.table-responsive {
  border-radius: 0.5rem;
}

/* Mobile modal adjustments */
.modal-dialog {
  margin: 1rem;
}

.modal-content {
  border-radius: 0.5rem;
}

/* Mobile carousel adjustments */
.carousel-item {
  height: 250px;
}

/* Mobile spacing improvements */
section {
  padding: 3rem 0;
}

@media (max-width: 767.98px) {
  section {
    padding: 2rem 0;
  }
}

/* Mobile text readability improvements */
body {
  font-size: 1rem;
  line-height: 1.6;
}

p {
  margin-bottom: 1rem;
}

/* Mobile accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus indicators for keyboard navigation */
.btn:focus, .nav-link:focus, .form-control:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}