/* Responsive Design - Media Queries */

/* ===== MOBILE (320px - 767px) ===== */
/* Base styles in other CSS files are mobile-first */

@media (max-width: 767px) {
  /* Typography adjustments */
  :root {
    --container-padding: 1rem;
    --section-padding: var(--space-lg);
  }

  /* Hero */
  .hero {
    min-height: 70vh;
  }

  .hero-title {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  /* Navigation */
  .nav-menu.active {
    width: 100%;
    max-width: 280px;
    height: 100vh;
    z-index: var(--z-fixed);
  }

  /* Grid overrides */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .grid-60-40,
  .grid-70-30 {
    grid-template-columns: 1fr;
  }

  /* Buttons */
  .btn {
    width: 100%;
    min-height: 50px;
  }

  .hero .btn {
    width: auto;
    min-width: 200px;
  }

  /* Stats */
  .stats-container {
    grid-template-columns: 1fr;
    padding: var(--space-lg) 0;
  }

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

  /* Timeline */
  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    padding-left: 40px;
  }

  .timeline-marker {
    left: 0;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Newsletter form */
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-button {
    width: 100%;
  }

  /* CTA Block */
  .cta-block {
    padding: var(--space-lg) var(--container-padding);
  }

  /* Gallery */
  .filter-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .filter-btn {
    font-size: var(--text-xs);
    padding: 0.5rem 1rem;
  }

  /* Lightbox */
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
  }

  /* Forms */
  .form-group {
    margin-bottom: 1rem;
  }
}

/* ===== TABLET (768px - 1023px) ===== */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Container */
  :root {
    --container-padding: 1.5rem;
  }

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

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

  /* Hero */
  .hero {
    min-height: 80vh;
  }

  /* Navigation - still mobile menu on tablet */
  .nav-menu.active {
    width: 320px;
  }

  /* Stats */
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* ===== DESKTOP (1024px and up) ===== */
@media (min-width: 1024px) {
  /* Navigation */
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    position: static;
    width: auto;
    background: none;
    padding: 0;
    box-shadow: none;
  }

  .nav-menu.active {
    background: none;
    box-shadow: none;
  }

  .nav-link {
    border-bottom: none;
  }

  /* Hero */
  .hero {
    min-height: 100vh;
  }

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

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

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

  /* Stats */
  .stats-container {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats-container-home {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))!important;
  }
  /* Footer */
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Buttons */
  .btn {
    width: auto;
  }

  /* Cards hover effects enhanced */
  .card:hover {
    transform: translateY(-10px);
  }

  /* Image overlay cards */
  .image-overlay-card:hover .image-overlay-content {
    transform: translateY(0);
  }
}

/* ===== WIDE SCREENS (1440px and up) ===== */
@media (min-width: 1440px) {
  :root {
    --section-padding: var(--space-2xl);
  }

  /* Larger containers for wide screens */
  .container {
    max-width: 1400px;
  }

  /* Hero adjustments */
  .hero-content {
    max-width: 1200px;
  }

  /* Grid spacing */
  .grid {
    gap: var(--space-xl);
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  /* Hide non-essential elements */
  .header,
  .footer,
  .nav-toggle,
  .scroll-indicator,
  .btn,
  .cta-block,
  .filter-buttons,
  .lightbox {
    display: none !important;
  }

  /* Adjust colors for print */
  body {
    background: white;
    color: black;
  }

  /* Page breaks */
  section {
    page-break-inside: avoid;
  }

  /* Images */
  img {
    max-width: 100%;
    page-break-inside: avoid;
  }

  /* Links */
  a {
    color: black;
    text-decoration: underline;
  }

  /* Remove shadows */
  * {
    box-shadow: none !important;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-indicator {
    animation: none;
  }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #FF0000;
    --color-secondary: #006600;
    --color-accent: #FFA500;
  }

  .btn {
    border: 2px solid currentColor;
  }

  a {
    text-decoration: underline;
  }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
  /* Optional: Add dark mode styles if desired */
  /* For now, keeping the bold impactful design as-is */
}
