/* Olidomama footer: compact, readable and resilient without JavaScript. */
.footer {
  background: #080808;
  border-top-color: #242424;
}

.footer .padding-footer {
  padding-top: clamp(2.75rem, 5vw, 4.5rem);
  padding-bottom: 2rem;
}

.footer .footer-top-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.55fr) minmax(150px, .7fr) minmax(170px, .75fr) minmax(190px, 1fr);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: start;
  width: 100%;
  margin-bottom: 2.75rem;
}

.footer .footer-content-block {
  min-width: 0;
}

.footer .footer-top-grid > .footer-content-block:nth-child(n + 2) {
  border-left: 1px solid #242424;
  padding-left: clamp(1.5rem, 2.5vw, 2.5rem);
}

.footer .footer-flex-item {
  gap: .7rem;
}

.footer .footer-flex-item + .footer-flex-item {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid #242424;
}

.footer .greenfoote {
  display: block;
  margin-bottom: .25rem;
  color: var(--green);
  letter-spacing: .04em;
  line-height: 1.2;
}

.footer .greenfooter {
  margin-bottom: 1.5rem;
}

.footer .text-block {
  color: #d8d8d8;
  line-height: 1.55;
}

.footer .link-button {
  width: fit-content;
  line-height: 1.2;
}

.footer .link-text,
.footer .link-text.small,
.footer .link-text.is-hover,
.footer .link-text.is-hover.small {
  color: #9b9b9b;
}

.footer .link-button:hover .link-text {
  color: #c8c8c8;
}

.footer .link-wrap:empty,
.footer .link-button:has(.link-wrap:empty),
.footer .link-button:empty {
  display: none;
}

/* Footer navigation remains available if scripts are blocked or delayed. */
.footer .footer-accordion-toggle {
  appearance: none;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  color: inherit;
  padding: 0 !important;
  cursor: default;
  pointer-events: none;
}

.footer .footer-accordion-arrow {
  display: none !important;
}

.footer .footer-accordion-content,
.footer .footer-accordion-content.open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
  width: 100%;
  max-height: none;
  margin-top: 0;
  overflow: visible;
}

.footer .footer-top-grid > .footer-content-block:nth-child(4) .footer-accordion-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: .7rem;
}

.footer .footer-bottom-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  width: 100%;
  margin-top: 0;
  padding-top: 1.5rem;
  border-top: 1px solid #242424;
}

.footer .footer-bottom-grid > .footer-content-block:first-child {
  display: none;
}

.footer .back-to-top-item {
  grid-area: auto !important;
  place-self: center end !important;
  order: 2;
}

.footer .footer-utility-pages-flex {
  grid-area: auto !important;
  justify-content: flex-start;
  gap: 1.25rem;
  order: 1;
}

.footer .back-to-top-link {
  width: 2.75rem;
  height: 2.75rem;
  border-color: #404040;
}

@media screen and (max-width: 991px) {
  .footer .footer-top-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: 3rem;
    row-gap: 2.5rem;
  }

  .footer .footer-top-grid > .footer-content-block:first-child,
  .footer .footer-top-grid > .footer-content-block:nth-child(4) {
    grid-column: 1 / -1;
  }

  .footer .footer-top-grid > .footer-content-block:nth-child(n + 2) {
    border-left: 0;
    border-top: 1px solid #242424;
    padding-top: 1.75rem;
    padding-left: 0;
  }

  .footer .footer-top-grid > .footer-content-block:nth-child(4) .footer-accordion-content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .footer .padding-footer {
    padding-top: 2.75rem;
    padding-bottom: 5.5rem;
  }

  .footer .footer-top-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 1.5rem;
    row-gap: 2.25rem;
    margin-bottom: 2.25rem;
  }

  .footer .footer-top-grid > .footer-content-block:first-child,
  .footer .footer-top-grid > .footer-content-block:nth-child(4) {
    grid-column: 1 / -1;
  }

  .footer .footer-top-grid > .footer-content-block:nth-child(4) .footer-accordion-content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer .footer-flex-item + .footer-flex-item {
    margin-top: 1.5rem;
  }

  .footer .footer-bottom-grid {
    grid-template-columns: 1fr auto;
    row-gap: 1rem;
    padding-top: 1.25rem;
  }

  .footer .footer-small-text {
    text-align: left;
  }
}

@media screen and (max-width: 479px) {
  .footer .padding-footer {
    padding-top: 2.25rem;
  }

  .footer .footer-top-grid {
    column-gap: 1rem;
    row-gap: 2rem;
  }

  .footer .footer-logo {
    max-width: 13.5rem;
  }

  .footer .text-block {
    font-size: .95rem;
  }

  .footer .footer-top-grid > .footer-content-block:nth-child(4) .footer-accordion-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer .footer-utility-pages-flex {
    flex-wrap: wrap;
  }
}
