/* ==========================================================================
   СТИЛІ ПІДВАЛУ (css/footer.css) - $1M TECH-BRUTALISM
   Компанія: APFEL GROUP
   ========================================================================== */

.footer {
  background-color: #05080A; /* Глибокий інженерний чорний */
  color: #94A3B8;
  padding-top: 100px;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

/* ІНЖЕНЕРНИЙ СТИК: Лазерна лінія переходу (Tech Seam) */
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(99, 175, 56, 0.4) 50%, transparent 100%);
  box-shadow: 0 0 15px rgba(99, 175, 56, 0.3); z-index: 20; pointer-events: none;
}

/* ІНЖЕНЕРНИЙ СТИК: Телеметрія завершення сторінки */
.footer::after {
  content: 'SEC // 99 ...................................... SYSTEM TERMINATE';
  position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
  font-family: monospace; font-size: 0.65rem; color: rgba(99, 175, 56, 0.6);
  letter-spacing: 0.3em; z-index: 20; pointer-events: none;
  white-space: nowrap;
}

/* Інженерна креслярська сітка (Blueprint Grid) */
.footer__bg-grid {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1; pointer-events: none;
}

.footer__container {
  padding-bottom: 70px;
  position: relative;
  z-index: 5;
}

/* ==========================================================================
   СІТКА КОЛОНОК
   ========================================================================== */
.footer__grid {
  display: grid;
  grid-template-columns: 380px 1fr 340px;
  gap: 60px;
}

/* --- КОЛОНКА 1: БРЕНД ТА СОЦМЕРЕЖІ --- */
.footer__col--brand {
  display: flex;
  flex-direction: column;
}

.footer__logo {
  display: block;
  margin-bottom: 25px;
  text-decoration: none;
  /* Робимо логотип сріблястим металом для суворості */
  filter: grayscale(100%) brightness(1.5);
  transition: all 0.3s ease;
}

.footer__logo:hover {
  filter: grayscale(0%) brightness(1);
}

.footer__logo img {
  max-height: 48px;
  width: auto;
}

.footer__desc {
  color: #94A3B8;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 40px;
  padding-left: 15px;
  border-left: 1px solid rgba(255, 255, 255, 0.1); /* Жорстка лінія прив'язки тексту */
}

.footer__socials-label {
  display: block;
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.footer__messengers {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Суворі інженерні кнопки месенджерів (Без заокруглень) */
.messenger-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0; /* НІЯКИХ КРУГЛИХ КУТІВ */
  color: #F8FAFC;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.messenger-icon-link:hover {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
  color: #05080A;
  box-shadow: 0 0 20px rgba(99, 175, 56, 0.4);
  transform: translateY(-3px);
}

/* --- КОЛОНКА 2: НАВІГАЦІЯ (SYSTEM DIRECTORIES) --- */
.footer__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748B;
  margin-bottom: 35px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.footer__title::before {
  content: '['; color: rgba(255, 255, 255, 0.3);
}
.footer__title::after {
  content: ']'; color: rgba(255, 255, 255, 0.3);
}

.footer__menu {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 30px;
}

.footer__menu li a {
  position: relative;
  color: #CBD5E1;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.footer__menu li a::before {
  content: 'DIR //';
  font-family: monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.2);
  margin-right: 8px;
  transition: color 0.3s ease;
}

.footer__menu li a:hover {
  color: var(--primary-green);
  transform: translateX(5px);
}

.footer__menu li a:hover::before {
  color: var(--primary-green);
}

/* --- КОЛОНКА 3: КОНТАКТИ ТА ОФІСИ (COMMUNICATION NODES) --- */
.footer__contacts-quick {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

.footer__phone {
  font-size: 1.6rem;
  font-weight: 900;
  font-family: 'Inter', sans-serif;
  color: #F8FAFC;
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: all 0.3s ease;
}

.footer__phone:hover {
  color: var(--primary-green);
  text-shadow: 0 0 20px rgba(99, 175, 56, 0.3);
}

.footer__email {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--primary-green);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.footer__email:hover {
  color: #F8FAFC;
}

.footer__offices-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer__office-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__office-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  font-size: 0.7rem;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
}

.footer__office-title::before {
  content: ''; width: 6px; height: 6px; 
  background-color: var(--primary-green); border-radius: 50%;
  animation: blink 2s infinite;
}

.footer__office-address {
  font-size: 0.9rem;
  color: #CBD5E1;
  line-height: 1.6;
}

/* ==========================================================================
   НИЖНЯ СМУГА З КОПІРАЙТОМ (TERMINAL LOG)
   ========================================================================== */
.footer__bottom {
  position: relative;
  background-color: #030507; /* Абсолютний чорний для завершення */
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 5;
}

.footer__bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright {
  font-family: monospace;
  color: #64748B;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.footer__copyright strong {
  color: var(--primary-green);
  font-weight: 700;
}

/* Індустріальна кнопка "Вгору" */
.footer__back-to-top {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94A3B8;
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.footer__back-to-top:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: #05080A;
  box-shadow: 0 0 15px rgba(99, 175, 56, 0.4);
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ==========================================================================
   АДАПТИВНІСТЬ (MOBILE-FIRST)
   ========================================================================== */
@media screen and (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px 40px;
  }
  
  .footer__col--brand {
    grid-column: 1 / -1;
    max-width: 600px;
  }
}

@media screen and (max-width: 768px) {
  .footer {
    padding-top: 80px;
  }
  
  .footer__container {
    padding-bottom: 50px;
  }
  
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .footer__menu {
    grid-template-columns: 1fr;
  }
  
  .footer__bottom-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer__phone {
    font-size: 1.4rem;
  }
}