/* ============================================================
   VivaGuard — responsive.css
   Mobile-first breakpoints
   ============================================================ */

/* ── Tablet (md: 768px) ─────────────────────────────────────── */
@media (max-width: 1023px) {
  :root {
    --px-desktop: 40px;
  }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content .hero-sub { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { display: none; }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
  }
  .stat-divider { display: none; }
  .stat-item { padding: 0; }

  /* Problem */
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Solution */
  .solution-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Timeline */
  .timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .timeline::before { display: none; }
  .timeline-progress { display: none; }
  .timeline-step {
    flex-direction: row;
    text-align: left;
    gap: 1.25rem;
    align-items: flex-start;
  }
  .timeline-node {
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .timeline-content { flex: 1; }

  /* Tech layers */
  .tech-layers { max-width: 100%; }

  /* Impact */
  .impact-grid {
    grid-template-columns: 1fr;
  }
  .impact-market {
    grid-column: auto;
    flex-direction: column;
    text-align: center;
  }

  /* Roadmap */
  .roadmap-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  /* Contact */
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Mobile (sm: 767px) ─────────────────────────────────────── */
@media (max-width: 767px) {
  :root {
    --px-desktop: var(--px-mobile);
    --section-py-desktop: var(--section-py-mobile);
  }

  /* Nav */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer { display: flex; }

  .nav-actions .btn { display: none; }

  /* Hero */
  #hero { padding-top: 80px; }
  .hero-badge { font-size: 13px; }
  .hero-stats {
    grid-template-columns: 1fr;
    margin-top: 1.5rem;
    padding: 1.25rem;
  }

  /* Solution */
  .solution-grid {
    grid-template-columns: 1fr;
  }

  /* Roadmap */
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

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

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Contact form */
  .contact-form { padding: 1.5rem; }

  /* Section header */
  .section-header { margin-bottom: 2rem; }

  /* Tech layers */
  .tech-layer { flex-wrap: wrap; }
  .tech-layer-icon { width: 44px; height: 44px; }
}

/* ── Small mobile (xs: 479px) ────────────────────────────────── */
@media (max-width: 479px) {
  h2 { font-size: clamp(24px, 7vw, 32px); }

  .btn-lg {
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn { justify-content: center; }

  .problem-stat-number { font-size: 2rem; min-width: 80px; }

  .timeline-step { gap: 1rem; }
  .timeline-node { width: 52px; height: 52px; font-size: 0.9rem; }
}

/* ── Wide desktop (xl: 1280px) ───────────────────────────────── */
@media (min-width: 1280px) {
  .container { padding: 0 var(--px-desktop); }
}
