:root {
  --black: #f5f8fc;
  --panel: #ffffff;
  --lime: #00a3e0;
  --white: #0b2341;
  --muted: #60738b;
  --line: #d9e3ef;
  --brand-blue: #009ee3;
  --brand-navy: #003a70;
  --brand-sky: #eaf6fc;
}

body {
  background: #f5f8fc;
  color: #0b2341;
}

.header {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(0, 58, 112, 0.12);
  box-shadow: 0 10px 30px rgba(0, 58, 112, 0.08);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 58, 112, 0.16);
  border-radius: 999px;
  background: rgba(234, 246, 252, 0.88);
  color: #003a70;
  font-size: 12px;
  white-space: nowrap;
}

.language-switcher span {
  color: #60738b;
}

.language-switcher select {
  border: 0;
  background: transparent;
  color: #003a70;
  outline: 0;
  cursor: pointer;
}

.header nav {
  color: #0b2341;
}

.brand-logo {
  min-width: 220px;
}

.brand-logo img {
  display: block;
  width: min(280px, 42vw);
  height: auto;
  max-height: 86px;
  border-radius: 2px;
}

.nav-cta {
  border-color: rgba(0, 158, 227, 0.45);
  color: #003a70;
}

.menu {
  color: #003a70;
  border-color: rgba(0, 58, 112, 0.25);
}

.hero {
  background: #dfeaf5;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 38%, rgba(255, 255, 255, 0.46) 68%, rgba(255, 255, 255, 0.18)),
    linear-gradient(0deg, #f5f8fc 0%, rgba(245, 248, 252, 0) 28%);
}

.kicker,
.section-no {
  color: #60738b;
}

.kicker i {
  background: #009ee3;
}

h1,
h2,
h3 {
  color: #003a70;
}

h1 span,
h2 span {
  color: #009ee3;
}

.lead,
.intro-copy,
.custom-copy > p:not(.section-no),
.app-head p,
.contact > div > p:not(.section-no) {
  color: #4f6279;
}

.btn {
  border-color: rgba(0, 58, 112, 0.18);
  color: #003a70;
  background: #ffffff;
}

.btn.primary {
  background: #009ee3;
  border-color: #009ee3;
  color: #ffffff;
}

.hero-index i {
  background: rgba(0, 58, 112, 0.22);
}

.scroll,
.hero-index small {
  color: #60738b;
}

.intro,
.custom,
.contact {
  background: #f5f8fc;
}

.metrics {
  border-top-color: #d9e3ef;
}

.metrics div {
  border-right-color: #d9e3ef;
}

.metrics strong {
  color: #003a70;
}

.metrics sup {
  color: #009ee3;
}

.metrics span,
.custom li small,
.contact-info {
  color: #60738b;
}

.products {
  background: #ffffff;
  color: #0b2341;
}

.section-title > p {
  color: #4f6279;
}

.product-card {
  background: #f3f8fc;
  border: 1px solid #d9e3ef;
  box-shadow: 0 18px 45px rgba(0, 58, 112, 0.08);
}

.product-tile-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-tile-link .product-card {
  height: 100%;
}

.product-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.product-card:not(.dark-card)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 58, 112, 0.08) 0%, rgba(0, 58, 112, 0.18) 42%, rgba(0, 31, 61, 0.82) 100%);
  pointer-events: none;
}

.product-card:hover .product-photo {
  transform: scale(1.035);
}

.product-card .tag,
.product-card h3,
.product-card > p:not(.section-no),
.product-card > a:not(.btn) {
  z-index: 1;
}

.product-card:not(.dark-card) h3 {
  color: #ffffff;
}

.product-card:not(.dark-card) > p:not(.section-no) {
  color: rgba(255, 255, 255, 0.78);
}

.product-card > p:not(.section-no),
.tag {
  color: #60738b;
}

.product-card:not(.dark-card) .tag {
  color: rgba(255, 255, 255, 0.78);
}

.product-card:not(.dark-card) h3 {
  color: #ffffff;
}

.product-card:not(.dark-card) > p:not(.section-no) {
  color: rgba(255, 255, 255, 0.78);
}

.product-card > a:not(.btn) {
  border-color: rgba(0, 158, 227, 0.45);
  color: #009ee3;
  background: #ffffff;
}

.dark-card {
  background: linear-gradient(135deg, #003a70, #006faf);
  color: #ffffff;
}

.dark-card h3 {
  color: #ffffff;
}

.dark-card > p:not(.section-no) {
  color: rgba(255, 255, 255, 0.8);
}

.bearing {
  border-color: #8ba6bf;
  background: #003a70;
  box-shadow: inset 0 0 0 18px #d7e7f4, 0 0 0 12px #b4cadc;
}

.gear {
  background: #006faf;
}

.gear:after {
  background: #f3f8fc;
}

.cnc {
  background: linear-gradient(145deg, #d7e7f4, #559bd0);
  box-shadow: inset 0 0 0 18px #9dc2df;
}

.custom-visual {
  background: linear-gradient(145deg, #ffffff, #eaf6fc);
  border: 1px solid #d9e3ef;
}

.rings {
  border-color: #9dc2df;
  box-shadow: inset 0 0 0 18px #f5f8fc, 0 0 40px rgba(0, 158, 227, 0.18);
}

.rings:after {
  background: #ffffff;
  box-shadow: 0 0 0 14px #003a70;
}

.custom-visual > span {
  color: #009ee3;
}

.custom-visual > p {
  color: #60738b;
}

.custom li {
  border-top-color: #d9e3ef;
}

.custom li > b {
  color: #009ee3;
}

.applications {
  background: #eaf6fc;
}

.app-list {
  border-top-color: #cbdbea;
}

.app-list div {
  border-bottom-color: #cbdbea;
}

.app-list b {
  color: #009ee3;
}

.app-list small {
  color: #60738b;
}

.contact input,
.contact textarea,
.contact select {
  border-bottom-color: #b9cadb;
  color: #0b2341;
}

.contact option {
  color: #0b2341;
}

.contact-info b {
  color: #003a70;
}

.contact-info a {
  color: #003a70;
  word-break: break-word;
}

.contact-info a:hover,
.footer-contact:hover {
  color: #009ee3;
}

.form-note {
  color: #009ee3;
}

footer {
  background: #000000;
  border-top: 0;
  color: rgba(255, 255, 255, 0.78);
}

footer .brand-logo img {
  width: min(460px, 68vw);
  height: auto;
  max-height: 108px;
  object-fit: contain;
  object-position: left center;
  background: #000000;
}

footer .beian {
  display: inline-block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
}

footer .footer-contact {
  display: inline-block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.88);
}

footer .beian:hover {
  color: #ffffff;
}

@media (max-width: 800px) {
  .header nav.open {
    background: #ffffff;
    box-shadow: 0 24px 40px rgba(0, 58, 112, 0.12);
  }

  .brand-logo {
    min-width: 0;
  }

  .brand-logo img {
    width: min(255px, 66vw);
    height: 48px;
  }

  footer .brand-logo img {
    width: min(420px, 86vw);
    height: auto;
    max-height: 98px;
  }

  .header-left {
    gap: 10px;
  }

  .language-switcher {
    padding: 6px 8px;
    font-size: 11px;
  }

  .language-switcher span {
    display: none;
  }
}

/* Product center image cards: show the full supplied poster images without cropping. */
.product-card.photo-card {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef6fb;
  border-color: #d7e7f4;
  overflow: hidden;
}

.product-card.photo-card .product-photo {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.product-card.photo-card > a:not(.btn) {
  display: none;
}

.product-card.photo-card::after {
  display: block;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(0, 31, 61, 0) 0%, rgba(0, 31, 61, 0.78) 100%);
  pointer-events: none;
}

.product-card.photo-card .tag,
.product-card.photo-card h3,
.product-card.photo-card > a:not(.btn) {
  z-index: 2;
}

.product-card.photo-card .tag {
  display: block;
  left: 22px;
  top: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #003a70;
  font-weight: 800;
}

.product-card.photo-card h3 {
  display: block;
  left: 22px;
  right: 22px;
  bottom: 72px;
  color: #ffffff;
  font-size: clamp(1.15rem, 2vw, 1.62rem);
  line-height: 1.16;
  text-shadow: 0 10px 24px rgba(0, 31, 61, 0.45);
}

.product-card.photo-card > p:not(.section-no) {
  display: block;
  left: 22px;
  right: 150px;
  bottom: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  line-height: 1.45;
  z-index: 2;
}

.product-card.photo-card:hover .product-photo {
  transform: none;
}

.product-card.photo-card.large {
  grid-row: auto;
  min-height: auto;
  aspect-ratio: 16 / 10;
}

.product-card.photo-card {
  min-height: auto;
  aspect-ratio: 16 / 10;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.product-card.photo-card:hover {
  border-color: rgba(0, 158, 227, 0.45);
  box-shadow: 0 24px 60px rgba(0, 58, 112, 0.16);
  transform: translateY(-3px);
}

.product-hover-label {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #003a70;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 58, 112, 0.16);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.product-hover-label::after {
  content: "→";
  color: #009ee3;
}

.product-card.photo-card:hover .product-hover-label {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 800px) {
  .product-card.photo-card.large,
  .product-card.photo-card {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

  .product-hover-label {
    opacity: 1;
    transform: none;
    right: 10px;
    bottom: 10px;
    font-size: 0.78rem;
    padding: 7px 11px;
  }

  .product-card.photo-card h3 {
    left: 16px;
    right: 16px;
    bottom: 66px;
  }

  .product-card.photo-card > p:not(.section-no) {
    left: 16px;
    right: 16px;
    bottom: 38px;
    font-size: 0.82rem;
  }
}
