.thp-footer {
  background-color: #020617;
  color: #e5e7eb;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 2.75rem 1.25rem 2.25rem;
  position: relative;
}

.thp-footer__inner {
  max-width: 1200px;
  margin-inline: auto;
}

.thp-footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.thp-footer__brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid #f97316;
  background: radial-gradient(circle at 20% 0, rgba(249, 115, 22, 0.8), transparent 55%),
    radial-gradient(circle at 80% 120%, rgba(15, 23, 42, 0.9), #020617);
}

.thp-footer__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.thp-footer__brand-name {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.thp-footer__brand-tagline {
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #9ca3af;
}

.thp-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.thp-footer__section {
  min-width: 0;
}

.thp-footer__heading {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #d1d5db;
  margin: 0 0 0.85rem;
}

.thp-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.thp-footer__link {
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #9ca3af;
  text-decoration: none;
}

.thp-footer__link:hover,
.thp-footer__link:focus-visible {
  color: #f9fafb;
}

.thp-footer__link:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 3px;
}

.thp-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(55, 65, 81, 0.8);
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.thp-footer__copyright {
  margin: 0;
  font-size: 0.85rem;
  color: #9ca3af;
}

.thp-footer__social {
  display: inline-flex;
  gap: 0.6rem;
}

.thp-footer__social-link {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  text-decoration: none;
  background-color: rgba(15, 23, 42, 0.9);
}

.thp-footer__social-link:hover,
.thp-footer__social-link:focus-visible {
  border-color: #f97316;
  color: #f97316;
}

.thp-footer__social-link:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 3px;
}

/* Cookie banner */

.thp-cookie {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1200;
  display: flex;
  justify-content: center;
  padding: 0.5rem 0.75rem 0.9rem;
  pointer-events: none;
}

.thp-cookie__dialog {
  max-width: 960px;
  width: 100%;
  background-color: #020617;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: auto;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 180ms ease-out, opacity 180ms ease-out;
}

.thp-cookie__text {
  max-width: 580px;
}

.thp-cookie__title {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 0.3rem;
  color: #e5e7eb;
}

.thp-cookie__description {
  margin: 0 0 0.4rem;
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #d1d5db;
}

.thp-cookie__link {
  font-size: 0.85rem;
  color: #f97316;
  text-decoration: underline;
}

.thp-cookie__link:hover,
.thp-cookie__link:focus-visible {
  color: #fb923c;
}

.thp-cookie__link:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 3px;
}

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

.thp-cookie__button {
  min-width: 150px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.thp-cookie__button--secondary {
  background-color: transparent;
  border-color: rgba(148, 163, 184, 0.9);
  color: #e5e7eb;
}

.thp-cookie__button--primary {
  background-image: linear-gradient(135deg, #f97316, #ea580c);
  color: #111827;
  border-color: rgba(249, 115, 22, 0.9);
}

.thp-cookie__button:hover,
.thp-cookie__button:focus-visible {
  filter: brightness(1.05);
}

.thp-cookie__button:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 3px;
}

.thp-cookie--visible .thp-cookie__dialog {
  transform: translateY(0);
  opacity: 1;
}

.thp-cookie--hidden .thp-cookie__dialog {
  transform: translateY(110%);
  opacity: 0;
}

@media (max-width: 900px) {
  .thp-footer {
    padding-inline: 1.25rem;
  }

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

@media (max-width: 640px) {
  .thp-footer__brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .thp-footer__grid {
    grid-template-columns: 1fr;
  }

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

  .thp-cookie__dialog {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .thp-cookie__button {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .thp-cookie__dialog,
  .thp-cookie {
    transition: none !important;
  }
}