.footer-brand-title {
  align-items: center;
}

/* Standalone contact page: do not inherit homepage section styles. */
.contact-page-main { background: #fff; color: #13273b; }
.contact-page-hero { padding: 48px 0 52px; }
.contact-page-hero > .container { grid-template-columns: 1fr; }
.contact-page-heading { max-width: 760px; margin-inline: auto; text-align: center; }
.contact-page-heading h1, .contact-page-heading p { margin: 0; }
.contact-page-heading h1 { font-size: 42px; line-height: 1.16; color: #fff; }
.contact-page-heading p { margin-top: 12px; color: rgba(220, 234, 246, .78); }
.contact-page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.contact-page-body { padding: 54px 0 64px; background: #fff; }
.contact-sales-team { padding: 0; }
.contact-sales-team .section-title-center { margin-bottom: 26px; }
.contact-page-card { min-height: 126px; padding: 24px; border: 1px solid rgba(184, 211, 234, .24); background: rgba(255, 255, 255, .055); }
.contact-page-card small { display: block; color: rgba(213, 228, 242, .74); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.contact-page-card strong { display: block; margin-top: 14px; color: #fff; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.contact-page-map { display: grid; grid-template-columns: minmax(290px, .8fr) minmax(0, 1.2fr); min-height: 350px; margin-top: 32px; border: 1px solid #dce6ee; background: #fff; }
.contact-page-map-copy { display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.contact-page-map-copy h2, .contact-page-map-copy p { margin: 0; }
.contact-page-map-copy h2 { color: #13273b; font-size: 25px; line-height: 1.3; }
.contact-page-map-copy p { margin-top: 16px; color: #607487; line-height: 1.8; }
.contact-page-map-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.contact-page-map-tab { position: relative; z-index: 2; min-height: 34px; padding: 0 12px; border: 1px solid #c6d8e7; background: #fff; color: #526b80; cursor: pointer; font-size: 13px; }
.contact-page-map-tab.is-active { border-color: #175ca2; background: #175ca2; color: #fff; }
.contact-page-map-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.contact-page-map-actions a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; color: #175ca2; border: 1px solid #b8d1e7; background: #f7fbff; font-size: 13px; }
.contact-page-map-canvas { width: 100%; min-height: 350px; background: #edf3f7; }
.contact-page-map--unavailable .contact-page-map-canvas { background: #edf3f7; }
.contact-page-inquiry { display: grid; grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr); gap: 42px; margin-top: 32px; padding: 42px; border: 0; background: linear-gradient(112deg, #0b2d5a 0%, #14519d 100%); }
.contact-page-inquiry-copy h2, .contact-page-inquiry-copy p { margin: 0; }
.contact-page-inquiry-copy h2 { color: #fff; font-size: 28px; }
.contact-page-inquiry-copy p { margin-top: 14px; color: rgba(220, 234, 246, .78); line-height: 1.8; }
.contact-page-form { width: 100%; padding: 0; background: transparent; border: 0; box-shadow: none; }
.contact-page-message { margin-top: 32px; }
.contact-page-message .custom-order { margin: 0; }
.contact-lead-form { padding: 34px; background: #fff; color: #14243a; box-shadow: 0 16px 44px rgba(22, 53, 90, .12); }
.contact-lead-heading h2, .contact-lead-heading p { margin: 0; }
.contact-lead-heading h2 { color: #14243a; font-size: 30px; }
.contact-lead-heading p { margin-top: 12px; color: #5d6c7c; line-height: 1.7; }
.contact-lead-form .project-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; width: 100%; margin-top: 24px; padding: 0; background: transparent; border: 0; box-shadow: none; }
.contact-lead-form .project-form label > span { color: #14243a; font-weight: 700; }
.form-required { color: #ff6b6b; font-weight: 800; margin-left: 4px; }

/* About gallery, page ads and the shared white lead-form surface. */
.about-video-ad, .contact-hero-ad { margin: 0 auto 28px; }
.about-video-ad img, .contact-hero-ad img { display: block; width: min(1180px, 100%); height: auto; margin: 0 auto; object-fit: cover; }
.about-process-flow { width: min(1180px, calc(100% - 40px)); margin: 26px auto 0; padding: 12px; gap: 12px; background: #f3f7fb; border: 1px solid #dbe5ef; }
.about-process-flow article { min-height: 92px; display: grid; place-items: center; align-content: center; gap: 7px; background: #fff; border: 1px solid #dbe5ef; color: #14243a; }
.about-process-flow b { color: #0b65c2; font-size: 18px; }
.about-process-flow span { color: #35485d; font-size: 14px; text-align: center; }
.about-factory-gallery { display: grid; grid-template-columns: minmax(0, calc(50% - 1.333px)) minmax(0, calc(50% - 10.667px)); gap: 12px; align-items: start; }
.about-factory-gallery figure, .about-factory-gallery > div { min-width: 0; width: 100%; margin: 0; }
.about-factory-gallery > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.factory-image-frame { position: relative; overflow: hidden; background-image: var(--factory-image); background-size: cover; background-position: center; }
.factory-image-frame::before { content: ''; position: absolute; inset: -16px; background: inherit; filter: blur(18px); transform: scale(1.12); opacity: .55; }
.factory-image-frame img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; }
.about-factory-gallery .is-main, .about-factory-gallery .is-tile { aspect-ratio: 16 / 9; height: auto; }
.about-team-carousel .team-shell, .contact-team-carousel .team-shell { margin-top: 26px; }
.home-team .team-person img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #eaf0f6; }
.contact-team-carousel .team-shell { margin-top: 26px; }
.contact-page-message .contact-lead-form, .custom-order, .message-modal .project-form, .home-v6-message .home-v6-lead-form { background: #fff; color: #14243a; box-shadow: 0 16px 44px rgba(22, 53, 90, .12); }
.contact-page-message .contact-lead-form .contact-lead-heading h2, .contact-page-message .contact-lead-form .contact-lead-heading p, .contact-page-message .project-form label > span, .custom-order .custom-copy, .custom-order .project-form label > span, .message-modal .project-form label > span, .home-v6-lead-form label > span { color: #14243a; }
.contact-page-message .project-form input, .contact-page-message .project-form textarea, .contact-page-message .project-form select, .custom-order .project-form input, .custom-order .project-form textarea, .custom-order .project-form select, .message-modal .project-form input, .message-modal .project-form textarea, .message-modal .project-form select, .home-v6-lead-form input, .home-v6-lead-form textarea { color: #14243a; background: #f7f9fc; border-color: #d7e0eb; }
@media (max-width: 768px) { .about-factory-gallery { grid-template-columns: 1fr; } .about-factory-gallery figure { aspect-ratio: 16 / 9; } .about-factory-gallery > div { aspect-ratio: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-lead-form .project-form select, .contact-lead-form .project-form select option { color: #14243a; background: #f7f9fc; }
body .contact-lead-form .project-form select { color: #14243a; background-color: #f7f9fc; }
body .about-process-flow.process-flow article { background: #fff; border: 1px solid #dbe5ef; }
.message-modal { padding: 20px; background: rgba(5, 23, 45, .48); }
.message-modal section { width: min(680px, 100%); max-height: min(860px, calc(100vh - 40px)); overflow: auto; padding: 34px; background: #fff; color: #14243a; border: 1px solid #dbe5ef; box-shadow: 0 24px 70px rgba(4, 26, 52, .28); }
.message-modal .modal-heading { margin: -34px -34px 26px; padding: 30px 34px 24px; background: #f2f7fc; border-bottom: 1px solid #dbe5ef; }
.message-modal .modal-heading span { color: #0b65c2; font-weight: 700; }
.message-modal .modal-heading h2 { margin: 8px 0; color: #14243a; }
.message-modal .modal-heading p { margin: 0; color: #5d6c7c; }
.message-modal .modal-x { color: #14243a; background: #fff; border: 1px solid #dbe5ef; }
.message-modal .project-form { padding: 0; background: transparent; box-shadow: none; }
@media (max-width: 768px) { .message-modal { padding: 12px; } .message-modal section { max-height: calc(100vh - 24px); padding: 24px 18px; } .message-modal .modal-heading { margin: -24px -18px 22px; padding: 24px 18px 20px; } }

/* The brand must never consume the navigation space in long translations. */
.site-header .header-inner { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr) max-content; gap: 24px; align-items: center; }
.site-header .brand { min-width: 0; max-width: 320px; }
.site-header .brand-text { min-width: 0; overflow: hidden; }
.site-header .brand-text strong, .site-header .brand-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-header .desktop-nav { min-width: 0; justify-content: center; gap: clamp(14px, 1.45vw, 28px); white-space: nowrap; }
.site-header .header-tools { min-width: max-content; }
.site-header .language > button { width: auto; min-width: 0; max-width: 156px; white-space: nowrap; }
.site-header .language > button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1180px) { .site-header .header-inner { grid-template-columns: minmax(190px, 260px) minmax(0, 1fr) max-content; gap: 16px; } .site-header .desktop-nav { gap: 14px; font-size: 14px; } }
@media (max-width: 900px) { .site-header .header-inner { display: flex; gap: 12px; } .site-header .brand { flex: 1 1 auto; max-width: none; } .site-header .header-tools { flex: 0 0 auto; } }
@media (min-width: 901px) {
  .site-header .header-inner { display: grid; grid-template-columns: minmax(140px, 1fr) max-content max-content; gap: 16px; }
  .site-header .brand { min-width: 0; max-width: none; }
  .site-header .desktop-nav { min-width: 0; justify-content: flex-end; gap: clamp(8px, .85vw, 16px); font-size: 14px; }
  .site-header .header-tools { min-width: max-content; }
  .site-header .desktop-nav > a, .site-header .desktop-nav .nav-host > a { padding-inline: 2px; }
  .site-header .language > button { max-width: 150px; }
  .site-header .nav-host > a { display: inline-flex; align-items: center; gap: 5px; padding-right: 4px; }
  .site-header .nav-host > a::before { position: static; display: block; flex: 0 0 auto; order: 2; margin: 0; line-height: 1; transform: none; }
  .site-header .nav-host:hover > a::before, .site-header .nav-host.is-open > a::before { transform: rotate(180deg); }
}
.contact-lead-form .project-form .full { grid-column: 1 / -1; }

/* All standalone inner-page H1s use the same centered visual hierarchy. */
.page-hero > .container > div:first-child { text-align: center; }
.page-hero > .container > div:only-child { grid-column: 1 / -1; }
.page-hero p { margin-inline: auto; }

@media (max-width: 860px) {
  .contact-page-hero { padding: 42px 0 48px; }
  .contact-page-body { padding: 22px 0 34px; }
  .contact-page-heading h1 { font-size: 31px; }
  .contact-page-grid, .contact-page-map, .contact-page-inquiry { grid-template-columns: 1fr; }
  .contact-page-grid { gap: 10px; margin-top: 24px; }
  .contact-page-card { min-height: 0; padding: 17px; }
  .contact-page-card strong { margin-top: 8px; font-size: 15px; }
  .contact-page-map { min-height: 0; margin-top: 22px; }
  .contact-page-map-copy { padding: 25px 20px; }
  .contact-page-map-canvas { min-height: 270px; }
  .contact-page-message { margin-top: 22px; }
  .contact-lead-form { padding: 26px 20px; }
  .contact-lead-heading h2 { font-size: 24px; }
  .contact-lead-form .project-form { grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
  .contact-lead-form .project-form .full { grid-column: auto; }
  .contact-sales-team .section-title-center { margin-bottom: 18px; }
  .contact-page-inquiry { gap: 24px; margin-top: 22px; padding: 26px 20px; }
  .contact-page-inquiry-copy h2 { font-size: 24px; }

  .home-cases .section-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; justify-content: initial; }
  .home-cases .section-head h2 { grid-column: 2; text-align: center; }
  .home-cases .section-head a { grid-column: 3; justify-self: end; }
  .home-cases .case-mobile h3 { margin-bottom: 10px; text-align: center; }
  .home-cases .case-mobile p { text-align: center; }
}

.footer-brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.footer-brand-copy strong {
  display: block;
}

.footer-brand-subtitle {
  display: block;
  color: rgba(208, 220, 232, 0.76);
  font-size: 13px;
  line-height: 1.35;
}

html.support-open,
html.wechat-open,
body.support-open,
body.wechat-open {
  overflow: hidden !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  height: 100dvh !important;
}

@media (min-width: 721px) {
  .footer-brand-rows,
  .footer-brand-contacts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-width: 0;
  }

  .footer-brand-row {
    display: grid;
    gap: 8px;
    min-width: 0;
  }

  .footer-brand-row-phone-whatsapp {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
  }

  .footer-brand-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    width: auto;
    min-width: 0;
    max-width: none;
    align-items: center;
  }

  .footer-brand-contact-label,
  .footer-brand-contact small {
    display: inline;
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    text-align: left;
    white-space: nowrap;
    line-height: 1.3;
  }

  .footer-brand-contact-value,
  .footer-brand-contact strong {
    display: inline;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    line-height: 1.32;
    padding-left: 0;
  }

  .footer-brand-contact-email .footer-brand-contact-value span,
  .footer-brand-contact-phone .footer-brand-contact-value span,
  .footer-brand-contact-whatsapp .footer-brand-contact-value span {
    display: inline;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .footer-brand-contact-address {
    align-items: start;
  }

  .footer-brand-contact-address .footer-brand-contact-value span {
    display: inline;
    white-space: normal;
    overflow: hidden;
  }

}

@media (max-width: 860px) {
  .footer-brand-contact {
    display: block !important;
    position: relative !important;
    padding-left: 20px !important;
    height: auto !important;
    min-height: 0 !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
  }

  .footer-brand-contact-icon {
    position: absolute !important;
    left: 0 !important;
    top: 4px !important;
    flex: 0 0 14px !important;
    align-self: flex-start !important;
  }

  .footer-brand-contact small,
  .footer-brand-contact-label {
    display: inline !important;
    width: auto !important;
    min-width: 0 !important;
    white-space: normal !important;
    line-height: 1.55 !important;
  }

  .footer-brand-contact strong,
  .footer-brand-contact-value {
    display: inline !important;
    width: auto !important;
    min-width: 0 !important;
    line-height: 1.55 !important;
    word-break: break-word !important;
    flex: 0 1 auto !important;
  }

  .footer-brand-contact strong span,
  .footer-brand-contact-value span {
    display: inline !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .footer-brand-contact-address strong,
  .footer-brand-contact-address .footer-brand-contact-value {
    flex: 1 1 calc(100% - 24px) !important;
    display: block !important;
    margin-top: 2px !important;
  }

.support-panel {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000 !important;
  width: 100vw !important;
  height: 100dvh !important;
  overflow: hidden !important;
}

.support-dialog,
.support-window {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  min-height: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

.support-conversation {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding-bottom: 36px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}

.support-composer {
  flex-shrink: 0 !important;
  margin-top: 0 !important;
}
}

.support-panel,
.support-dialog,
.support-window,
.support-shell,
.support-body {
  overscroll-behavior: none !important;
}

.support-message,
.support-conversation .support-message,
.support-conversation article.support-message {
  width: min(100%, 88%) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-flow: row !important;
  gap: 6px;
  justify-items: stretch !important;
}

.support-conversation .support-message {
  align-items: stretch !important;
}

.support-message-meta,
.support-conversation .support-message-meta {
  display: flex;
  width: 100%;
  padding: 0 4px;
  writing-mode: horizontal-tb !important;
}

.support-message-assistant .support-message-meta {
  justify-content: flex-start;
}

.support-message-user .support-message-meta {
  justify-content: flex-end;
}

.support-message-name {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 11px;
  line-height: 1.2;
  color: rgba(11, 20, 26, 0.48);
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
}

.support-message-user .support-message-name {
  margin-left: auto;
  text-align: right;
}

.support-message-content {
  display: block;
}

.support-message-time {
  display: block !important;
  width: 100% !important;
  margin-top: 6px !important;
  text-align: right !important;
}

.showcase-feature-media img,
.showcase-mini-media img,
.case-hero-media img,
.case-list-media img,
.news-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Clip-first media rendering: remove letter-box whitespace in homepage sections */
main .hero-image,
main .hero-image-full,
main .hero-video,
main .hero-showcase-media,
main .hero-video video,
main .video-frame,
main .video-frame video,
main .section-video .video-frame video,
main .hero-showcase-media img,
main .metrics-dashboard-visual,
main .metrics-dashboard-visual img,
main .metrics-cert-media,
main .metrics-cert-media img,
main .delivery-media,
main .delivery-media img,
main .notice-banner-media,
main .notice-banner-media img,
main .showcase-feature-media,
main .showcase-feature-media img,
main .showcase-mini-media,
main .showcase-mini-media img,
main .case-hero-media,
main .case-hero-media img,
main .case-list-media,
main .case-list-media img,
main .news-media,
main .news-media img,
main .sales-avatar,
main .sales-avatar img,
main .product-media,
main .product-media img,
main .product-hero-media,
main .product-hero-media img,
main .wechat-qr,
main .wechat-qr img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  max-width: none !important;
}

main img[data-progressive-media] {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Requested hero background height adjustment (+100px) */
@media (min-width: 721px) {
  main .hero,
  main .hero .hero-image,
  main .hero .hero-image-full,
  main .hero > .hero-image-full,
  main .hero > .hero-video.hero-image-full,
  .hero > .hero-video.hero-image-full,
  .hero > .hero-image-full {
    min-height: 650px !important;
    height: 650px !important;
    max-height: none !important;
  }
}

@media (max-width: 720px) {
  main .hero,
  main .hero .hero-image,
  main .hero .hero-image-full,
  main .hero > .hero-image-full,
  main .hero > .hero-video.hero-image-full,
  .hero > .hero-video.hero-image-full,
  .hero > .hero-image-full {
    min-height: 440px !important;
    height: 440px !important;
    max-height: none !important;
  }
}

@media (max-width: 560px) {
  main .hero,
  main .hero .hero-image,
  main .hero .hero-image-full,
  main .hero > .hero-image-full,
  main .hero > .hero-video.hero-image-full,
  .hero > .hero-video.hero-image-full,
  .hero > .hero-image-full {
    min-height: 420px !important;
    height: 420px !important;
    max-height: none !important;
  }
}

/* Homepage hero: add overlay mask and edge fade so background stays readable on wide screens */
main .hero {
  position: relative !important;
}

main .hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 1 !important;
  display: block !important;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 100%
    ),
    radial-gradient(circle at 74% 16%, rgba(7, 17, 29, 0.17) 0%, rgba(7, 17, 29, 0) 50%),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.28) 0%,
      rgba(0, 0, 0, 0.08) 42%,
      rgba(0, 0, 0, 0.06) 68%,
      rgba(0, 0, 0, 0.22) 100%
    ) !important;
}

@media (min-width: 1600px) {
  main .hero::before {
    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.24) 8%,
        rgba(0, 0, 0, 0) 20%,
        rgba(0, 0, 0, 0) 80%,
        rgba(0, 0, 0, 0.24) 92%,
        rgba(0, 0, 0, 0.45) 100%
      ),
      radial-gradient(circle at 74% 18%, rgba(7, 17, 29, 0.22) 0%, rgba(7, 17, 29, 0) 52%),
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.34) 0%,
        rgba(0, 0, 0, 0.08) 42%,
        rgba(0, 0, 0, 0.06) 68%,
        rgba(0, 0, 0, 0.28) 100%
      ) !important;
  }
}

@media (max-width: 1599px) {
  main .hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.28) 0%,
        rgba(0, 0, 0, 0.08) 42%,
        rgba(0, 0, 0, 0.06) 68%,
        rgba(0, 0, 0, 0.22) 100%
      ),
      radial-gradient(circle at 74% 18%, rgba(7, 17, 29, 0.17) 0%, rgba(7, 17, 29, 0) 52%),
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 100%
      ) !important;
  }
}
