/* ============================================================
   RESPONSIVE RULES
   Mobile-first content is already legible at small widths;
   these breakpoints adjust layout density as space increases,
   and collapse it back down again for narrow viewports.
   Breakpoints: 1024px (tablet), 768px (large phone/tablet
   portrait), 480px (small phone).
   ============================================================ */

/* ---------- ≤ 1024px : tablet ---------- */
@media (max-width: 1024px) {
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.5rem;
  }

  .step:nth-child(2)::after {
    display: none;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 2.5rem;
  }

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

  .hero-art {
    max-width: 420px;
    margin-inline: auto;
    order: -1;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- ≤ 860px : navigation collapse ---------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    inset: 0 0 0 30%;
    top: 73px;
    background-color: var(--color-background);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 2rem 1.5rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    border-left: 1px solid var(--color-border);
    overflow-y: auto;
  }

  .nav-menu.is-open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 1.25rem;
  }

  .nav-link {
    font-size: var(--step-2);
    display: block;
  }

  .nav-cta {
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
  }
}

/* ---------- ≤ 768px : single-column content ---------- */
@media (max-width: 768px) {
  :root {
    --container-padding: 1.25rem;
  }

  .card-grid,
  .course-grid,
  .testimonial-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

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

  .step::after {
    display: none;
  }

  .split-panel,
  .split-panel.reverse .split-panel-media {
    grid-template-columns: 1fr;
    order: initial;
  }

  .split-panel {
    display: flex;
    flex-direction: column;
  }

  .split-panel.reverse {
    flex-direction: column-reverse;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .cta-band-actions {
    width: 100%;
  }

  .cta-band-actions .btn {
    flex: 1;
  }

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

  .form-field.full-width {
    grid-column: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-meta {
    gap: 1.25rem 2rem;
  }

  .whatsapp-float-label {
    display: none;
  }

  .whatsapp-float {
    padding: 0.85rem;
  }
}

/* ---------- ≤ 480px : small phones ---------- */
@media (max-width: 480px) {
  .nav-menu {
    inset: 0;
    top: 65px;
    border-left: none;
  }

  .hero-eyebrow {
    font-size: 0.8rem;
  }

  .trust-bar-inner {
    justify-content: center;
    text-align: center;
  }

  .final-cta-actions,
  .hero-actions {
    width: 100%;
  }

  .final-cta-actions .btn,
  .hero-actions .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
