/* Farm-to-Table Restaurant Template - Responsive CSS */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    padding: 0 2rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Large Devices (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .priceplan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medium Devices (768px to 991px) - Tablets */
@media (max-width: 991px) and (min-width: 768px) {
  :root {
    --fs-h1: 2rem;
    --fs-h2: 1.6rem;
    --fs-h3: 1.4rem;
    --section-padding: 3rem 0;
  }
  
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-image {
    max-width: 400px;
    height: 300px;
    margin-top: 2rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .priceplan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* Small Devices (576px to 767px) - Large Mobile */
@media (max-width: 767px) and (min-width: 576px) {
  :root {
    --fs-h1: 1.8rem;
    --fs-h2: 1.5rem;
    --fs-h3: 1.3rem;
    --fs-navbar-brand: 1.2rem;
    --section-padding: 2.5rem 0;
  }
  
  .navbar-brand {
    font-size: var(--fs-navbar-brand) !important;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 70vh;
    text-align: center;
    padding: 2rem 1rem;
  }
  
  .hero-image {
    max-width: 350px;
    height: 280px;
    margin-top: 2rem;
  }
  
  .services-grid,
  .priceplan-grid,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .process-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  .service-card,
  .priceplan-card {
    padding: 1.5rem;
  }
  
  .team-member {
    padding: 1.5rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .review-card {
    margin: 0.5rem;
    padding: 1.5rem;
  }
  
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
}

/* Extra Small Devices (up to 575px) - Mobile */
@media (max-width: 575px) {
  :root {
    --fs-h1: 1.6rem;
    --fs-h2: 1.4rem;
    --fs-h3: 1.2rem;
    --fs-h4: 1.1rem;
    --fs-navbar-brand: 1.1rem;
    --fs-body: 0.95rem;
    --section-padding: 2rem 0;
  }
  
  body {
    font-size: var(--fs-body);
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: var(--fs-navbar-brand) !important;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    margin: 0;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 60vh;
    text-align: center;
    padding: 1.5rem 0.5rem;
  }
  
  .hero-image {
    max-width: 300px;
    height: 240px;
    margin-top: 1.73rem;
  }
  
  .hero-shape {
    display: none; /* Hide decorative shapes on mobile */
  }
  
  .section-padding {
    padding: var(--section-padding);
  }
  
  .services-grid,
  .team-grid,
  .priceplan-grid,
  .blog-grid,
  .process-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .service-card,
  .team-member,
  .priceplan-card,
  .blog-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .service-image,
  .blog-image {
    height: 180px;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .contact-form {
    padding: 1rem;
    margin: 0 0.5rem;
  }
  
  .form-control {
    padding: 0.5rem 0.8rem;
    font-size: 1.00rem;
  }
  
  .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 1.00rem;
  }
  
  .review-card {
    margin: 0.25rem;
    padding: 1rem;
  }
  
  .review-text {
    font-size: 1rem;
  }
  
  .faq-question,
  .faq-answer {
    padding: 0.8rem;
  }
  
  .timeline-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .process-step {
    padding: 1rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 1.55rem;
  }
  
  /* Hide complex animations on mobile for better performance */
  .service-card:hover,
  .team-member:hover,
  .priceplan-card:hover,
  .blog-card:hover,
  .process-step:hover {
    transform: none;
  }
}

/* Ultra Small Devices (up to 400px) */
@media (max-width: 400px) {
  :root {
    --fs-h1: 1.4rem;
    --fs-h2: 1.3rem;
    --fs-h3: 1.1rem;
    --fs-navbar-brand: 1rem;
    --fs-body: 0.9rem;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 50vh;
    padding: 1rem 0.25rem;
  }
  
  .hero-image {
    max-width: 280px;
    height: 220px;
  }
  
  .service-card,
  .team-member,
  .priceplan-card,
  .contact-form {
    padding: 0.8rem;
  }
  
  .service-image,
  .blog-image {
    height: 160px;
  }
  
  .gallery-item img {
    height: 180px;
  }
  
  .team-photo {
    width: 80px;
    height: 80px;
  }
  
  .form-control {
    padding: 0.4rem 0.6rem;
    font-size: 0.97rem;
  }
  
  .btn-primary {
    padding: 0.5rem 1.2rem;
    font-size: 1.02rem;
  }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 90vh;
  }
  
  .navbar-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem;
    margin: 0 0.25rem;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-image,
  .blog-image,
  .gallery-item img,
  .team-photo,
  .hero-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
  }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-shape {
    animation: none;
  }
  
  .service-card,
  .team-member,
  .priceplan-card,
  .blog-card,
  .process-step,
  .gallery-item img,
  .navbar-nav .nav-link,
  .btn-primary {
    transition: none !important;
    transform: none !important;
  }
  
  .service-card:hover,
  .team-member:hover,
  .priceplan-card:hover,
  .blog-card:hover,
  .process-step:hover {
    transform: none !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn-primary,
  .hero-shape {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .hero-section,
  .service-card,
  .team-member,
  .priceplan-card,
  .contact-form {
    background: white !important;
    box-shadow: none !important;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black !important;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
} 