/*--------------------------------------------------------------
# Footer: a floating card that overlaps the page and a dark base
--------------------------------------------------------------*/
.tb-foot {
  /* The card straddles this line: page colour above, brand green below. */
  --tb-foot-split: 72px;
  padding-top: 48px;
  background: linear-gradient(to bottom, transparent var(--tb-foot-split), var(--tb-brand-dark) var(--tb-foot-split));
}

.tb-foot__card {
  padding: 52px 52px 36px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 28px;
  background: linear-gradient(160deg, #134a39 0%, #0f3b2d 100%);
  box-shadow:
    0 2px 6px rgba(10, 46, 34, 0.12),
    0 24px 56px rgba(10, 46, 34, 0.32);
}

.tb-foot__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 40px;
}

/* Brand column */
/* The logo file has transparent padding; trim it so the logo lines up with the text below. */
.tb-foot__logo img {
  display: block;
  width: auto;
  height: 60px;
  margin: -7px 0 -13px -36px;}

.tb-foot__brand p {
  max-width: 340px;
  margin: 20px 0 24px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.7;
}

.tb-foot__social {
  display: flex;
  gap: 10px;
}

.tb-foot__social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tb-foot__social a:hover {
  border-color: var(--insur-base);
  background: var(--insur-base);
  color: var(--tb-brand-dark);
}

.tb-foot__badge {
  display: block;
  width: 80px;
  height: auto;
  margin-top: 24px;
  border-radius: 10px;
}

/* Link columns */
.tb-foot__col h3 {
  margin: 0 0 18px;
  color: var(--insur-base);
  font-family: var(--tb-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tb-foot__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tb-foot__col li + li {
  margin-top: 10px;
}

.tb-foot__col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  transition: color 0.2s;
}

.tb-foot__col a:hover {
  color: #fff;
}

/* Contact strip */
.tb-foot__contact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 44px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none;
}

.tb-foot__contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.tb-foot__contact small {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.tb-foot__contact a {
  color: inherit;
  word-break: break-word;
}

.tb-foot__contact a:hover {
  color: var(--insur-base);
}

.tb-foot__ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--insur-base);
}

.tb-foot__ico svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* Legal line sits on the dark base */
.tb-foot__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 28px 0 32px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.tb-foot__legal p {
  margin: 0;
}

.tb-foot__legal a {
  color: inherit;
}

.tb-foot__legal a:hover {
  color: #fff;
}

.tb-foot__legal span {
  margin: 0 10px;
}

@media (max-width: 991px) {
  .tb-foot__card {
    padding: 40px 32px 32px;
  }

  .tb-foot__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .tb-foot__brand {
    grid-column: 1 / -1;
  }

  .tb-foot__contact {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .tb-foot {
    --tb-foot-split: 56px;
    padding-top: 32px;
  }

  .tb-foot__card {
    padding: 28px 22px 24px;
    border-radius: 20px;
  }

  .tb-foot__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tb-foot__contact {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .tb-foot__legal {
    justify-content: center;
    text-align: center;
  }
}
