/* Footer base */
.ke-footer {
  background-color: var(--gray-900);
  color: #f9fafb;
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
  margin-top: var(--space-8);
}

.ke-footer a {
  color: #e5e7eb;
}

.ke-footer a:hover,
.ke-footer a:focus-visible {
  color: #ffffff;
}

.ke-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--space-8);
  align-items: flex-start;
}

/* Branding */
.ke-footer__brand {
  max-width: 360px;
}

.ke-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.ke-footer__logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.ke-footer__logo-mark i {
  color: #ffffff;
  font-size: 1.1rem;
}

.ke-footer__logo-text {
  font-weight: 600;
  font-size: var(--font-size-lg);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ke-footer__tagline {
  font-size: var(--font-size-sm);
  color: #9ca3af;
}

/* Links */
.ke-footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.ke-footer__heading {
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d1d5db;
  margin-bottom: var(--space-3);
}

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

.ke-footer__list li + li {
  margin-top: 0.5rem;
}

.ke-footer__list a {
  font-size: var(--font-size-sm);
  color: #e5e7eb;
}

.ke-footer__text {
  font-size: var(--font-size-sm);
  color: #d1d5db;
}

.ke-footer__column--contact .ke-footer__text + .ke-footer__text {
  margin-top: 0.75rem;
}

/* Bottom line */
.ke-footer__bottom {
  border-top: 1px solid rgba(229, 231, 235, 0.18);
  margin-top: var(--space-8);
  padding-top: var(--space-4);
}

.ke-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.ke-footer__copy,
.ke-footer__locale {
  font-size: var(--font-size-xs);
  color: #9ca3af;
}

/* Cookie banner */
.ke-cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  background-color: rgba(15, 23, 42, 0.98);
  color: #f9fafb;
  box-shadow: 0 -8px 25px rgba(15, 23, 42, 0.4);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform var(--transition-slow),
    opacity var(--transition-slow),
    visibility var(--transition-slow);
}

.ke-cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.ke-cookie-banner__content {
  max-width: 720px;
}

.ke-cookie-banner__title {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-2);
}

.ke-cookie-banner__text {
  font-size: var(--font-size-sm);
  color: #e5e7eb;
}

.ke-cookie-banner__text a {
  text-decoration: underline;
}

.ke-cookie-banner__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-end;
}

.ke-cookie-banner__btn {
  font-size: var(--font-size-sm);
  white-space: nowrap;
}

.ke-cookie-banner__btn--reject {
  border-radius: var(--radius-pill);
}

/* Visible state controlled via JS */
.ke-cookie-banner--visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.ke-cookie-banner--hiding {
  transform: translateY(100%);
  opacity: 0;
}

/* Responsive footer */
@media (max-width: 960px) {
  .ke-footer__inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .ke-footer {
    padding-top: var(--space-6);
    padding-bottom: var(--space-5);
  }

  .ke-footer__links {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 480px) {
  .ke-cookie-banner__inner {
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
  }

  .ke-cookie-banner__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .ke-cookie-banner__btn {
    width: 100%;
    justify-content: center;
  }
}
