/* ============================================================
   VI FEERIE — Footer
   ============================================================ */

.site-footer {
  background: #f9e3eb;
  color: #382213;
  padding: 64px 0 32px;
  position: relative;
  font-family: var(--font-body);
}

/* Hàng trên: 4 Navigation Jump Links với đường kẻ top và mũi tên chéo */
.footer-top-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(56, 34, 19, 0.16);
}

.footer-nav-item {
  display: flex;
  flex-direction: column;
}

.footer-nav-item__line {
  height: 1px;
  width: 100%;
  background: rgba(56, 34, 19, 0.24);
  margin-bottom: 18px;
  transition: background 0.25s var(--ease), width 0.25s var(--ease);
}

.footer-nav-item__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #382213;
  transition: color 0.25s var(--ease);
}

.footer-nav-item__link svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
  color: #76526b;
}

.footer-nav-item:hover .footer-nav-item__line {
  background: #76526b;
}

.footer-nav-item:hover .footer-nav-item__link {
  color: #76526b;
}

.footer-nav-item:hover .footer-nav-item__link svg {
  transform: translate(3px, -3px);
  color: #76526b;
}

/* Thân Footer chính 3 cột */
.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.1fr;
  gap: 60px;
  margin-bottom: 60px;
}

/* Cột 1: Newsletter & Brand message */
.footer-col--newsletter {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-brand-msg {
  font-size: 14.5px;
  line-height: 1.7;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #382213;
  max-width: 380px;
  margin-bottom: 32px;
}

.footer-newsletter-form {
  position: relative;
  max-width: 380px;
  margin-top: auto;
}

.footer-newsletter-input-wrap {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(56, 34, 19, 0.4);
  padding-bottom: 10px;
  transition: border-color 0.25s var(--ease);
}

.footer-newsletter-input-wrap:focus-within {
  border-color: #76526b;
}

.footer-newsletter-input {
  flex: 1;
  background: none;
  border: none;
  color: #382213;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  outline: none;
}

.footer-newsletter-input::placeholder {
  color: #705b51;
}

.footer-newsletter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #382213;
  cursor: pointer;
  padding: 4px 6px;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.footer-newsletter-btn svg {
  width: 20px;
  height: 20px;
}

.footer-newsletter-btn:hover {
  color: #76526b;
  transform: translateX(4px);
}

/* Thông tin pháp lý dưới newsletter */
.footer-legal {
  max-width: 380px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(56, 34, 19, 0.16);
  font-size: 12.5px;
  line-height: 1.55;
  color: #594438;
}

.footer-legal__title {
  margin: 0 0 12px;
  color: #382213;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-legal__name {
  margin: 0 0 10px;
  color: #382213;
  font-weight: 700;
}

.footer-legal__list {
  display: grid;
  gap: 6px;
  margin: 0;
}

.footer-legal__item {
  display: grid;
  grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
  gap: 8px;
}

.footer-legal__item dt,
.footer-legal__item dd {
  margin: 0;
}

.footer-legal__item dt {
  font-weight: 600;
}

.footer-legal__item a {
  color: #382213;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal__item a:hover {
  color: #76526b;
}

/* Tiêu đề các cột */
.footer-col-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #382213;
  margin-bottom: 24px;
}

/* Danh sách link Social — icon nằm ngang */
.footer-social-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social-link {
  display: inline-flex;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.footer-social-link:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.footer-social-link img {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 50%;
}

/* Cột liên hệ & Bộ công thương */
.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #594438;
}

.footer-contact-item svg {
  width: 17px;
  height: 17px;
  color: #76526b;
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-contact-item a {
  color: #382213;
  transition: color 0.25s var(--ease);
  letter-spacing: 0.02em;
}

.footer-contact-item a:hover {
  color: #76526b;
}

/* Logo Bộ Công Thương */
.footer-bct {
  display: inline-block;
  margin-top: 12px;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-bct img {
  height: 48px;
  width: auto;
  display: block;
}

.footer-bct:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

/* Footer Bottom Bar */
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(56, 34, 19, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #594438;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #594438;
  transition: color 0.25s var(--ease);
}

.footer-bottom-links a:hover {
  color: #76526b;
}

/* ============================================================
   Responsive
   ============================================================ */

@media screen and (max-width: 992px) {
  .footer-top-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 48px;
    padding-bottom: 36px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-col--contact {
    grid-column: span 2;
  }
}

@media screen and (max-width: 640px) {
  .site-footer {
    padding: 44px 0 28px;
  }

  .footer-top-nav {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 36px;
    padding-bottom: 28px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 40px;
  }

  .footer-col--contact {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }
}
