/* Footer styles for NUPARADIGM LTD */

.np-footer {
  background-color: var(--gray-900);
  color: #e5e7eb;
  padding-top: var(--space-24);
  padding-bottom: var(--space-20);
  position: relative;
}

.np-footer__inner {}

.np-footer__top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-20);
  flex-wrap: wrap;
}

.np-footer__brand-block {
  max-width: 320px;
}

.np-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.np-footer__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.np-footer__logo-initial {
  font-weight: 700;
  font-size: 1.25rem;
}

.np-footer__brand-text {
  display: flex;
  flex-direction: column;
}

.np-footer__brand-name {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.np-footer__brand-tagline {
  font-size: 0.75rem;
  color: var(--gray-300);
}

.np-footer__address,
.np-footer__contact {
  font-size: 0.9rem;
  color: var(--gray-300);
}

.np-footer__address {
  margin-bottom: var(--space-6);
}

.np-footer__links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-16);
  flex: 1;
}

.np-footer__links-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-300);
  margin-bottom: var(--space-6);
}

.np-footer__links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.np-footer__links-list li + li {
  margin-top: 0.35rem;
}

.np-footer__links-list a {
  font-size: 0.9rem;
  color: var(--gray-300);
}

.np-footer__links-list a:hover,
.np-footer__links-list a:focus-visible {
  color: #ffffff;
}

.np-footer__bottom {
  border-top: 1px solid var(--gray-700);
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-8);
}

.np-footer__copyright {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* Cookie banner */

.np-cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  background-color: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition-slow), opacity var(--transition-slow), visibility var(--transition-slow);
}

.np-cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.np-cookie-banner[hidden] {
  display: none;
}

.np-cookie-banner__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-12);
}

.np-cookie-banner__content {
  max-width: 640px;
}

.np-cookie-banner__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.np-cookie-banner__text {
  font-size: 0.9rem;
  color: var(--gray-200);
  margin-bottom: var(--space-4);
}

.np-cookie-banner__link {
  font-size: 0.85rem;
  color: #bfdbfe;
  text-decoration: underline;
}

.np-cookie-banner__link:hover,
.np-cookie-banner__link:focus-visible {
  color: #ffffff;
}

.np-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: flex-end;
}

.np-cookie-banner__button {
  font-size: 0.8rem;
}

.np-cookie-banner__button--reject {
  border-color: #e5e7eb;
  color: #e5e7eb;
}

.np-cookie-banner__button--reject:hover,
.np-cookie-banner__button--reject:focus-visible {
  background-color: rgba(249, 250, 251, 0.06);
}

@media (max-width: 960px) {
  .np-footer__top {
    flex-direction: column;
  }

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

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

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

  .np-cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .np-cookie-banner__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .np-cookie-banner__button {
    flex: 1 1 auto;
    justify-content: center;
  }
}
