/* ============================================
   Cloud Kitchen Template - Responsive Styles
   Mobile-First Responsive Design
   ============================================ */

/* Base Mobile Styles (320px and up) */
@media (min-width: 320px) {
  .container {
    padding: 0 15px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-desc {
    font-size: 0.9rem;
  }
  
  .navbar-nav {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  

  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Small Mobile Styles (480px and up) */
@media (min-width: 480px) {
  .container {
    padding: 0 20px;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  

  
  .navbar-nav {
    flex-direction: row;
    gap: 1rem;
  }
}

/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-desc {
    font-size: 1.1rem;
  }
  
  .navbar-nav {
    gap: 1.5rem;
  }
  

  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop Styles (992px and up) */
@media (min-width: 992px) {
  .section {
    padding: 80px 0;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .navbar-nav {
    gap: 2rem;
  }
  

  
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Desktop Styles (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
  

  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra Large Desktop Styles (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
}

/* Navigation Mobile Menu */
@media (max-width: 767px) {
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-container {
    position: relative;
  }
  
  .navbar-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
  }
  
  .navbar-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
  }
  
  .navbar-nav.active {
    display: flex;
  }
  
  .nav-link {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition-base);
  }
  
  .nav-link:hover {
    background: var(--gray-light);
  }
}

/* Hero Section Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-content {
    padding: 2rem 0;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
}

/* Form Responsive */
@media (max-width: 768px) {
  .contact-form {
    padding: 0 1rem;
  }
  
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Cards Responsive */
@media (max-width: 768px) {
  .service-card,
  .team-member,
  .review-card,
  .blog-card {
    margin-bottom: 1.5rem;
  }
  
  .service-card,
  .team-member,
  .review-card {
    padding: 1.5rem;
  }
}

/* FAQ Responsive */
@media (max-width: 768px) {
  .faq-question {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .faq-answer {
    padding: 1rem;
    font-size: 0.9rem;
  }
}

/* Gallery Responsive */
@media (max-width: 768px) {
  .gallery-item img {
    height: 200px;
  }
}

/* Button Responsive */
@media (max-width: 768px) {
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Typography Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.1rem; }
  h6 { font-size: 1rem; }
  
  p {
    font-size: 0.9rem;
  }
}

/* Utility Classes Responsive */
@media (max-width: 768px) {
  .text-center-mobile {
    text-align: center;
  }
  
  .d-none-mobile {
    display: none;
  }
  
  .d-block-mobile {
    display: block;
  }
  
  .mb-mobile-1 {
    margin-bottom: 1rem;
  }
  
  .mb-mobile-2 {
    margin-bottom: 2rem;
  }
  
  .mt-mobile-1 {
    margin-top: 1rem;
  }
  
  .mt-mobile-2 {
    margin-top: 2rem;
  }
}

/* Print Styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .navbar,
  .footer {
    display: none !important;
  }
  
  .hero {
    min-height: auto !important;
    padding: 2rem 0 !important;
  }
  
  .section {
    padding: 1rem 0 !important;
  }
  
  .btn,
  .form-control {
    border: 1px solid #000 !important;
  }
  
  .contact-form {
    display: none !important;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero::before {
    background-image: url('../ZIR_images/hero-bg@2x.webp');
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
  .hero {
    min-height: 100vh;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* Dark Mode Support (Optional) */

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .service-card:hover,
  .team-member:hover,
  .gallery-item:hover,
  .blog-card:hover {
    transform: none !important;
  }
  
  .btn:hover {
    transform: none !important;
  }
}

/* Focus Management for Accessibility */
@media (max-width: 768px) {
  .navbar-nav .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
  }
  
  .faq-question {
    padding: 1.25rem;
  }
}

/* Very Small Devices */
@media (max-width: 360px) {
  .container {
    padding: 0 10px;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .service-card,
  .team-member,
  .review-card {
    padding: 1rem;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

/* Very Large Screens */
@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .section {
    padding: 100px 0;
  }
} 