/* pymo footer, the same on every page.
   Self-contained like style-nav.css: it does not lean on Bootstrap, on Font Awesome or on
   the page stylesheet, so it looks the same wherever it is loaded.
   Sizes are in px because the root font size differs between pages. */

.pymo-foot {
  --foot-ease: cubic-bezier(0.16, 1, 0.3, 1);
  background: #4346da;
  color: #fff;
  font: 500 15px/22px Montserrat, sans-serif;
  letter-spacing: normal;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.pymo-foot *,
.pymo-foot *::before,
.pymo-foot *::after { box-sizing: border-box; }

.pymo-foot ::selection { background: #fff; color: #2b2d9c; }

.pymo-foot ul,
.pymo-foot li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pymo-foot a,
.pymo-foot a:link,
.pymo-foot a:visited,
.pymo-foot a:hover,
.pymo-foot a:focus {
  color: #fff;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.pymo-foot a:focus { outline: none; }

.pymo-foot a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.pymo-foot img {
  display: block;
  max-width: none;
  height: auto;
  margin: 0;
}

/* Every rule below names .pymo-foot first so it outranks the resets above. */

.pymo-foot .pymo-foot__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 32px 48px;
  align-items: center;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0;
}

.pymo-foot .pymo-foot__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.pymo-foot .pymo-foot__logo {
  display: block;
  border-radius: 6px;
}

.pymo-foot .pymo-foot__logo img { width: 220px; }

/* Each icon gets a 44px target; the row starts where the logo starts. */
.pymo-foot .pymo-foot__social {
  display: flex;
  gap: 2px;
  margin-left: -3px;
}

.pymo-foot .pymo-foot__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  transition: background-color 150ms var(--foot-ease);
}

.pymo-foot .pymo-foot__social a:hover { background: #3537c2; }

.pymo-foot .pymo-foot__social img { width: 38px; }

/* Two columns of four, read down: what pymo sells, then who pymo is. */
.pymo-foot .pymo-foot__nav ul {
  display: grid;
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  column-gap: 56px;
}

.pymo-foot .pymo-foot__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 4px;
}

.pymo-foot .pymo-foot__nav a:hover,
.pymo-foot .pymo-foot__more:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.pymo-foot .pymo-foot__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  min-height: 44px;
  border-radius: 4px;
  font-weight: 600;
}

.pymo-foot .pymo-foot__more svg {
  flex: none;
  width: 16px;
  height: 16px;
  transition: transform 150ms var(--foot-ease);
}

.pymo-foot .pymo-foot__more:hover svg { transform: translateX(2px); }

/* Stacked and centred once the three blocks no longer fit side by side. */
@media (max-width: 899px) {
  .pymo-foot .pymo-foot__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding: 48px 0;
  }

  .pymo-foot .pymo-foot__brand { align-items: center; }

  .pymo-foot .pymo-foot__social { margin-left: 0; }

  .pymo-foot .pymo-foot__more { justify-self: center; }
}

/* One column on a phone, each link a 44px target. */
@media (max-width: 519px) {
  .pymo-foot .pymo-foot__nav ul {
    grid-template-rows: none;
    grid-auto-flow: row;
    justify-items: center;
  }

  .pymo-foot .pymo-foot__nav a { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .pymo-foot *,
  .pymo-foot *::before,
  .pymo-foot *::after { transition: none !important; }
}
