/* =========================================================
   VOCABOT - RESPONSIVE FOOTER STYLES
   ========================================================= */

.footer {
  background: var(--bg, #070313);
  padding: 68px 0 28px;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.06));
  position: relative;
  z-index: 10;
  width: 100%;
}

.footer .container {
  box-sizing: border-box;
}

/* ---------- Footer Grid Layout ---------- */
.footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(auto, 2.6fr);
  gap: 48px 60px;
  align-items: start;
}

/* ---------- Brand Section ---------- */
.footer .footer-brand {
  max-width: 360px;
}

.footer .footer-brand .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.footer .footer-brand .brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer .footer-brand .brand span {
  letter-spacing: -0.5px;
}

.footer .footer-brand p {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 16px;
  margin-bottom: 0;
  max-width: 340px;
}

.footer .socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.footer .socials a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.07));
  color: var(--magenta, #c084fc);
  font-size: 17px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer .socials a:hover {
  color: #ffffff;
  background: var(--gradient, rgba(168, 85, 247, 0.18));
  border-color: var(--magenta, rgba(192, 132, 252, 0.4));
  transform: translateY(-2px);
}

/* ---------- Navigation Columns ---------- */
.footer .footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 40px;
  align-items: start;
}

.footer .footer-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.footer .footer-col h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.3;
}

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

.footer .footer-links a,
.footer .footer-col a {
  display: inline-flex;
  align-items: center;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  padding: 2px 0;
  transition: color 0.2s ease, transform 0.2s ease;
  word-break: normal;
  overflow-wrap: break-word;
}

.footer .footer-links a:hover,
.footer .footer-col a:hover {
  color: #ffffff;
}

/* ---------- Footer Bottom Bar ---------- */
.footer .footer-bottom {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.footer .footer-bottom span {
  display: inline-block;
}

/* =========================================================
   TABLET RESPONSIVE (1023px and down)
   ========================================================= */

@media (max-width: 1023px) {
  .footer {
    padding: 60px 0 26px;
  }

  .footer .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 38px;
  }

  .footer .footer-brand {
    max-width: 560px;
  }

  .footer .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 30px;
  }
}

/* =========================================================
   MOBILE & PHABLET RESPONSIVE (680px and down)
   ========================================================= */

@media (max-width: 680px) {
  .footer {
    padding: 48px 0 22px;
  }

  .footer .footer-grid {
    gap: 32px;
  }

  .footer .footer-brand {
    max-width: 100%;
  }

  .footer .footer-brand p {
    font-size: 13px;
    margin-top: 13px;
    line-height: 1.55;
  }

  .footer .socials {
    margin-top: 16px;
    gap: 10px;
  }

  /* 2-column balanced navigation on mobile */
  .footer .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  /* Company section spans full width, with links in 2 balanced columns */
  .footer .footer-col-company {
    grid-column: 1 / -1;
    margin-top: 2px;
  }

  .footer .footer-col-company .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
  }

  .footer .footer-col h3 {
    margin-bottom: 14px;
  }

  .footer .footer-bottom {
    margin-top: 36px;
    padding-top: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 11.5px;
  }
}

/* =========================================================
   SMALL MOBILE RESPONSIVE (420px and down)
   ========================================================= */

@media (max-width: 420px) {
  .footer {
    padding: 42px 0 20px;
  }

  .footer .footer-grid {
    gap: 28px;
  }

  .footer .footer-nav {
    gap: 26px 16px;
  }

  .footer .footer-col-company .footer-links {
    gap: 12px 16px;
  }

  .footer .footer-col h3 {
    font-size: 11.5px;
    margin-bottom: 12px;
  }

  .footer .footer-links {
    gap: 10px;
  }

  .footer .footer-links a,
  .footer .footer-col a {
    font-size: 12.5px;
    padding: 3px 0;
  }

  .footer .footer-bottom {
    font-size: 11px;
    gap: 6px;
  }
}

/* =========================================================
   VERY NARROW MOBILE (340px and down)
   ========================================================= */

@media (max-width: 340px) {
  .footer .footer-nav {
    gap: 24px 12px;
  }

  .footer .footer-col-company .footer-links {
    gap: 10px 12px;
  }

  .footer .footer-links a,
  .footer .footer-col a {
    font-size: 12px;
  }
}
