/* Responsive Styles */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  .hero-content h1 {
    font-size: 42px;
  }
  
  .section-title h2 {
    font-size: 32px;
  }
  
  .service-img {
    height: 180px;
  }
  
  .team-img {
    height: 250px;
  }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  header {
    padding: 15px 0;
  }
  
  .hero-section {
    padding: 150px 0 80px;
  }
  
  .hero-content h1 {
    font-size: 36px;
  }
  
  .hero-content p {
    font-size: 16px;
  }
  
  .about-img {
    margin-bottom: 30px;
    text-align: center;
  }
  
  .about-img img {
    max-width: 400px;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .service-grid,
  .features-grid,
  .pricing-grid,
  .team-grid,
  .coreinfo-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .review-text {
    height: auto;
    max-height: 200px;
  }
  
  .footer-logo,
  .footer-links,
  .footer-contact {
    margin-bottom: 30px;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  .menu-toggle {
    display: block;
  }
  
  .main-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background-color: #fff;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 999;
  }
  
  .main-menu.active {
    left: 0;
  }
  
  .main-menu ul {
    flex-direction: column;
  }
  
  .main-menu ul li {
    margin: 10px 0;
  }
  
  .hero-section {
    padding: 130px 0 60px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 32px;
  }
  
  .section-title h2 {
    font-size: 28px;
  }
  
  .section-title p {
    font-size: 16px;
  }
  
  .service-grid,
  .features-grid,
  .pricing-grid,
  .team-grid,
  .coreinfo-grid,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-section,
  .services-section,
  .features-section,
  .priceplan-section,
  .team-section,
  .reviews-section,
  .coreinfo-section,
  .contact-section,
  .blog-section,
  .faq-section,
  .gallery-section {
    padding: 60px 0;
  }
  
  .swiper-container.reviews-swiper {
    padding-bottom: 40px;
  }
  
  .review-text {
    height: auto;
  }
  
  /* Disable animations on mobile */
  .service-card:hover,
  .feature-item:hover,
  .pricing-card:hover,
  .team-member:hover,
  .coreinfo-item:hover,
  .blog-item:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .service-card:hover .service-img img,
  .team-member:hover .team-img img,
  .blog-item:hover .blog-img img,
  .gallery-item:hover img {
    transform: none;
  }
  
  /* Reduced motion support */
  @media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
  
  .accordion-header {
    font-size: 16px;
    padding: 15px;
  }
  
  .accordion-content p {
    padding: 0 15px 15px;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-content h1 {
    font-size: 28px;
  }
  
  .section-title {
    margin-bottom: 30px;
  }
  
  .section-title h2 {
    font-size: 24px;
  }
  
  .feature-box,
  .feature-item,
  .coreinfo-item {
    padding: 15px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .review-author-img {
    width: 50px;
    height: 50px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 10px;
  }
  
  button[type="submit"] {
    width: 100%;
    padding: 12px 20px;
  }
  
  footer {
    padding: 50px 0 20px;
  }
  
  .footer-bottom {
    padding-top: 20px;
  }
  
  #site_disclaimer {
    font-size: 12px;
  }
  
  #site-copyright {
    font-size: 10px;
  }
}

/* Specific browser and device fixes */

/* Fix for Safari inputs */
@supports (-webkit-touch-callout: none) {
  input, textarea, select {
    font-size: 16px !important;
  }
}

/* Fix for older IE browsers */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .service-grid,
  .features-grid,
  .pricing-grid,
  .team-grid,
  .coreinfo-grid,
  .blog-grid,
  .gallery-grid {
    display: flex;
    flex-wrap: wrap;
  }
  
  .service-card,
  .feature-item,
  .pricing-card,
  .team-member,
  .coreinfo-item,
  .blog-item,
  .gallery-item {
    flex: 0 0 calc(33.333% - 20px);
    margin: 10px;
  }
  
  @media (max-width: 991.98px) {
    .service-card,
    .feature-item,
    .pricing-card,
    .team-member,
    .coreinfo-item,
    .blog-item,
    .gallery-item {
      flex: 0 0 calc(50% - 20px);
    }
  }
  
  @media (max-width: 767.98px) {
    .service-card,
    .feature-item,
    .pricing-card,
    .team-member,
    .coreinfo-item,
    .blog-item,
    .gallery-item {
      flex: 0 0 calc(100% - 20px);
    }
  }
}

/* Print styles */
@media print {
  header, 
  .hero-section,
  .gallery-section,
  .contact-form,
  footer,
  .menu-toggle {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  .container {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  
  .section-title h2 {
    font-size: 18pt;
    color: #000;
  }
  
  .section-title h2:after {
    display: none;
  }
  
  .about-section,
  .services-section,
  .features-section,
  .priceplan-section,
  .team-section,
  .reviews-section,
  .coreinfo-section,
  .blog-section,
  .faq-section {
    padding: 20pt 0;
    page-break-inside: avoid;
  }
  
  .service-grid,
  .features-grid,
  .pricing-grid,
  .team-grid,
  .coreinfo-grid,
  .blog-grid {
    display: block;
  }
  
  .service-card,
  .feature-item,
  .pricing-card,
  .team-member,
  .coreinfo-item,
  .blog-item {
    page-break-inside: avoid;
    margin-bottom: 15pt;
    box-shadow: none !important;
  }
  
  a {
    text-decoration: underline;
    color: #000;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 90%;
  }
  
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  p, h2, h3, h4 {
    orphans: 3;
    widows: 3;
  }
  
  h2, h3, h4 {
    page-break-after: avoid;
  }
} 