/* ===== RESPONSIVE STYLES - ARTISAN BREAD BAKERS HUB ===== */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  /* Spacing */
  :root {
    --section-padding: 40px 0;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .hero-section p {
    font-size: 0.95rem;
  }
  
  /* Cards */
  .card-body {
    padding: 1.5rem;
    overflow-x: hidden;
}
  
  /* Services */
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .service-price {
    font-size: 1.25rem;
  }
  
  /* Features */
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Team */
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  /* Timeline */
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: calc(100% - 50px);
    margin-left: 50px;
    padding: 1.5rem;
  }
  
  .timeline-item:nth-child(even) {
    margin-left: 50px;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 200px;
  }
  
  /* Contact Form */
  .form-control {
    padding: 0.6rem;
    font-size: 0.95rem;
  }
  
  .btn-primary {
    padding: 0.6rem 1.5rem;
    width: 100%;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .col-md-4 {
    margin-bottom: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  /* Hero */
  .hero-section {
    min-height: 85vh;
  }
  
  /* Timeline */
  .timeline::before {
    left: 25px;
  }
  
  .timeline-item {
    width: calc(100% - 55px);
    margin-left: 55px;
  }
  
  .timeline-item:nth-child(even) {
    margin-left: 55px;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero */
  .hero-section {
    min-height: 90vh;
  }
  
  /* Timeline */
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .timeline-item {
    width: 45%;
    margin-left: 0;
  }
  
  .timeline-item:nth-child(odd) {
    margin-left: 0;
  }
  
  .timeline-item:nth-child(even) {
    margin-left: 55%;
  }
  
  /* Services Grid */
  .service-card {
    height: auto;
    min-height: 300px;
  }
  
  /* Team Grid */
  .team-member {
    margin-bottom: 3rem;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 240px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Hero */
  .hero-section {
    min-height: 100vh;
  }
  
  /* Services Grid */
  .service-card {
    min-height: 320px;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 260px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container max width */
  .container {
    max-width: var(--content-max-width);
  }
  
  /* Gallery */
  .gallery-item img {
    height: 280px;
  }
  
  /* Large screen optimizations */
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .section-title h2 {
    font-size: 2.5rem;
  }
}

/* Specific responsive adjustments for mobile animations */
@media (max-width: 768px) {
  /* Disable hover effects on mobile */
  .card:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  /* Reduce motion for mobile */
  * {
    transition-duration: 0.2s !important;
  }
}

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

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for retina displays */
  .team-photo,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Dark mode support (future-proofing) */

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  /* Override any animations for users who prefer reduced motion */
  .card,
  .gallery-item img,
  .btn-primary,
  .timeline-item {
    transition: none !important;
  }
  
  .hero-section::before,
  .hero-section::after {
    animation: none !important;
  }
}

/* Print styles */
@media print {
  /* Hide navigation and unnecessary elements */
  .navbar,
  .footer,
  .btn {
    display: none !important;
  }
  
  /* Optimize typography for print */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black;
    page-break-after: avoid;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 20pt 0;
  }
  
  /* Ensure images fit properly */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Container adjustments for very wide screens */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 1rem;
  }
  
  /* Remove hover states that don't work on touch */
  .card:hover,
  .gallery-item:hover img {
    transform: none;
  }
}


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