/* Responsive Design for Family Future Template */

/* Large Desktop */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-text h1 {
    font-size: 4rem;
  }
  
  .section-header h2 {
    font-size: 3rem;
  }
}

/* Desktop */
@media (max-width: 1199px) {
  .hero-text h1 {
    font-size: 3rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Tablet */
@media (max-width: 991px) {
  header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    gap: 1.5rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-text h2 {
    font-size: 1.3rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .services-grid,
  .features-grid,
  .priceplan-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Mobile Large */
@media (max-width: 767px) {
  :root {
    --section-padding: 60px 0;
  }
  
  header {
    padding: 0.8rem 0;
  }
  
  #sitename {
    font-size: 1.5rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .hero {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-text h1 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }
  
  .hero-text h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  .section-header {
    margin-bottom: 3rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .section-header h3 {
    font-size: 1.1rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
  
  .about-features,
  .services-grid,
  .features-grid,
  .priceplan-grid,
  .team-grid,
  .coreinfo-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-item,
  .feature-item,
  .priceplan-item {
    margin: 0 1rem;
  }
  
  .service-content,
  .priceplan-item {
    padding: 1.5rem;
  }
  
  .contact-form {
    margin: 2rem auto 0;
    padding: 2rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  /* Disable animations on mobile for better performance */
  .service-item:hover,
  .feature-item:hover,
  .about-feature:hover,
  .blog-item:hover,
  .gallery-item:hover img {
    transform: none;
  }
}

/* Mobile Medium */
@media (max-width: 575px) {
  :root {
    --section-padding: 40px 0;
    --container-padding: 0 10px;
  }
  
  .hero {
    min-height: 70vh;
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .hero-text h2 {
    font-size: 1rem;
  }
  
  .section-header h2 {
    font-size: 1.6rem;
  }
  
  .section-header h3 {
    font-size: 1rem;
  }
  
  .about-feature,
  .feature-item {
    padding: 1.5rem;
  }
  
  .about-feature i,
  .feature-item i {
    font-size: 2.5rem;
  }
  
  .service-content h4,
  .feature-item h4,
  .about-feature h4 {
    font-size: 1.2rem;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  .priceplan-item .price {
    font-size: 2.5rem;
  }
  
  .team-member {
    padding: 1.5rem;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  .review-item {
    padding: 2rem 1.5rem;
    margin: 0 0.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.8rem;
  }
  
  .submit-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
  
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
  }
}

/* Mobile Small */
@media (max-width: 375px) {
  .hero-text h1 {
    font-size: 1.6rem;
  }
  
  .section-header h2 {
    font-size: 1.4rem;
  }
  
  .service-item,
  .feature-item,
  .priceplan-item,
  .review-item {
    margin: 0;
  }
  
  .contact-form {
    padding: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-text h2 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
  
  :root {
    --section-padding: 40px 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image img,
  .team-member img,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced Motion Preferences */
@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::before {
    animation: none;
  }
  
  .service-item:hover,
  .feature-item:hover,
  .about-feature:hover,
  .blog-item:hover,
  .gallery-item:hover img,
  .submit-btn:hover {
    transform: none;
  }
}

/* Print Styles */
@media print {
  header,
  footer,
  .breadcrumb,
  .contact-form,
  .swiper-pagination {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .hero,
  section {
    background: white !important;
    color: black !important;
  }
  
  .hero-text h1,
  .hero-text h2,
  .hero-text p,
  .section-header h2,
  .section-header h3,
  .section-header p {
    color: black !important;
  }
  
  .service-item,
  .feature-item,
  .priceplan-item,
  .team-member,
  .review-item,
  .coreinfo-item,
  .blog-item,
  .faq-item {
    box-shadow: none;
    border: 1px solid #ccc;
  }
} 