/* ================================================
   RESPONSIVE.CSS
   ------------------------------------------------
   Mobile & tablet layout adjustments.
   Uses max-width breakpoints (mobile-first approach).

   BREAKPOINTS:
   - 1024px → tablet landscape
   - 768px  → tablet portrait / large mobile
   - 480px  → small mobile
================================================ */


/* ── TABLET LANDSCAPE (≤ 1024px) ──────────────── */
@media (max-width: 1024px) {

  /* Reduce horizontal padding on all sections */
  nav,
  .hero,
  .stats,
  .section,
  .cta-section,
  footer {
    padding-left: 32px;
    padding-right: 32px;
  }

  /* Stack hero vertically (hide visual on tablet) */
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }
  .hero-visual {
    display: none; /* hide badge visual on smaller screens */
  }

  /* Footer: 2-column layout instead of 5 */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Demo: stack vertically */
  .demo-layout {
    grid-template-columns: 1fr;
  }
}


/* ── TABLET PORTRAIT / LARGE MOBILE (≤ 768px) ─── */
@media (max-width: 768px) {

  /* Hide desktop nav links → hamburger would go here */
  .nav-links {
    display: none;
  }

  /* Single column for all grids */
  .stats-grid,
  .roles-grid,
  .features-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  /* Dashboard metrics: 2 columns instead of 4 */
  .dash-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Footer bottom: stack and center */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* CTA checks: wrap to 2 per row */
  .cta-checks {
    gap: 16px;
  }

  /* Reduce section padding */
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  /* Hero headline slightly smaller */
  .hero h1 {
    letter-spacing: -1px;
  }

  /* Hero buttons: stack vertically */
  .hero-btns {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ── SMALL MOBILE (≤ 480px) ───────────────────── */
@media (max-width: 480px) {

  /* Even tighter padding */
  nav,
  .hero,
  .stats,
  .section,
  .cta-section,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Nav: just show logo and demo button */
  .btn-nav-login {
    display: none;
  }

  /* Section title smaller on small phones */
  .section-title {
    font-size: 28px;
  }

  /* Stats number smaller */
  .stat-card .num {
    font-size: 36px;
  }

  /* CTA heading smaller */
  .cta-section h2 {
    font-size: 30px;
    letter-spacing: -1px;
  }

  /* Stack CTA buttons */
  .cta-btns {
    flex-direction: column;
    align-items: center;
  }

  /* Full width buttons on small screens */
  .cta-btns .btn-primary,
  .cta-btns .btn-dark {
    width: 100%;
    justify-content: center;
  }

  /* Dashboard metrics: 1 column */
  .dash-metrics {
    grid-template-columns: 1fr;
  }

  /* Hero chips wrap */
  .hero-chips {
    gap: 8px;
  }

  /* Trusted logos: 2 per row */
  .logo-row {
    gap: 24px;
  }
}
