/* ==========================================================================
   Matinno Living — Footer
   A muted brand-blue (#738FC3) link area with five
   unlabelled 20% columns, the logotype top right and the copyright pinned
   bottom left. Text is white.
   Sizes are rem on the root scale type.css sets (62.5% → 57% ≤999 → 50% ≤759),
   so they step down with the rest of the type.
   ========================================================================== */

.mt-footer {
  --mt-f-text: var(--mt-white, #ffffff);
  --mt-f-muted: var(--mt-ink, #2c2e35); /* hover — grey vanishes on the blue */
  --mt-f-bg: #738fc3; /* link area — brand blue #5C88DA desaturated: HSL 219° 63%→40%, same lightness 61% */
  --mt-f-line: rgba(0, 0, 0, 0.2);

  position: relative;
  font-family: var(--mt-font, "Figtree", Helvetica, Arial, sans-serif);
  color: var(--mt-f-text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

.mt-footer *,
.mt-footer *::before,
.mt-footer *::after {
  box-sizing: border-box;
}

/* Resets use :where() so they carry no specificity */
.mt-footer :where(ul) {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mt-footer :where(a) {
  color: inherit;
  text-decoration: none;
}

.mt-footer :where(h2, p) {
  margin: 0;
}

/* Text colour, not the site's blue focus ring, which would disappear here */
.mt-footer :focus-visible {
  outline: 2px solid var(--mt-f-text);
  outline-offset: 2px;
}

/* Link area -------------------------------------------------------------- */

.mt-footer__container {
  position: relative;
  min-height: 370px;
  background: var(--mt-f-bg);
}

/* Full-bleed with a 30px gutter — it deliberately breaks out of the 1680px
   content column the page blocks use. */
.mt-footer__sizer {
  padding: 30px;
}

/* 80% wide, capped at 1200px — the right edge is left clear for the
   logotype. */
.mt-footer__menu {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  width: 80%;
  max-width: 1200px;
}

/* Flat 20% columns, no gutter */
.mt-footer__col {
  position: relative;
  width: 20%;
  font-size: 1.6rem;
}

/* Column titles are visually hidden but stay for screen readers */
.mt-footer__title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mt-footer__col a {
  display: block;
  letter-spacing: 0.15px;
  line-height: 3.6rem;
  transition: color 0.15s linear;
}

@media (hover: hover) {
  .mt-footer__col a:hover,
  .mt-footer__col a:focus {
    color: var(--mt-f-muted);
  }
}

/* The last row sits along the bottom left and holds
   the copyright, as Matinno has no legal pages yet. */
.mt-footer__base {
  position: absolute;
  bottom: 20px;
  left: 30px;
  display: flex;
  flex-direction: row;
  font-size: 1.6rem;
  letter-spacing: 0.15px;
  line-height: 3.6rem;
}

.mt-footer__base > * {
  margin-right: 30px;
}

/* Logotype top right: 110 × 27 box, contained, aligned top right */
.mt-footer__logo {
  position: absolute;
  top: 30px;
  right: 30px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  width: 110px;
  height: 27px;
}

.mt-footer__logo svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 999.98px) {
  .mt-footer__sizer {
    padding: 30px 25px 25px;
  }

  .mt-footer__menu {
    width: calc(100% - 120px);
    max-width: none;
  }

  .mt-footer__base {
    left: 25px;
  }

  .mt-footer__logo {
    top: 25px;
    right: 25px;
    width: 99px;
    height: 24px;
  }
}

@media (max-width: 759.98px) {
  .mt-footer__sizer {
    padding: 30px 20px 20px;
  }

  .mt-footer__menu {
    width: 100%;
  }

  .mt-footer__col {
    width: 33.3%;
    margin-bottom: 50px;
  }

  .mt-footer__base {
    position: relative;
    bottom: auto;
    left: auto;
    flex-direction: column;
    margin-bottom: 80px;
  }

  .mt-footer__base > * {
    margin-right: 0;
  }

  /* The logotype moves to the bottom left */
  .mt-footer__logo {
    top: auto;
    right: auto;
    bottom: 21px;
    left: 20px;
    width: 74px;
    height: 18px;
    align-items: flex-end;
    justify-content: flex-start;
  }
}

@media (max-width: 599.98px) {
  .mt-footer__col {
    width: 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mt-footer *,
  .mt-footer *::before,
  .mt-footer *::after {
    transition-duration: 0.01ms !important;
  }
}
