/* ===== RESPONSIVE STYLES ===== */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-content h1 {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-section {
    padding: 2rem 0;
  }
  
  .service-card,
  .team-card,
  .testimonial-card,
  .faq-card {
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .contact-form-container {
    padding: 2rem;
  }
  
  .hero-decorative-shapes .shape {
    display: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
  :root {
    --section-padding: 3rem 0;
    --card-padding: 1.25rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
    text-align: center;
  }
  
  .hero-content .lead {
    font-size: 1.125rem;
    text-align: center;
  }
  
  .hero-buttons {
    text-align: center;
  }
  
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .hero-buttons .btn:last-child {
    margin-bottom: 0;
  }
  
  .section-title {
    font-size: 1.875rem;
    text-align: center;
  }
  
  .section-description {
    text-align: center;
    font-size: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .service-image {
    height: 180px;
  }
  
  .team-image {
    width: 120px;
    height: 120px;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
  
  .tips-list,
  .benefits-list {
    gap: 1rem;
  }
  
  .tip-item,
  .benefit-item {
    flex-direction: column;
    text-align: center;
  }
  
  .tip-number,
  .benefit-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .method-cards {
    gap: 0.75rem;
  }
  
  .method-item {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }
  
  .method-item i {
    margin-right: 0;
    margin-bottom: 0.75rem;
  }
  
  .form-check-container {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .compliance-header {
    flex-direction: column;
    text-align: center;
  }
  
  .compliance-header i {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .contact-additional-info {
    padding: 1.5rem;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-links {
    margin-bottom: 1.5rem;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --section-padding: 2.5rem 0;
    --card-padding: 1rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-content .lead {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .hero-buttons .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .service-image {
    height: 150px;
  }
  
  .team-image {
    width: 100px;
    height: 100px;
  }
  
  .gallery-item img {
    height: 180px;
  }
  
  .contact-form,
  .contact-form-container {
    padding: 1.25rem;
  }
  
  .contact-info-card {
    margin-bottom: 1rem;
  }
  
  .contact-icon {
    font-size: 2rem;
  }
  
  .recipe-icon,
  .prevention-icon {
    font-size: 2.5rem;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .tip-number {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
  }
  
  .breadcrumb-nav {
    padding: 0.75rem 0;
  }
  
  .breadcrumb-icon {
    height: 20px;
  }
}

/* ===== MOBILE-SPECIFIC STYLES ===== */
@media (max-width: 767.98px) {
  /* Disable animations on mobile for better performance */
  .hero-decorative-shapes {
    display: none;
  }
  
  .service-card:hover,
  .team-card:hover,
  .testimonial-card:hover,
  .faq-card:hover,
  .gallery-item:hover,
  .recipe-card:hover,
  .strategy-step:hover,
  .prevention-card:hover,
  .compliance-card:hover {
    transform: none;
  }
  
  /* Optimize touch targets */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
  }
  
  .dropdown-item {
    padding: 0.75rem 1.5rem;
  }
  
  /* Improve form usability */
  .form-control,
  .form-select {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Better spacing for mobile */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }
  
  .row > * {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* ===== PREFERS-REDUCED-MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-decorative-shapes .shape {
    animation: none;
  }
  
  .service-card:hover,
  .team-card:hover,
  .testimonial-card:hover,
  .faq-card:hover,
  .gallery-item:hover,
  .recipe-card:hover,
  .strategy-step:hover,
  .prevention-card:hover,
  .compliance-card:hover {
    transform: none;
  }
  
  .gallery-item:hover {
    transform: none;
  }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #22c55e;
    --primary-dark: #15803d;
    --secondary-color: #3b82f6;
    --secondary-dark: #1d4ed8;
    --neutral-dark: #1f2937;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  }
  
  .btn-outline-primary {
    border-width: 2px;
  }
  
  .form-control,
  .form-select {
    border-width: 2px;
  }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 1.5rem 0;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .hero-content .lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-buttons .btn {
    display: inline-block;
    width: auto;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .header-section,
  .footer-section,
  .hero-buttons,
  .contact-form {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    background: white;
    color: black;
  }
  
  .section-title,
  .hero-content h1 {
    color: black;
  }
  
  .service-card,
  .team-card,
  .testimonial-card,
  .faq-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  
  .gallery-section {
    display: none;
  }
}

/* ===== DARK MODE SUPPORT ===== */

body {
    overflow-x: hidden;
}