/* Footer dùng chung với trang chủ cho bốn trang hồ sơ doanh nghiệp. */
.site-footer {
  --footer-green-500: #00b95f;
  --footer-green-600: #009b50;
  margin-top: 0;
  padding: 56px 0 24px;
  border-top: 1px solid #dcfce7;
  background: #f4faf6;
  color: #334155;
  font-size: 16px;
}

.site-footer .container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

.footer-desktop-wrapper { display: block; }
.footer-mobile-wrapper { display: none; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-col-brand .footer-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #064e3b;
  text-decoration: none;
}

.footer-col-brand .footer-brand-logo img { width: 46px; height: 46px; }
.footer-col-brand .footer-brand-logo strong {
  display: block;
  color: #064e3b;
  font-size: 1.3rem;
  font-weight: 800;
}
.footer-col-brand .footer-brand-logo small {
  display: block;
  color: var(--footer-green-600);
  font-size: .72rem;
  font-weight: 600;
}

.company-fullname {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.4;
}

.company-desc {
  margin: 0 0 18px;
  color: #475569;
  font-size: .83rem;
  line-height: 1.6;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.social-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 3px 8px rgb(0 0 0 / 12%);
  font-size: 0;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 16px rgb(0 0 0 / 20%);
}

.social-btn.facebook { color: #1877f2; }
.social-btn.tiktok { color: #0f172a; }
.social-btn.zalo { color: #0284c7; }
.social-btn svg { width: 22px; height: 22px; }
.social-btn .zalo-text {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #0284c7;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
}

.footer-title {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 8px;
  color: #064e3b;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.footer-title::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: var(--footer-green-500);
  content: "";
}

.footer-contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
}

.footer-contact-list .contact-icon {
  display: inline-flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #475569;
  font-size: 1.15rem;
  line-height: 1;
}
.footer-contact-list .contact-icon svg { display: block; width: 22px; height: 22px; }
.footer-contact-list strong {
  display: block;
  margin-bottom: 1px;
  color: #0f172a;
  font-weight: 700;
}
.footer-contact-list a { color: var(--footer-green-600); font-weight: 700; }
.footer-contact-list a:hover { color: #047857; text-decoration: underline; }
.footer-contact-list span { color: #475569; }

.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  color: #475569;
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s, padding-left .15s;
}

.footer-links a:hover {
  padding-left: 4px;
  color: var(--footer-green-600);
  font-weight: 600;
}

.disclaimer-card {
  padding: 16px 18px;
  border: 1px solid #d1fae5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 3%);
}

.disclaimer-card p {
  margin: 0;
  color: #475569;
  font-size: .81rem;
  line-height: 1.6;
}
.disclaimer-card p + p { margin-top: 8px; }
.disclaimer-card strong { color: #064e3b; font-weight: 700; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid #cbd5e1;
  color: #64748b;
  font-size: .8rem;
}

.back-to-top { color: var(--footer-green-600); font-weight: 700; }
.back-to-top:hover { color: #047857; text-decoration: underline; }

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

@media (max-width: 640px) {
  .site-footer {
    padding: 22px 0 16px;
    border-top: 3px solid #007d48;
    background: #f4f8f5;
  }
  .site-footer .container { width: min(100% - 28px, 1200px); }
  .footer-desktop-wrapper { display: none; }
  .footer-mobile-wrapper { display: block; }
  .nexa-mf-section { margin-bottom: 16px; }
  .nexa-mf-title {
    margin: 0 0 10px;
    color: #1e293b;
    font-size: 1.05rem;
    font-weight: 700;
  }
  .nexa-mf-links {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .nexa-mf-links a {
    color: #475569;
    font-size: .92rem;
    line-height: 1.5;
  }
  .nexa-mf-highlight a { color: #007d48; font-weight: 700; }
  .nexa-mf-disclaimer {
    margin: 0;
    color: #4b5563;
    font-size: .84rem;
    line-height: 1.6;
  }
  .nexa-mf-link-green { color: #007d48; font-weight: 700; }
  .nexa-mf-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0 2px;
    color: #1e293b;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 700;
    list-style: none;
    user-select: none;
  }
  .nexa-mf-toggle::-webkit-details-marker { display: none; }
  .nexa-mf-toggle .toggle-close { display: none; }
  .nexa-mf-details[open] .nexa-mf-toggle .toggle-open { display: none; }
  .nexa-mf-details[open] .nexa-mf-toggle .toggle-close { display: inline; }
  .nexa-mf-details .toggle-arrow { transition: transform .2s ease; }
  .nexa-mf-details[open] .toggle-arrow { transform: rotate(180deg); }
  .nexa-mf-expanded {
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    font-size: .8rem;
    line-height: 1.6;
  }
  .nexa-mf-divider {
    width: 100%;
    margin: 16px 0 12px;
    border: 0;
    border-top: 1px solid #e2e8f0;
  }
  .nexa-mf-legal {
    margin: 0 0 12px;
    color: #64748b;
    font-size: .76rem;
    line-height: 1.6;
    text-align: left;
  }
  .nexa-mf-legal a { color: #007d48; font-weight: 700; }
  .nexa-mf-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
  }
  .nexa-mf-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #007d48;
  }
  .nexa-mf-zalo .zalo-text { color: #007d48; font-size: .72rem; font-weight: 900; }
}

/* Floating contact widgets (Left: Phone & Messenger, Right: Zalo) */
.nexa-floating-contact-left {
  position: fixed;
  left: 16px;
  bottom: 24px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nexa-float-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #007d48;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nexa-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.nexa-float-label {
  display: none;
  position: absolute;
  left: 52px;
  background: #007d48;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  pointer-events: none;
}
.nexa-float-btn:hover .nexa-float-label {
  display: block !important;
}
.nexa-floating-contact-right {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.nexa-float-zalo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.nexa-float-zalo-link:hover {
  transform: translateY(-2px);
}
.nexa-zalo-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,104,255,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nexa-zalo-time-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid #bfdbfe;
  color: #0068ff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0,104,255,0.12);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .nexa-floating-contact-left {
    left: 12px;
    bottom: 18px;
    gap: 8px;
  }
  .nexa-float-btn {
    width: 40px;
    height: 40px;
  }
  .nexa-floating-contact-right {
    right: 12px;
    bottom: 18px;
  }
  .nexa-zalo-icon-box {
    width: 40px;
    height: 40px;
  }
}
