/* Houseplant Babysitting - Responsive CSS */

/* Mobile First - Base styles are for mobile */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-section h1 {
    font-size: 2.55rem;
  }
  
  .service-card {
    margin-bottom: 1.62rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-section h1 {
    font-size: 3.10rem;
  }
  
  .hero-section p {
    font-size: 1.13rem;
  }
  
  .feature-card {
    margin-bottom: 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .coreinfo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-section h1 {
    font-size: 3.53rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .coreinfo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .process-step {
    margin-bottom: 0;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section h1 {
    font-size: 4.11rem;
  }
  
  .container-xxl {
    max-width: 1400px;
  }
}

/* Mobile specific styles (less than 768px) */
@media (max-width: 767.98px) {
  .navbar-brand {
    font-size: 1.13rem;
  }
  
  .hero-section {
    text-align: center;
    padding: 2rem 0;
    margin-top: 80px; /* Account for fixed navbar */
  }
  
  .hero-section h1 {
    font-size: 2.09rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-title h2 {
    font-size: 1.52rem;
  }
  
  .service-card {
    margin-bottom: 2.11rem;
  }
  
  .price-card {
    margin-bottom: 2.11rem;
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .coreinfo-grid {
    grid-template-columns: 1fr;
  }
  
  /* Reviews section mobile fixes */
  .reviews-section {
    overflow: hidden;
  }
  
  .reviews-swiper {
    overflow: visible;
    padding: 1rem 0 2rem 0;
    margin: 0 -15px; /* Negative margin to account for container padding */
  }
  
  .reviews-swiper .swiper-wrapper {
    padding-bottom: 1rem;
  }
  
  .reviews-swiper .swiper-slide {
    width: 90% !important;
    margin-right: 20px;
  }
  
  .review-card {
    margin: 0;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(66, 115, 84, 0.08);
  }
  
  .review-text {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .review-author {
    font-size: 0.9rem;
  }
  
  /* Disable autoplay and effects for Swiper on mobile */
  .swiper-container {
    --swiper-autoplay-delay: 0;
  }
  
  .swiper-slide {
    transform: none !important;
  }
  
  /* Navbar mobile fixes */
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-nav {
    padding-top: 1rem;
    background: var(--primary-green);
    margin: 0 -15px;
    border-radius: 0 0 15px 15px;
  }
  
  .navbar-nav .nav-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }
  
  .navbar-nav .nav-link {
    font-size: 14px !important;
    padding: 0.5rem 1rem !important;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
}

/* Very small devices (less than 576px) */
@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 1.93rem;
  }
  
  .hero-section p {
    font-size: 0.97rem;
  }
  
  .section-title h2 {
    font-size: 1.39rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .service-content {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 1rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
  
  /* Reviews section ultra-mobile fixes */
  .reviews-swiper {
    margin: 0 -10px;
    padding: 0.5rem 0 1.5rem 0;
  }
  
  .reviews-swiper .swiper-slide {
    width: 85% !important;
    margin-right: 15px;
  }
  
  .review-card {
    padding: 1rem;
    border-radius: 12px;
  }
  
  .review-text {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  .review-author {
    font-size: 0.85rem;
  }
  
  /* Navbar ultra-mobile fixes */
  .navbar-brand {
    font-size: 1rem;
  }
  
  .navbar-nav .nav-link {
    font-size: 12px !important;
  }
  
  /* Container overflow fixes */
  .container {
    overflow-x: hidden;
  }
  
  body {
    overflow-x: hidden;
  }
  
  html {
    overflow-x: hidden;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 70vh;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .hero-decorative {
    display: none !important;
  }
  
  .hero-section {
    background: white !important;
    color: black !important;
    min-height: auto !important;
  }
  
  .section {
    padding: 1rem 0 !important;
  }
  
  body {
  overflow-x: hidden;
    background: white !important;
    color: black !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #005308;
    --primary-light-green: #076100;
    --dark-green: #000000;
    --light-green: #ffffff;
  }
  
  .service-card,
  .feature-card,
  .price-card {
    border: 2px solid var(--dark-green);
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .swiper-container,
  .swiper-slide {
    transition: none !important;
    animation: none !important;
  }
  
  .service-card:hover,
  .feature-card:hover,
  .blog-card:hover {
    transform: none !important;
  }
} 