/* Footer – Hòa Bình Tourist (mockup layout) */

#site-footer.site-footer {
  --footer-navy: #04245d;
  --footer-navy-deep: #031a45;
  --footer-gold: #fdd300;
  --footer-text: #ffffff;
  --footer-muted: rgba(255, 255, 255, 0.88);
  --footer-line: rgba(253, 211, 0, 0.55);
  /* Typography scale – sync across footer */
  --footer-fs-display: 14px;   /* motto + section title */
  --footer-fs-heading: 14px;   /* column headings */
  --footer-fs-body: 13px;      /* about, menu, contact, offices */
  --footer-fs-meta: 12px;      /* bottom bar */
  --footer-lh-body: 1.6;
  --footer-lh-list: 1.5;
  --footer-gap-list: 8px;      /* spacing between list rows */
  --footer-gap-block: 14px;    /* heading → content */
  background: var(--footer-navy);
  color: var(--footer-text);
  padding: 36px 0 0;
  font-size: var(--footer-fs-body);
  line-height: var(--footer-lh-body);
}

#site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

#site-footer a:hover {
  color: var(--footer-gold);
}

#site-footer .hbg,
#site-footer .iconfont {
  font-family: "iconfont" !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  speak: never;
}

/* Shared gold rule with end dots */
.footer__rule {
  position: relative;
  flex: 1 1 0;
  height: 1px;
  background: var(--footer-gold);
  min-width: 24px;
}

.footer__rule::before,
.footer__rule::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--footer-gold);
  transform: translateY(-50%);
}

.footer__rule::before {
  left: 0;
}

.footer__rule::after {
  right: 0;
}

.footer__motto .footer__rule:first-child::after,
.footer__section-title .footer__rule:first-child::after,
.footer__motto .footer__rule:last-child::before,
.footer__section-title .footer__rule:last-child::before {
  display: none;
}

/* Motto */
.footer__motto {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.footer__motto-text {
  flex: 0 0 auto;
  color: var(--footer-gold);
  font-size: var(--footer-fs-display);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Main 4 columns */
.footer__main {
  padding-bottom: 36px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.05fr 1.25fr;
  gap: 36px 40px;
  align-items: start;
}

.footer__heading {
  margin: 0 0 var(--footer-gap-block);
  color: var(--footer-gold);
  font-family: "UTM Avo Bold", sans-serif;
  font-size: var(--footer-fs-heading);
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 10px;
}

.footer__heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 2px;
  background: var(--footer-gold);
}

.footer__brand {
  display: inline-block;
  margin: 0 0 var(--footer-gap-block);
}

.footer__brand img {
  display: block;
  width: 168px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.footer__brand-text {
  color: var(--footer-gold);
  font-size: 22px;
  font-weight: 800;
}

.footer__about {
  margin: 0;
  font-size: var(--footer-fs-body);
  line-height: var(--footer-lh-body);
  color: var(--footer-muted);
}

.footer__about + .footer__about {
  margin-top: var(--footer-gap-block);
}

.footer__accent {
  color: var(--footer-gold);
  font-weight: 700;
}

.footer__accent--plain {
  text-transform: none;
}

/* Policy links */
.footer__menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: var(--footer-fs-body);
  line-height: var(--footer-lh-list);
  color: #fff;
}

.footer__menu a:hover {
  color: var(--footer-gold);
}

.footer__menu a:hover::after {
  color: var(--footer-gold);
  transform: translateX(2px);
}

/* Connect */
.footer__fb {
  overflow: hidden;
  max-width: 340px;
  background: #fff;
}

.footer__fb iframe {
  display: block;
  width: 100%;
  border: 0;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--footer-gap-block);
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer__social a:hover {
  background: var(--footer-gold);
  border-color: var(--footer-gold);
  color: var(--footer-navy);
}

.footer__social svg {
  width: 16px;
  height: 16px;
}

/* Company info */
.footer__contact {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--footer-fs-body);
  line-height: var(--footer-lh-body);
  color: var(--footer-muted);
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer__contact li + li {
  margin-top: var(--footer-gap-list);
}

.footer__contact i {
  flex: 0 0 14px;
  width: 14px;
  margin-top: 0.25em;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  opacity: 0.95;
}

.footer__contact-meta,
.footer__contact-meta a {
  color: #fff;
  font-weight: 400;
  word-break: break-word;
}

.footer__contact-meta a:hover {
  color: var(--footer-gold);
}

.footer__sep {
  margin: 0 4px;
  opacity: 0.7;
}

.footer__gov {
  display: inline-block;
  margin-top: var(--footer-gap-block);
}

.footer__gov img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 100%;
}

/* Offices */
.footer__offices {
  padding: 8px 0 36px;
}

.footer__section-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 28px;
  font-size: var(--footer-fs-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--footer-gold);
  font-family: "UTM Avo Bold", sans-serif;
}

.footer__section-title-text {
  flex: 0 1 auto;
  text-align: center;
  white-space: nowrap;
}

.footer__offices-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(110px, 0.7fr);
  gap: 28px 32px;
  align-items: start;
}

.office-card {
  min-width: 0;
}

.office-card__logo {
  margin-bottom: 10px;
  line-height: 1;
}

.office-card__logo img {
  display: block;
  width: 170px;
  max-width: 100%;
  height: auto;
}

.office-card__name {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: var(--footer-gold);
  font-size: var(--footer-fs-body);
  font-weight: 700;
  line-height: var(--footer-lh-list);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.office-card__name .icon-location {
  font-size: var(--footer-fs-body);
  line-height: 1;
  color: var(--footer-gold);
}

.office-card__row {
  margin: 0;
  font-size: var(--footer-fs-body);
  line-height: var(--footer-lh-body);
  color: #fff;
}

.office-card__row + .office-card__row {
  margin-top: var(--footer-gap-list);
}

.office-card__row--contact a {
  color: #fff;
  font-weight: 500;
}

.office-card__row--contact a:hover {
  color: var(--footer-gold);
}

/* Badges – 4th column */
.footer__badges {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding-top: 4px;
  min-height: 120px;
}

.footer__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 120px;
  line-height: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer__badge:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.footer__badge--duns {
  width: 120px;
  overflow: hidden;
}

.footer__badge--duns:hover {
  opacity: 1;
  transform: none;
}

.footer__badge--duns iframe {
  display: block;
  width: 120px;
  height: 120px;
  border: 0;
  overflow: hidden;
}

.footer__badge--profile {
  width: 90px;
}

.footer__badge--profile img {
  display: block;
  width: 90px;
  height: 120px;
  object-fit: contain;
  object-position: center;
}

/* Bottom bar */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 0;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.footer__copy {
  margin: 0;
  font-size: var(--footer-fs-meta);
  line-height: var(--footer-lh-list);
  color: rgba(255, 255, 255, 0.75);
}

.footer__bottom-right {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  flex-wrap: wrap;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--footer-fs-meta);
  line-height: var(--footer-lh-list);
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.85);
}

.footer__legal a:hover {
  color: var(--footer-gold);
}

.footer__legal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--footer-gold);
  flex: 0 0 auto;
}

.footer__spacer {
  width: 100%;
  height: 80px;
  clear: both;
  background: var(--footer-navy);
}

/* Back to top */
#backToTop {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #efc40d;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
}

#backToTop:hover {
  background-color: #efc40d;
  transform: translateY(-2px);
}

#backToTop.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 1199px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 28px;
  }

  .footer__offices-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__badges {
    flex-direction: row;
    justify-content: flex-start;
    grid-column: 1 / -1;
  }
}

@media (max-width: 991px) {
  #site-footer.site-footer {
    padding-top: 28px;
  }

  .footer__motto-text,
  .footer__section-title-text {
    white-space: normal;
    text-align: center;
  }

  .footer__section-title {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__offices-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__brand img {
    width: 150px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__bottom-right {
    margin-left: 0;
  }

  .footer__gov img {
    height: 58px;
  }

  .footer__spacer {
    height: 72px;
  }

  .footer__fb {
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  #site-footer.site-footer {
    --footer-fs-display: 13px;
    --footer-fs-heading: 13px;
    --footer-fs-body: 13px;
    --footer-gap-list: 7px;
  }

  .footer__main {
    padding-bottom: 28px;
  }
}
