/* 
 * Responsive styles for domain.com
 * Accounting services website
 */

/* === MOBILE FIRST APPROACH === */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  html {
    font-size: 16px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  html {
    font-size: 17px;
  }
  
  .hero-content {
    width: 60%;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  html {
    font-size: 18px;
  }
  
  .hero-content {
    width: 50%;
  }
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  html {
    font-size: 19px;
  }
  
  .container {
    max-width: 1140px;
  }
}

/* === MOBILE ADAPTATIONS === */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .hero-content {
    width: 90%;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    width: 100%;
    padding: 0 1rem;
  }
}

/* Small devices and Medium devices (phones and tablets, less than 992px) */
@media (max-width: 991.98px) {
  .nav-desktop {
    display: none;
  }
  
  .nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    flex-direction: column;
  }
  
  .nav-mobile.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-content {
    width: 70%;
  }
}

/* Medium devices (tablets, less than 768px) */
@media (max-width: 767.98px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
