/* ============================================================
   AWAREAIATLAS — RESPONSIVE DESIGN SYSTEM
   Supports 320px to 2560px with dedicated mobile adaptations
   ============================================================ */

/* Large Desktops / Ultra-wide */
@media (min-width: 1441px) {
  .container-wide {
    max-width: 1400px;
  }
}

/* Standard Desktops / Laptops (max-width: 1200px) */
@media (max-width: 1200px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .stepper-content-display {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

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

/* Tablets & Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
  :root {
    --header-height: 68px;
  }

  /* Switch desktop menu to mobile drawer */
  .nav-links, .nav-actions .btn-secondary {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mega-menu {
    display: none !important;
  }

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

  .stepper-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .hero-atlas-wrapper {
    min-height: 440px;
  }

  .atlas-node-inspector {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    margin-top: 1rem;
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

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

  .section-wrapper {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

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

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

  .footer-contact-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-atlas-wrapper {
    min-height: 380px;
  }

  .card-editorial {
    padding: 1.5rem;
  }

  /* Atlas graph responsive conversion: touch friendly */
  .atlas-svg-canvas {
    min-height: 380px;
  }
}

/* Small Phones (max-width: 480px) */
@media (max-width: 480px) {
  .display-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .stepper-nav {
    grid-template-columns: 1fr;
  }

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

  .btn {
    width: 100%;
  }

  .nav-actions .btn {
    width: auto;
  }
}

/* ============================================================
   MOBILE ACCORDION NAVIGATION DRAWER
   ============================================================ */

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-canvas);
  z-index: 9999;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-line);
  margin-bottom: 1.5rem;
}

.mobile-nav-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  background: #FFFFFF;
}

.mobile-nav-accordion-item {
  border-bottom: 1px solid var(--border-line);
}

.mobile-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-accordion-sublinks {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 0.5rem;
}

.mobile-nav-accordion-item.open .mobile-accordion-sublinks {
  max-height: 600px;
  padding-bottom: 1rem;
}

.mobile-accordion-sublinks a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
}

.mobile-nav-footer {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
