/* Additional responsive styles */
@media (max-width: 992px) {
  .hero {
    padding: 8rem 0 4rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .credentials {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .hero {
    padding: 7rem 0 3rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Text alignment utility class */
.text-center {
  text-align: center;
}

/* Additional animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* Enhance accessibility */
:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Print styles */
@media print {
  .header, .footer, .btn, .contact-form {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  
  h1, h2, h3, h4 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  p, blockquote {
    orphans: 3;
    widows: 3;
  }
  
  img {
    max-width: 100% !important;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
}

/* Mobile optimization enhancements */
@media (hover: none) and (pointer: coarse) {
  /* Optimize for touch devices */
  .btn, 
  .nav-link,
  .credential,
  .faq-question,
  .social-icon,
  input[type="submit"] {
    min-height: 44px;
    min-width: 44px;
  }
  
  input, 
  select, 
  textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
  
  /* Improve tap targets spacing */
  .nav-links li {
    margin: 0 12px;
  }
  
  /* Ensure no horizontal scrolling */
  .container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  
  /* Improve form elements on mobile */
  .form-group {
    margin-bottom: 20px;
  }
  
  /* Better button spacing on mobile */
  .hero-buttons .btn {
    margin: 10px 5px;
  }
}

/* iPhone specific optimizations */
@supports (-webkit-touch-callout: none) {
  /* iOS specific styles */
  .hero-container {
    padding-bottom: env(safe-area-inset-bottom);
    padding-top: env(safe-area-inset-top);
  }
  
  .footer {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
}

/* Android specific optimizations */
@supports not (-webkit-touch-callout: none) {
  /* Android specific styles */
  input, select, textarea {
    border-radius: 0; /* Removes default styling on some Android browsers */
  }
}

/* Improve readability on mobile */
@media screen and (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.6;
  }
  
  h1 {
    font-size: 32px;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 28px;
    line-height: 1.3;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .hero-content p {
    font-size: 18px;
    line-height: 1.5;
  }
}
