/* 3H header + footer. Structure remains editable as native Bricks elements. */

#brx-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  width: 100%;
}

.admin-bar #brx-header {
  top: 32px;
}

.threeh-site-header {
  width: 100%;
  padding: 0 var(--threeh-gutter);
  color: var(--threeh-white);
  background: transparent !important;
  background-image: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.threeh-header__inner {
  display: grid !important;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: stretch;
  width: 100%;
  max-width: var(--threeh-container) !important;
  margin: 0 auto;
  padding: 20px 0 12px;
}

.threeh-header__brand-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
}

.threeh-header__brand-wrap,
.threeh-header__content,
.threeh-header__utility,
.threeh-header__main {
  min-width: 0;
}

.threeh-brand {
  width: auto !important;
}

.threeh-brand .bricks-site-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-size: 48px;
  font-weight: 800;
  line-height: 0.75;
  letter-spacing: -4px;
  text-decoration: none;
}

.threeh-brand .bricks-site-logo::after {
  content: "★★★★★";
  margin-top: 9px;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 1px;
  color: var(--threeh-yellow);
}

.threeh-brand--header .bricks-site-logo {
  color: var(--threeh-white);
}

.threeh-header__brand-caption {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.92);
}

.threeh-header__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.threeh-header__utility {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  min-height: 34px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 11px;
  line-height: 1.2;
}

.threeh-header__eyebrow {
  margin-right: auto;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.threeh-header__utility-link,
.threeh-header__location {
  color: rgba(255, 255, 255, 0.86) !important;
}

.threeh-header__utility-link:hover {
  color: var(--threeh-yellow) !important;
}

.threeh-header__main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 52px;
}

.threeh-main-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.threeh-main-nav .bricks-nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
}

.threeh-main-nav .bricks-nav-menu > li > a,
.threeh-main-nav .bricks-nav-menu > li > .brx-submenu-toggle > * {
  padding: 14px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--threeh-white) !important;
  text-transform: uppercase;
}

.threeh-main-nav .bricks-nav-menu > li:hover > a,
.threeh-main-nav .bricks-nav-menu > li.current-menu-item > a,
.threeh-main-nav .bricks-nav-menu > li > a[aria-current="page"] {
  color: var(--threeh-yellow) !important;
}

.threeh-main-nav .sub-menu {
  min-width: 240px;
  padding: 10px 0;
  background: var(--threeh-navy);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.threeh-main-nav .sub-menu a {
  padding: 10px 18px;
  font-size: 13px;
  color: var(--threeh-white) !important;
}

.threeh-main-nav .sub-menu a:hover {
  color: var(--threeh-yellow) !important;
}

.threeh-main-nav .bricks-mobile-menu-toggle .bar-top,
.threeh-main-nav .bricks-mobile-menu-toggle .bar-center,
.threeh-main-nav .bricks-mobile-menu-toggle .bar-bottom {
  background-color: var(--threeh-white);
}

.threeh-main-nav .bricks-mobile-menu-wrapper {
  background: var(--threeh-navy);
}

.threeh-main-nav .bricks-mobile-menu a {
  color: var(--threeh-white) !important;
}

.threeh-header__hotline {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--threeh-white) !important;
  white-space: nowrap;
}

.threeh-header__hotline:hover {
  border-color: var(--threeh-yellow);
  color: var(--threeh-yellow) !important;
}

.threeh-footer__upper {
  position: relative;
  overflow: hidden;
  padding: 66px var(--threeh-gutter) 58px;
  color: var(--threeh-white);
  background: var(--threeh-navy);
}

.threeh-footer__grid {
  position: relative;
  display: grid !important;
  grid-template-columns:
    minmax(260px, 1.2fr) minmax(220px, 1fr) minmax(150px, 0.7fr)
    minmax(190px, 0.8fr);
  gap: clamp(34px, 4vw, 64px);
  width: 100%;
  max-width: var(--threeh-container) !important;
  margin: 0 auto;
}

.threeh-footer__grid > *:not(.threeh-footer__watermark) {
  position: relative;
  z-index: 1;
}

.threeh-footer__brand-col,
.threeh-footer__column,
.threeh-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.threeh-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

/* Legacy active-footer fallback: keep old Bricks markup visually aligned
   with the project-owned footer while a stale template is still selected. */
.threeh-footer__brand-col:has(> .threeh-brand--footer) {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 14px;
  align-items: center;
}

.threeh-footer__brand-col > .threeh-brand--footer {
  width: 70px !important;
  height: 70px !important;
  min-width: 70px;
  overflow: hidden;
  font-size: 0 !important;
  color: transparent !important;
  background: url('/wp-content/uploads/2026/09/1270018f-f5c0-411c-89d7-cf7bfc491ad6.webp') center / contain no-repeat;
}

.threeh-footer__brand-col > .threeh-footer__company {
  max-width: 245px;
  font-size: 0 !important;
  line-height: 1;
}

.threeh-footer__brand-col > .threeh-footer__company::after {
  content: "C\0000D4NG TY C\001ED4 PH\001EA6N S\001EA2N XU\001EA4T\A 3H VI\001EC6T NAM";
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
  white-space: pre;
  color: var(--threeh-white);
}

.threeh-footer__brand-col:has(> .threeh-brand--footer) > .threeh-footer__summary {
  grid-column: 1 / -1;
}

.threeh-brand--footer {
  flex: 0 0 auto;
}

.threeh-brand--footer .bricks-site-logo {
  display: block;
  width: 70px !important;
  height: 70px !important;
  object-fit: contain;
}

.threeh-footer__company {
  max-width: 245px;
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
  white-space: pre-line;
  color: var(--threeh-white);
}

.threeh-footer__summary {
  max-width: 330px;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
}

.threeh-footer__heading {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--threeh-white);
}

.threeh-footer-nav {
  width: 100%;
}

.threeh-footer-nav .bricks-nav-menu-wrapper {
  display: block !important;
}

.threeh-footer-nav .bricks-nav-menu {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.threeh-footer-nav .bricks-nav-menu li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.threeh-footer-nav .bricks-nav-menu li,
.threeh-footer-nav .bricks-nav-menu a {
  width: 100%;
}

.threeh-footer-nav .bricks-nav-menu a {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8) !important;
}

.threeh-footer-nav .bricks-nav-menu a:hover,
.threeh-footer__link:hover,
.threeh-footer__social:hover {
  color: var(--threeh-yellow) !important;
}

.threeh-footer-nav .bricks-mobile-menu-toggle,
.threeh-footer-nav .bricks-mobile-menu-wrapper,
.threeh-footer-nav .bricks-mobile-menu-overlay {
  display: none !important;
}

.threeh-footer__link,
.threeh-footer__social {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82) !important;
}

.threeh-footer__social {
  margin-top: 8px;
  font-weight: 700;
}

.threeh-footer__watermark {
  position: absolute;
  right: -10px;
  bottom: -64px;
  z-index: 0;
  width: auto !important;
  font-size: clamp(150px, 17vw, 270px);
  font-weight: 800;
  line-height: 0.72;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0.055);
  pointer-events: none;
}

.threeh-footer__lower {
  padding: 42px var(--threeh-gutter) 46px;
  background: var(--threeh-white);
}

.threeh-footer__lower-grid {
  display: grid !important;
  grid-template-columns: 1.2fr 0.85fr 0.95fr 0.75fr;
  gap: clamp(28px, 4vw, 58px);
  align-items: start;
  width: 100%;
  max-width: var(--threeh-container) !important;
  margin: 0 auto;
}

.threeh-footer__info,
.threeh-footer__copyright {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.threeh-footer__info-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--threeh-navy);
}

.threeh-footer__info-text {
  font-size: 13px;
  line-height: 1.55;
  color: #34435c;
}

.threeh-footer__copyright {
  justify-content: flex-end;
  height: 100%;
}

@media (max-width: 1180px) {
  .threeh-header__inner {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 24px;
  }

  .threeh-main-nav .bricks-nav-menu {
    gap: 16px;
  }

  .threeh-main-nav .bricks-nav-menu > li > a {
    font-size: 12px;
  }

  .threeh-header__hotline {
    display: none;
  }

  .threeh-footer__grid {
    grid-template-columns: 1.2fr 1fr 0.8fr;
  }

  .threeh-footer__contact {
    grid-column: 2 / 4;
  }

  .threeh-footer__lower-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .admin-bar #brx-header {
    top: 46px;
  }

  .threeh-site-header {
    padding-inline: 18px;
  }

  .threeh-header__inner {
    display: flex !important;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
  }

  .threeh-header__brand-wrap {
    flex: 0 0 auto;
  }

  .threeh-brand .bricks-site-logo {
    font-size: 40px;
  }

  .threeh-header__brand-caption,
  .threeh-header__utility {
    display: none !important;
  }

  .threeh-header__content,
  .threeh-header__main {
    width: auto;
  }

  .threeh-header__main {
    min-height: auto;
  }

  .threeh-main-nav {
    flex: 0 0 auto;
  }

  .threeh-main-nav .bricks-mobile-menu-wrapper {
    padding-top: 78px;
  }

  .threeh-footer__upper,
  .threeh-footer__lower {
    padding-inline: 20px;
  }

  .threeh-footer__upper {
    padding-top: 52px;
    padding-bottom: 46px;
  }

  .threeh-footer__grid,
  .threeh-footer__lower-grid {
    grid-template-columns: 1fr !important;
    gap: 34px;
  }

  .threeh-footer__brand-row {
    gap: 12px;
  }

  .threeh-footer__brand-col:has(> .threeh-brand--footer) {
    grid-template-columns: 60px minmax(0, 1fr);
    column-gap: 12px;
  }

  .threeh-footer__brand-col > .threeh-brand--footer {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px;
  }

  .threeh-brand--footer .bricks-site-logo {
    width: 60px !important;
    height: 60px !important;
  }

  .threeh-footer__company {
    max-width: 230px;
    font-size: 13px;
  }

  .threeh-footer__contact {
    grid-column: auto;
  }

  .threeh-footer__watermark {
    right: -6px;
    bottom: -30px;
    font-size: 150px;
  }

  .threeh-footer__copyright {
    justify-content: flex-start;
  }
}

/* White static header variant. */
#brx-header {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  background: #fff;
}

.admin-bar #brx-header {
  top: auto;
}

.threeh-site-header {
  color: var(--threeh-navy);
  background: #fff !important;
  background-image: none !important;
  border-bottom: 1px solid #e6e9ee;
  box-shadow: 0 4px 18px rgba(18, 33, 58, 0.06);
}

.threeh-header__inner {
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 52px);
  padding: 12px 0 10px;
}

.threeh-header__brand-wrap {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
}

.threeh-brand--header {
  display: block;
  flex: 0 0 auto;
}

.threeh-brand--header .bricks-site-logo {
  display: block;
  width: 72px !important;
  height: 72px !important;
  object-fit: contain;
  letter-spacing: normal;
}

.threeh-header__brand-caption {
  max-width: none;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.025em;
  color: var(--threeh-navy);
  white-space: pre-line;
}

.threeh-header__utility {
  border-bottom-color: #e8ebef;
}

.threeh-header__eyebrow {
  color: var(--threeh-navy);
}

.threeh-header__utility-link,
.threeh-header__location {
  color: #667085 !important;
}

.threeh-main-nav .bricks-nav-menu > li > a,
.threeh-main-nav .bricks-nav-menu > li > .brx-submenu-toggle > * {
  color: var(--threeh-navy) !important;
}

.threeh-main-nav .bricks-mobile-menu-toggle .bar-top,
.threeh-main-nav .bricks-mobile-menu-toggle .bar-center,
.threeh-main-nav .bricks-mobile-menu-toggle .bar-bottom {
  background-color: var(--threeh-navy);
}

.threeh-header__hotline {
  border-color: #c9d0da;
  color: var(--threeh-navy) !important;
}

@media (max-width: 1180px) {
  .threeh-header__inner {
    grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  }

  .threeh-brand--header .bricks-site-logo {
    width: 62px !important;
    height: 62px !important;
  }

  .threeh-header__brand-caption {
    max-width: none;
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .threeh-header__brand-wrap {
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 10px;
  }

  .threeh-brand--header .bricks-site-logo {
    width: 50px !important;
    height: 50px !important;
  }

  .threeh-header__brand-caption {
    display: block !important;
    max-width: none;
    font-size: 14px;
    line-height: 1.15;
    letter-spacing: 0.015em;
    white-space: pre-line;
  }
}

/* Two-line company name beside the square logo. */
@media (min-width: 1181px) {
  .threeh-header__inner {
    grid-template-columns: minmax(350px, 400px) minmax(0, 1fr);
    gap: clamp(20px, 2vw, 34px);
  }

  .threeh-header__brand-caption {
    font-size: 18px;
    letter-spacing: 0.01em;
    white-space: pre-line;
  }
}

@media (min-width: 768px) and (max-width: 1180px) {
  .threeh-header__inner {
    grid-template-columns: minmax(430px, 480px) minmax(0, 1fr);
  }

  .threeh-header__brand-caption {
    font-size: 14px;
    white-space: pre-line;
  }
}

@media (max-width: 767px) {
  .threeh-header__brand-caption {
    font-size: 9px;
    letter-spacing: 0;
  }
}

/* Header navigation alignment + native Bricks utility icons. */
.threeh-header__utility {
  gap: 10px;
}

.threeh-header__utility-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px !important;
  height: 28px;
  padding: 0 !important;
  color: #667085 !important;
  line-height: 1;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.threeh-header__utility-icon .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.threeh-header__utility-icon .icon > i {
  font-size: 16px;
}

.threeh-header__utility-icon .text {
  display: none !important;
}

.threeh-header__utility-icon:hover {
  color: var(--threeh-navy) !important;
  background: #f3f5f8;
}

.threeh-header__hotline {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.threeh-header__hotline .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.threeh-header__hotline .icon > i {
  font-size: 14px;
}

@media (min-width: 768px) {
  .threeh-header__main {
    gap: 20px;
  }

  .threeh-main-nav,
  .threeh-main-nav .bricks-nav-menu-wrapper {
    width: 100%;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  .threeh-main-nav .bricks-nav-menu {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: space-between;
    gap: 0;
  }

  .threeh-main-nav .bricks-nav-menu > li {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
  }

  .threeh-main-nav .bricks-nav-menu > li > a,
  .threeh-main-nav .bricks-nav-menu > li > .brx-submenu-toggle > * {
    padding: 15px 0 !important;
    white-space: nowrap !important;
  }
}
