/* Responsive CSS for Lifestyle Template */

/* Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --section-padding: 3rem 0;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .service-card,
  .feature-card,
  .price-card,
  .team-card,
  .info-card {
    margin-bottom: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .shape {
    display: none;
  }
  
  /* Disable animations on mobile for performance */
  .feature-card:hover,
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .info-card:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .gallery-item:hover {
    transform: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* 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(3, 1fr);
  }
  
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
  
  .price-card.featured {
    transform: scale(1.02);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .hero h1 {
    font-size: 4.5rem;
  }
}

/* Ultra wide screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(6, 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 {
    margin-bottom: 1rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero::before {
    background-image: url('../PHO_images/hero-bg@2x.webp');
  }
}

/* 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 {
    animation: none;
  }
  
  .fade-in-up {
    animation: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #1a1a1a;
    --light-gray: #2d2d2d;
    --gray: #a0a0a0;
    --dark-gray: #e0e0e0;
    --black: #ffffff;
  }
}

/* Print styles */
@media print {
  header,
  footer,
  .navbar,
  .btn,
  .shape {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
    background: #fff;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 2px solid var(--primary-sage);
    outline-offset: 2px;
  }
}

/* Container adjustments for different screen sizes */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Swiper slider responsive adjustments */
@media (max-width: 767.98px) {
  .swiper-slide {
    width: 100% !important;
  }
  
  .swiper-pagination {
    bottom: 10px !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .swiper-slide {
    width: 50% !important;
  }
}

@media (min-width: 992px) {
  .swiper-slide {
    width: 33.333% !important;
  }
}

/* Grid adjustments for different sections */
@media (max-width: 767.98px) {
  .row > [class*="col-"] {
    margin-bottom: 2rem;
  }
  
  .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* Navigation adjustments */
@media (max-width: 991.98px) {
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(156, 175, 136, 0.25);
  }
  
  .navbar-collapse {
    background: rgba(156, 175, 136, 0.95);
    margin-top: 1rem;
    border-radius: var(--radius-sm);
    padding: 1rem;
  }
}

/* Form adjustments */
@media (max-width: 575.98px) {
  .form-control {
    padding: 0.75rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn-primary {
    width: 100%;
    padding: 1rem;
  }
}

/* Card spacing adjustments */
@media (max-width: 991.98px) {
  .service-card,
  .feature-card,
  .price-card,
  .team-card,
  .info-card,
  .blog-card {
    margin-bottom: 2rem;
  }
}

/* Footer adjustments */
@media (max-width: 767.98px) {
  footer {
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
  
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }
  
  .footer-section {
    flex: 1;
    margin-right: 2rem;
  }
  
  .footer-section:last-child {
    margin-right: 0;
  }
} 