/* Farm-to-Table Restaurant Template - Responsive CSS */
/* Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Hero section */
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.24rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.29rem !important;
  }
  
  /* Section spacing */
  .section {
    padding: 2rem 0;
  }
  
  .section-title {
    font-size: 1.84rem;
  }
  
  .section-subtitle {
    font-size: 1.20rem;
  }
  
  /* Cards */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .card-img-top {
    height: 180px;
  }
  
  /* Team photos */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Feature items */
  .feature-item {
    padding: 1.5rem;
  }
  
  .feature-icon {
    font-size: 2.63rem;
  }
  
  /* Timeline */
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .timeline-marker {
    margin-bottom: 1rem;
    margin-right: 0;
  }
  
  .timeline-item::before {
    display: none;
  }
  
  /* Process steps */
  .process-step::after {
    display: none;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.33rem;
  }
  
  /* Gallery */
  .gallery {
    grid-template-columns: 1fr;
  }
  
  .gallery img {
    height: 200px;
  }
  
  /* Form */
  .form-control {
    padding: 0.5rem 0.75rem;
  }
  
  .btn-primary {
    padding: 0.5rem 1.5rem;
    width: 100%;
  }
  
  /* Reviews */
  .review-card {
    padding: 1.5rem;
  }
  
  .review-card::before {
    font-size: 3rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.37rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .timeline-item {
    flex-direction: row;
  }
  
  .timeline-marker {
    margin-right: 1.5rem;
    margin-bottom: 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 90vh;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
  
  /* Process steps on tablet */
  .process-step::after {
    width: 30px;
    right: -30%;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .container-fluid {
    max-width: 1400px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 0.60rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .hero-desc {
    font-size: 1.00rem;
    margin-bottom: 1rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .card-img-top,
  .team-photo,
  .gallery img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles for responsive layout */
@media print {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: auto;
    page-break-after: always;
  }
  
  .services-grid,
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .card,
  .feature-item,
  .team-member {
    break-inside: avoid;
  }
  
  .timeline-item::before {
    display: none;
  }
  
  .process-step::after {
    display: none;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before {
    animation: none;
  }
  
  .gallery img:hover {
    transform: none;
  }
  
  .card:hover,
  .feature-item:hover,
  .team-member:hover {
    transform: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .card,
  .feature-item,
  .team-member,
  .review-card,
  .faq-item {
    border-width: 3px;
  }
  
  .form-control {
    border-width: 3px;
  }
  
  .btn-primary {
    border: 3px solid var(--dark-green);
  }
}

