/* ==========================================================================
   Responsive — All Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .platform-categories {
    grid-template-columns: 1fr;
  }
  .focus-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .engineering-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .training-grid {
    grid-template-columns: 1fr;
  }
  .deployment-timeline {
    grid-template-columns: repeat(3, 1fr);
  }
  .deployment-timeline::before {
    display: none;
  }
  .maintenance-grid {
    grid-template-columns: 1fr;
  }
  .tier-grid {
    grid-template-columns: 1fr;
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  .gallery-main {
    height: 280px;
  }
  .carousel-model {
    width: 260px;
    height: 260px;
    margin-left: -130px;
    margin-top: -130px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navbar-bg-scroll);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  /* Mobile dropdown — stacked vertically */
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.25rem 0;
  }
  .nav-dropdown-menu {
    display: none;
    position: static;
    transform: none;
    min-width: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0 1rem;
    border-left: 2px solid var(--border-color);
    margin-top: 0.5rem;
  }
  [data-theme="dark"] .nav-dropdown-menu {
    background: transparent;
    box-shadow: none;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown:hover .nav-dropdown-menu {
    display: none;
  }
  .nav-dropdown.open:hover .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown-menu a {
    padding: 0.4rem 0.75rem;
  }
  .nav-dropdown-menu .nav-soon {
    padding: 0.4rem 0.75rem;
  }
  .nav-dropdown.open .nav-dropdown-toggle .chevron-down {
    transform: rotate(180deg);
  }
  /* Hide inline search on mobile */
  .nav-search {
    display: none;
  }
  /* Search overlay mobile */
  .search-overlay-inner {
    margin-top: 10vh;
    padding: 0 0.75rem;
  }
  .search-overlay-bar {
    border-radius: var(--radius-lg);
  }
  .focus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .hero-trust {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .footer-tagline {
    margin: 0 auto;
  }
  .footer-nav {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-col {
    text-align: left;
  }
  .footer-bottom {
    justify-content: center;
    gap: 1.5rem;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .deployment-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .carousel-wrapper {
    height: 380px;
  }
  .carousel-model {
    width: 220px;
    height: 220px;
    margin-left: -110px;
    margin-top: -110px;
  }
  .carousel-nav-btn.prev {
    left: 0.25rem;
  }
  .carousel-nav-btn.next {
    right: 0.25rem;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .footer-nav {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-col {
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .focus-grid {
    grid-template-columns: 1fr;
  }
  .engineering-visual {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .deployment-timeline {
    grid-template-columns: 1fr;
  }
  .gallery-main {
    height: 220px;
  }
  .gallery-thumb {
    width: 44px;
    height: 44px;
  }
  .carousel-wrapper {
    height: 320px;
  }
  .carousel-model {
    width: 200px;
    height: 200px;
    margin-left: -100px;
    margin-top: -100px;
  }
}
