/* Shared footer surface used by the home page and all child pages. */
.oulu-footer {
  padding-bottom: clamp(16px, 2.5vh, 32px);
  border-top: 1px solid rgba(20, 38, 74, .12);
  background: #edf3f7;
  color: #1f2f3f;
  font-family: "Open Sans", Arial, sans-serif;
}

.oulu-footer a {
  color: inherit;
  text-decoration: none;
}

.oulu-footer__inner,
.oulu-footer__bottom {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.oulu-footer__inner {
  display: grid;
  grid-template-columns: minmax(360px, 500px) minmax(0, 1fr);
  gap: 72px;
  padding: 64px 0 28px;
  box-sizing: border-box;
}

.oulu-footer__brand {
  text-align: left;
}

.oulu-footer__logo {
  display: inline-flex;
  align-items: center;
  margin: 0 0 22px;
}

.oulu-footer__logo img {
  width: 180px;
  height: auto;
  object-fit: contain;
}

.oulu-footer__brand p {
  max-width: 390px;
  margin: 0;
  color: #65758c;
  font-size: 14px;
  line-height: 1.65;
}

.oulu-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.oulu-footer__nav h3 {
  margin: 0 0 18px;
  color: #1f2f3f;
  font-size: 18px;
  line-height: 1.2;
}

.oulu-footer__nav h3 a {
  display: inline;
  margin: 0;
  color: inherit;
  font: inherit;
}

.oulu-footer__nav a {
  display: block;
  margin: 0 0 11px;
  color: #65758c;
  font-size: 14px;
  line-height: 1.45;
}

.oulu-footer .oulu-footer__nav .oulu-footer__contact-details {
  display: block;
  margin: 0;
  padding-left: 0;
  border-left: 0;
}

.oulu-footer .oulu-footer__nav .oulu-footer__contact-details a,
.oulu-footer .oulu-footer__nav .oulu-footer__contact-details p {
  display: block;
  margin: 0 0 11px;
  padding: 0;
  border-bottom: 0;
  color: #65758c;
}

.oulu-footer .oulu-footer__nav .oulu-footer__contact-details p:last-child {
  margin-bottom: 0;
}

.oulu-footer .oulu-footer__nav .oulu-footer__contact-details span,
.oulu-footer .oulu-footer__nav .oulu-footer__contact-details strong {
  color: #65758c;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.oulu-footer .oulu-footer__nav .oulu-footer__contact-details span::after {
  content: ": ";
}

.oulu-footer__nav a:hover,
.oulu-footer__bottom a:hover {
  color: #138fa3;
}

.oulu-footer__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  color: #65758c;
  font-size: 13px;
  line-height: 1.5;
}

.oulu-footer__bottom > span:last-child {
  text-align: right;
}

.oulu-footer__mobile {
  display: none;
}

.oulu-footer a:focus-visible {
  outline: 3px solid rgba(19, 143, 163, .58);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .oulu-footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .oulu-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 767px) {
  #oulu-footer.oulu-footer {
    padding: 56px 0 44px;
    border-top: 4px solid #075383;
    background: #060c16;
    color: #fff;
  }

  .oulu-footer__inner,
  .oulu-footer__bottom {
    display: none !important;
  }

  .oulu-footer .oulu-footer__mobile {
    display: block;
    width: min(calc(100% - 64px), 430px);
    margin: 0 auto;
  }

  .oulu-footer__mobile-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 52px;
  }

  .oulu-footer__mobile-logo img {
    display: block;
    width: 192px;
    height: auto;
    filter: brightness(0) invert(1);
  }

  .oulu-footer__mobile-description {
    margin: 0;
    color: rgba(255, 255, 255, .84);
    font-size: clamp(18px, 4.8vw, 20px);
    font-weight: 700;
    line-height: 1.58;
    letter-spacing: -.025em;
  }

  .oulu-footer__mobile-contact {
    display: grid;
    gap: 20px;
    margin-top: 48px;
    padding-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, .42);
  }

  .oulu-footer__mobile-contact a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
  }

  .oulu-footer__mobile-contact strong {
    flex: 0 0 auto;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
  }

  .oulu-footer__mobile-contact span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
