/* Footer logo column: stack logo above certification badges */
.footer .col-md-3.mb-7 > .d-flex:has(.footer__logo--revantric) {
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin-left: -3rem;
  padding-left: 0;
}

@media (min-width: 768px) {
  .footer .col-md-3.mb-7 > .d-flex:has(.footer__logo--revantric) {
    margin-left: -4.5rem;
  }
}

.footer__logo.footer__logo--revantric {
  display: block;
  width: auto;
  max-width: min(520px, calc(100% + 1.5rem));
  height: auto;
  min-height: 120px;
  max-height: 180px;
  margin-left: -1.25rem;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 768px) {
  .footer__logo.footer__logo--revantric {
    max-height: 220px;
    max-width: min(560px, calc(100% + 2rem));
    margin-left: -1.5rem;
  }
}

/* Footer contact block (bottom-right) */
.footer .order-sm-4:has(.footer__contact) {
  align-self: flex-start;
  margin-top: -1.25rem;
}

@media (min-width: 768px) {
  .footer .order-sm-4:has(.footer__contact) {
    margin-top: -2.5rem;
  }
}

@media (min-width: 1056px) {
  .footer .order-sm-4:has(.footer__contact) {
    margin-top: -3.5rem;
  }
}

.footer .order-sm-4:has(.footer__contact) .footer__contact,
.footer .order-sm-4:has(.footer__contact) .footer__contact-title,
.footer .order-sm-4:has(.footer__contact) .footer__contact-link,
.footer .order-sm-4:has(.footer__contact) .footer__contact-text {
  color: #ffffff;
}

.footer__contact-title {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.footer__contact-list {
  padding: 0;
  list-style: none;
}

.footer__contact-item {
  font-size: 0.875rem;
  line-height: 1.45;
  opacity: 1;
}

.footer .color-spl-600 .footer__contact-item,
.footer .color-spl-600 .footer__contact-item a {
  opacity: 1 !important;
}

.footer__contact-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.footer__contact-icon svg {
  width: 2.25rem;
  height: 2.25rem;
  display: block;
}

.footer .color-spl-600 a.footer__contact-link,
.footer .color-spl-600 a.footer__contact-link:link,
.footer .color-spl-600 a.footer__contact-link:visited,
.footer .order-sm-4:has(.footer__contact) a.footer__contact-link,
.footer .order-sm-4:has(.footer__contact) a.footer__contact-link:link,
.footer .order-sm-4:has(.footer__contact) a.footer__contact-link:visited {
  color: #ffffff !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.footer .color-spl-600 a.footer__contact-link:hover,
.footer .color-spl-600 a.footer__contact-link:focus-visible,
.footer .order-sm-4:has(.footer__contact) a.footer__contact-link:hover,
.footer .order-sm-4:has(.footer__contact) a.footer__contact-link:focus-visible {
  color: #b8fff5 !important;
  -webkit-text-fill-color: #b8fff5;
  text-decoration: underline;
}

.footer__contact-text {
  color: #f1f5f9;
  font-weight: 500;
}
