/* Homepage social links and company footer. */
.social-links {
  position: fixed;
  left: 50%;
  bottom: calc(6rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(22rem, calc(100vw - 3rem));
}

.social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: rgba(242, 246, 255, 0.64);
  text-decoration: none;
  transition: color 180ms ease;
}

.social-icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link:hover,
.social-link:focus-visible {
  color: #f2f6ff;
}

.social-link:focus-visible {
  outline: 1px solid #9ad2ff;
  outline-offset: 4px;
}

.social-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.65rem);
  transform: translateX(-50%);
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  background: #08090c;
  color: #f2f6ff;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.social-link:hover .social-label,
.social-link:focus-visible .social-label {
  opacity: 1;
}

.site-footer {
  z-index: 12;
  width: min(36rem, calc(100vw - 2.5rem));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  text-align: center;
  text-transform: none;
  white-space: normal;
  letter-spacing: normal;
  pointer-events: auto;
}

.footer-identity {
  display: grid;
  justify-content: center;
  gap: 0.4rem;
}

.footer-copyright {
  color: rgba(242, 246, 255, 0.68);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1.5;
}

.footer-cities {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  color: rgba(242, 246, 255, 0.56);
  font-size: 0.7rem;
  letter-spacing: 0.025em;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .social-links {
    bottom: calc(8.25rem + env(safe-area-inset-bottom));
  }

  .contact-link {
    bottom: calc(5rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 900px) and (pointer: coarse), (max-width: 900px) and (hover: none) {
  .social-links {
    bottom: calc(6rem + env(safe-area-inset-bottom));
  }
}

/* Short screens can scroll; taller screens keep the original composition. */
@media (max-height: 740px) {
  body {
    overflow-y: auto;
    min-height: 100svh;
  }

  .container {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    flex-shrink: 0;
    margin-top: calc(2.8rem + env(safe-area-inset-top));
  }

  .cta-row {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    flex-shrink: 0;
    margin-top: 2.75rem;
    gap: 1.4rem;
  }

  .social-links {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    flex-shrink: 0;
    margin: auto auto 0;
    padding-top: 2.25rem;
  }

  .site-footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    flex-shrink: 0;
    width: 100%;
    margin-top: 0;
    padding: 1.25rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
    text-align: center;
    white-space: normal;
    line-height: 1.5;
  }

  .client-space-link,
  .contact-link {
    display: none !important;
  }

  .cta-mobile-extras {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-link,
  .social-label {
    transition: none;
  }
}
