/* ================================================
   RESPONSIVE STYLES - CHICKEN COOP BUILDER
   Mobile-First Approach
   ================================================ */

/* ================================================
   MOBILE STYLES (Default - 320px and up)
   ================================================ */

/* Disable Swiper autoplay and effects on mobile */
@media (max-width: 767.98px) {
  .swiper {
    --swiper-navigation-size: 0;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  
  .swiper-pagination {
    position: static;
    margin-top: 1rem;
  }
}

/* Mobile Typography */
@media (max-width: 575.98px) {
  :root {
    --font-size-base: 14px;
    --section-padding: 40px 0;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  h4 {
    font-size: 1.2rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
    text-align: center;
  }
}

/* Mobile Hero */
@media (max-width: 767.98px) {
  .hero {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 2rem;
  }
  
  .hero-shape {
    display: none;
  }
}

/* Mobile Cards and Services */
@media (max-width: 575.98px) {
  .card {
    margin-bottom: 1.5rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .feature-item {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .team-member {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
}

/* Mobile Contact Form */
@media (max-width: 767.98px) {
  .contact-form {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .contact-form {
    padding: 1.5rem 1rem;
  }
}

/* Mobile Gallery */
@media (max-width: 575.98px) {
  .gallery-item img {
    height: 200px;
  }
}

/* Mobile Buttons */
@media (max-width: 575.98px) {
  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* ================================================
   TABLET STYLES (768px and up)
   ================================================ */
@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .section-title h2 {
    font-size: 2.2rem;
  }
  
  .card-columns {
    column-count: 2;
  }
}

/* ================================================
   DESKTOP STYLES (992px and up)
   ================================================ */
@media (min-width: 992px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  .section-title h2 {
    font-size: 2.5rem;
  }
  
  .card-columns {
    column-count: 3;
  }
  
  /* Enable hover effects on desktop only */
  .desktop-hover:hover {
    transform: translateY(-5px);
  }
}

/* ================================================
   LARGE DESKTOP STYLES (1200px and up)
   ================================================ */
@media (min-width: 1200px) {
  .hero-content h1 {
    font-size: 4rem;
  }
  
  .container {
    max-width: 1140px;
  }
}

/* ================================================
   EXTRA LARGE DESKTOP (1400px and up)
   ================================================ */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-content h1 {
    font-size: 4.5rem;
  }
}

/* ================================================
   LANDSCAPE ORIENTATION
   ================================================ */
@media (orientation: landscape) and (max-height: 600px) {
  .hero {
    min-height: 90vh;
  }
  
  .section {
    padding: 50px 0;
  }
}

/* ================================================
   HIGH DPI DISPLAYS
   ================================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image img,
  .gallery-item img,
  .team-photo,
  .blog-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ================================================
   PRINT STYLES
   ================================================ */
@media print {
  .navbar,
  .footer,
  .btn,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    page-break-inside: avoid;
  }
  
  .section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
  
  body { overflow-x: hidden;
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* ================================================
   ACCESSIBILITY IMPROVEMENTS
   ================================================ */
@media (prefers-contrast: high) {
  :root {
    --primary-charcoal: #000000;
    --light-charcoal: #333333;
    --dark-charcoal: #000000;
  }
  
  .btn {
    border-width: 3px;
  }
  
  .card {
    border: 2px solid var(--primary-charcoal);
  }
}

/* Focus indicators for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
  *:focus {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
  }
  
  .btn:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.5);
  }
}

/* ================================================
   CONTAINER BREAKPOINT ADJUSTMENTS
   ================================================ */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
} 