/**
 * @file
 * Footer component.
 *
 * Light blue background, logo centered, links row, decorative shapes.
 * Figma: Footer Desktop (743:4464).
 */

.footer {
  background: var(--color-blue-light);
  border-radius: 32px 32px 0 0;
  overflow: clip;
  position: relative;
  z-index: 1;
  margin-top: -32px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 58px;
  max-width: 1440px;
  margin-inline: auto;
  padding: 80px;
  padding-bottom: 4px;
  position: relative;
}

/* Footer logo — bigger than header */
.footer__logo {
  flex-shrink: 0;
}

.footer__logo a {
  display: block;
  width: 218px;
  height: 62px;
  text-decoration: none;
}

.footer__logo-desktop {
  display: block;
  width: 218px;
  height: 62px;
}

/* Mobile text logo — hidden on desktop, shown on mobile */
.footer__logo-mobile {
  display: none;
}

/* Footer top: logo + links row */
.footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 107px;
  width: 100%;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .footer__top {
    flex-direction: row;
    align-items: center;
  }
}

/* Footer nav links */
.footer__nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md) var(--space-xl);
}

.footer__nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.7px;
  color: var(--color-blue);
  text-decoration: none;
  text-align: center;
  transition: opacity var(--transition-base);
}

.footer__nav a:focus-visible {
  outline-offset: 4px;
}

.footer__nav a:hover {
  text-decoration: underline;
}

/* Footer bottom */
.footer__bottom {
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer__copyright {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.36px;
  color: var(--color-black);
}

/* Decorative globules — image-based to match Figma */
.footer__globule {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* Bottom-left large globule — Figma: rotated type2 at bottom-left */
.footer__globule--left {
  bottom: -218px;
  left: -284px;
  width: 523px;
  height: 521px;
  transform: rotate(-50deg);
}

/* Top-right small globule — Figma: type1 at top-right */
.footer__globule--right {
  top: -94px;
  right: -77px;
  width: 204px;
  height: 220px;
}

/* Decorative shapes (image-based) */
.footer__decoration {
  position: absolute;
  pointer-events: none;
}

.footer__decoration--left {
  bottom: 0;
  left: 0;
  width: 120px;
  opacity: 0.5;
}

.footer__decoration--right {
  top: 0;
  right: 0;
  width: 120px;
  opacity: 0.5;
}

/* Mobile: stack footer links vertically */
@media (max-width: 768px) {
  .footer {
    margin-top: -32px;
  }

  .footer__inner {
    height: auto;
    padding: 42px 16px 60px;
    gap: 24px;
  }

  .footer__top {
    text-align: center;
    gap: 24px;
  }

  .footer__logo {
    display: flex;
    justify-content: center;
  }

  .footer__logo a {
    width: 180px;
    height: 52px;
  }

  .footer__logo-desktop {
    display: none;
  }

  .footer__logo-mobile {
    display: block;
    width: 180px;
    height: 52px;
  }

  .footer__nav {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .footer__nav a {
    line-height: normal;
  }
}
