/* Unified Single Architectural Footer Styles (template-footer.css).
   Strictly locked to pure Onmark + Robixx template color tokens:
   #ffffff, #f8f8f8, #ececec, #eeeeee, #dadada, #bbbbbb, #8d8d8d, #6b5f5f, #373737, #1a1a1a, #000000, #ac1717,
   and rgba(255, 255, 255, ...), rgba(0, 0, 0, ...), rgba(26, 26, 26, ...), rgba(172, 23, 23, ...).
   Zero bare element selectors; 100% scoped under section.footer.om-template-footer and .om-footer-shell. */

/* ---------- 1. Outer 10px Frame & Rounded Dark Architectural Shell ---------- */

section.footer.om-template-footer {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 10px;
  background-color: #f8f8f8;
  align-items: stretch;
}

.om-template-footer > .om-footer-shell.dark-background {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border-radius: 1.75rem;
  background-color: #1a1a1a;
  background-image: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: clamp(2.75rem, 4.5vw, 4rem);
  padding-bottom: calc(2.5rem + 48px);
  color: #ffffff;
  overflow: hidden;
}

.om-footer-shell > .base-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1370px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 3.5vw, 48px);
  padding-right: clamp(20px, 3.5vw, 48px);
}

.om-footer-shell .main-footer-holder.om-footer-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 100%;
}

/* ---------- 2. Harmonized Single Footer Directory & Visibility Safeguards ---------- */

/* Prevent Webflow IX3 scroll-scrub ([data-animate="blur-up"] / data-wf-target) from stalling at low opacity/blur
   at the bottom of document scroll. */
.om-footer-shell :is(
  .top-footer-content-row,
  .top-footer-content-row h2,
  .footer-content-left-flex-block,
  .brand-footer-wrapper,
  .footer-column,
  .footer-copyright-holder,
  [data-animate='blur-up']
) {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

/* Hide the preserved 3-icon .footer-soc-links row so LinkedIn/WhatsApp/CHINAPLAS render strictly ONCE
   inside .om-footer-social-matrix while keeping static DOM hooks intact. */
.om-footer-shell .footer-soc-links[hidden],
.om-footer-shell .footer-soc-links[data-om-deduped-soc='true'] {
  display: none !important;
}

.om-footer-shell .top-footer-content-row {
  padding: 0 0 1.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.om-footer-shell .top-footer-content-row h2.text-white {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.32;
  color: #ffffff;
}

.om-footer-shell .decorative-divider {
  opacity: 0.4;
  margin: 0 0 2.25rem;
}

.om-footer-shell .bottom-footer-content-row {
  padding: 0.25rem 0 2.5rem;
}

.om-footer-shell .footer-columns-grid {
  align-items: start;
  column-gap: clamp(2.5rem, 5vw, 5.5rem);
  row-gap: 2rem;
}

.om-footer-shell .brand-footer-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0;
  max-width: 380px;
}

.om-footer-shell .sansong-footer-logo {
  padding: 0;
  max-width: 220px;
}

.om-footer-shell .sansong-company-name {
  color: #bbbbbb;
  margin: 12px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---------- 3. Merged 3 Official Business Emails inside .brand-footer-wrapper ---------- */

.om-footer-shell .om-email-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  max-width: 100%;
  margin-top: 1.25rem;
}

.om-footer-shell .om-email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.om-footer-shell .om-email-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  flex: none;
  transition: background-color 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}

section.footer.om-template-footer .om-footer-shell .om-email-row a.om-email-link {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px 8px;
  min-height: 30px;
  padding: 2px 0;
  color: #ffffff;
  text-decoration: none;
  min-width: 0;
  max-width: 100%;
}

.om-footer-shell .om-link-text-block {
  display: flex;
  flex-direction: column;
  height: 1.3rem;
  line-height: 1.3rem;
  overflow: hidden;
  position: relative;
}

.om-footer-shell .om-link-text-item {
  display: block;
  color: #ffffff;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3rem;
  white-space: nowrap;
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

.om-footer-shell .om-email-dept {
  display: inline-flex;
  align-items: center;
  padding: 1px 9px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #bbbbbb;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.om-footer-shell .om-email-row:hover .om-email-icon,
.om-footer-shell .om-email-row:focus-within .om-email-icon {
  background-color: #ac1717;
  border-color: #ac1717;
  color: #ffffff;
}

.om-footer-shell .om-email-row:hover .om-link-text-item,
section.footer.om-template-footer .om-footer-shell .om-email-row a.om-email-link:focus-visible .om-link-text-item {
  transform: translateY(-100%);
}

.om-footer-shell .om-email-row:hover .om-email-dept,
.om-footer-shell .om-email-row:focus-within .om-email-dept {
  border-color: rgba(255, 255, 255, 0.28);
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

section.footer.om-template-footer .om-footer-shell .om-email-row a.om-email-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 4. 3-Column Navigation Directory & Merged Bottom Copyright / Back-to-Top ---------- */

.om-footer-shell .footer-column :is(.subheading, h3, h4, .footer-heading) {
  color: #ffffff;
  opacity: 1 !important;
}

.om-footer-shell .contact-link,
.om-footer-shell .footer-link,
.om-footer-shell .footer-link-text,
.om-footer-shell .footer-link-text.text-pre,
.om-footer-shell .footer-copyright-holder,
.om-footer-shell .footer-copyright-text,
.om-footer-shell .footer-copyright-holder p,
.om-footer-shell .footer-copyright-link {
  color: #bbbbbb;
  opacity: 1 !important;
}

.om-footer-shell .footer-link-text.text-post.primary-color,
.om-footer-shell .contact-link:is(:hover, :focus-visible) .footer-link-text,
.om-footer-shell .footer-link:is(:hover, :focus-visible) .footer-link-text,
.om-footer-shell .footer-copyright-link:is(:hover, :focus-visible) {
  color: #ffffff;
}

.om-footer-shell .footer-copyright-holder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.om-footer-shell .footer-copyright-holder .om-btt-wrap {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
}

section.footer.om-template-footer .om-footer-shell .footer-copyright-holder a.om-back-to-top {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

section.footer.om-template-footer .om-footer-shell .footer-copyright-holder a.om-back-to-top:hover {
  border-color: #ac1717;
  background-color: #ac1717;
  color: #ffffff;
  transform: translateY(-2px);
}

section.footer.om-template-footer .om-footer-shell .footer-copyright-holder a.om-back-to-top:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.om-footer-shell .footer-copyright-holder .om-btt-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  color: #ffffff;
}

.om-footer-shell .footer-copyright-holder .om-btt-label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8d8d8d;
  white-space: nowrap;
}

/* ---------- 5. Responsive Breakpoints ---------- */

@media screen and (max-width: 991px) {
  .om-template-footer > .om-footer-shell.dark-background {
    padding-top: 3rem;
    border-radius: 1.5rem;
  }

  .om-footer-shell .brand-footer-wrapper {
    max-width: 100%;
  }
}

@media screen and (max-width: 767px) {
  section.footer.om-template-footer {
    padding: 8px;
  }

  .om-template-footer > .om-footer-shell.dark-background {
    padding-top: 2.5rem;
    padding-bottom: calc(2rem + 52px);
    border-radius: 1.25rem;
  }

  .om-footer-shell .top-footer-content-row {
    align-items: flex-start;
    text-align: left;
  }

  .om-footer-shell .footer-content-left-flex-block {
    align-items: flex-start;
    text-align: left;
  }

  .om-footer-shell .footer-column {
    align-items: flex-start;
    text-align: left;
  }

  .om-footer-shell .footer-copyright-holder {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .om-footer-shell .om-email-icon,
  .om-footer-shell .om-link-text-item,
  .om-footer-shell .om-email-dept,
  section.footer.om-template-footer .om-footer-shell .footer-copyright-holder a.om-back-to-top {
    transition: none !important;
  }
}
