/* Responsive Styles - Artisan Bread Bakers Hub */

/* Mobile First Approach */

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: 1.8rem;
    line-height: 1.4;
  }
  
  h2 {
    font-size: 1.5rem;
    line-height: 1.4;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  h4 {
    font-size: 1.1rem;
  }
  
  p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  /* Navbar brand sizing for mobile */
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  /* Hero section mobile optimization */
  .hero-section {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  /* Disable animations on mobile as per requirements */
  .hero-section::before {
    animation: none;
  }
  
  /* Service cards mobile layout */
  .service-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  /* Team photos mobile sizing */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .team-member {
    padding: 1.5rem;
  }
  
  /* Process steps mobile */
  .process-number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 0.9rem;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 2rem 1rem;
  }
  
  /* FAQ mobile optimization */
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
  
  /* Gallery mobile grid */
  .gallery-image {
    height: 200px;
    margin-bottom: 1rem;
  }
  
  /* Price cards mobile */
  .price-card {
    padding: 2rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .price-card.featured {
    transform: none;
    border-width: 2px;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  /* Timeline mobile */
  .timeline-item {
    padding: 1rem;
    margin-bottom: 1rem;
    border-left-width: 3px;
  }
  
  /* Section padding mobile */
  .section-padding {
    padding: 2.5rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  /* Remove hover effects on mobile */
  .service-card:hover,
  .blog-card:hover {
    transform: none;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .team-photo {
    width: 130px;
    height: 130px;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .price-card.featured {
    transform: scale(1.02);
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .navbar-brand {
    font-size: 1.4rem;
  }
  
  .hero-section {
    min-height: 95vh;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
  
  .price-amount {
    font-size: 2.2rem;
  }
  
  /* Enable subtle animations on tablet and above */
  .hero-section::before {
    animation: float 20s ease-in-out infinite;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .service-card:hover {
    transform: translateY(-5px);
  }
  
  .blog-card:hover {
    transform: translateY(-3px);
  }
  
  .price-card.featured {
    transform: scale(1.03);
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section {
    min-height: 100vh;
  }
  
  .service-card:hover {
    transform: translateY(-8px);
  }
  
  .blog-card:hover {
    transform: translateY(-5px);
  }
  
  .price-card.featured {
    transform: scale(1.05);
  }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  h1 {
    font-size: 2.4rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
}

/* Accessibility - Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations and transitions */
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-section::before {
    animation: none;
  }
  
  .service-card:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .price-card.featured {
    transform: none;
    border-width: 3px;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #2C2C2C;
    --border-color: #666666;
    --primary-crust: #5D2C0A;
    --bg-light: #FFFFFF;
  }
  
  .service-card,
  .team-member,
  .review-card,
  .contact-form,
  .blog-card,
  .price-card,
  .case-card,
  .info-card {
    border: 2px solid var(--border-color);
  }
}

/* Print Styles */
@media print {
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .hero-section::before {
    display: none;
  }
  
  .navbar,
  .footer {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
    overflow-x: hidden;
}
  
  .section-padding {
    padding: 1rem 0;
  }
  
  .service-card,
  .team-member,
  .review-card,
  .price-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}

/* Dark Mode Support (respects system preference) */

/* Focus Management for Better Accessibility */
.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;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-crust);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* Enhanced Focus Indicators */
button:focus-visible,
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--primary-sourdough);
  outline-offset: 2px;
}

/* Landscape Phone Optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
}

/* Fallback for older browsers */
@supports not (display: grid) {
  .row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
}

/* Smooth scrolling for modern browsers */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}


.hero-content {
    padding-top: 100px;
}