/*
 * Hand-maintained fixes on top of the Webflow export.
 *
 * public/css/ holds the export's stylesheets byte for byte (see README,
 * "How parity is preserved"), so corrections live here instead. This file is
 * linked after them in app/(site)/layout.tsx, so equal-specificity rules win.
 * Keep each fix scoped to the widths that need it, so the designed
 * breakpoints (1440 and 390 in particular) render exactly as exported.
 */

/*
 * Footer: the four big links (About, Services, Resources, Contact).
 *
 * The export sets the words at a fixed 72px in a space-between row with 64px
 * gaps and no side gutter. At 72px the row needs about 1162px (970px of words
 * plus 3 gaps), so from 992px to about 1160px each link's overflow: hidden box
 * cut its word off ("Abou", "Contac"), and the footer text sat on the screen
 * edge below 1280px.
 *
 * From 992px up: give the footer the page's usual 2.5rem gutter (no visible
 * change once the 80rem container fits, from 1360px), and scale the words with
 * the row's width, capped at the designed 72px. 7.3cqi - 14.5px keeps the four
 * words plus gaps just inside the row at every width, and reaches 72px at a
 * 1185px row, so wide screens are untouched.
 */
@media screen and (min-width: 992px) {
  .footer_component > .container-large,
  .footer_component-2 > .container-large {
    width: calc(100% - 5rem);
  }

  .footer-links_wrapper,
  .footer-links_wrapper-2 {
    container-type: inline-size;
  }

  .footer-links_wrapper .services,
  .footer-links_wrapper-2 .services-5 {
    font-size: min(72px, calc(7.3cqi - 14.5px));
  }
}

/*
 * Digital-tool footer only (footer-links_wrapper-2): from 480px to 767px the
 * links sit in a two-column grid at 56px, and "Resources" (236px wide at 56px)
 * is wider than its column until about 564px. Scale the words with the column
 * width, capped at the designed 56px, which is reached by about 580px.
 */
@media screen and (min-width: 480px) and (max-width: 767px) {
  .footer-links_wrapper-2 {
    container-type: inline-size;
  }

  .footer-links_wrapper-2 .services-5 {
    font-size: min(56px, calc(11.6cqi - 4px));
  }
}
