/* ========================================
   Footer
   ======================================== */

.footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

/* --- Brand column --- */
.footer-brand .nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-direction: row;
  margin-bottom: 16px;
}

.footer-brand .nav-logo img {
  height: 40px;
  width: auto;
}

.footer-brand .nav-logo span {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 1.6rem;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}

.footer-brand .nav-logo span em {
  font-style: normal;
  color: var(--primary);
}

.footer-brand > p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-social,
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a,
.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social a:hover,
.footer-socials a:hover {
  border-color: var(--primary);
  background: rgba(255,107,43,0.08);
}

.footer-social a svg,
.footer-socials a svg {
  width: 18px;
  height: 18px;
  fill: #999;
}

.footer-social a:hover svg,
.footer-socials a:hover svg {
  fill: var(--primary);
}

/* --- Link columns --- */
.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding: 6px 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--primary);
}

/* --- Namad --- */
.footer-namad {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 48px;
}

.footer-namad-box {
  width: 100px;
  height: 100px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-secondary);
  padding: 8px;
}

/* --- Bottom --- */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand p {
    text-align: center;
  }

  .footer-social,
  .footer-socials {
    justify-content: center;
  }

  .footer-col h4 {
    text-align: center;
  }

  .footer-col ul {
    align-items: center;
  }

  .footer-namad {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
