/* Responsive Styles for RV Renovation Template */

/* Large Devices (Laptops/Desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: var(--container-max-width);
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .section-title h2 {
    font-size: 3rem;
  }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title h2 {
    font-size: 2.25rem;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  .team-card {
    margin-bottom: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .service-image {
    height: 180px;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --section-padding: 40px 0;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  .section-title {
    margin-bottom: 2.5rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
    padding: 0.5rem 1rem;
  }
  
  .feature-card,
  .service-card,
  .team-card,
  .review-card,
  .priceplan-card,
  .blog-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  .service-content {
    padding: 1.5rem;
  }
  
  .service-image {
    height: 160px;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  .price-tag {
    font-size: 2.25rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .contact-form {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
  
  /* Disable autoplay and effects on mobile for Swiper */
  .swiper-container {
    --swiper-autoplay-delay: 0;
  }
  
  .swiper-slide {
    transition: none !important;
  }
}

/* Navigation Responsive Behavior */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 95, 65, 0.95);
    border-radius: 10px;
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Form Responsive Behavior */
@media (max-width: 767.98px) {
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
  }
}

/* Grid System Responsive Adjustments */
@media (max-width: 991.98px) {
  .row > .col-lg-4,
  .row > .col-lg-6 {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .row > .col-md-6 {
    margin-bottom: 1.5rem;
  }
}

/* Hero Section Responsive Layout */
@media (max-width: 767.98px) {
  .hero-content {
    text-align: center;
  }
  
  .hero-image {
    margin-top: 2rem;
    order: -1;
  }
}

/* Services Grid Responsive */
@media (max-width: 1199.98px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Team Grid Responsive */
@media (max-width: 991.98px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Reviews Slider Responsive */
@media (max-width: 767.98px) {
  .review-card {
    margin: 0 0.5rem;
  }
  
  .review-text {
    font-size: 1rem;
  }
}

/* Contact Section Responsive */
@media (max-width: 991.98px) {
  .contact-info {
    margin-top: 3rem;
  }
}

@media (max-width: 767.98px) {
  .contact-info {
    margin-top: 2rem;
    text-align: center;
  }
}

/* Footer Responsive */
@media (max-width: 767.98px) {
  .footer .col-md-3,
  .footer .col-md-4 {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .footer-bottom {
    text-align: center;
  }
}

/* Performance Optimizations for Mobile */
@media (max-width: 767.98px) {
  /* Reduce animations and effects on mobile */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .review-card:hover,
  .priceplan-card:hover,
  .blog-card:hover,
  .gallery-item:hover img {
    transform: none;
  }
  
  /* Simplify gradients on mobile for performance */
  .hero-section,
  .services-section,
  .contact-section,
  .footer {
    background: var(--primary-color);
  }
  
  /* Reduce shadow complexity on mobile */
  .feature-card,
  .service-card,
  .team-card,
  .review-card,
  .priceplan-card,
  .blog-card,
  .contact-form {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
}

/* Accessibility Improvements */
@media (max-width: 767.98px) {
  /* Larger touch targets */
  .btn,
  .nav-link,
  .faq-question {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Better contrast on small screens */
  .text-light {
    color: #495057 !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .hero-section {
    display: none !important;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 20px 0;
  }
  
  .section-title h2 {
    color: #000 !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }
} 