/* Brighter Builds Global Footer */

:root {
  --bb-footer-radius: 26px;
  --bb-footer-bg: rgba(12, 14, 28, 0.75);
  --bb-footer-border: rgba(128, 147, 241, 0.22);
  --bb-footer-shadow: 0 60px 120px rgba(5, 8, 22, 0.55);
  --bb-footer-gradient: radial-gradient(circle at 15% 10%, rgba(114, 221, 247, 0.25), transparent 55%), radial-gradient(circle at 85% -20%, rgba(179, 136, 235, 0.32), transparent 65%);
  --bb-footer-text: rgba(234, 239, 255, 0.82);
  --bb-footer-subtext: rgba(200, 210, 255, 0.6);
  --bb-footer-transition: 0.35s cubic-bezier(.22, 1, .36, 1);
}

.bb-footer {
  margin: clamp(4rem, 12vw, 7rem) 0 0;
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.bb-footer__shell {
  width: min(1200px, calc(100% - clamp(24px, 6vw, 64px)));
  border-radius: var(--bb-footer-radius);
  background: var(--bb-footer-bg);
  border: 1px solid var(--bb-footer-border);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--bb-footer-shadow);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.bb-footer__shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bb-footer-gradient);
  opacity: 0.55;
  pointer-events: none;
  mix-blend-mode: screen;
}

.bb-footer__top {
  position: relative;
  padding: clamp(2.8rem, 6vw, 3.8rem) clamp(2.2rem, 5vw, 3.4rem) clamp(2.2rem, 5vw, 3rem);
  display: grid;
  gap: clamp(1.8rem, 5vw, 3rem);
  grid-template-columns: minmax(240px, 1.05fr) repeat(3, minmax(180px, 0.9fr));
}

.bb-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bb-footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f6f7ff;
  transition: transform var(--bb-footer-transition), color 0.25s ease;
}

.bb-footer__brand-link img {
  width: clamp(40px, 7vw, 50px);
  height: auto;
  filter: drop-shadow(0 18px 32px rgba(114, 221, 247, 0.32));
}

.bb-footer__brand-link:hover,
.bb-footer__brand-link:focus-visible {
  transform: translateY(-2px);
  color: #ffffff;
}

.bb-footer__brand-copy {
  margin: 0;
  color: var(--bb-footer-subtext);
  max-width: 320px;
  line-height: 1.6;
}

.bb-footer__column {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.bb-footer__heading {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.bb-footer__nav,
.bb-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.bb-footer__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--bb-footer-text);
  transition: color 0.25s ease;
}

.bb-footer__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(247, 174, 248, 0), rgba(247, 174, 248, 0.85), rgba(128, 147, 241, 0.95));
  opacity: 0;
  transform: translateY(6px);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.bb-footer__link:hover,
.bb-footer__link:focus-visible {
  color: #ffffff;
}

.bb-footer__link:hover::after,
.bb-footer__link:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.bb-footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.9rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(128, 147, 241, 0.22), rgba(179, 136, 235, 0.6));
  color: #070910;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  box-shadow: 0 24px 56px rgba(122, 96, 255, 0.38);
  text-decoration: none;
  transition: transform var(--bb-footer-transition), box-shadow var(--bb-footer-transition), background var(--bb-footer-transition);
}

.bb-footer__cta:hover,
.bb-footer__cta:focus-visible {
  transform: translateY(-4px);
  background: linear-gradient(135deg, rgba(128, 147, 241, 0.4), rgba(247, 174, 248, 0.75));
  color: #ffffff;
  box-shadow: 0 28px 64px rgba(128, 110, 255, 0.55);
}

.bb-footer__cta:focus-visible {
  outline: 3px solid rgba(114, 221, 247, 0.55);
  outline-offset: 4px;
}

.bb-footer__cta:active {
  transform: translateY(-2px);
}

.bb-footer__note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--bb-footer-subtext);
  line-height: 1.5;
}

.bb-footer__bottom {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2rem) clamp(2.2rem, 5vw, 3.4rem) clamp(1.6rem, 4vw, 2.2rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
  border-top: 1px solid rgba(128, 147, 241, 0.18);
  background: linear-gradient(180deg, rgba(5, 6, 14, 0.25), rgba(5, 6, 14, 0.55));
  z-index: 1;
}

.bb-footer__copyright {
  color: rgba(224, 230, 255, 0.65);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin: 0;
}

.bb-footer__credits {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.85rem;
  color: rgba(210, 220, 255, 0.6);
}

.bb-footer__credits span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.bb-footer__credits a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.bb-footer__credits a:hover,
.bb-footer__credits a:focus-visible {
  color: #ffffff;
}

@media (max-width: 1020px) {
  .bb-footer__top {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 720px) {
  .bb-footer {
    padding-top: clamp(2.5rem, 10vw, 3.5rem);
  }

  .bb-footer__shell {
    width: calc(100% - clamp(20px, 8vw, 36px));
  }

  .bb-footer__top {
    grid-template-columns: 1fr;
  }

  .bb-footer__brand {
    align-items: flex-start;
  }

  .bb-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bb-footer__link,
  .bb-footer__cta,
  .bb-footer__brand-link {
    transition: none;
  }

  .bb-footer__link::after {
    display: none;
  }
}
