/* Responsive CSS for Mature Guide Template */

/* Large Devices (Desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .about-image::before {
    left: -15px;
    top: 15px;
  }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
  .container {
    max-width: 720px;
  }

  section {
    padding: var(--spacing-lg) 0;
  }

  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .about-content {
    order: 1;
  }

  .about-image {
    order: 2;
    margin-top: var(--spacing-md);
  }

  .service-item,
  .price-item,
  .team-member,
  .info-item {
    max-width: 450px;
    margin: 0 auto;
  }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767.98px) {
  .container {
    max-width: 540px;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md) 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    margin: 0 0 var(--spacing-sm) 0;
  }

  .hero {
    height: auto;
    min-height: 500px;
  }

  .hero-content {
    padding: var(--spacing-xl) 0;
    text-align: center;
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .features-grid,
  .team-grid,
  .price-grid,
  .info-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .review-item {
    padding: var(--spacing-md);
  }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    width: 100%;
    padding: 0 var(--spacing-sm);
  }

  h1, .hero-content h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .btn {
    display: block;
    width: 100%;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    margin-bottom: var(--spacing-sm);
  }

  .hero-buttons .btn:last-child {
    margin-bottom: 0;
  }

  .about-image::before {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col h4:after {
    left: 50%;
    transform: translateX(-50%);
  }

  .review-author {
    flex-direction: column;
    text-align: center;
  }

  .review-author-image {
    margin: 0 auto var(--spacing-sm);
  }
}

/* Special Adjustments for Sliders */
@media (max-width: 767.98px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* Adjustments for users who prefer reduced motion */
@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;
  }
  
  .hero-slide,
  .service-item:hover,
  .team-member:hover,
  .blog-item:hover,
  .about-feature:hover,
  .info-item:hover,
  .feature-item:hover,
  .price-item:hover {
    transform: none !important;
  }
  
  .service-item:hover .service-image img,
  .team-member:hover .team-image img,
  .blog-item:hover .blog-image img {
    transform: none !important;
  }
}

/* Print Styles */
@media print {
  header,
  footer,
  .hero,
  .contact-form,
  .btn {
    display: none;
  }
  
  body {
    background-color: white;
    color: black;
    font-size: 12pt;
  }
  
  section {
    page-break-inside: avoid;
    margin-bottom: 1cm;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  img {
    max-width: 100% !important;
  }
  
  a:after {
    content: " (" attr(href) ")";
  }
} 