/* ===================================
   Responsive Styles
   Mobile-First Approach
   =================================== */

/* ===================================
   Mobile Devices (up to 767px)
   =================================== */
@media (max-width: 767px) {
  /* Typography */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Header & Navigation */
  .header-container {
    padding: 0.75rem var(--container-padding);
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    padding: var(--spacing-lg);
    transition: left var(--transition-normal);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .language-switcher {
    margin-top: var(--spacing-md);
  }

  /* Hero Section - Mobile: No cover image, simple layout */
  .hero {
    height: auto;
    min-height: 300px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  }

  .hero .hero-image {
    display: none;
  }

  .hero .hero-overlay {
    position: relative;
    background: transparent;
  }

  .hero .hero-content.glass {
    background: rgba(255, 255, 255, 0.95);
    cursor: default !important;
    transform: none !important;
    pointer-events: auto;
  }

  .hero h1 {
    font-size: 1.75rem;
    color: var(--primary-green-dark);
  }

  .hero p {
    font-size: 1rem;
    color: var(--text-dark);
  }

  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .hero-buttons .btn {
    width: 100%;
  }

  /* Grid Layouts */
  .features-grid,
  .products-grid,
  .diseases-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  /* Cards */
  .card-image {
    height: 180px;
  }

  /* Search & Filter */
  .search-filter-section {
    padding: var(--spacing-md);
  }

  .filter-tags {
    gap: var(--spacing-xs);
  }

  .filter-tag {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
  }

  /* Modal */
  .modal-content {
    width: 95%;
    margin: var(--spacing-sm);
  }

  /* Spacing Adjustments */
  .section-padding {
    padding: var(--spacing-lg) 0;
  }

  /* Contact Methods */
  .contact-methods {
    grid-template-columns: 1fr;
  }

  /* Buttons */
  .btn {
    padding: 0.65rem 1.25rem;
  }

  .btn-large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  /* Scroll to Top */
  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 1rem;
    right: 1rem;
  }
}

/* ===================================
   Tablets (768px to 1023px)
   =================================== */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Typography */
  h1 {
    font-size: 2.25rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  /* Hero Section */
  .hero {
    height: 550px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  /* Grid Layouts */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid,
  .diseases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Navigation - Optional tablet menu */
  .nav-menu {
    gap: var(--spacing-md);
  }

  /* Contact Methods */
  .contact-methods {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================
   Desktop (1024px and above)
   =================================== */
@media (min-width: 1024px) {
  /* Container */
  .container {
    padding: 0 var(--spacing-lg);
  }

  /* Hero Section */
  .hero {
    height: 600px;
  }

  /* Grid Layouts */
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid,
  .diseases-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  /* Contact Methods */
  .contact-methods {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Hover Effects (only on desktop) */
  .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
  }

  .card:hover::before {
    opacity: 0.05;
  }
}

/* ===================================
   Large Desktop (1440px and above)
   =================================== */
@media (min-width: 1440px) {
  /* Container */
  :root {
    --container-max: 1320px;
  }

  /* Typography */
  html {
    font-size: 18px;
  }

  /* Hero Section */
  .hero {
    height: 650px;
  }

  /* Grid Layouts */
  .products-grid,
  .diseases-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
  /* Hide unnecessary elements */
  .header,
  .nav-menu,
  .menu-toggle,
  .language-switcher,
  .footer,
  .scroll-to-top,
  .btn,
  .search-filter-section {
    display: none;
  }

  /* Adjust colors for print */
  body {
    color: #000;
    background: #fff;
  }

  /* Remove shadows and transitions */
  .card,
  .modal-content {
    box-shadow: none;
  }

  /* Ensure readability */
  a {
    text-decoration: underline;
  }

  /* Page breaks */
  .card,
  .section-padding {
    page-break-inside: avoid;
  }
}

/* ===================================
   High DPI Displays (Retina)
   =================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize images and icons for retina displays */
  .logo img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* ===================================
   Landscape Orientation (Mobile)
   =================================== */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    height: 400px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 0.9rem;
  }
}

/* ===================================
   Reduced Motion (Accessibility)
   =================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===================================
   Dark Mode Support (Future)
   =================================== */
@media (prefers-color-scheme: dark) {
  /* Optional: Add dark mode styles here if needed in future */
  /*
  :root {
    --text-dark: #ffffff;
    --text-light: #b0b0b0;
    --white: #1a1a1a;
    --light-gray: #2a2a2a;
  }
  */
}