/* Site footer (ft-*), loaded on every page from head-assets.php. Kept short: contact sits under the logo,
   link groups fold into tap-to-open sections on phones. Theme colours only: no gradients, no shadows,
   no scroll animations. */

.ft {
  position: relative;
  overflow: hidden;
  padding: 52px 0 0;
  background: #072b5f;
  color: #c7d2e2;
  font-size: 14.5px;
  line-height: 1.55;
}

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

.ft a:focus-visible,
.ft button:focus-visible,
.ft summary:focus-visible {
  outline: 3px solid #03a1d0;
  outline-offset: 3px;
}

.ft-main {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
}

/* Brand: logo, office status, contact */
.ft-brand__logo {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff;
}

.ft-brand__logo img {
  display: block;
  width: 150px;
  height: auto;
}

.ft-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  padding: 7px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
}

.ft-status__dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8a99b0;
}

.ft-status.is-open .ft-status__dot {
  background: #03a1d0;
  outline: 3px solid rgba(3, 161, 208, 0.25);
}

.ft-reach {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.ft-reach li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
}

.ft-reach li + li {
  margin-top: 4px;
}

.ft-reach li > .fa-solid,
.ft-reach li > .fa-brands,
.ft-reach li > .fa-regular {
  width: 18px;
  text-align: center;
  color: #03a1d0;
}

.ft-reach a,
.ft-reach__meet {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: #ffffff;
  transition: color 0.2s ease;
}

.ft-reach__meet {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  cursor: pointer;
}

.ft-reach a:hover,
.ft-reach__meet:hover {
  color: #03a1d0;
}

/* Icon-only copy button; the label is read by screen readers and changes to "Copied" */
.ft-reach__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ft-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ft-reach__copy:hover,
.ft-reach__copy.is-done {
  border-color: #03a1d0;
  background: #03a1d0;
}

/* Link groups */
.ft-index {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.ft-col__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  pointer-events: none;
}

.ft-col__title::-webkit-details-marker {
  display: none;
}

.ft-col__title .fa-solid {
  display: none;
  font-size: 12px;
  color: #03a1d0;
  transition: transform 0.2s ease;
}

.ft-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ft-col li + li {
  margin-top: 6px;
}

.ft-col a {
  position: relative;
  display: inline-block;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.ft-col a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 2px;
  background: #03a1d0;
  transition: width 0.2s ease;
}

.ft-col a:hover {
  padding-left: 16px;
  color: #ffffff;
}

.ft-col a:hover::before {
  width: 10px;
}

/* Outlined wordmark, cut by the bottom bar */
.ft-wordmark {
  margin: 28px 0 -0.2em;
  font-family: "Sora", sans-serif;
  font-size: clamp(56px, 11vw, 160px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.16);
  user-select: none;
}

/* Bottom bar */
.ft-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding: 16px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: #072b5f;
  font-size: 13.5px;
}

.ft-bottom p {
  margin: 0 auto 0 0;
}

.ft-bottom ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.ft-bottom ul a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ft-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
  color: #ffffff;
  transition: border-color 0.2s ease;
}

.ft-top .fa-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #03a1d0;
  font-size: 11px;
  transition: transform 0.2s ease;
}

.ft-top:hover {
  border-color: #03a1d0;
}

.ft-top:hover .fa-solid {
  transform: translateY(-2px);
}

/* Below desktop: brand row on top, links underneath */
@media (max-width: 1199.98px) {
  .ft-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ft-index {
    gap: 20px;
  }

  .ft-brand {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0 24px;
  }

  .ft-status {
    margin: 0;
    justify-self: start;
  }

  .ft-reach {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    gap: 4px 24px;
  }

  .ft-reach li + li {
    margin-top: 0;
  }
}

/* Small tablets: email on its own row */
@media (max-width: 991.98px) {
  .ft-reach {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ft-reach li:first-child {
    grid-column: 1 / -1;
  }
}

/* Phones: contact as a 2x2 grid, link groups fold */
@media (max-width: 767.98px) {
  .ft {
    padding-top: 36px;
  }

  .ft-brand {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ft-reach {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
  }

  .ft-index {
    grid-template-columns: 1fr;
  }

  .ft-reach li {
    gap: 8px;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  /* Email takes the full row; the copy button stays beside it */
  .ft-reach li:first-child {
    grid-column: 1 / -1;
  }

  .ft-reach a,
  .ft-reach__meet {
    font-size: 13.5px;
  }

  .ft-index {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ft-col {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .ft-col__title {
    margin: 0;
    padding: 14px 0;
    border-bottom: 0;
    cursor: pointer;
    pointer-events: auto;
  }

  .ft-col__title .fa-solid {
    display: inline-block;
  }

  .ft-col[open] .ft-col__title .fa-solid {
    transform: rotate(180deg);
  }

  .ft-col ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    padding: 0 0 16px;
  }

  .ft-col li + li {
    margin-top: 0;
  }

  .ft-wordmark {
    margin-top: 24px;
  }

  .ft-bottom {
    gap: 10px 18px;
  }

  .ft-bottom p {
    width: 100%;
  }

  .ft-top {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ft-col a,
  .ft-col a::before,
  .ft-col__title .fa-solid,
  .ft-top .fa-solid {
    transition: none;
  }
}
