/* ==========================================================================
   Alkando — site footer.

   Structure after structured.app: brand and social links on the left,
   columns of links on the right, copyright and languages underneath.
   Colours and type from tokens.css — section titles are the app's section
   headers, links its secondary text.
   ========================================================================== */

.foot {
  width: 100%;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--ak-font-ui);
}

.foot__inner {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2.6fr);
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

/* --- brand --- */

.foot__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ak-text);
  text-decoration: none;
}

.foot__logo img {
  width: 36px;
  height: 36px;
  border-radius: 22.37%;
}

.foot__logo span {
  font: 800 1.35rem/1 var(--ak-font-rounded);
  letter-spacing: -0.02em;
}

.foot__social {
  display: flex;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.foot__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ak-text-2);
  transition:
    color var(--ak-dur-tap) ease,
    background-color var(--ak-dur-tap) ease;
}

.foot__social svg {
  width: 18px;
  height: 18px;
}

/* --- link columns --- */

.foot__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.foot__title {
  margin: 0 0 16px;
  color: var(--ak-section);
  font: 800 11px/1 var(--ak-font-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.foot__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot__col li + li {
  margin-top: 12px;
}

.foot__col a {
  color: var(--ak-text-2);
  font: 500 15px/1.3 var(--ak-font-ui);
  text-decoration: none;
  /* Long words (the email address) wrap only at a <wbr> or, failing that,
     between whole words — never mid-word. */
  overflow-wrap: break-word;
  transition: color var(--ak-dur-tap) ease;
}

@media (hover: hover) and (pointer: fine) {
  .foot__col a:hover,
  .foot__logo:hover span {
    color: var(--ak-text);
  }

  .foot__social a:hover {
    color: var(--ak-text);
    background: rgba(255, 255, 255, 0.12);
  }
}

.foot a:focus-visible {
  outline: 2px solid var(--ak-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- bottom row --- */

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ak-text-3);
  font: 400 13px/1.5 var(--ak-font-ui);
}

.foot__bottom p {
  margin: 0;
}

.foot__langs a {
  color: var(--ak-text-3);
  text-decoration: none;
}

.foot__langs a:hover {
  color: var(--ak-text);
}

.foot__langs [aria-current] {
  color: var(--ak-text);
  font-weight: 600;
}

/* --- smaller screens --- */

@media (max-width: 860px) {
  .foot__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 44px;
  }

  .foot__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .foot__social a,
  .foot__col a {
    transition: none;
  }
}
