/* ==========================================================================
   Responsive — STSERVER Technologies
   Mobile-first media queries
   ========================================================================== */

/* ── Max 1200px (Large Tablets / Small Desktops) ─────────────────────────── */

@media (max-width: 1200px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bento-grid .bento-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }
  
  .bento-grid .bento-item:nth-child(2),
  .bento-grid .bento-item:nth-child(3),
  .bento-grid .bento-item:nth-child(4),
  .bento-grid .bento-item:nth-child(5) {
    grid-column: span 1;
  }

  .footer__grid {
    grid-template-columns: 1fr repeat(4, 1fr);
    gap: var(--space-8);
  }
}

/* ── Max 1024px (Tablets) ────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .navbar__inner {
    justify-content: space-between;
    gap: var(--space-4);
  }

  .navbar__nav {
    display: none;
  }
  
  .navbar__mobile-toggle {
    display: flex;
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .process-timeline::before {
    display: none;
  }

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

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

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

  .hero__content {
    max-width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

/* ── Max 768px (Large Mobile / Small Tablets) ────────────────────────────── */

@media (max-width: 768px) {
  :root {
    --section-padding: clamp(1.5rem, 4vw, 2.5rem);
    --nav-height: 64px;
  }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-grid .bento-item:nth-child(1),
  .bento-grid .bento-item:nth-child(2),
  .bento-grid .bento-item:nth-child(3),
  .bento-grid .bento-item:nth-child(4),
  .bento-grid .bento-item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento-card {
    padding: var(--space-6);
  }

  .bento-card__metrics {
    gap: var(--space-4);
  }

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

  .process-timeline {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .process-step {
    flex-direction: row;
    text-align: left;
    gap: var(--space-5);
  }

  .process-step__number {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .process-step__text {
    max-width: none;
  }

  .section-header {
    margin-bottom: var(--space-10);
  }

  .section-title {
    font-size: var(--text-2xl);
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-8));
    padding-bottom: var(--space-10);
  }

  .hero__title {
    font-size: var(--text-3xl);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-section__title {
    font-size: var(--text-2xl);
  }

  .navbar__actions .btn {
    display: none;
  }
}

/* ── Max 480px (Small Mobile) ────────────────────────────────────────────── */

@media (max-width: 480px) {
  .container {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

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

  .stat-item {
    padding: var(--space-4);
  }

  .stat-item__value {
    font-size: var(--text-2xl);
  }

  .bento-card {
    padding: var(--space-5);
  }

  .bento-card__metrics {
    flex-direction: column;
    gap: var(--space-3);
  }

  .bento-card__title {
    font-size: var(--text-lg);
  }

  .hero__subtitle-badges {
    flex-wrap: wrap;
    justify-content: center;
  }


}

/* ── Hover media query (no hover on touch) ───────────────────────────────── */

@media (hover: none) {
  .bento-card:hover {
    transform: none;
    box-shadow: none;
  }
  
  .btn--primary:hover {
    transform: none;
  }
  
  .hover-lift:hover {
    transform: none;
  }
}
