/* Smart Irrigation System Installer - Responsive CSS */
/* Mobile-first responsive design with no animations on mobile */

/* Mobile devices (up to 767px) */
@media (max-width: 767px) {
  /* Disable all animations on mobile */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Typography adjustments */
  :root {
    --h1-size: 1.6rem;
    --h2-size: 1.4rem;
    --h3-size: 1.2rem;
    --p-size: 0.9rem;
  }
  
  /* Header mobile adjustments */
  #header .navbar-brand {
    font-size: 1rem;
  }
  
  #header .navbar-nav {
    margin-top: 1rem;
  }
  
  #header .navbar-nav .nav-link {
    padding: 0.5rem 0;
    margin: 0.2rem 0;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  #hero .hero-content {
    text-align: center;
    padding-top: 125px;
}
  
  #hero h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  /* Section padding adjustments */
  #about, #services, #features, #priceplan, #team, #reviews, 
  #casestudy, #process, #timeline, #career, #coreinfo, 
  #contact, #blog, #faq, #gallery {
    padding: 3rem 0;
  }
  
  /* Cards mobile adjustments */
  #about .feature-card,
  #services .service-card,
  #team .team-card,
  #reviews .review-card,
  #casestudy .case-card,
  #career .career-card,
  #coreinfo .info-card,
  #blog .blog-card,
  #faq .faq-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  /* Price plan mobile */
  #priceplan .price-card {
    margin-bottom: 2rem;
    padding: 2rem 1.5rem;
  }
  
  #priceplan .price-card.featured {
    transform: none;
  }
  
  #priceplan .price-value {
    font-size: 2.5rem;
  }
  
  /* Team photos mobile */
  #team .team-photo {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }
  
  /* Contact form mobile */
  #contact .contact-form {
    padding: 2rem 1.5rem;
  }
  
  #contact .form-control {
    padding: 10px 12px;
  }
  
  /* Gallery mobile */
  #gallery .gallery-image {
    height: 200px;
  }
  
  /* Process steps mobile */
  #process .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  /* Icons mobile */
  #about .feature-icon,
  #features .feature-icon,
  #coreinfo .info-icon {
    font-size: 2.5rem;
  }
  
  /* Footer mobile */
  #footer {
    padding: 2rem 0 1rem;
  }
  
  #footer .footer-section {
    margin-bottom: 1.5rem;
    text-align: center;
  }
}

/* Small mobile devices (up to 575px) */
@media (max-width: 575px) {
  /* Further typography adjustments */
  :root {
    --h1-size: 1.4rem;
    --h2-size: 1.2rem;
    --h3-size: 1.1rem;
    --p-size: 0.85rem;
    --navbar-brand-size: 0.95rem;
  }
  
  /* Container padding */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Hero adjustments */
  #hero h1 {
    font-size: 1.6rem;
  }
  
  /* Cards extra small mobile */
  #about .feature-card,
  #services .service-card,
  #team .team-card,
  #reviews .review-card,
  #casestudy .case-card,
  #career .career-card,
  #coreinfo .info-card,
  #blog .blog-card,
  #faq .faq-card {
    padding: 1.2rem;
  }
  
  /* Price cards extra small */
  #priceplan .price-card {
    padding: 1.5rem 1rem;
  }
  
  #priceplan .price-value {
    font-size: 2rem;
  }
  
  /* Service prices */
  #services .service-price {
    font-size: 1.6rem;
  }
  
  /* Contact form extra small */
  #contact .contact-form {
    padding: 1.5rem 1rem;
  }
  
  /* Team photos extra small */
  #team .team-photo {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
  
  /* Icons extra small */
  #about .feature-icon,
  #features .feature-icon,
  #coreinfo .info-icon {
    font-size: 2rem;
  }
  
  /* Gallery extra small */
  #gallery .gallery-image {
    height: 180px;
    font-size: 1rem;
  }
  
  /* Process steps extra small */
  #process .step-number {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  /* Section descriptions */
  .section-description {
    font-size: 0.9rem;
  }
}

/* Tablet devices (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  /* Typography tablet */
  :root {
    --h1-size: 1.8rem;
    --h2-size: 1.5rem;
    --h3-size: 1.25rem;
    --p-size: 0.92rem;
  }
  
  /* Hero tablet */
  #hero {
    min-height: 90vh;
  }
  
  /* Cards tablet adjustments */
  #about .feature-card,
  #services .service-card,
  #team .team-card,
  #reviews .review-card,
  #casestudy .case-card,
  #career .career-card,
  #coreinfo .info-card,
  #blog .blog-card {
    padding: 1.8rem;
  }
  
  /* Price cards tablet */
  #priceplan .price-card {
    padding: 2.5rem 1.8rem;
  }
  
  #priceplan .price-value {
    font-size: 2.5rem;
  }
  
  /* Gallery tablet */
  #gallery .gallery-image {
    height: 220px;
  }
  
  /* Team photos tablet */
  #team .team-photo {
    width: 110px;
    height: 110px;
  }
  
  /* Icons tablet */
  #about .feature-icon,
  #features .feature-icon,
  #coreinfo .info-icon {
    font-size: 2.8rem;
  }
}

/* Desktop devices (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  /* Standard desktop - most styles from main.css apply */
  
  /* Gallery desktop */
  #gallery .gallery-image {
    height: 240px;
  }
  
  /* Cards desktop */
  #about .feature-card,
  #services .service-card,
  #team .team-card,
  #reviews .review-card,
  #casestudy .case-card,
  #career .career-card,
  #coreinfo .info-card,
  #blog .blog-card {
    padding: 2rem;
  }
}

/* Large desktop devices (1200px and up) */
@media (min-width: 1200px) {
  /* Large desktop optimizations */
  
  /* Container max width */
  .container {
    max-width: 1140px;
  }
  
  /* Gallery large desktop */
  #gallery .gallery-image {
    height: 280px;
  }
  
  /* Enhanced spacing for large screens */
  #about, #services, #features, #priceplan, #team, #reviews, 
  #casestudy, #process, #timeline, #career, #coreinfo, 
  #contact, #blog, #faq, #gallery {
    padding: 6rem 0;
  }
  
  /* Larger cards for big screens */
  #about .feature-card,
  #services .service-card,
  #team .team-card,
  #reviews .review-card,
  #casestudy .case-card,
  #career .career-card,
  #coreinfo .info-card,
  #blog .blog-card {
    padding: 2.5rem;
  }
  
  /* Price cards large */
  #priceplan .price-card {
    padding: 3.5rem 2.5rem;
  }
  
  /* Contact form large */
  #contact .contact-form {
    padding: 4rem 3rem;
  }
}

/* Print styles */
@media print {
  /* Remove animations and transitions for print */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Hide non-essential elements */
  #header, #footer, .btn, button {
    display: none !important;
  }
  
  /* Optimize for print */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    overflow-x: hidden;
}
  
  h1, h2, h3 {
    color: black;
    page-break-after: avoid;
  }
  
  .section-title {
    page-break-after: avoid;
  }
  
  /* Ensure content flows properly */
  section {
    page-break-inside: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --secondary-color: #008000;
    --accent-color: #ff6600;
    --neutral-color: #666666;
    --tertiary-color: #cc0000;
  }
  
  /* Enhance contrast for better accessibility */
  .navbar-nav .nav-link {
    color: white !important;
  }
  
  .navbar-nav .nav-link:hover {
    color: yellow !important;
  }
  
  #hero {
    background: linear-gradient(135deg, #000080 0%, #008000 100%);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  /* Reduce hero height on landscape mobile */
  #hero {
    min-height: 70vh;
  }
  
  /* Adjust section padding */
  #about, #services, #features, #priceplan, #team, #reviews, 
  #casestudy, #process, #timeline, #career, #coreinfo, 
  #contact, #blog, #faq, #gallery {
    padding: 2rem 0;
  }
}

/* ========== RESPONSIVE IMAGE CONTAINER FIXES ========== */
/* Дополнительные исправления для изображений на мобильных устройствах */

/* Mobile devices (up to 767px) */
@media (max-width: 767px) {
  /* Исправляем контейнеры изображений */
  .hero-image {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    margin: 0 auto !important;
  }
  
  .service-card, .case-card {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  
  .service-card img, .case-card img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    max-width: 100% !important;
    display: block !important;
  }
  
  /* Контейнеры Bootstrap */
  .col-lg-6, .col-md-6, .col-sm-6 {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  
  .col-lg-6 img, .col-md-6 img, .col-sm-6 img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* Small mobile devices (up to 575px) */
@media (max-width: 575px) {
  .service-card img, .case-card img {
    height: 160px !important;
  }
  
  .hero-image img {
    min-height: 200px !important;
    max-height: 280px !important;
  }
}

/* Tablet devices (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .service-card img, .case-card img {
    height: 200px !important;
  }
  
  .col-lg-6 img {
    height: 300px !important;
    object-fit: cover !important;
  }
}

/* Desktop devices (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .service-card img, .case-card img {
    height: 220px !important;
  }
  
  .col-lg-6 img {
    height: 320px !important;
    object-fit: cover !important;
  }
}

/* Large desktop devices (1200px and up) */
@media (min-width: 1200px) {
  .service-card img, .case-card img {
    height: 250px !important;
  }
  
  .col-lg-6 img {
    height: 350px !important;
    object-fit: cover !important;
  }
  
  .hero-image img {
    min-height: 350px !important;
    max-height: 500px !important;
  }
}

/* ========== END RESPONSIVE IMAGE CONTAINER FIXES ========== */ 