/* Footer layout */
#main-footer {
  padding: 0;
  margin: 0;
  border: 0;
}

.footer-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2200 / 160;
  background: transparent;
  overflow: hidden;
  isolation: isolate;
}

.footer-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: clamp(16px, 2vw, 24px);
  text-align: center;
  color: #e5f7ec;
  z-index: 1;
}

.footer-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  min-height: 38px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02)) border-box,
    linear-gradient(140deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-soft-rgb), 0.12));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 5px rgba(255, 255, 255, 0.14),
    inset 0 -10px 18px rgba(0, 0, 0, 0.38),
    0 12px 26px rgba(0, 0, 0, 0.38),
    0 0 20px rgba(var(--accent-soft-rgb), 0.28);
  backdrop-filter: blur(16px) saturate(135%);
  transition: transform 0.22s ease, box-shadow 0.25s ease, border-color 0.2s ease, background 0.25s ease;
  overflow: hidden;
}

.footer-btn::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 25%, rgba(255, 255, 255, 0.36), transparent 42%),
    linear-gradient(95deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.footer-btn::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
  opacity: 0.9;
  pointer-events: none;
}

#toTop.footer-btn {
  padding: 8px 14px;
  min-height: 32px;
  font-size: 0.95rem;
}

.footer-btn:hover,
.footer-btn:focus-visible {
  border-color: rgba(var(--accent-pop-rgb), 0.7);
  box-shadow:
    inset 0 1px 5px rgba(255, 255, 255, 0.14),
    inset 0 -12px 20px rgba(0, 0, 0, 0.45),
    0 16px 36px rgba(0, 0, 0, 0.5),
    0 0 26px rgba(var(--accent-pop-rgb), 0.35);
  transform: translateY(-2px) scale(1.01);
}

.footer-btn:hover::after,
.footer-btn:focus-visible::after {
  opacity: 1;
}

.footer-note {
  margin: 0;
  font-size: 0.95rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

@media (max-width: 700px) {
  .footer-buttons {
    gap: 8px;
  }

  .footer-btn {
    width: 100%;
    max-width: 260px;
  }
}