/* Clean Vale - Mobile First Responsive Styles */

/* Base Tablet / Mobile Header Alignment (max-width: 1024px) */
@media (max-width: 1024px) {
  .site-header {
    height: 72px;
  }

  .header-logo img {
    max-height: 38px;
    width: auto;
    object-fit: contain;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .header-actions .btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.825rem;
    height: 38px;
    border-radius: 8px;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--cleanvale-border);
    border-radius: 8px;
    font-size: 1.4rem;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: var(--cleanvale-bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    overflow-y: auto;
    box-shadow: var(--cleanvale-shadow-lg);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    width: 100%;
    padding-left: 1rem;
    display: none;
  }

  .nav-item-dropdown.open .dropdown-menu {
    display: block;
  }

  .hero-clean-wrap {
    flex-direction: column;
    min-height: auto;
  }

  .hero-clean-left {
    padding: 2.5rem 1.75rem;
  }

  .hero-clean-right {
    min-height: 300px;
    width: 100%;

    img {
      max-height: 280px;
    }
  }

  .lines-grid {
    grid-template-columns: 1fr;
  }

  .about-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Mobile Screens (max-width: 768px) */
@media (max-width: 768px) {
  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero-clean-title {
    font-size: 1.85rem;
  }

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

  /* Form Card & Form Grid Mobile Alignment Fix */
  .form-card {
    padding: 1.5rem 1rem;
    border-radius: var(--cleanvale-radius);
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-group {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

/* Small Mobile Screens (max-width: 480px) */
@media (max-width: 480px) {
  .header-logo img {
    max-height: 32px;
  }

  .btn {
    width: 100%;
  }

  .product-card-actions {
    flex-direction: column;
  }

  .search-input-group {
    flex-direction: column;
  }

  .categories-grid {
    grid-template-columns: 1fr 1fr;
  }
}
