/* Footer styles for Breakroomly - builds on base.css */

.br-footer {
  border-top: 1px solid rgba(12, 61, 99, 0.06);
  background: linear-gradient(180deg, #f5f9fd 0%, #ffffff 60%);
  color: #16344b;
}

.br-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 1.75rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 2.5rem;
}

.br-footer__brand {
  max-width: 360px;
}

.br-footer__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.br-footer__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0c3d63, #1a73b8);
  color: #ffffff;
  font-weight: 700;
}

.br-footer__logo-text {
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: #0c3d63;
}

.br-footer__tagline {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4a6276;
}

.br-footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.br-footer__heading {
  margin: 0 0 0.75rem;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0c3d63;
}

.br-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.br-footer__link {
  display: inline-flex;
  align-items: center;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  color: #4a6276;
  text-decoration: none;
  padding-block: 0.15rem;
}

.br-footer__link:hover {
  color: #0c3d63;
}

.br-footer__link:focus-visible {
  outline: 2px solid #1a73b8;
  outline-offset: 2px;
  border-radius: 3px;
}

.br-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(12, 61, 99, 0.06);
}

.br-footer__copyright {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: #6a7f92;
}

/* Cookie banner */

.br-cookie {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.br-cookie__panel {
  width: 100%;
  max-width: 960px;
  margin: 0.75rem 1rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(5, 32, 52, 0.22);
  border: 1px solid rgba(12, 61, 99, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 1rem 1.25rem;
  pointer-events: auto;
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.br-cookie--hidden .br-cookie__panel {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.br-cookie__content {
  flex: 2 1 260px;
  min-width: 0;
}

.br-cookie__title {
  margin: 0 0 0.25rem;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: #0c3d63;
}

.br-cookie__text {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #4a6276;
}

.br-cookie__actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.br-cookie__button {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.45rem 1.1rem;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.br-cookie__button--secondary {
  background-color: #ffffff;
  border-color: rgba(12, 61, 99, 0.3);
  color: #0c3d63;
}

.br-cookie__button--primary {
  background: linear-gradient(135deg, #0c3d63, #1a73b8);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(12, 61, 99, 0.25);
}

.br-cookie__button:focus-visible {
  outline: 2px solid #1a73b8;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .br-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 1.25rem;
  }

  .br-footer__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .br-footer__bottom {
    padding-inline: 1.25rem;
  }

  .br-cookie__panel {
    flex-direction: column;
    align-items: flex-start;
    margin-inline: 0.75rem;
  }

  .br-cookie__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .br-footer__links {
    grid-template-columns: minmax(0, 1fr);
  }

  .br-cookie__panel {
    margin-inline: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .br-cookie__panel {
    transition: none !important;
  }
}
