:root {
  --navy: #14314a;
  --navy-deep: #0b2032;
  --teal: #0a92ad;
  --teal-bright: #16b7ce;
  --steel: #e8eef3;
  --mist: #f5f8fa;
  --text: #1f2933;
  --muted: #687786;
  --line: #d9e3eb;
  --shadow: 0 24px 70px rgba(10, 32, 50, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Montserrat, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  padding: 0 44px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 227, 235, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 245px;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
}

.brand strong {
  display: block;
  color: var(--navy);
  font-size: 22px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link,
.language {
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 31px 13px;
  text-transform: uppercase;
}

.contact-link {
  color: var(--teal);
}

.language {
  border-left: 1px solid var(--line);
  margin-left: 8px;
}

.has-mega {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 82px;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 36px;
  padding: 34px 64px 42px;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: 0.25s ease;
}

.mega-menu.compact-menu {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.has-mega:hover .mega-menu,
.has-mega.open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu h3 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 15px;
}

.mega-menu a {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
}

.mega-menu a:hover {
  color: var(--teal);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--navy);
  border-radius: 4px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #fff;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 29, 48, 0.88), rgba(7, 29, 48, 0.5) 44%, rgba(7, 29, 48, 0.12));
}

.hero-bg-one,
.hero-bg-two,
.hero-bg-three {
  background-image:
    linear-gradient(120deg, rgba(20, 49, 74, 0.9), rgba(10, 146, 173, 0.1)),
    url("assets/products/hero-01-water.jpg");
}

.hero-bg-two {
  background-image:
    linear-gradient(120deg, rgba(20, 49, 74, 0.9), rgba(10, 146, 173, 0.1)),
    url("assets/products/hero-02-palletizer.jpg");
}

.hero-bg-three {
  background-image:
    linear-gradient(120deg, rgba(20, 49, 74, 0.9), rgba(10, 146, 173, 0.1)),
    url("assets/products/hero-03-five-gallon.jpg");
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 48px));
  padding: 178px 0 0 72px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--teal-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transition: 0.2s ease;
}

.btn.primary {
  background: var(--teal);
  color: #fff;
}

.btn.primary:hover {
  background: #087b96;
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn.outline {
  border-color: var(--teal);
  color: var(--teal);
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-size: 38px;
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 72px;
  bottom: 44px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 40px;
  height: 3px;
  border: 0;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dots button.active {
  background: var(--teal-bright);
}

.section {
  padding: 92px 72px;
}

.section-heading {
  max-width: 760px;
}

.section-heading.centered {
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading h2,
.service-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.16;
}

.intro {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.2fr);
  gap: 50px;
  background: #fff;
}

.intro-text {
  margin: 33px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.product-cards {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card,
.news article,
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(12, 35, 55, 0.06);
}

.product-card {
  overflow: hidden;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1.72;
  object-fit: cover;
  background: var(--mist);
  transition: transform 0.35s ease;
}

.product-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 22px;
  color: var(--navy);
  font-weight: 800;
}

.product-card:hover img {
  transform: scale(1.045);
}

.product-card:hover span,
.solution-card:hover::after {
  transform: translateX(6px);
}

.solutions {
  background: var(--mist);
}

.routes {
  background: var(--mist);
}

.routes .section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 42px;
}

.route-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  padding: 30px;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(9, 32, 52, 0.92), rgba(10, 146, 173, 0.68)),
    var(--route-img) center / cover;
  box-shadow: 0 18px 46px rgba(12, 35, 55, 0.14);
}

.route-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 30px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--teal-bright);
  font-size: 12px;
  font-weight: 800;
}

.route-card h3 {
  max-width: 330px;
  margin: 88px 0 0;
  font-size: 25px;
  line-height: 1.24;
}

.route-card p {
  max-width: 350px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.65;
}

.catalog {
  background: #fff;
}

.catalog .section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 42px;
}

.catalog-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(12, 35, 55, 0.06);
}

.catalog-card img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  background: var(--mist);
  transition: transform 0.35s ease;
}

.catalog-card:hover img {
  transform: scale(1.04);
}

.catalog-card div {
  padding: 22px;
}

.catalog-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 28px;
  margin-bottom: 14px;
  background: #e7f7fa;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.catalog-card h3 {
  min-height: 76px;
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.4;
}

.catalog-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.catalog-card small {
  display: block;
  margin-top: 16px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.specs {
  background: #eef5f8;
}

.spec-table-wrap {
  margin-top: 36px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 40px rgba(12, 35, 55, 0.06);
}

.spec-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.55;
}

.spec-table th {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
}

.spec-table td:first-child {
  color: var(--navy);
  font-weight: 800;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 38px;
}

.solution-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 28px;
  color: #fff;
  background:
    linear-gradient(150deg, rgba(13, 45, 69, 0.96), rgba(10, 146, 173, 0.7)),
    var(--solution-img, url("assets/three-in-one-final.svg")) center / cover;
}

.solution-card::after {
  content: "→";
  position: absolute;
  right: 26px;
  bottom: 20px;
  color: var(--teal-bright);
  font-size: 28px;
  transition: transform 0.2s ease;
}

.solution-card span {
  display: block;
  max-width: 250px;
  font-size: 24px;
  font-weight: 800;
}

.solution-card small {
  display: block;
  max-width: 280px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.6;
}

.news {
  text-align: center;
}

.news-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 32px;
  text-align: left;
}

.news article {
  min-height: 220px;
  padding: 28px;
}

.news time {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.news h3 {
  margin: 18px 0 26px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.42;
}

.news article a {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.services {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
  background: #eef5f8;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 210px;
  padding: 26px;
}

.service-card strong {
  display: block;
  color: var(--navy);
  font-size: 19px;
}

.service-card span {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.site-footer {
  padding: 58px 72px 34px;
  color: #fff;
  background: var(--navy-deep);
}

.site-footer h2 {
  margin: 0 0 22px;
  font-size: 32px;
}

.newsletter {
  display: flex;
  max-width: 570px;
  gap: 10px;
}

.newsletter input {
  flex: 1;
  min-height: 48px;
  border: 0;
  padding: 0 16px;
  font: inherit;
}

.newsletter button {
  border: 0;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0 20px;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 44px 0 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.video-modal {
  width: min(880px, calc(100% - 30px));
  border: 0;
  padding: 0;
  background: #fff;
  box-shadow: var(--shadow);
}

.video-modal::backdrop {
  background: rgba(6, 21, 34, 0.72);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font-size: 26px;
}

.video-frame {
  padding: 34px;
  text-align: center;
}

.video-frame p {
  color: var(--navy);
  font-weight: 800;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  opacity: 0;
  transform: translateY(12px);
  transition: 0.2s ease;
}

.contact-widget {
  position: fixed;
  right: 22px;
  bottom: 82px;
  z-index: 35;
  display: grid;
  gap: 12px;
}

.contact-item {
  position: relative;
}

.contact-button {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 14px 34px rgba(7, 29, 48, 0.22);
  font-size: 13px;
  font-weight: 800;
}

.whatsapp .contact-button {
  background: #22c55e;
}

.zalo .contact-button {
  background: #087bdc;
}

.contact-popover {
  position: absolute;
  right: 68px;
  bottom: 0;
  width: 218px;
  padding: 15px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px);
  transition: 0.2s ease;
}

.contact-item:hover .contact-popover,
.contact-item.open .contact-popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.contact-popover strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
  margin-bottom: 10px;
}

.contact-popover img {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #fff;
}

.contact-popover p {
  margin: 10px 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.contact-popover a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .site-header {
    height: 74px;
    padding: 0 20px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    max-height: calc(100vh - 74px);
    overflow: auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link,
  .language {
    width: 100%;
    padding: 18px 24px;
    text-align: left;
  }

  .mega-menu {
    position: static;
    display: none;
    grid-template-columns: 1fr;
    padding: 8px 28px 22px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .has-mega.open .mega-menu {
    display: grid;
  }

  .has-mega:hover .mega-menu {
    display: none;
  }

  .hero-copy {
    padding: 138px 24px 0;
  }

  .section {
    padding: 70px 24px;
  }

  .intro,
  .services {
    grid-template-columns: 1fr;
  }

  .product-cards,
  .route-grid,
  .catalog-grid,
  .solution-grid,
  .news-row,
  .service-cards {
    grid-template-columns: 1fr;
  }

  .hero-arrow {
    display: none;
  }

  .contact-widget {
    right: 14px;
    bottom: 72px;
  }

  .contact-button {
    width: 48px;
    height: 48px;
  }

  .contact-popover {
    right: 58px;
    width: 190px;
  }

  .contact-popover img {
    width: 136px;
    height: 136px;
  }
}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .hero {
    min-height: 680px;
  }

  .hero-dots {
    left: 24px;
  }

  .newsletter {
    flex-direction: column;
  }
}
