/* ==========================================================================
   responsive.css — breakpoints (desktop-first)
   1024px  tablet landscape / small laptop
    768px  tablet portrait
    560px  large phones
   ========================================================================== */

@media (max-width: 1024px) {
  :root { --header-h: 78px; }

  .marquee { --per-view: 3; }

  .section-head { grid-template-columns: 1fr; align-items: start; }

  /* 5-up grids become 2 columns; the odd last card spans the full row */
  .card-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--5 > *,
  .card-grid--5 > :nth-child(n + 4) { grid-column: auto; }
  .card-grid--5 > :last-child:nth-child(odd) { grid-column: 1 / -1; }

  .about__grid,
  .testimonials__grid,
  .strength__grid,
  .faq__grid { grid-template-columns: 1fr; }

  .about__media { aspect-ratio: 16 / 10; }
  .testimonials__media { aspect-ratio: 16 / 10; order: -1; }
  .strength__body { order: 0; }

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

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .topbar__inner { justify-content: center; text-align: center; }
  .topbar__contact { justify-content: center; }
  .topbar__link { font-size: 1.0625rem; }
  .topbar .social { display: none; }   /* social links remain in the footer */

  .process__intro { grid-template-columns: 1fr; }
  .process__media { aspect-ratio: 16 / 9; max-width: 24rem; }

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

  .stats { grid-template-columns: 1fr; width: calc(100% - 2rem); margin-top: -3rem; }

  .cta__inner { grid-template-columns: 1fr; text-align: left; }
  .cta__inner > .play-btn { justify-self: start; }

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

@media (max-width: 560px) {
  .marquee { --per-view: 2; }

  .card-grid--5 { grid-template-columns: 1fr; }
  .card-grid--5 > :last-child:nth-child(odd) { grid-column: auto; }

  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 20rem; }
  .btn { white-space: normal; }

  .feature { flex-direction: column; gap: 1rem; }

  .accordion__trigger { padding: .875rem 1.25rem; font-size: 1rem; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar-inner { flex-direction: column; text-align: center; }

  .blog__grid { grid-template-columns: 1fr; }
  .blog__head .btn { width: 100%; }
}
