/* =============================================
   EasyToDo Website — responsive.css
   Mobile-first breakpoints
   ============================================= */

/* ---------- Tablet (≤900px) ---------- */
@media (max-width: 900px) {
  :root {
    --section-gap: 72px;
  }

  .hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }
  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero__desc {
    margin-inline: auto;
  }
  .hero__actions {
    justify-content: center;
  }

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

  .gallery__track {
    justify-content: flex-start;
  }
}

/* ---------- Mobile (≤768px) ---------- */
@media (max-width: 768px) {
  :root {
    --section-gap: 56px;
  }

  /* Navbar */
  .navbar__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }
  .navbar__links.open { display: flex; }
  .navbar__links .btn { margin-left: 0; width: 100%; }
  .navbar__toggle { display: flex; }
  .navbar__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navbar__toggle.open span:nth-child(2) { opacity: 0; }
  .navbar__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Hero */
  .hero { padding: 56px 0 var(--section-gap); }
  .hero__phone-wrapper { width: 230px; }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

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

  .hero__title { font-size: 32px; }
  .hero__desc { font-size: 16px; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__phone-wrapper { width: 200px; }

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

  .gallery__item { flex: 0 0 180px; }
  .gallery__item img { width: 180px; }

  .section-subtitle { font-size: 16px; }

  .cta__title { font-size: 26px; }
  .cta__desc { font-size: 15px; }
}
