/* ==========================================================================
   COLABRO - RESPONSIVE STYLESHEET
   Mobile-first & adaptive breakpoints for optimal UX on all devices
   ========================================================================== */

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(3, 11, 28, 0.8);
  backdrop-filter: blur(12px);
  z-index: 90;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-drawer.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-panel {
  width: 85%;
  max-width: 360px;
  background: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--space-xl);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
}

.mobile-drawer.active .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--neutral-200);
  margin-bottom: var(--space-xl);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.mobile-drawer-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--neutral-800);
  padding: 8px 0;
  border-bottom: 1px solid var(--neutral-100);
}

.mobile-drawer-link:hover {
  color: var(--primary);
}

/* --- Media Queries --- */

/* Laptops & Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .nav-menu {
    gap: var(--space-md);
  }

  .nav-link {
    font-size: 0.875rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-trust-row {
    justify-content: center;
  }

  .hero-visual-card {
    max-width: 600px;
    margin: 0 auto;
  }

  .track-card-wrapper {
    grid-template-columns: 1fr;
  }

  .track-card-sidebar {
    border-left: none;
    border-top: 1px solid var(--neutral-800);
  }

  .flagship-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

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

  .simulator-container {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

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

  .bento-card.featured-wide {
    grid-column: span 2;
  }

  .calc-card {
    grid-template-columns: 1fr;
  }

  .calc-results-pane {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

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

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

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

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --space-4xl: 56px;
    --space-3xl: 40px;
  }

  .nav-menu, .nav-actions .btn-desktop {
    display: none;
  }

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

  .hero-title {
    font-size: 2.15rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .stat-card {
    border-right: none;
    border-bottom: 1px solid var(--neutral-200);
    padding: var(--space-md) 0;
  }

  .stat-card:nth-child(3), .stat-card:nth-child(4) {
    border-bottom: none;
  }

  .track-features-grid {
    grid-template-columns: 1fr;
  }

  .hardware-specs-row {
    grid-template-columns: 1fr;
  }

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

  .bento-card.featured-wide {
    grid-column: span 1;
  }

  .stories-cards-grid {
    grid-template-columns: 1fr;
  }

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

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

  .calc-service-pills {
    grid-template-columns: 1fr;
  }

  .phone-mockup-frame {
    max-width: 100%;
    border-radius: 32px;
    border-width: 6px;
  }

  .printer-unit {
    width: 100%;
  }

  .printer-hardware-housing {
    width: 100%;
    max-width: 320px;
  }

  .receipt-paper-container {
    width: 100%;
    max-width: 270px;
  }

  .subnav-list {
    padding: 6px 12px;
  }

  .subnav-item a {
    font-size: 0.8125rem;
    padding: 5px 12px;
  }
}

/* Small Screens (max-width: 480px) */
@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

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

  .stat-card {
    border-bottom: 1px solid var(--neutral-200);
  }

  .stat-card:last-child {
    border-bottom: none;
  }

  .announcement-bar {
    font-size: 0.75rem;
  }
}
