/* Footer-specific styling for HAL-WEK - builds on base.css */

.halwek-footer {
  background-color: var(--color-surface-alt);
}

.halwek-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.halwek-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--space-16);
}

@media (max-width: 900px) {
  .halwek-footer__top {
    grid-template-columns: minmax(0, 1fr);
  }
}

.halwek-footer__brand-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.halwek-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.halwek-footer__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.85), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.5), var(--shadow-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.halwek-footer__logo-bolt {
  width: 13px;
  height: 16px;
  position: relative;
  transform: skewX(-8deg);
}

.halwek-footer__logo-bolt::before,
.halwek-footer__logo-bolt::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
}

.halwek-footer__logo-bolt::before {
  top: -2px;
  border-width: 0 6px 12px 6px;
  border-color: transparent transparent #e5f9ff transparent;
}

.halwek-footer__logo-bolt::after {
  bottom: -2px;
  border-width: 12px 6px 0 6px;
  border-color: #facc15 transparent transparent transparent;
}

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

.halwek-footer__brand-name {
  font-weight: 600;
  font-size: var(--font-size-base);
}

.halwek-footer__brand-tagline {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.halwek-footer__contact-line {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.halwek-footer__contact-line a {
  color: var(--color-primary);
}

.halwek-footer__contact-line a:hover,
.halwek-footer__contact-line a:focus-visible {
  color: var(--color-primary-strong);
}

/* Footer navigation */

.halwek-footer__links-block {
  display: flex;
  justify-content: flex-end;
}

.halwek-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-12);
}

@media (max-width: 700px) {
  .halwek-footer__links-block {
    justify-content: flex-start;
  }

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

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

.halwek-footer__nav-title {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-400);
  margin-bottom: var(--space-4);
}

.halwek-footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.halwek-footer__nav-list a {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.halwek-footer__nav-list a:hover,
.halwek-footer__nav-list a:focus-visible {
  color: #f9fafb;
}

/* Bottom row */

.halwek-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  padding-top: var(--space-6);
  margin-top: var(--space-4);
}

@media (max-width: 600px) {
  .halwek-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

.halwek-footer__copyright,
.halwek-footer__domain {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.halwek-footer__domain a {
  color: var(--color-text-muted);
}

.halwek-footer__domain a:hover,
.halwek-footer__domain a:focus-visible {
  color: #f9fafb;
}

/* Cookie banner */

.halwek-cookie {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), rgba(2, 6, 23, 0.98));
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.halwek-cookie__inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--space-6) var(--container-padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.halwek-cookie__title {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-2);
}

.halwek-cookie__description {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.halwek-cookie__link {
  font-size: var(--font-size-sm);
}

.halwek-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: flex-end;
}

.halwek-cookie__button {
  font-size: var(--font-size-sm);
  padding-inline: 1.25rem;
}

@media (max-width: 720px) {
  .halwek-cookie__inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .halwek-cookie__button {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Visible state controlled by JS */

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

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