/* Footer styles for Homeapplinex */

.ha-footer {
  background: radial-gradient(circle at top left, #0f172a 0, #020617 55%, #020617 100%);
  color: #e5f3ff;
  padding-top: 2.5rem;
  padding-bottom: 1.75rem;
  margin-top: 3rem;
}

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

.ha-footer__brand {
  max-width: 420px;
}

.ha-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ha-footer__logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 1rem;
  background: radial-gradient(circle at 30% 20%, #34d399 0, #10b981 45%, #0f766e 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ecfdf5;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.55);
}

.ha-footer__logo-mark i {
  font-size: 1.1rem;
}

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

.ha-footer__brand-name {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.ha-footer__brand-tagline {
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: #a5f3fc;
}

.ha-footer__description {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: #cbd5f5;
}

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

.ha-footer__heading {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e0f2fe;
}

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

.ha-footer__link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  color: #bfdbfe;
  text-decoration: none;
  padding: 0.1rem 0;
}

.ha-footer__link::before {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  margin-right: 0.4rem;
  background: radial-gradient(circle, #22c55e 0, transparent 70%);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.12s ease-out, transform 0.12s ease-out;
}

.ha-footer__link:hover::before,
.ha-footer__link:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

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

.ha-footer__link:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.ha-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.45);
  padding-top: 0.9rem;
}

.ha-footer__copyright {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Cookie banner */

.ha-cookie {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 1100;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

.ha-cookie--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ha-cookie--hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.ha-cookie__inner {
  max-width: 960px;
  margin: 0 auto 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  background-color: #0b1120;
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.ha-cookie__text {
  flex: 1 1 auto;
}

.ha-cookie__title {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e0f2fe;
}

.ha-cookie__description {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: #cbd5f5;
}

.ha-cookie__more {
  font-size: 0.8rem;
  color: #7dd3fc;
  text-decoration: underline;
}

.ha-cookie__more:hover,
.ha-cookie__more:focus-visible {
  color: #bae6fd;
}

.ha-cookie__more:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 3px;
}

.ha-cookie__actions {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex-shrink: 0;
}

.ha-cookie__button {
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.16s ease-out, color 0.16s ease-out, box-shadow 0.16s ease-out, transform 0.1s ease-out;
}

.ha-cookie__button:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
}

.ha-cookie__button--primary {
  background: linear-gradient(90deg, #22c55e, #0ea5e9);
  color: #022c22;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.5);
}

.ha-cookie__button--primary:hover {
  background: linear-gradient(90deg, #16a34a, #0284c7);
  transform: translateY(-1px);
}

.ha-cookie__button--primary:active {
  transform: translateY(0);
}

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

.ha-cookie__button--secondary:hover {
  background-color: rgba(15, 23, 42, 0.8);
}

/* Responsive footer */

@media (max-width: 960px) {
  .ha-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

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

  .ha-cookie__inner {
    margin-inline: 0.75rem;
  }
}

@media (max-width: 768px) {
  .ha-footer__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ha-cookie__inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .ha-cookie__actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .ha-footer {
    padding-top: 2rem;
  }

  .ha-footer__inner {
    padding-inline: 0.75rem;
  }

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

  .ha-footer__bottom {
    padding-inline: 0.75rem;
  }

  .ha-cookie__inner {
    margin-inline: 0.5rem;
    padding-inline: 0.75rem;
  }

  .ha-cookie__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .ha-cookie__button {
    width: 100%;
    text-align: center;
  }
}
