/* Mobile Responsiveness Enhancements */

/* Base Mobile Responsive Adjustments */
@media (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero {
    padding: 100px 0;
  }
}

@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  /* Header adjustments */
  header .logo {
    text-align: center;
    margin-bottom: 15px;
  }
  
  header .contact-info {
    justify-content: center;
  }
  
  /* Navigation adjustments */
  nav {
    padding: 10px 0;
  }
  
  /* Hero section adjustments */
  .hero {
    text-align: center;
    padding: 80px 0;
  }
  
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Feature boxes adjustments */
  .feature-box {
    margin-bottom: 30px;
  }
  
  /* About section adjustments */
  .about .about-image {
    margin-bottom: 30px;
  }
  
  .about .about-content {
    padding-left: 15px;
  }
  
  /* Practice areas adjustments */
  .practice-box {
    margin-bottom: 30px;
  }
  
  /* Team section adjustments */
  .team-member {
    margin-bottom: 30px;
  }
  
  /* Expertise section adjustments */
  .expertise-box {
    margin-bottom: 30px;
  }
  
  /* Coverage section adjustments */
  .coverage-content {
    margin-bottom: 30px;
  }
  
  /* Quality section adjustments */
  .quality-box {
    margin-bottom: 30px;
  }
  
  /* Contact section adjustments */
  .contact-info-box {
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .container {
    max-width: 540px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  /* Section padding adjustments */
  section {
    padding: 60px 0;
  }
  
  /* Header adjustments */
  header .contact-info a {
    margin: 5px 10px;
    font-size: 0.85rem;
  }
  
  /* Hero section adjustments */
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    margin-bottom: 15px;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  
  .hero .hero-buttons .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  /* Feature boxes adjustments */
  .feature-icon {
    font-size: 2.5rem;
  }
  
  /* Practice areas adjustments */
  .practice-icon {
    font-size: 2rem;
    width: 70px;
    height: 70px;
  }
  
  /* Team section adjustments */
  .team-image img {
    width: 150px;
    height: 150px;
  }
  
  /* Contact form adjustments */
  .form-control {
    padding: 10px;
  }
  
  /* Footer adjustments */
  footer {
    padding: 40px 0 0 0;
  }
  
  .footer-logo {
    font-size: 1.3rem;
  }
  
  .footer-links h4 {
    margin-top: 20px;
  }
  
  .footer-bottom {
    margin-top: 30px;
    padding: 15px 0;
  }
}

@media (max-width: 575px) {
  .container {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  /* Header adjustments */
  header .logo {
    font-size: 1.5rem;
  }
  
  header .contact-info {
    flex-direction: column;
  }
  
  header .contact-info a {
    margin: 5px 0;
  }
  
  /* Hero section adjustments */
  .hero {
    padding: 50px 0;
  }
  
  .hero .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero .hero-buttons .btn {
    margin: 5px 0;
    width: 80%;
  }
  
  /* Section heading adjustments */
  section h2:after {
    width: 60px;
    margin: 10px auto 20px;
  }
  
  /* Feature boxes adjustments */
  .feature-box {
    padding: 25px 15px;
  }
  
  /* Practice areas adjustments */
  .practice-box {
    padding: 25px 15px;
  }
  
  /* Team section adjustments */
  .team-member {
    padding: 20px 15px;
  }
  
  /* Expertise section adjustments */
  .expertise-box {
    padding: 20px 15px;
  }
  
  /* Coverage section adjustments */
  .coverage-item {
    flex-direction: column;
    text-align: center;
  }
  
  .coverage-icon {
    margin: 0 auto 10px;
  }
  
  /* Quality section adjustments */
  .quality-box {
    padding: 20px 15px;
  }
  
  /* Contact section adjustments */
  .contact-info-box {
    padding: 30px 20px;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-icon {
    margin: 0 auto 10px;
  }
  
  /* Footer adjustments */
  .footer-social {
    margin-bottom: 20px;
  }
  
  .footer-links {
    text-align: center;
  }
  
  .footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-links ul li {
    margin: 0 10px 10px;
  }
}

/* Touch-friendly adjustments */
@media (hover: none) {
  .btn:hover {
    transform: none;
    box-shadow: none;
  }
  
  .feature-box:hover, .practice-box:hover, .team-member:hover, .expertise-box:hover, .quality-box:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
  
  .team-member:hover .team-image img {
    transform: none;
  }
  
  .practice-box:hover .practice-icon {
    transform: none;
    background-color: rgba(0, 51, 102, 0.05);
    color: inherit;
  }
  
  .footer-links ul li a:hover {
    padding-left: 0;
  }
  
  /* Increase touch targets for better mobile usability */
  nav a, .btn, .footer-links ul li a, .contact-info a {
    padding: 12px 15px;
  }
  
  .footer-social a {
    width: 44px;
    height: 44px;
  }
}

/* Print styles for better document printing */
@media print {
  nav, .hero-buttons, .footer-social, .contact-form, .back-to-top, .mobile-nav-toggle {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .container {
    max-width: 100%;
    width: 100%;
  }
  
  header, footer, section {
    padding: 10pt 0;
    margin: 10pt 0;
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4 {
    page-break-after: avoid;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  .feature-box, .practice-box, .team-member, .expertise-box, .quality-box {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1pt solid #ddd;
  }
  
  .footer-bottom {
    border-top: 1pt solid #ddd;
    padding-top: 10pt;
  }
}

/* High-resolution screen adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    font-weight: 300;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
  }
  
  .btn {
    font-weight: 500;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .preloader {
    background-color: var(--dark-gray);
  }
  
  .preloader .spinner {
    border-color: rgba(255, 255, 255, 0.1);
    border-top-color: var(--secondary-gold);
  }
}
