/* -------------------------------------------------------------
   14. FOOTER
   ------------------------------------------------------------- */
footer {
  background: #0F1D2B;
  padding: 57.12px 0 0 0;
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-top: 1px solid var(--border-card);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../../images/footer-bg-map.png') center top / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}

#footerParticlesCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

footer .footer-giant-logo {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0.25;
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
  overflow: visible;
  user-select: none;
}

footer .footer-giant-logo img {
  height: clamp(80px, 15vw, 220px);
  width: auto;
  object-fit: contain;
}

footer .footer-giant-logo span {
  font-size: clamp(70px, 14vw, 220px);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 1);
  font-family: var(--font-sans);
  text-transform: uppercase;
}

.footer-company-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: -10px;
  position: relative;
  z-index: 2;
}

.footer-contact-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.contact-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  color: var(--text-muted);
  opacity: 1;
  box-sizing: border-box;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-icon:hover {
  background: rgba(97, 117, 162, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.contact-icon--address:hover {
  transform: none;
}

button.contact-icon {
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 50%;
}

.contact-icon--disabled {
  opacity: 1;
}

.contact-icon--address {
  position: relative;
}

.contact-icon-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px) !important;
  background: #0d1b2e;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.contact-icon-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--border-card);
}

.contact-icon--address.tooltip-active .contact-icon-tooltip,
.contact-icon--address:hover .contact-icon-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0) !important;
}

.footer-company-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 4px;
  position: relative;
}

.footer-company-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.footer-company-links a:hover {
  color: var(--accent-cyan);
}

.footer-company-links .active-line-indicator {
  position: absolute;
  bottom: -2px;
  height: 2.5px;
  background: var(--accent-cyan);
  z-index: 2;
  pointer-events: none;
  left: 0;
  right: 100%;
  opacity: 0;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1), right 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.footer-company-links .active-line-indicator.no-transition {
  transition: none !important;
}

.footer-layout {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 120px);
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 50px;
  column-gap: 50px;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .footer-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-layout {
    grid-template-columns: 1fr auto auto;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-col-title {
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
  position: relative;
  display: inline-block;
}

.footer-links a::before {
  content: "→";
  position: absolute;
  left: -12px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(-5px);
  color: var(--accent-cyan);
  pointer-events: none;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  padding-left: 14px;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-links a.active {
  color: var(--accent-cyan);
  padding-left: 14px;
}

.footer-links a.active::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-company-links a.active {
  color: var(--accent-cyan);
  font-weight: 500;
}

.footer-main {
  max-width: 320px;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 12px;
  border-top: 1px solid var(--border-card);
  padding: 15px 0 0 0;
}

@media (min-width: 1024px) {
  .footer-bottom {
    grid-template-columns: subgrid;
  }
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bottom-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.bottom-link:hover {
  color: var(--accent-cyan);
}
