/* =========================================================
   Aisha Steel — Responsive
   ========================================================= */

@media (max-width: 1100px) {
  .header__inner {
    grid-template-columns: auto auto;
  }

  .nav {
    position: fixed;
    inset: 0;
    background: rgba(14, 16, 19, 0.96);
    color: #fff;
    display: grid;
    align-content: start;
    padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
      visibility 0.3s;
    overflow-y: auto;
  }

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

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav__link {
    justify-content: space-between;
    padding: 1rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: 0;
    box-shadow: none;
    border: 0;
    background: transparent;
    color: #fff;
    padding: 0 0 0.75rem;
    display: none;
  }

  .nav__item.is-open .nav__dropdown {
    display: grid;
  }

  .nav__dropdown a {
    color: rgba(255, 255, 255, 0.72);
    padding: 0.65rem 0;
  }

  .nav__dropdown a:hover {
    background: transparent;
    color: #fff;
  }

  .nav-toggle {
    display: grid;
  }

  .header__cta .btn--header {
    display: none;
  }

  .site-header.is-menu-open {
    --header-fg: #fff;
  }

  .intro,
  .capabilities,
  .contact-layout,
  .section__header--split {
    grid-template-columns: 1fr;
  }

  .section__header--split {
    align-items: start;
  }

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

  .peek-slide {
    flex-basis: min(88vw, 640px);
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .peek-slide__media {
    min-height: 16rem;
  }

  .factory-slide {
    flex-basis: min(86vw, 640px);
    min-height: 20rem;
  }

  .news-card {
    flex-basis: min(78vw, 340px);
    min-height: 24rem;
  }

  .peek-carousel__footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .peek-carousel__hint {
    display: none;
  }

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

@media (max-width: 860px) {
  .products-grid,
  .projects-grid,
  .capabilities__grid,
  .features,
  .info-cards {
    grid-template-columns: 1fr 1fr;
  }

  .products-showcase__panels {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .products-showcase__frame {
    padding-top: calc(var(--header-h) + 1.25rem);
    padding-bottom: 1.25rem;
    gap: 1.1rem;
  }

  .product-panel {
    min-height: 22rem;
  }

  .product-card {
    min-height: 28rem;
  }

  .intro__media {
    aspect-ratio: 16 / 11;
  }

  .capabilities__media {
    aspect-ratio: 16 / 10;
  }

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

  .partners {
    justify-content: center;
  }

  .partners img {
    height: 1.85rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 4.25rem;
  }

  .logo__text {
    display: none;
  }

  .hero {
    min-height: 92svh;
  }

  .hero__content {
    padding-bottom: 4.5rem;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .hero__scroll {
    display: none;
  }

  .stats,
  .info-cards,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .products-showcase {
    min-height: auto;
  }

  .products-showcase__frame {
    min-height: auto;
    height: auto;
  }

  .product-panel {
    min-height: 22rem;
  }

  .product-panel__body {
    padding: 1.35rem 1.25rem 1.5rem;
  }

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

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

  .footer__bottom {
    flex-direction: column;
  }

  .image-slider__caption {
    bottom: 6.5rem;
    max-width: calc(100% - 3rem);
  }

  .image-slider__controls {
    left: var(--gutter);
    right: auto;
  }

  .news-slide {
    flex-basis: min(82vw, 320px);
    min-height: 18rem;
  }

  .news-card {
    flex-basis: min(86vw, 300px);
    min-height: 22rem;
  }

  .factory-slide {
    flex-basis: min(90vw, 100%);
    min-height: 18rem;
  }

  .cta-banner {
    min-height: 24rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .hero .reveal {
    opacity: 1;
    transform: none;
  }
}
