/* ============================================
   EVOLVE ROBOT LAB — Responsive
   ============================================ */

/* --- 1024px: Tablet Landscape --- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

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

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .split {
    gap: 40px;
  }
}

/* --- 768px: Tablet Portrait --- */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --nav-height: 64px;
  }

  /* Nav Mobile */
  .nav {
    padding: 10px 12px 0;
  }

  .nav__inner {
    min-height: 64px;
    border-radius: 16px;
    padding: 0 14px;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    border-left: 1px solid var(--border-color);
  }

  body.menu-open .nav__links {
    transform: translateX(0);
  }

  .nav__link {
    padding: 16px 0;
    font-size: 1rem;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: 16px;
    width: 100%;
    text-align: center;
  }

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

  /* Split */
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split--reverse {
    direction: ltr;
  }

  /* Hero */
  .hero {
    min-height: 90vh;
    padding-top: calc(var(--nav-height) + 40px);
  }

  .hero__content {
    max-width: 100%;
  }

  /* Section Showcase */
  .section-showcase {
    min-height: 60vh;
    padding: 80px 24px;
  }

  #platforms {
    min-height: 78vh;
  }

  /* Stats */
  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Trust strip */
  .trust-strip__inner {
    gap: 24px;
  }

  .trust-strip__divider {
    display: none;
  }

  .trust-logos {
    gap: 32px;
  }

  /* Gallery */
  .gallery-cats {
    gap: 16px;
  }

  .gallery-cat__overlay {
    padding: 20px;
  }

  .gallery-cat__overlay h3 {
    font-size: 1.25rem;
  }

  .gallery-detail__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .lightbox__prev { left: 12px; }
  .lightbox__next { right: 12px; }

  .lightbox__content {
    max-width: 90vw;
  }

  .testimonials-track .card {
    flex-basis: 75vw;
  }
}

/* --- 480px: Mobile --- */
@media (max-width: 480px) {
  :root {
    --section-padding: 48px;
  }

  .container {
    padding: 0 16px;
  }

  .stats-bar__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero {
    min-height: 85vh;
  }

  #platforms {
    min-height: 72vh;
  }

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

  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .btn {
    padding: 12px 24px;
  }

  .section__header {
    margin-bottom: 40px;
  }

  .card__body {
    padding: 20px;
  }

  .trust-strip__inner {
    flex-direction: column;
    gap: 16px;
  }

  /* Gallery Mobile */
  .gallery-cats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-cat__overlay h3 {
    font-size: 1.1rem;
  }

  .gallery-cat__overlay p {
    font-size: 0.8rem;
  }

  .gallery-detail__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-detail__header {
    margin-bottom: 32px;
  }

  .lightbox__prev,
  .lightbox__next {
    width: 36px;
    height: 36px;
  }

  .lightbox__close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }

  .testimonials-track .card {
    flex-basis: 88vw;
  }

  .whatsapp-float {
    right: 14px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: 50px;
    height: 50px;
  }

  .whatsapp-float img {
    width: 100%;
    height: 100%;
  }
}
