.global-footer {
  --global-footer-red: #d94225;
  --global-footer-ink: #252930;
  position: relative;
  min-height: 540px;
  padding-top: 40px;
  overflow: hidden;
  color: var(--global-footer-ink);
  background: #fff;
  font-family: inherit;
}

.global-footer__media {
  position: absolute;
  inset: 136px max(5%, calc((100% - 1280px) / 2)) 0;
  overflow: hidden;
  background: url("../images/footer-photo.jpg") center / cover no-repeat;
}

.global-footer__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.global-footer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 17, .5);
}

.global-footer__card {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), 940px);
  margin: 0 auto;
  padding: 29px 44px 27px;
  border-radius: 22px;
  background: #efefef;
  text-align: center;
}

.global-footer__title {
  margin: 0;
  color: var(--global-footer-ink);
  font-size: clamp(2rem, 2.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .08em;
  text-transform: lowercase;
}

.global-footer__eyebrow {
  margin: 8px 0 14px;
  color: var(--global-footer-red);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.global-footer__intro {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.5;
}

.global-footer__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  margin-top: 24px;
}

.global-footer__option {
  display: grid;
  grid-template-rows: 34px 38px 54px 18px;
  align-items: center;
  justify-items: center;
  min-width: 0;
  min-height: 144px;
  padding: 4px 24px 0;
  border-right: 1px solid #c8c8c8;
  text-align: center;
}

.global-footer__option:last-child { border-right: 0; }

/* Neutralize the block editor's sibling spacing so all three grid columns
   begin on the same baseline on both the front end and in the Site Editor. */
.global-footer__options > .global-footer__option {
  margin-block-start: 0;
  margin-block-end: 0;
}

.global-footer__icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin: 0 auto;
  place-items: center;
  color: var(--global-footer-ink);
  fill: currentColor;
}

.global-footer__icon img {
  display: block;
  width: 32px;
  height: 32px;
}

.global-footer__label {
  align-self: center;
  margin: 0;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.35;
}

.global-footer__telephone {
  display: flex;
  width: max-content;
  height: 54px;
  margin: 0 auto;
  align-items: center;
  color: var(--global-footer-ink);
  font-size: 1.42rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}

.global-footer__hours {
  align-self: start;
  margin: 0;
  color: #5d6268;
  font-size: .67rem;
}

.global-footer__button {
  grid-row: 3 / 5;
  align-self: start;
  width: min(100%, 220px);
  margin-top: 0;
}

.global-footer__option > .wp-block-buttons {
  grid-row: 3 / 5;
  width: 100%;
  margin: 0;
}

.global-footer__button .wp-block-button__link {
  display: flex;
  width: min(100%, 220px);
  min-height: 44px;
  margin: 10px auto 0;
  padding: 0 18px 0 24px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--global-footer-ink);
  border-radius: 999px;
  color: var(--global-footer-ink);
  background: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .03em;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.global-footer__button .wp-block-button__link:hover { color: #fff; background: var(--global-footer-ink); }

.global-footer__button:focus-visible,
.global-footer__button .wp-block-button__link:focus-visible,
.global-footer__telephone a:focus-visible,
.global-footer__partner:focus-visible {
  outline: 3px solid var(--global-footer-red);
  outline-offset: 4px;
}

.global-footer__partners {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateX(-50%);
}

.global-footer__partner {
  display: grid;
  width: 225px;
  height: 66px;
  padding: 12px 24px;
  place-items: center;
  background: #fff;
}

.global-footer__partner img {
  width: auto;
  max-width: 100%;
  max-height: 42px;
  object-fit: contain;
}

.tbk-company-footer {
  padding: 36px max(24px, calc((100% - 1180px) / 2)) 0;
  color: var(--global-footer-ink);
  background: #fff;
}

.tbk-company-footer__main {
  width: 100%;
  min-height: 150px;
  gap: 40px;
}

.tbk-company-footer__identity {
  margin-left: 0 !important;
}

.tbk-company-footer__identity .wp-block-site-title {
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 800;
}

.tbk-company-footer__identity p {
  margin-top: 0;
  color: #565c62;
  line-height: 1.75;
}

.tbk-company-footer__navigation {
  margin-right: 0 !important;
}

.tbk-company-footer__navigation .wp-block-navigation-item__content {
  color: var(--global-footer-ink);
  font-size: .78rem;
  font-weight: 700;
}

.tbk-company-footer__contact {
  padding: 10px 20px;
  border-radius: 999px;
  color: #fff;
  background: var(--global-footer-red);
}

.tbk-company-footer__contact .wp-block-navigation-item__content {
  color: #fff;
}

.tbk-company-footer__secondary {
  margin-top: 18px;
}

.tbk-company-footer__secondary .wp-block-navigation-item__content {
  font-size: .7rem;
}

.tbk-company-footer__copyright {
  width: 100%;
  margin: 0;
  padding: 10px 20px;
  color: #252930;
  background: #e7e7e7;
}

@media (max-width: 900px) {
  .global-footer { min-height: 865px; padding-top: 36px; }
  .global-footer__media { inset: 118px 0 0; }
  .global-footer__card { width: min(calc(100% - 36px), 700px); padding-inline: 30px; }
  .global-footer__options { grid-template-columns: 1fr; margin-top: 18px; }
  .global-footer__option { min-height: 144px; padding: 15px 8px; border-right: 0; border-bottom: 1px solid #c8c8c8; }
  .global-footer__option:last-child { border-bottom: 0; }
  .global-footer__partners { bottom: 48px; }
  .tbk-company-footer__main { display: block; padding-bottom: 30px; }
  .tbk-company-footer__navigation { margin-top: 28px; }
  .tbk-company-footer__navigation .wp-block-navigation { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .global-footer { min-height: 910px; padding-top: 28px; }
  .global-footer__media { inset: 105px 0 0; }
  .global-footer__card { width: calc(100% - 30px); padding: 23px 18px 17px; border-radius: 18px; }
  .global-footer__title { font-size: 2rem; }
  .global-footer__intro { font-size: .82rem; }
  .global-footer__options { margin-top: 10px; }
  .global-footer__option { padding-block: 12px; }
  .global-footer__icon { width: 30px; height: 30px; }
  .global-footer__partners { bottom: 40px; width: calc(100% - 30px); gap: 10px; }
  .global-footer__partner { width: calc(50% - 5px); height: 56px; padding: 10px 15px; }

  .tbk-company-footer {
    padding: 30px 18px 0;
  }

  .tbk-company-footer__main {
    min-height: 0;
    padding-bottom: 26px;
  }

  .tbk-company-footer__identity .wp-block-site-title {
    margin-bottom: 8px;
  }

  .tbk-company-footer__identity p {
    margin-bottom: 0;
    font-size: .76rem !important;
    line-height: 1.65;
  }

  .tbk-company-footer__navigation {
    display: grid;
    gap: 16px;
    margin-top: 24px;
  }

  .tbk-company-footer__navigation .wp-block-navigation,
  .tbk-company-footer__navigation .wp-block-navigation__container {
    width: 100%;
    margin: 0;
  }

  .tbk-company-footer__navigation .wp-block-navigation__container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 14px;
  }

  .tbk-company-footer__navigation .wp-block-navigation-item,
  .tbk-company-footer__navigation .wp-block-navigation-item__content {
    width: 100%;
  }

  .tbk-company-footer__navigation .wp-block-navigation-item__content {
    min-height: 40px;
    padding: 8px 0;
    font-size: .76rem;
    line-height: 1.35;
  }

  .tbk-company-footer__contact {
    grid-column: 1 / -1;
    width: 100%;
    padding: 0 16px;
    text-align: center;
  }

  .tbk-company-footer__contact .wp-block-navigation-item__content {
    min-height: 44px;
    justify-content: center;
  }

  .tbk-company-footer__secondary {
    margin-top: 0;
    padding-top: 14px;
    border-top: 1px solid #e1e4e6;
  }

  .tbk-company-footer__secondary .wp-block-navigation-item__content {
    font-size: .68rem;
  }

  .tbk-company-footer__copyright {
    padding: 13px 12px;
    font-size: .68rem !important;
    line-height: 1.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-footer__button { transition: none; }
}
