/* Responsive Styles for Cottage Renovation Blog */

/* Mobile First Approach */
@media (max-width: 767.98px) {
  /* Disable autoplay and effects on mobile */
  .swiper-wrapper {
    transform: none !important;
  }
  
  .swiper-slide {
    opacity: 1 !important;
  }
  
  /* Typography adjustments */
  :root {
    --font-size-h1: 1.8rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.3rem;
    --font-size-h4: 1.1rem;
  }
  
  /* Header */
  .navbar-brand {
    font-size: 1.15rem !important;
  }
  
  /* Hero adjustments */
  #hero {
    height: 70vh;
  }
  
  #hero h1 {
    font-size: 1.85rem;
  }
  
  /* Section padding */
  section {
    padding: 40px 0;
  }
  
  /* Service cards */
  .service-card {
    margin-bottom: 1.70rem;
  }
  
  .service-content {
    padding: 1.5rem;
  }
  
  /* Team photos */
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Price cards */
  .price-card {
    padding: 2rem 1.5rem;
  }
  
  .price-amount {
    font-size: 2.62rem;
  }
  
  /* Gallery images */
  .gallery-image {
    height: 200px;
  }
  
  /* Footer */
  footer {
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 1.70rem;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero adjustments */
  #hero h1 {
    font-size: 2.05rem;
  }
  
  /* Service cards */
  .service-card {
    margin-bottom: 2.07rem;
  }
  
  /* Team photos */
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  /* Gallery images */
  .gallery-image {
    height: 220px;
  }
}

/* Desktop */
@media (min-width: 992px) {
  /* Hero full height on desktop */
  #hero {
    height: 100vh;
  }
  
  /* Service cards hover effects */
  .service-card:hover {
    transform: translateY(-10px);
  }
  
  /* Gallery hover effects */
  .gallery-image:hover {
    transform: scale(1.05);
  }
  
  /* Team member hover effects */
  .team-member:hover .team-photo {
    transform: scale(1.1);
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  /* Larger spacing for big screens */
  section {
    padding: 100px 0;
  }
  
  .section-title {
    margin-bottom: 4.24rem;
  }
}

/* Extra Large Desktop */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Even larger spacing */
  section {
    padding: 120px 0;
  }
}

/* Print Styles */
@media print {
  * {
    color: black !important;
    background: white !important;
  }
  
  header, footer {
    display: none;
  }
  
  section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-rust: #000000;
    --primary-rust-dark: #000000;
    --primary-sage: #000000;
    --primary-sage-dark: #000000;
    --primary-stone-dark: #000000;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .service-card, .price-card, .review-item {
    border: 2px solid black;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .swiper-wrapper {
    transform: none !important;
  }
  
  .service-card:hover,
  .price-card:hover,
  .gallery-image:hover,
  .team-photo:hover {
    transform: none !important;
  }
  
  .btn-submit:hover {
    transform: none !important;
  }
}

/* Focus Styles for Accessibility */
.nav-link:focus,
.btn:focus,
.form-control:focus {
  outline: 3px solid var(--primary-rust);
  outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
} 