/*
 * Footer toàn site (template-parts/site-footer.php).
 * Nền phẳng màu nhạt; các lớp tách nhau bằng bậc màu nền, không dùng viền hay bóng.
 * Điểm nhấn: số hotline lớn, tên thương hiệu chạy hết bề ngang ở cuối.
 */

.vmt-foot {
  --f-ground: #f3f2ef;
  --f-step: #ffffff;
  --f-name: #e7e4df;
  --f-ink: #23201d;
  --f-ink-2: #4f4943;
  --f-accent: #1fb954;
  --f-accent-text: #009030;
  padding: 64px 0 0;
  /* background: var(--f-ground); */
  color: var(--f-ink);
  font-family: var(--vmt-font-body, inherit);
}
.vmt-foot__wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.vmt-foot p {
  margin: 0;
}
.vmt-foot a {
  color: inherit;
  text-decoration: none;
}
.vmt-foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.vmt-foot li {
  margin: 0;
}

/* ---------- Lời mời tư vấn + hotline ---------- */
.vmt-foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 32px 40px;
  border-radius: 20px;
  background: var(--f-step);
}
#wrapper .vmt-foot__title,
.vmt-foot__title {
  margin: 0 0 10px;
  color: var(--f-ink);
  font-family: var(--vmt-font-heading, inherit);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.vmt-foot__lead {
  max-width: 34em;
  color: var(--f-ink-2);
  font-size: 16px;
  line-height: 1.55;
}
.vmt-foot__call {
  justify-self: end;
  text-align: right;
}
.vmt-foot__call-label {
  color: var(--f-ink-2);
  font-size: 14px;
  font-weight: 500;
}
.vmt-foot .vmt-foot__hotline {
  display: inline-block;
  margin: 2px 0 10px;
  color: var(--f-accent-text);
  font-family: var(--vmt-font-heading, inherit);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color .2s;
}
.vmt-foot .vmt-foot__hotline:hover {
  color: var(--f-accent);
}
.vmt-foot__call-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px 18px;
}
.vmt-foot .vmt-foot__phone {
  color: var(--f-ink);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.vmt-foot .vmt-foot__phone:hover {
  color: var(--f-accent-text);
}
.vmt-foot .vmt-foot__zalo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: #0068ff;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: background-color .2s, transform .2s;
}
.vmt-foot .vmt-foot__zalo:hover {
  background: #0052cc;
  transform: translateY(-1px);
}

/* ---------- Các cột ---------- */
.vmt-foot__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 40px;
  padding: 56px 0 8px;
}
#wrapper .vmt-foot__h,
.vmt-foot__h {
  margin: 0 0 14px;
  color: var(--f-ink);
  font-family: var(--vmt-font-heading, inherit);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: none;
}
.vmt-foot__logo img {
  display: block;
  width: 96px;
  height: auto;
  aspect-ratio: 96 / 60;
}
.vmt-foot__company {
  margin-top: 14px !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.vmt-foot__about {
  margin-top: 6px !important;
  color: var(--f-ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.vmt-foot__legal {
  margin-top: 14px !important;
  color: var(--f-ink-2);
  font-size: 13.5px;
  line-height: 1.6;
}
.vmt-foot__awards {
  display: inline-block;
  margin-top: 16px;
}
.vmt-foot__awards img {
  display: block;
  width: 145px;
  height: auto;
  aspect-ratio: 145 / 62;
}
.vmt-foot__nav li + li {
  margin-top: 2px;
}
.vmt-foot__nav a {
  display: inline-block;
  padding: 4px 0;
  color: var(--f-ink);
  font-size: 15px;
  line-height: 1.4;
  transition: color .2s, transform .2s;
}
.vmt-foot__nav a:hover {
  color: var(--f-accent-text);
  transform: translateX(2px);
}

/* Văn phòng: một khối trắng, ba địa chỉ cách nhau bằng khoảng trống */
.vmt-foot__offices {
  align-self: start;
}
.vmt-foot__office + .vmt-foot__office {
  margin-top: 16px;
}
.vmt-foot__office-name {
  font-size: 15px;
  font-weight: 700;
}
.vmt-foot__office-addr {
  margin-top: 2px !important;
  color: var(--f-ink-2);
  font-size: 14px;
  line-height: 1.5;
}
.vmt-foot .vmt-foot__office-tel {
  display: inline-block;
  margin-top: 2px;
  color: var(--f-accent-text);
  font-size: 14.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.vmt-foot .vmt-foot__office-tel:hover {
  color: var(--f-accent);
}

/* ---------- Tên thương hiệu chạy hết bề ngang ---------- */
.vmt-foot__name {
  margin: 24px 0 0 !important;
  overflow: hidden;
  color: var(--f-name);
  font-family: var(--vmt-font-heading, inherit);
  font-size: min(12.1vw, 160px); /* vừa khít bề ngang khung 1240px */
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.04em;
  white-space: nowrap;
  user-select: none;
}

/* ---------- Dòng cuối ---------- */
.vmt-foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 20px 0 24px;
}
.vmt-foot__copy {
  color: var(--f-ink-2);
  font-size: 14px;
}
.vmt-foot__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.vmt-foot__legal-links a {
  color: var(--f-ink);
  font-size: 14px;
}
.vmt-foot__legal-links a:hover {
  color: var(--f-accent-text);
}
.vmt-foot__social .social-icons {
  margin: 0;
}
.vmt-foot__social .icon {
  color: var(--f-ink-2) !important;
}
.vmt-foot__social .icon:hover {
  color: var(--f-accent-text) !important;
}
/* Nút e-mail trong cài đặt mạng xã hội của Flatsome đang để địa chỉ mẫu "your@email" */
.vmt-foot__social a[href="mailto:your@email"] {
  display: none;
}

.vmt-foot a:focus-visible {
  outline: 2px solid var(--f-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Máy tính bảng ---------- */
@media (max-width: 1023px) {
  .vmt-foot__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 32px;
  }
}

/* ---------- Điện thoại ---------- */
@media (max-width: 767px) {
  .vmt-foot {
    padding-top: 40px;
  }
  .vmt-foot__wrap {
    padding: 0 16px;
  }
  .vmt-foot__top {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 20px;
    border-radius: 16px;
  }
  #wrapper .vmt-foot__title,
  .vmt-foot__title {
    font-size: 24px;
  }
  .vmt-foot__lead {
    font-size: 15px;
  }
  .vmt-foot__call {
    justify-self: stretch;
    text-align: left;
  }
  .vmt-foot .vmt-foot__hotline {
    font-size: 32px;
  }
  .vmt-foot__call-row {
    justify-content: flex-start;
  }
  .vmt-foot__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
    padding-top: 40px;
  }
  .vmt-foot__brand,
  .vmt-foot__offices {
    grid-column: 1 / -1;
  }
  .vmt-foot__nav a {
    font-size: 14.5px;
  }
  .vmt-foot__name {
    margin-top: 16px !important;
    font-size: 11.4vw;
  }
  .vmt-foot__bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 84px;
  }
}

/* Hide Flatsome default duplicate copyright bar to avoid conflicting years */
#footer .absolute-footer {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .vmt-foot a {
    transition: none;
  }
  .vmt-foot__nav a:hover,
  .vmt-foot .vmt-foot__zalo:hover {
    transform: none;
  }
}
