/* Shared footer styles for layouts.app (contact, pricing, about, ...) */
.xehub-site-footer {
  --accent: #F5A623;
  --white: #FFFFFF;
  background: #fff8ec;
  padding: 70px 6% 40px;
  color: #111827;
  border-top: 1px solid rgba(212, 136, 26, 0.12);
}
.xehub-site-footer .footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.xehub-site-footer .footer-logo {
  font-family: 'Lexend', 'Open Sans', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #111827;
}
.xehub-site-footer .footer-desc {
  font-size: 0.88rem;
  color: #5f6673;
  margin-top: 14px;
  line-height: 1.75;
  max-width: 280px;
}
.xehub-site-footer .footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.xehub-site-footer .social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.xehub-site-footer .social-btn:hover {
  background: #f5a623;
  border-color: #f5a623;
}
.xehub-site-footer .social-btn svg {
  width: 16px;
  height: 16px;
  color: #6b7280;
}
.xehub-site-footer .social-btn:hover svg {
  color: #fff;
}
.xehub-site-footer .footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 20px;
}
.xehub-site-footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.xehub-site-footer .footer-col a {
  font-size: 0.88rem;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s;
}
.xehub-site-footer .footer-col a:hover {
  color: #111827;
}
.xehub-site-footer .footer-bottom {
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.xehub-site-footer .footer-copy {
  font-size: 0.8rem;
  color: #9ca3af;
}
.xehub-site-footer .footer-contact {
  font-size: 0.8rem;
  color: #6b7280;
  display: flex;
  gap: 24px;
}
.xehub-site-footer .footer-contact a {
  color: #4b5563;
  text-decoration: none;
}
.xehub-site-footer .footer-contact a:hover {
  color: #111827;
}

@media (max-width: 1024px) {
  .xehub-site-footer .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
  }

  .xehub-site-footer .footer-col {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .xehub-site-footer {
    padding: 40px 1rem 28px;
  }

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

  .xehub-site-footer .footer-contact {
    flex-direction: column;
    gap: 6px;
    align-items: center;
  }

  .xehub-site-footer .footer-socials {
    justify-content: center;
  }

  .xehub-site-footer .footer-brand {
    text-align: center;
  }

  .xehub-site-footer .footer-desc {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .xehub-site-footer .footer-logo {
    justify-content: center;
  }
}

/* App-style mobile bottom tab bar */
.mobile-bottom-nav {
  display: none !important;
}

@media (max-width: 1024px) {
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 200 !important;
    width: 100%;
    height: calc(52px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 52px;
    max-height: none;
    margin: 0;
    padding: 4px 2px env(safe-area-inset-bottom, 0px) !important;
    background: rgba(255, 252, 247, 0.97) !important;
    border: none;
    border-top: 1px solid rgba(17, 24, 39, 0.1) !important;
    border-radius: 0 !important;
    box-shadow: 0 -4px 18px rgba(17, 24, 39, 0.06);
    align-items: stretch;
    justify-content: space-around;
    gap: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-sizing: border-box;
  }

  .mobile-bottom-nav__item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 2px;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-bottom-nav__item:active {
    transform: scale(0.96);
  }

  .mobile-bottom-nav__item.is-active {
    color: #D4881A;
  }

  .mobile-bottom-nav__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .mobile-bottom-nav__label {
    font-size: 0.58rem;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    letter-spacing: -0.01em;
  }

  /* Space for fixed bottom nav */
  body {
    padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  }

  .zalo-chat-widget {
    bottom: calc(4rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  #sticky-cta {
    bottom: calc(5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}
