/**
 * Footer chung toàn site (src/footer.php) — thiết kế mới 11/2026 theo ngôn ngữ của header (site-header.css):
 * nền navy, nhấn hồng, chữ Be Vietnam Pro / Playfair Display, logo + đường kẻ hồng + câu khẩu hiệu như masthead header.
 *
 * - Viết theo mobile trước; từ 768px: 2 cột thẻ; từ 1200px: khung 1164px căn giữa như header, 4 thẻ một hàng.
 * - Selector 2 class trở lên: thắng CSS kit Elementor (.elementor-kit-8 a, p), bootstrap, golf-style.css.
 */

.giv-ft {
  --giv-navy: #141e2a;
  --giv-navy-deep: #0e151e;
  --giv-cream: #faf6f3;
  --giv-muted: #c9d0da;
  --giv-line: #3a4656;
  --giv-pink: #dc0f50;
  --giv-sans: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  --giv-serif: "Playfair Display", Georgia, serif;
}

/* Khung Elementor của template footer (#45): bỏ khung .e-con-inner + padding → độ rộng do .giv-ft quyết định */
body .elementor-location-footer .e-con:has(.giv-ft) {
  --content-width: 100%;
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  --gap: 0px;
}

body .elementor-location-footer .e-con:has(.giv-ft) > .e-con-inner {
  width: 100% !important;
  max-width: none !important;
}

/* ===== Chung ===== */

.giv-ft {
  width: 100%;
  margin: 0 auto;
  background: var(--giv-navy);
  border-top: 3px solid var(--giv-pink);
  color: var(--giv-muted);
  font-family: var(--giv-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.giv-ft *,
.giv-ft *::before,
.giv-ft *::after {
  box-sizing: border-box;
}

.giv-ft .giv-ft__inner p,
.giv-ft .giv-ft__bar p {
  margin: 0;
  font-family: var(--giv-sans);
}

.giv-ft .giv-ft__inner a,
.giv-ft .giv-ft__bar a {
  color: inherit;
  text-decoration: none;
}

.giv-ft .giv-ft__social,
.giv-ft .giv-ft__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.giv-ft__inner {
  padding: 36px 20px 28px;
}

/* ===== Logo + khẩu hiệu + mạng xã hội ===== */
/* Chữ serif: selector 3 class để thắng luật chung ".giv-ft .giv-ft__inner p" (chữ sans) ở trên */

.giv-ft__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--giv-line);
  text-align: center;
}

.giv-ft__id {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.giv-ft .giv-ft__logo img {
  display: block;
  width: 168px;
  height: auto;
}

.giv-ft .giv-ft__inner .giv-ft__tagline {
  font-family: var(--giv-serif);
  font-size: 20px;
  line-height: 1.3;
  color: var(--giv-cream);
}

.giv-ft__social {
  display: flex;
  gap: 10px;
}

.giv-ft .giv-ft__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--giv-line);
  border-radius: 50%;
  color: var(--giv-cream);
  transition: border-color 0.15s, color 0.15s;
}

.giv-ft .giv-ft__social a:hover,
.giv-ft .giv-ft__social a:focus-visible {
  border-color: var(--giv-pink);
  color: var(--giv-pink);
}

/* ===== Kết nối doanh nghiệp ===== */

.giv-ft__bc {
  padding-top: 26px;
}

.giv-ft .giv-ft__eyebrow {
  color: var(--giv-pink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.giv-ft .giv-ft__intro {
  margin-top: 6px;
  color: var(--giv-cream);
  font-size: 15px;
}

.giv-ft__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

.giv-ft__card {
  padding: 18px 20px;
  border: 1px solid var(--giv-line);
  border-radius: 6px;
}

.giv-ft .giv-ft__inner .giv-ft__card-title {
  margin-bottom: 8px;
  font-family: var(--giv-serif);
  font-size: 17px;
  line-height: 1.35;
  color: var(--giv-cream);
}

.giv-ft .giv-ft__card-text {
  font-size: 14px;
  line-height: 1.6;
}

.giv-ft__card--contact {
  border-color: var(--giv-pink);
}

.giv-ft .giv-ft__phone {
  display: inline-block;
  margin: 2px 0 10px;
  padding: 7px 16px;
  border: 1px solid var(--giv-pink);
  border-radius: 4px;
  color: var(--giv-cream);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.15s;
}

.giv-ft .giv-ft__phone:hover,
.giv-ft .giv-ft__phone:focus-visible {
  background: var(--giv-pink);
}

/* ===== Dải cuối ===== */

.giv-ft__bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: var(--giv-navy-deep);
  font-size: 13px;
}

.giv-ft__links {
  display: flex;
  gap: 20px;
}

.giv-ft .giv-ft__links a:hover,
.giv-ft .giv-ft__links a:focus-visible {
  color: var(--giv-cream);
  text-decoration: underline;
}

/* ===== Tablet ===== */

@media (min-width: 768px) {
  .giv-ft__brand {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .giv-ft__id {
    flex-direction: row;
    gap: 22px;
  }

  .giv-ft .giv-ft__tagline {
    padding-left: 22px;
    border-left: 1px solid var(--giv-pink);
  }

  .giv-ft__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .giv-ft__bar {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ===== Desktop: khung 1164px như header ===== */

@media (min-width: 1200px) {
  .giv-ft {
    max-width: 1164px;
  }

  .giv-ft__inner {
    padding: 44px 40px 36px;
  }

  .giv-ft .giv-ft__logo img {
    width: 190px;
  }

  .giv-ft .giv-ft__tagline {
    font-size: 24px;
  }

  .giv-ft__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .giv-ft__bar {
    padding: 14px 40px;
  }
}
