/* Footer: OHO's statement / menu / contact columns, closing on Cencori's giant wordmark */

.site-footer {
  overflow: hidden;
  padding: clamp(72px, 8vw, 120px) var(--edge) 0;
  background: var(--surface-deep);
}

.footer__grid {
  display: grid;
  grid-template-columns: 5fr 3fr 4fr;
  gap: 48px var(--gutter);
}

.footer__logo {
  width: 168px;
  height: auto;
  margin-bottom: 32px;
}

.footer__menu ul {
  display: grid;
  gap: 10px;
}

/* Menu links: an arrow slides in on hover */
.footer__menu a {
  position: relative;
  display: inline-block;
  padding-right: 1.6rem;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__menu a::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 50%;
  opacity: 0;
  transform: translateY(-50%) translateX(-0.5rem);
  transition: all 0.3s ease;
}

.footer__menu a:hover {
  color: var(--turquoise);
}

.footer__menu a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.footer__contact {
  display: grid;
  align-content: start;
}

.footer__label {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--turquoise);
}

.footer__icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.footer__place {
  font-size: 17px;
  font-weight: 600;
}

/* Icon buttons: lift and pick up the gold on hover; the detail they hide appears above */
.footer__social {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--white);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer__social:hover,
.footer__social:focus-visible {
  transform: translateY(-0.25rem);
  border-color: var(--yellow);
  color: var(--yellow);
}

.footer__social::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--white);
  color: var(--surface-deep);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  translate: -50% 4px;
  transition:
    opacity 0.25s ease,
    translate 0.25s ease;
}

.footer__social:hover::after,
.footer__social:focus-visible::after {
  opacity: 1;
  translate: -50% 0;
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: clamp(56px, 6vw, 88px);
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  color: var(--on-dark-muted);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__legal a:hover {
  color: var(--yellow);
}

/* Giant wordmark, set edge to edge in Rotary Charcoal */
.footer__word {
  margin: clamp(8px, 2vw, 24px) calc(var(--gutter) * -0.4) 0;
  line-height: 0;
}

.footer__word svg {
  display: block;
  width: 100%;
  height: auto;
}

.footer__word text {
  font-family: var(--font-sans);
  font-size: 168px;
  font-weight: 600;
  fill: var(--charcoal);
}

@media (max-width: 960px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}
