/* Responsive Styles for Eco-Home Insurance */

/* Large screens and desktop */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .section {
    padding: 6rem 0;
  }
}

/* Medium screens and tablets */
@media (max-width: 1199px) and (min-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Small screens and mobile devices */
@media (max-width: 767px) {
  /* Typography adjustments for mobile */
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  /* Navigation adjustments */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
  }
  
  /* Section adjustments */
  .section {
    padding: 3rem 0;
  }
  
  .section-desc {
    font-size: 0.95rem;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  /* Decorative blobs on mobile */
  .blob-1 {
    width: 200px;
    height: 200px;
    top: 5%;
    right: -100px;
  }
  
  .blob-2 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: -75px;
  }
  
  /* Cards and content */
  .feature-card,
  .service-card,
  .price-card {
    margin-bottom: 1.5rem;
  }
  
  .service-content,
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Team members */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .team-name {
    font-size: 1.1rem;
  }
  
  /* Gallery adjustments */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  /* Price cards */
  .price-value {
    font-size: 2rem;
  }
  
  /* Process steps */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Reviews */
  .review-card {
    padding: 1.5rem;
  }
  
  .review-text {
    font-size: 1rem;
  }
  
  /* Footer adjustments */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer-content {
    margin-bottom: 1.5rem;
  }
}

/* Extra small screens */
@media (max-width: 575px) {
  /* Further typography reductions */
  .hero-title {
    font-size: 1.75rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  /* Container padding */
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Sections */
  .section {
    padding: 2rem 0;
  }
  
  /* Hero adjustments */
  .hero-section {
    min-height: 70vh;
  }
  
  /* Cards */
  .feature-card,
  .service-card,
  .price-card,
  .contact-form {
    padding: 1rem;
  }
  
  /* Form elements */
  .form-control {
    padding: 0.5rem;
  }
  
  .btn-primary {
    padding: 0.5rem 1.5rem;
  }
  
  /* Team photos */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Process numbers */
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* Price value */
  .price-value {
    font-size: 1.75rem;
  }
}

/* Swiper specific responsive adjustments */
@media (max-width: 767px) {
  /* Disable autoplay and effects on mobile as per requirements */
  .swiper {
    overflow: visible;
  }
  
  .swiper-slide {
    width: 100% !important;
  }
  
  /* Hide navigation arrows on mobile */
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  
  /* Adjust pagination */
  .swiper-pagination {
    position: relative;
    margin-top: 1rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../PEN_images/hero-bg@2x.webp');
  }
}

/* Landscape mobile devices */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section {
    min-height: 60vh;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  body {
    overflow-x: hidden;
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 24pt;
  }
  
  h1 { font-size: 20pt; }
  h2 { font-size: 18pt; }
  h3 { font-size: 16pt; }
  h4 { font-size: 14pt; }
  
  .service-card,
  .feature-card,
  .price-card {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .swiper {
    scroll-behavior: auto;
  }
  
  .swiper-slide {
    scroll-snap-align: start;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .navbar {
    background: linear-gradient(135deg, var(--eco-primary-dark), var(--eco-secondary-dark));
  }
  
  .section-desc {
    color: var(--eco-neutral-light);
  }
  
  .feature-card,
  .service-card,
  .price-card {
    background: var(--eco-dark-bg);
    color: var(--eco-neutral-light);
  }
  
  .contact-form {
    background: var(--eco-dark-bg);
    color: var(--eco-neutral-light);
  }
  
  .form-control {
    background: var(--eco-dark-bg);
    border-color: var(--eco-neutral);
    color: var(--eco-neutral-light);
  }
} 