/* Footer v2: mọi số lấy từ docs/figma-header-footer-spec.md (Figma 279:9324 @1920) */

.ftr2,
.ftr2 *,
.ftr2 *::before,
.ftr2 *::after { box-sizing: border-box; }
.ftr2 h2,
.ftr2 p,
.ftr2 form { margin: 0; padding: 0; }

/* flow-root thay overflow:hidden: vẫn chặn float trang trên tràn vào, mà không cắt line-art nhô lên */
.ftr2 {
  --ftr2-red: #951c1f;
  --ftr2-ink: #333;
  -webkit-font-smoothing: antialiased;
  position: relative;
  display: flow-root;
  clear: both;
  padding: 0;
  background: #fff;
  color: var(--ftr2-ink);
  font-family: 'SVN-Gotham', Montserrat, sans-serif;
  font-weight: 450;
}

/* Line-art nhô lên trên footer; multiply để nền trắng của ảnh không che nội dung phía trên */
.ftr2__linework {
  position: absolute;
  z-index: 3;
  display: block;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.ftr2__linework--left { left: 0; top: -183.54px; width: 274px; height: 204.54px; }
.ftr2__linework--right { right: 0; top: -200px; width: 271px; height: 203px; }

.ftr2__gallery {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: 100%;
  height: 274.36px;
  overflow: hidden;
}
.ftr2__gallery > * { display: block; min-width: 0; overflow: hidden; }
.ftr2__gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }

.ftr2__body { position: relative; overflow: hidden; }
.ftr2__watermark { position: absolute; top: 0; display: block; width: 665px; height: 338px; pointer-events: none; }
.ftr2__watermark--left { left: 0; }
.ftr2__watermark--right { right: 0; }

.ftr2 .container { position: relative; z-index: 1; width: min(1300px, calc(100% - 64px)); padding-left: 0; padding-right: 0; margin: 0 auto; }

.ftr2__top { display: flex; align-items: flex-start; gap: 32px; padding: 40px 0; }
.ftr2__top > * { flex: 1 0 0; min-width: 0; }

.ftr2__brand { display: block; }
.ftr2__brand img { display: block; width: 167px; height: 100px; object-fit: cover; }

.ftr2__column { display: flex; flex-direction: column; gap: 16px; }
.ftr2__column h2 {
  color: var(--ftr2-ink);
  font-family: inherit;
  font-weight: inherit;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .56px;
  text-transform: uppercase;
}
.ftr2__column-list { display: flex; flex-direction: column; gap: 4px; }
.ftr2__column a {
  color: var(--ftr2-ink);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -.48px;
  text-decoration: none;
  white-space: nowrap;
}
.ftr2__column a:hover,
.ftr2__column a:focus { color: var(--ftr2-red); }

.ftr2__newsletter { display: flex; flex-direction: column; gap: 16px; }
.ftr2__newsletter p { font-size: 18px; line-height: 1.5; letter-spacing: -.54px; }
.ftr2__newsletter form { display: flex; gap: 4px; max-width: 340px; }
.ftr2__newsletter input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 12px 16px;
  border: 1px solid rgba(51, 51, 51, .07);
  border-radius: 10px;
  outline: 0;
  background: transparent;
  color: var(--ftr2-ink);
  font-family: inherit;
  font-weight: inherit;
  font-size: 16px;
  line-height: normal;
  letter-spacing: -.48px;
}
.ftr2__newsletter input::placeholder { color: rgba(51, 51, 51, .4); opacity: 1; }
.ftr2__newsletter button {
  flex: 0 0 44px;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 7px;
  background: rgba(51, 51, 51, .05);
  cursor: pointer;
}
.ftr2__newsletter button img { display: block; width: 18px; height: 18px; }

.ftr2__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 85px;
  border-top: 1px solid rgba(149, 28, 31, .05);
}
.ftr2__copyright {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -.42px;
}
.ftr2__copyright span { font-weight: 400; }
.ftr2__copyright a { color: inherit; text-decoration: none; }
.ftr2__copyright a:hover,
.ftr2__copyright a:focus { color: var(--ftr2-red); }

.ftr2__social-row { display: flex; align-items: center; gap: 16px; }
.ftr2__social-row img { display: block; }
/* min-width giữ đúng 284px của Figma; chữ Regular đo được 282.7px */
.ftr2__email {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-width: 284px;
  padding: 8px 16px;
  border-radius: 322px;
  background: var(--ftr2-red);
  color: #fff;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: -.42px;
  text-decoration: none;
}
.ftr2__email:hover,
.ftr2__email:focus { color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1360px) {
  .ftr2__linework,
  .ftr2__watermark { display: none; }
  .ftr2__gallery { height: 200px; }
  .ftr2__top { flex-wrap: wrap; row-gap: 32px; }
  .ftr2__top > * { flex: 1 1 200px; }
  .ftr2__column a { white-space: normal; }
}

@media (max-width: 900px) {
  .ftr2__gallery { grid-template-columns: repeat(4, 1fr); height: 150px; }
  .ftr2__gallery img:nth-child(n+5) { display: none; }
  .ftr2__brand { flex-basis: 100%; }
  .ftr2__newsletter { flex-basis: 100%; }
}

@media (max-width: 640px) {
  .ftr2 .container { width: calc(100% - 40px); }
  .ftr2__gallery { grid-template-columns: repeat(2, 1fr); height: 130px; }
  .ftr2__gallery img:nth-child(n+3) { display: none; }
  .ftr2__top { flex-direction: column; padding: 32px 0; }
  .ftr2__top > * { flex: 0 0 auto; width: 100%; }
  .ftr2__brand img {
    margin-inline: auto;
  }
  .ftr2__newsletter p { font-size: 16px; }
  .ftr2__bottom-inner {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 20px 0 24px;
    gap: 20px;
    text-align: center;
  }
  .ftr2__copyright {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    text-align: center;
  }
  .ftr2__copyright span {
    flex: 0 0 100%;
    text-align: center;
  }
  .ftr2__copyright a {
    justify-content: center;
    white-space: nowrap;
  }
  .ftr2__social-row {
    width: 100%;
    justify-content: center;
    gap: 16px 20px;
    flex-wrap: wrap;
  }
  .ftr2__social-row .ftr2__email {
    flex: 0 1 100%;
    width: 100%;
    max-width: 340px;
    min-width: 0;
    height: 44px;
    justify-content: center;
    margin-inline: auto;
  }
}

@media (max-width: 991.98px) {
  .ftr2__gallery > a,
  .ftr2__column a,
  .ftr2__copyright a,
  .ftr2__email,
  .ftr2__social-row a {
    min-height: 44px;
  }
  .ftr2__column a,
  .ftr2__copyright a {
    display: inline-flex;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .ftr2__social-row a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
