/* ============================================
   ---------- Footer Styles ----------
   ============================================ */
.site-footer {
  background-color: var(--night-black);
  color: #93aed1;
  padding-top: 3.5rem; /* 56px */
  padding-bottom: 2rem; /* 32px */
  font-size: 0.84375rem; /* 13.5px */
}

/* Grid layout */
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem; /* 44px */
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__col-offices {
    grid-column: 1 / -1; /* offices span full width on tablet */
  }
}

@media (min-width: 1100px) {
  .footer__grid {
    grid-template-columns: 1.2fr 0.8fr 2.4fr;
  }
  .footer__col-offices {
    grid-column: auto;
  }
}

/* Logo & Description */
.footer__logo {
  display: inline-flex;
  align-items: center;
}

.footer__logo-img {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.footer__desc {
  margin-top: 0.875rem;
  max-width: 320px;
  line-height: 1.625;
}

/* Badges */
.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer__badge {
  font-family: var(--font-mono);
  font-size: 0.65625rem; /* 10.5px */
  letter-spacing: 0.05em;
  border: 1px solid var(--night-line);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  color: var(--night-muted);
}

/* Section titles */
.footer__title {
  font-family: var(--font-mono);
  font-size: 0.6875rem; /* 11px */
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--night-text);
  margin-bottom: 0.875rem;
}

/* Links & Text */

/* Menu từ wp_nav_menu: danh sách dọc, bỏ style list mặc định */
/* Chọn theo `ul` trong .footer__nav (độ ưu tiên cao hơn CSS menu header),
   nên đúng cả khi menu_class vẫn còn là nav-desktop__list */
.site-footer .footer__nav ul {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .footer__nav li {
  display: block;
  float: none;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.site-footer .footer__nav a {
  display: block;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0.25rem 0; /* khoảng cách giữa các mục: chỉnh số này nếu muốn sát/thưa hơn */
  line-height: 1.5;
  color: inherit;
  transition: color 0.2s ease;
}

.site-footer .footer__nav a:hover,
.site-footer .footer__nav .current-menu-item > a,
.site-footer .footer__nav .current-menu-ancestor > a,
.footer__link:hover {
  color: #ffffff; /* mục active cùng màu với hover, không còn bị xanh như menu header */
}

.footer__info {
  padding-block: 0.25rem;
}

/* Offices */
.footer__offices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 1.75rem;
  margin-bottom: 0.75rem;
}

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

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

.footer__office {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  line-height: 1.5;
}

.footer__office strong {
  color: var(--night-text);
  font-weight: 600;
}

.footer__addr {
  font-style: normal;
}

.footer__meta {
  display: block;
}

.footer__link {
  color: inherit;
  transition: color 0.2s ease;
}

/* Bottom Bar */
.footer__bottom {
  border-top: 1px solid #16356b;
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem; /* 11px */
  letter-spacing: 0.05em;
}











/* BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: var(--bap);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-board);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--bap-dark);
  transform: translateY(-3px);
}