/* Responsive CSS for Eco-Home Insurance Template */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  :root {
    --section-padding: 40px 0;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.6rem; }
  h4 { font-size: 1.4rem; }
  h5 { font-size: 1.2rem; }
  h6 { font-size: 1rem; }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.5rem;
  }
  
  .service-card,
  .price-card,
  .contact-form {
    padding: 1.5rem;
  }
  
  .team-member img {
    width: 150px;
    height: 150px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .shape-1,
  .shape-2 {
    display: none;
  }
  
  /* Disable animations on mobile for performance */
  .service-card:hover,
  .price-card:hover,
  .feature-item:hover,
  .about-feature:hover,
  .coreinfo-item:hover {
    transform: none;
  }
  
  /* Swiper adjustments for mobile */
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero h1 {
    font-size: 3.2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Re-enable hover effects on tablets and up */
  .service-card:hover {
    transform: translateY(-10px);
  }
  
  .price-card:hover {
    transform: scale(1.03);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero::before {
    transform: rotate(15deg) scale(1.1);
  }
}

/* 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;
  }
  
  .shape-1,
  .shape-2 {
    animation: none;
  }
  
  .swiper {
    --swiper-navigation-size: 0;
  }
  
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* Print styles */
@media print {
  .navbar,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev,
  .shape-1,
  .shape-2 {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .service-card,
  .price-card,
  .feature-item,
  .about-feature,
  .coreinfo-item {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Container max-widths for different breakpoints */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #2d5016;
    --primary-sage: #1a4c4f;
    --primary-coral: #8b0000;
    --primary-navy: #000080;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-cream: #1a1a1a;
    --light-cream: #2d2d2d;
    --dark-cream: #0f0f0f;
    --dark-navy: #e0e0e0;
  }
  
  body {
    background-color: var(--primary-cream);
    color: var(--dark-navy);
  }
  
  .service-card,
  .price-card,
  .feature-item,
  .about-feature,
  .coreinfo-item,
  .contact-form,
  .blog-card,
  .review-item {
    background: var(--light-cream);
    color: var(--dark-navy);
  }
} 