/* ========================================
   Mobile First - Base styles in main.css
   ======================================== */

/* Mobile: Default (< 768px) */
.nav-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--bg-white);
  flex-direction: column;
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

[data-theme="dark"] .nav-menu {
  background: transparent;
  border: none;
  box-shadow: none;
}

[data-theme="dark"] .nav-menu a {
  border: none;
  outline: none;
}

.nav-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-toggle {
  display: block;
}

.grid-2, .grid-3, .grid-4 {
  grid-template-columns: 1fr;
}

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

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

.search-bar {
  flex-direction: column;
}

.search-bar input,
.search-bar select {
  width: 100%;
}

/* ========================================
   Tablet: 768px and up
   ======================================== */
@media (min-width: 768px) {
  .nav-menu {
    position: static;
    flex-direction: row;
    transform: none;
    opacity: 1;
    visibility: visible;
    padding: 0;
    box-shadow: none;
  }

  .nav-toggle {
    display: none;
  }

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

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

  .search-bar {
    flex-direction: row;
  }

  .search-bar input,
  .search-bar select {
    width: auto;
  }
}

/* ========================================
   Desktop: 1024px and up
   ======================================== */
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }

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

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

  .modal {
    max-width: 600px;
  }
}

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

  .hero {
    padding: var(--space-xl) 0 calc(var(--space-xl) * 1.5);
  }
}
