/* ─── Mobile First: Base is mobile ─── */

/* Small tablet (640px) */
@media (min-width: 640px) {
  :root {
    --content-padding: 2.5rem;
  }
}

/* Tablet (768px) */
@media (min-width: 768px) {
  :root {
    --section-padding: 5rem;
    --section-padding-lg: 7rem;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: var(--text-3xl);
  }

  .hero__title {
    font-size: 3rem;
  }

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

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Desktop (1024px) */
@media (min-width: 1024px) {
  :root {
    --section-padding: 6rem;
    --section-padding-lg: 8rem;
  }

  .nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .hero__title {
    font-size: var(--text-hero);
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* Large desktop (1280px) */
@media (min-width: 1280px) {
  :root {
    --content-padding: 3rem;
  }
}

/* ─── Mobile Overrides ─── */

@media (max-width: 639px) {
  :root {
    --text-hero: 2.25rem;
    --text-3xl: 1.75rem;
    --text-2xl: 1.5rem;
    --text-xl: 1.25rem;
    --section-padding: 3.5rem;
    --section-padding-lg: 5rem;
  }

  .hero {
    min-height: 50vh;
    padding: 3rem var(--content-padding);
  }

  .compat-list {
    columns: 1;
  }

  .spec-table {
    font-size: var(--text-xs);
  }

  .spec-table th,
  .spec-table td {
    padding: 0.5rem 0.75rem;
  }

  .page-header {
    padding: 2.5rem 0 2rem;
  }
}
