/* 3737 North Capital — responsive rules. Menu below 1100 px, tablet below 1024 px, phone below 640 px. */

/* Collapse main navigation into the menu */
@media (max-width: 1099px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 49;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s-5);
    padding: var(--s-4) var(--gutter) var(--s-5);
    background: var(--bg);
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0.25rem; }
  .nav__link {
    padding-block: 0.3rem;
    font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.035em;
  }
  .nav__link::before { left: auto; right: -1.25rem; top: 50%; margin: -4px 0 0; transform-origin: 50% 50%; }
  .nav .btn { width: 100%; }
}

/* Tablet */
@media (max-width: 1023px) {
  .hero__text, .hero--page .hero__text { grid-column: 1 / -1; }
  .hero__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .section-head__label { grid-column: 1 / -1; padding-top: 0; }
  .section-head__body { grid-column: 1 / -1; }
  .statement, .quote, .cta__inner { grid-column: 1 / -1; }

  .row__key { grid-column: 1 / -1; line-height: 1.4; }
  .row__title { grid-column: 1 / span 5; }
  .row__text { grid-column: 6 / span 7; }

  .index-list--3, .features, .companies, .people, .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features--4, .stats, .steps, .steps--5, .timeline, .people--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer__brand { grid-column: 1 / -1; }
  .footer__col { grid-column: span 4; }
  .footer__col--wide { grid-column: span 4; }
}

/* Phone */
@media (max-width: 639px) {
  :root { --header-h: 4.25rem; }
  .brand img { width: 112px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid > * { grid-column: 1 / -1 !important; }

  .hero { padding-top: 12rem; }
  .hero__contours { width: 11.5rem; }
  .hero__meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row > * { grid-column: 1 / -1 !important; }

  .index-list, .index-list--3, .features, .features--2, .features--4, .companies,
  .people, .people--4, .articles, .steps, .steps--3, .steps--5, .timeline,
  .stats--3, .form { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-list__item { grid-template-columns: 2.75rem 1fr; }

  .inline-form { grid-template-columns: minmax(0, 1fr); }
  .inline-form .btn, .form .btn { width: 100%; }
  .actions .btn { width: 100%; }

  .footer__col, .footer__col--wide { grid-column: 1 / -1; }
}

@media print {
  .site-header, .nav-toggle, .hero__contours { display: none; }
  body { background: #fff; }
}
