/* ═══════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════ */

.footer {
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
}

/* ── Banner ── */
.footer__banner {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

@media (min-width: 640px) { .footer__banner { height: 220px; } }
@media (min-width: 768px) { .footer__banner { height: 280px; } }
@media (min-width: 1024px) { .footer__banner { height: 340px; } }

.footer__banner-image {
  position: absolute;
  inset: 0;
}

.footer__banner-image img {
  display: block;
  width: 110%;
  height: 100%;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  opacity: 0.16;
}

.footer__banner-fade-1 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, transparent, var(--color-dark));
}

.footer__banner-fade-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent, var(--color-dark));
}

/* ── Upper area ── */
.footer__upper {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) { .footer__upper { padding: 0 2rem; } }

.footer__top {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) { .footer__top { padding-top: 3rem; padding-bottom: 4rem; } }

.footer__top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: end;
}

@media (min-width: 1024px) {
  .footer__top-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.footer__line-accent {
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
}

.footer__headline {
  color: #fff;
  line-height: 1;
  letter-spacing: -0.04em;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
}

.footer__headline-muted { color: rgba(255, 255, 255, 0.7); }

.footer__top-actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 1024px) { .footer__top-actions { align-items: flex-end; } }


/* ── Divider ── */
.footer__divider {
  position: relative;
  height: 1px;
}

.footer__divider-line { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.08); }
.footer__divider-glow-l { position: absolute; left: 0; top: 0; width: 10rem; height: 1px; background: linear-gradient(to right, rgba(255, 255, 255, 0.3), transparent); }
.footer__divider-glow-r { position: absolute; right: 0; top: 0; width: 10rem; height: 1px; background: linear-gradient(to left, rgba(255, 255, 255, 0.2), transparent); }

@media (min-width: 768px) { .footer__divider-glow-l { width: 10rem; } }

/* ── Link columns ── */
.footer__links {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) { .footer__links { padding-top: 4rem; padding-bottom: 4rem; } }

.footer__links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
}

@media (min-width: 768px) {
  .footer__links-grid { grid-template-columns: repeat(4, 1fr); gap: 2.5rem 2rem; }
}

@media (min-width: 1024px) { .footer__links-grid { column-gap: 3.5rem; } }

.footer__col-heading {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.footer__col-heading p {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) { .footer__col-heading p { font-size: 11px; } }

.footer__link-list { display: flex; flex-direction: column; gap: 0.625rem; }

.footer__link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  transition: all var(--duration-normal);
}

.footer__link:hover { color: var(--color-primary); }

.footer__link-line {
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
  transition: width 400ms ease-out, background-color var(--duration-normal);
}

.footer__link:hover .footer__link-line { width: 16px; background: var(--color-primary); }

.footer__link > span:not(.footer__link-line) { transition: transform var(--duration-normal); }
.footer__link:hover > span:not(.footer__link-line) { transform: translateX(2px); }

/* ── Bottom bar ── */
.footer__bottom {
  position: relative;
  background: var(--color-dark);
}

.footer__bottom-line { height: 1px; background: rgba(255, 255, 255, 0.06); }

.footer__bottom-inner {
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) { .footer__bottom-inner { flex-direction: row; } }

.footer__bottom-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__bottom-logo {
  height: 16px;
  opacity: 0.5;
}

.footer__bottom-sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: none;
}

@media (min-width: 768px) { .footer__bottom-sep { display: block; } }

.footer__bottom-text {
  font-size: 10px;
  color: #fff;
  letter-spacing: 0.02em;
}

.footer__bottom-registered { display: none; font-size: 10px; color: #fff; letter-spacing: 0.02em; }
@media (min-width: 768px) { .footer__bottom-registered { display: inline; } }

.footer__bottom-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer__bottom-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
  transition: color var(--duration-normal);
}

.footer__bottom-link:hover { color: #fff; }
