/* Header navigation and footer styles. Keep shared chrome rules here. */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition: background .24s var(--ease), border-color .24s var(--ease), box-shadow .24s var(--ease);
}

.site-header.is-scrolled,
.site-header:focus-within {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: rgba(7, 29, 49, .08);
  box-shadow: 0 10px 30px rgba(7, 29, 49, .05);
  backdrop-filter: blur(18px);
}

.site-header:not(.is-scrolled):not(:focus-within) .brand,
.site-header:not(.is-scrolled):not(:focus-within) .nav-link,
.site-header:not(.is-scrolled):not(:focus-within) .menu-toggle {
  color: var(--ink);
  text-shadow: none;
}

.site-header:not(.is-scrolled):not(:focus-within) .menu-toggle {
  border-color: rgba(23, 33, 47, .16);
  background: rgba(255, 253, 248, .5);
}

.nav-wrap {
  width: var(--page);
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 10px 24px rgba(24, 168, 107, .22);
  position: relative;
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, .86);
  transform: rotate(-28deg);
}

.brand-mark::before {
  top: 12px;
  left: 7px;
}

.brand-mark::after {
  bottom: 12px;
  right: 7px;
}

.brand-text {
  font-size: 17px;
}

.brand.has-logo {
  gap: 0;
}

.brand-logo-image {
  display: block;
  width: auto;
  max-width: 244px;
  height: 78px;
  -o-object-fit: contain;
     object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  color: var(--ink-2);
  font-size: 14px;
}

.nav-link {
  position: relative;
  transition: color .2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--green-dark);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-mega-item {
  height: 80px;
  display: inline-flex;
  align-items: center;
}

.product-mega-menu {
  position: fixed;
  left: 0;
  right: 0;
  top: 80px;
  z-index: 78;
  display: grid;
  padding: 20px max(24px, calc((100vw - var(--page)) / 2)) 28px;
  background: rgba(255, 253, 248, .98);
  box-shadow: 0 24px 54px rgba(23, 33, 47, .14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}

.nav-mega-item:hover .product-mega-menu,
.nav-mega-item:focus-within .product-mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-mega-item.is-mega-suppressed .product-mega-menu {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px);
}

.product-mega-grid {
  display: grid;
  width: min(1240px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.product-mega-card {
  position: relative;
  min-width: 0;
  min-height: 350px;
  display: grid;
  align-content: end;
  justify-items: start;
  padding: 20px 16px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  text-align: left;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 18px 40px rgba(23, 33, 47, .12);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}

.product-mega-card:hover,
.product-mega-card:focus-visible {
  transform: translateY(-7px);
  box-shadow: 0 24px 54px rgba(23, 33, 47, .2);
}

.product-mega-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  border-radius: inherit;
  background: #17212f;
}

.product-mega-media img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform .42s var(--ease), filter .42s var(--ease);
}

.product-mega-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 13, 20, 0) 28%, rgba(7, 13, 20, .74) 100%),
    linear-gradient(90deg, rgba(7, 13, 20, .28), rgba(7, 13, 20, 0) 58%);
  opacity: .92;
  transition: opacity .28s var(--ease);
}

.product-mega-card:hover .product-mega-media img,
.product-mega-card:focus-visible .product-mega-media img {
  transform: scale(1.045);
  filter: saturate(1.06) contrast(1.03);
}

.product-mega-card:hover::after,
.product-mega-card:focus-visible::after {
  opacity: 1;
}

.product-mega-card h3 {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  margin: 0;
  color: #fff;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .85);
  transition: transform .28s var(--ease);
}

.product-mega-card:hover h3,
.product-mega-card:focus-visible h3 {
  transform: translateY(-3px);
}

.nav-cta {
  border: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
  padding: 0 20px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 26px rgba(24, 168, 107, .24);
}

.nav-cta:hover {
  background: #12945e;
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(7, 29, 49, .12);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.site-footer {
  color: rgba(255, 255, 255, .72);
  background: #071d31;
  padding: 40px 0 22px;
}

.cta-band + .site-footer {
  min-height: 58svh;
  display: grid;
  align-content: center;
}

.footer-grid {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr .8fr .8fr .7fr;
  gap: 34px;
}

.footer-title {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 38px);
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  color: rgba(255, 255, 255, .84);
  background: rgba(255, 255, 255, .045);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  transition: transform .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}

.social-link:hover {
  color: #fff;
  border-color: rgba(255, 80, 62, .72);
  background: rgba(255, 80, 62, .16);
  transform: translateY(-2px);
}

.social-link img {
  width: 20px;
  height: 20px;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
}

.copyright {
  width: var(--page);
  margin: 26px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
}

@media (max-width: 1040px) {
  .nav {
    gap: 10px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {

  .nav-wrap {
    height: 68px;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 3;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    display: grid;
    align-content: start;
    justify-content: stretch;
    width: min(82vw, 340px);
    height: 100svh;
    gap: 0;
    padding: 86px 18px 24px;
    border-left: 1px solid rgba(7, 29, 49, .1);
    background: rgba(255, 253, 248, .98);
    box-shadow: -22px 0 52px rgba(23, 33, 47, .16);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s var(--ease), transform .24s var(--ease);
    z-index: 2;
  }

  body.nav-drawer-open {
    overflow: hidden;
  }

  body.nav-drawer-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 75;
    background: rgba(7, 29, 49, .38);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .nav.is-open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-link {
    padding: 15px 4px;
    border-bottom: 1px solid rgba(7, 29, 49, .08);
    color: var(--ink);
    font-size: 16px;
    font-weight: 800;
  }

  .nav-link::after {
    display: none;
  }

  .nav-mega-item {
    height: auto;
    display: block;
    border-bottom: 1px solid rgba(7, 29, 49, .08);
  }

  .nav-mega-item > .nav-link {
    display: block;
    border-bottom: 0;
    text-align: center;
  }

  .product-mega-menu {
    position: static;
    display: block;
    max-height: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    overflow: hidden;
    transition: max-height .24s var(--ease);
  }

  .nav-mega-item.is-mobile-open .product-mega-menu {
    max-height: 320px;
  }

  .product-mega-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .product-mega-card {
    min-height: 0;
    display: block;
    padding: 10px 4px;
    border-radius: 0;
    border-top: 1px solid rgba(7, 29, 49, .06);
    color: var(--ink-2);
    background: transparent;
    box-shadow: none;
    transform: none;
    text-align: center;
  }

  .product-mega-card:hover,
  .product-mega-card:focus-visible {
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .product-mega-media,
  .product-mega-card::after {
    display: none;
  }

  .product-mega-card h3 {
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: none;
  }

  .product-mega-card:hover h3,
  .product-mega-card:focus-visible h3 {
    transform: none;
  }

  body.nav-drawer-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.nav-drawer-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-drawer-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-cta {
    justify-content: center;
    margin-top: 18px;
  }

  .cta-band + .site-footer {
    min-height: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand-text {
    font-size: 15px;
  }
}

.site-header {
  border-bottom-color: transparent;
  background: rgba(255, 253, 248, .34);
  box-shadow: 0 10px 34px rgba(23, 33, 47, .08);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
}

.site-header.is-scrolled,
.site-header:focus-within {
  border-bottom-color: var(--section-divider);
  background: rgba(255, 253, 248, .78);
  box-shadow: 0 14px 42px rgba(120, 38, 22, .12);
  backdrop-filter: blur(20px) saturate(155%);
  -webkit-backdrop-filter: blur(20px) saturate(155%);
}

.brand-mark {
  background: linear-gradient(135deg, var(--vietnam-red), var(--vietnam-gold));
  box-shadow: 0 10px 24px rgba(215, 25, 32, .2);
}

.nav-link::after {
  background: var(--vietnam-gold);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--vietnam-red-dark);
}

.nav-cta {
  background: var(--vietnam-red);
  box-shadow: 0 12px 26px rgba(215, 25, 32, .2);
}

.nav-cta:hover {
  background: var(--vietnam-red-dark);
}

.site-footer {
  border-top: 1px solid var(--section-divider);
  background:
    linear-gradient(135deg, #240b10, #17212f 58%, #18352c);
}

.site-header.is-scrolled,
.site-header:focus-within {
  background: rgba(255, 253, 248, .96);
  border-bottom-color: var(--section-divider, rgba(7, 29, 49, .08));
  box-shadow: 0 12px 36px rgba(120, 38, 22, .08);
  backdrop-filter: blur(18px);
}

[data-page="about"] .site-header {
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, .08);
  box-shadow: none;
  backdrop-filter: none;
}

[data-page="about"] .site-header:not(.is-scrolled):not(:focus-within) .brand,
[data-page="about"] .site-header:not(.is-scrolled):not(:focus-within) .nav-link,
[data-page="about"] .site-header:not(.is-scrolled):not(:focus-within) .menu-toggle {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .34);
}

[data-page="about"] .site-header:not(.is-scrolled):not(:focus-within) .menu-toggle {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
}

[data-page="about"] .site-header:not(.is-scrolled):not(:focus-within) .nav-link:hover,
[data-page="about"] .site-header:not(.is-scrolled):not(:focus-within) .nav-link.is-active {
  color: #7cf0a8;
}

[data-page="about"] .site-header {
  background: rgba(255, 253, 248, .96);
  border-bottom-color: var(--section-divider);
  box-shadow: 0 12px 36px rgba(120, 38, 22, .08);
  backdrop-filter: blur(18px);
}

[data-page="about"] .site-header:not(.is-scrolled):not(:focus-within) .brand,
[data-page="about"] .site-header:not(.is-scrolled):not(:focus-within) .nav-link,
[data-page="about"] .site-header:not(.is-scrolled):not(:focus-within) .menu-toggle {
  color: var(--ink);
  text-shadow: none;
}

[data-page="about"] .site-header:not(.is-scrolled):not(:focus-within) .menu-toggle {
  border-color: rgba(23, 33, 47, .16);
  background: rgba(255, 253, 248, .5);
}

[data-page="about"] .site-header:not(.is-scrolled):not(:focus-within) .nav-link:hover,
[data-page="about"] .site-header:not(.is-scrolled):not(:focus-within) .nav-link.is-active {
  color: var(--vietnam-red-dark);
}

[data-page="products"] .site-header,
[data-page="product-detail"] .site-header {
  background: rgba(255, 253, 248, .96);
  border-bottom-color: var(--section-divider);
  box-shadow: 0 12px 36px rgba(120, 38, 22, .08);
  backdrop-filter: blur(18px);
}

[data-page="news"] .site-header {
  background: rgba(255, 253, 248, .96);
  border-bottom-color: var(--section-divider);
  box-shadow: 0 12px 36px rgba(120, 38, 22, .08);
  backdrop-filter: blur(18px);
}

[data-page="news-detail"] .site-header {
  background: rgba(255, 253, 248, .96);
  border-bottom-color: var(--section-divider);
  box-shadow: 0 12px 36px rgba(120, 38, 22, .08);
  backdrop-filter: blur(18px);
}

[data-page="not-found"] .site-header {
  background: rgba(255, 253, 248, .96);
  border-bottom-color: var(--section-divider, var(--line));
  box-shadow: 0 12px 36px rgba(120, 38, 22, .08);
  backdrop-filter: blur(18px);
}

@media (max-width: 900px) {
  .site-header {
    background: rgba(255, 253, 248, .96);
    border-bottom-color: var(--section-divider, rgba(7, 29, 49, .08));
    box-shadow: 0 12px 36px rgba(120, 38, 22, .08);
    backdrop-filter: blur(18px);
  }

  .nav-wrap {
    width: min(100vw - 24px, 680px);
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-logo-image {
    max-width: min(214px, calc(100vw - 104px));
    height: 48px;
  }

  .nav {
    max-height: 100svh;
    overflow-y: auto;
  }

  .nav-link,
  .nav-cta {
    min-width: 0;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 620px) {

  .nav {
    width: min(86vw, 320px);
    padding-top: 78px;
  }
  .site-footer {
    padding: 28px 0 18px;
  }

  .footer-grid {
    width: calc(100vw - 24px);
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-grid > div {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
  }

  .footer-title {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.25;
  }

  .footer-grid p,
  .footer-links {
    margin: 0;
    color: rgba(255, 255, 255, .74);
    font-size: 13px;
    line-height: 1.6;
  }

  .footer-links {
    gap: 7px;
  }

  .footer-links a {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, .82);
  }

  .footer-grid > div:nth-child(2) .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    -moz-column-gap: 12px;
         column-gap: 12px;
  }

  .footer-links span {
    overflow-wrap: anywhere;
  }

  .social-grid {
    grid-template-columns: repeat(4, 36px);
    gap: 8px;
  }

  .social-link {
    width: 36px;
    height: 36px;
  }

  .copyright {
    width: calc(100vw - 24px);
    margin-top: 14px;
    padding-top: 12px;
    font-size: 12px;
    line-height: 1.5;
  }
}

@media (max-width: 420px) {
  .footer-grid {
    width: calc(100vw - 20px);
  }

  .footer-grid > div {
    padding: 14px;
  }

  .footer-grid > div:nth-child(2) .footer-links {
    grid-template-columns: 1fr;
  }

  .copyright {
    width: calc(100vw - 20px);
  }
}

/* Home header state. */

[data-page="home"] .site-header:not(.is-scrolled) .brand,
[data-page="home"] .site-header:not(.is-scrolled) .nav-link,
[data-page="home"] .site-header:not(.is-scrolled) .menu-toggle {
  color: var(--ink);
  text-shadow: none;
}

[data-page="home"] .site-header:not(.is-scrolled) .nav-link:hover,
[data-page="home"] .site-header:not(.is-scrolled) .nav-link:focus-visible,
[data-page="home"] .site-header:not(.is-scrolled) .nav-link.is-active {
  color: var(--vietnam-red);
}

[data-page="home"] .site-header:not(.is-scrolled) .menu-toggle {
  border-color: rgba(23, 33, 47, .16);
  background: rgba(255, 253, 248, .42);
}

[data-page="home"] .site-header:not(.is-scrolled) {
  border-bottom-color: rgba(255, 255, 255, .2);
  background: rgba(255, 253, 248, .26);
  box-shadow: 0 12px 34px rgba(7, 29, 49, .1);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}
