/* Recipe Publishing Platform - Responsive Styles */

/* Mobile First Approach - Base styles are for mobile */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* NO animations on mobile as per requirements */
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Conservative mobile typography */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Mobile hero adjustments */
  .hero-section {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-section::before {
    display: none; /* Remove decorative shapes on mobile */
  }
  
  /* Mobile section spacing */
  section {
    padding: 2rem 0;
  }
  
  /* Mobile cards */
  .card {
    margin-bottom: 1rem;
  }
  
  .service-item {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .service-icon {
    font-size: 2.5rem;
  }
  
  /* Mobile team cards */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .team-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Mobile gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  /* Mobile contact form */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Mobile process steps */
  .process-step {
    padding: 1.5rem 0.5rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Mobile FAQ */
  .faq-card {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }
  
  /* Mobile review cards */
  .review-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .review-card::before {
    font-size: 3rem;
    top: -5px;
    left: 15px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 85vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-item {
    margin-bottom: 1.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  section {
    padding: 3rem 0;
  }
  
  /* Tablet card layouts */
  .service-item {
    margin-bottom: 2rem;
  }
  
  .team-card,
  .review-card {
    margin-bottom: 1.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Desktop hero with two columns */
  .hero-section .row {
    align-items: center;
  }
  
  .hero-section .col-lg-6:first-child {
    order: 1;
  }
  
  .hero-section .col-lg-6:last-child {
    order: 2;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Large desktop optimizations */
  .container {
    max-width: 1140px;
  }
  
  section {
    padding: 5rem 0;
  }
  
  .hero-section {
    min-height: 100vh;
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

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

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    transform: translateZ(0); /* Hardware acceleration for crisp rendering */
  }
}

/* Dark mode support (respects user preference) */

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .hero-section::before {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    background: white !important;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #e7e7e7;
  }
}

/* Focus and accessibility improvements */
@media (min-width: 768px) {
  .btn:focus,
  .form-control:focus {
    outline: 3px solid rgba(80, 195, 98, 0.50);
    outline-offset: 2px;
  }
}

/* Reduced motion preferences (enhanced for mobile) */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before {
    display: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  .card:hover {
    transform: none;
  }
} 

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