/* -------------------------------------------------------------------------
   Footer — premium craft / editorial dark
   Structure: Brand+Contact → Nav grid → Legal bar
   ------------------------------------------------------------------------- */
.vn-footer-block,
.footer-wrapper .vn-footer-block,
#footer .vn-footer,
.vn-footer {
  --vn-ft-bg: #080808;
  --vn-ft-text: #f5f5f5;
  --vn-ft-secondary: #a3a3a3;
  --vn-ft-muted: #737373;
  --vn-ft-border: rgba(255, 255, 255, 0.1);
  --vn-ft-gap: var(--vn-space-2);
  --vn-ft-section: var(--vn-space-4);
  --vn-ft-pad-y: clamp(3.5rem, 5vw, 5rem);
  --vn-ft-pad-x: clamp(1rem, 3vw, 1.5rem);

  background: var(--vn-ft-bg);
  color: var(--vn-ft-text);
  font-family: var(--vn-font);
  padding: var(--vn-ft-pad-y) 0 0;
  margin: 0;
}

.vn-footer a {
  color: var(--vn-ft-secondary);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.vn-footer a:hover,
.vn-footer a:focus {
  color: var(--vn-ft-text);
  opacity: 1;
}

.vn-footer .container {
  max-width: var(--vn-container);
  margin: 0 auto;
  padding-left: var(--vn-ft-pad-x);
  padding-right: var(--vn-ft-pad-x);
}

/* ---- A. Brand / Contact header ---- */
.vn-footer__brand {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  padding-bottom: var(--vn-ft-section);
  border-bottom: 1px solid var(--vn-ft-border);
}

.vn-footer__brand-copy {
  max-width: 26rem;
}

.vn-footer__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--vn-ft-text);
}

.vn-footer__brand-copy > p {
  margin: 0 0 1.35rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--vn-ft-secondary);
  max-width: 26rem;
}

.vn-footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--vn-radius-pill);
  background: transparent;
  color: var(--vn-ft-text) !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.vn-footer__cta:hover,
.vn-footer__cta:focus {
  background: #fff;
  border-color: #fff;
  color: #080808 !important;
}

.vn-footer__cta-arrow {
  font-style: normal;
  font-size: 0.95em;
  line-height: 1;
}

/* Contact + social cluster */
.vn-footer__aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
  min-width: 0;
}

.vn-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vn-footer__contact-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 0;
  font-size: 14px;
}

.vn-footer__icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--vn-ft-border);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--vn-ft-text);
}

.vn-footer__contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.3;
  min-width: 0;
}

.vn-footer__contact-text strong {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vn-ft-muted);
}

.vn-footer__contact-text span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--vn-ft-text);
  word-break: break-word;
}

.vn-footer__contact-text a,
.vn-footer__col p a {
  color: inherit;
}

.vn-footer__contact-text a:hover,
.vn-footer__col p a:hover {
  color: var(--fs-color-primary, var(--primary-color, #f5f5f5));
}

.vn-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.vn-footer__social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--vn-ft-border);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 400;
  color: var(--vn-ft-text);
  background: transparent;
}

.vn-footer__social a:hover,
.vn-footer__social a:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.vn-icon-zalo {
  display: inline-block;
  width: 1em;
  height: 1em;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23000' d='M24 4C12.95 4 4 12.42 4 22.8c0 6.2 3.4 11.7 8.7 15.2L11 44l7.1-3.9c1.9.5 3.9.8 5.9.8 11.05 0 20-8.42 20-18.8S35.05 4 24 4zm.2 28.5c-5.6 0-10.4-3.5-12.4-8.5l6.9-.1c1.1 2.1 3.2 3.5 5.6 3.5 2.2 0 4.1-1.1 5.2-2.8l.1-.1-5.5-3.1 12.1-.2v.3c0 5.9-5.4 10.9-12 10.9zm11.7-12.4H14.5v-2.6h21.4v2.6z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23000' d='M24 4C12.95 4 4 12.42 4 22.8c0 6.2 3.4 11.7 8.7 15.2L11 44l7.1-3.9c1.9.5 3.9.8 5.9.8 11.05 0 20-8.42 20-18.8S35.05 4 24 4zm.2 28.5c-5.6 0-10.4-3.5-12.4-8.5l6.9-.1c1.1 2.1 3.2 3.5 5.6 3.5 2.2 0 4.1-1.1 5.2-2.8l.1-.1-5.5-3.1 12.1-.2v.3c0 5.9-5.4 10.9-12 10.9zm11.7-12.4H14.5v-2.6h21.4v2.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---- B. Navigation grid ---- */
.vn-footer__nav {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: var(--vn-ft-section) 0;
  border-bottom: 1px solid var(--vn-ft-border);
  align-items: start;
}

.vn-footer__col h4 {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vn-ft-text);
  line-height: 1.3;
}

.vn-footer__col p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--vn-ft-secondary);
}

.vn-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vn-footer__col li {
  margin: 0;
  padding: 0;
}

.vn-footer__col li + li {
  margin-top: 0.55rem;
}

.vn-footer__col li a {
  display: inline-block;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--vn-ft-secondary);
}

.vn-footer__col li a:hover,
.vn-footer__col li a:focus {
  color: var(--fs-color-primary, var(--primary-color, #f5f5f5));
}

/* ---- C. Legal / copyright ---- */
.vn-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem 0 1.75rem;
}

.vn-footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--vn-ft-muted);
  font-weight: 500;
}

.vn-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vn-footer__legal-links a {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--vn-ft-muted);
}

.vn-footer__legal-links a:hover,
.vn-footer__legal-links a:focus {
  color: var(--vn-ft-text);
}

/* Hide Flatsome absolute footer chrome if stacked under block */
.footer-wrapper .absolute-footer {
  border-top: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .vn-footer__brand {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .vn-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2rem;
  }
}

@media (max-width: 767px) {
  .vn-footer {
    --vn-ft-pad-y: 2.75rem;
    --vn-ft-section: 2rem;
  }

  .vn-footer__brand {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .vn-footer__brand-copy {
    max-width: none;
  }

  .vn-footer__aside {
    gap: 1.25rem;
  }

  .vn-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.25rem;
  }

  .vn-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 0 1.5rem;
  }
}

@media (max-width: 429px) {
  .vn-footer__nav {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .vn-footer__contacts {
    gap: 0.85rem;
  }
}
