/* Sitewide chrome for topmachinepart.com, aligned with elueindustry.com placement.
   Uses this site's existing colors (#001c38 footer navy, #1793d1 buttons). */
.tmpart-topbar{
  background:#001c38;
  color:#fff;
  font-family:Arial,Helvetica,sans-serif;
  font-size:13px;
  font-weight:500;
  line-height:1.4;
}
.tmpart-topbar-inner{
  max-width:1200px;
  margin:0 auto;
  padding:8px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:36px;
  box-sizing:border-box;
}
.tmpart-topbar a{color:#fff;text-decoration:none;}
.tmpart-topbar a:hover,
.tmpart-topbar a:focus-visible{color:#d9ecfb;text-decoration:underline;}
.tmpart-topbar-contact{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 28px;
}
.tmpart-topbar-social{
  display:flex;
  align-items:center;
  gap:16px;
  flex-shrink:0;
}
.tmpart-topbar-social span{letter-spacing:.02em;}
.tmpart-topbar-social a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  text-decoration:none;
}
.tmpart-topbar-social svg{width:18px;height:18px;display:block;}

.tmpart-header-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:16px;
  padding:8px 18px;
  background:#1793d1;
  color:#fff !important;
  text-decoration:none !important;
  font-family:Arial,Helvetica,sans-serif;
  font-size:15px;
  font-weight:600;
  letter-spacing:.03em;
  line-height:1.2;
  border-radius:3px;
  white-space:nowrap;
}
.tmpart-header-cta:hover,
.tmpart-header-cta:focus-visible{
  background:#1278ad;
  color:#fff !important;
  outline:2px solid #fff;
  outline-offset:2px;
}

.tmpart-side-quote{
  position:fixed;
  top:50%;
  right:0;
  z-index:9980;
  display:inline-block;
  writing-mode:vertical-rl;
  transform:translateY(-50%) rotate(180deg);
  background:#1793d1;
  color:#fff;
  padding:18px 12px;
  border-radius:0 6px 6px 0;
  font-family:Arial,Helvetica,sans-serif;
  font-size:14px;
  font-weight:700;
  letter-spacing:.08em;
  line-height:1.2;
  text-decoration:none;
  box-shadow:0 6px 20px rgba(18,24,40,.22);
}
.tmpart-side-quote:hover,
.tmpart-side-quote:focus-visible{
  background:#1278ad;
  color:#fff;
  outline:2px solid #fff;
  outline-offset:3px;
}

.tmpart-whatsapp{
  position:fixed;
  left:calc(20px + env(safe-area-inset-left, 0px));
  bottom:calc(20px + env(safe-area-inset-bottom, 0px));
  z-index:9990;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:11px 16px 11px 12px;
  background:#25D366;
  color:#fff;
  border-radius:999px;
  text-decoration:none;
  font-family:Arial,Helvetica,sans-serif;
  font-size:14px;
  font-weight:600;
  letter-spacing:.02em;
  line-height:1;
  box-shadow:0 6px 20px rgba(18,24,40,.28);
}
.tmpart-whatsapp:hover,
.tmpart-whatsapp:focus-visible{
  background:#1ebe57;
  color:#fff;
  outline:2px solid #fff;
  outline-offset:3px;
}
.tmpart-whatsapp-icon{
  display:flex;
  width:24px;
  height:24px;
  flex:0 0 24px;
}
.tmpart-whatsapp-icon svg{width:24px;height:24px;display:block;}

/* Fallback quote modal if Elementor does not open popup 743 */
.tmpart-quote-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:10000;
  background:rgba(0,28,56,.55);
  overflow:auto;
  padding:24px 16px;
  box-sizing:border-box;
}
.tmpart-quote-modal.is-open{display:flex;align-items:flex-start;justify-content:center;}
.tmpart-quote-modal-dialog{
  position:relative;
  width:min(749px,100%);
  margin:6vh auto;
  background:#F2EFEC;
  box-shadow:0 12px 40px rgba(18,24,40,.28);
}
.tmpart-quote-modal-close{
  position:absolute;
  top:8px;
  right:8px;
  z-index:2;
  width:40px;
  height:40px;
  border:0;
  background:transparent;
  color:#444;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.tmpart-quote-modal-close:hover,
.tmpart-quote-modal-close:focus-visible{color:#000;}
body.tmpart-modal-open{overflow:hidden;}

@media (max-width:1024px){
  .tmpart-header-cta{display:none;}
}
@media (max-width:700px){
  .tmpart-topbar{font-size:12px;}
  .tmpart-topbar-inner{padding:7px 16px;gap:10px;flex-wrap:wrap;}
  .tmpart-topbar-contact{gap:8px 16px;}
  .tmpart-topbar-social{gap:12px;}
  .tmpart-topbar-social span{display:none;} /* keep icons, save space */
  .tmpart-side-quote{
    top:auto;
    bottom:calc(88px + env(safe-area-inset-bottom, 0px));
    transform:rotate(180deg);
  }
  .tmpart-whatsapp{
    left:calc(16px + env(safe-area-inset-left, 0px));
    bottom:calc(16px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width:380px){
  .tmpart-whatsapp{
    padding:11px;
    width:46px;
    height:46px;
    justify-content:center;
    box-sizing:border-box;
  }
  .tmpart-whatsapp-label{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
  }
}
@media print{
  .tmpart-topbar-social,
  .tmpart-side-quote,
  .tmpart-whatsapp,
  .tmpart-header-cta,
  .tmpart-quote-modal{display:none !important;}
}

/* --- 2026-12-03 chrome layout fix --- */

/* Keep the top bar above leftover fixed widgets; phone must stay fully visible. */
.tmpart-topbar{
  position:relative;
  z-index:10050;
}
.tmpart-topbar-contact a{white-space:nowrap;}

/* Hide the leftover Elementor "点击这里" button (fixed top-left, homepage only). */
.elementor-element-f810987,
.elementor-element-f810987.elementor-fixed{
  display:none !important;
}

/* Restore the original transparent header so logo + nav sit on the hero photo,
   instead of a solid white bar cutting the workshop image. */
.elementor-location-header,
.elementor-location-header .elementor-section,
.elementor-location-header .elementor-element,
.elementor-162 .elementor-element.elementor-element-716e2ec7,
.elementor-162 .elementor-element.elementor-element-716e2ec7:not(.elementor-motion-effects-element-type-background),
.elementor-162 .elementor-element.elementor-element-716e2ec7 > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.elementor-162 .elementor-element.elementor-element-856f16d{
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
}
.elementor-162 .elementor-element.elementor-element-856f16d{
  margin-top:0 !important;
  margin-bottom:0 !important;
}
.elementor-location-header{
  position:relative;
  z-index:20;
  /* light top shade only, so type stays readable without a solid white strip */
  background:linear-gradient(to bottom, rgba(0,28,56,0.35), rgba(0,28,56,0.05) 70%, transparent) !important;
}

/* Desktop nav + hamburger on the photo */
.elementor-location-header .elementor-nav-menu--main .elementor-item{
  color:#fff !important;
  text-shadow:0 1px 3px rgba(0,0,0,0.55);
}
.elementor-location-header .elementor-nav-menu--main .elementor-item:hover,
.elementor-location-header .elementor-nav-menu--main .elementor-item:focus,
.elementor-location-header .elementor-nav-menu--main .elementor-item.elementor-item-active,
.elementor-location-header .elementor-nav-menu--main .elementor-item.highlighted{
  color:#fff !important;
}
.elementor-location-header .elementor-menu-toggle,
.elementor-location-header .elementor-menu-toggle i,
.elementor-location-header .elementor-menu-toggle svg{
  color:#fff !important;
  fill:#fff !important;
}
/* Dropdowns stay a solid panel with original dark text */
.elementor-location-header .elementor-nav-menu--dropdown,
.elementor-location-header .elementor-nav-menu--dropdown .elementor-item,
.elementor-location-header .elementor-nav-menu--dropdown .elementor-sub-item{
  color:#363036 !important;
  text-shadow:none;
}

/* Header CTA: position against the nav widget only (do not also pad the
   parent column — that double-counted 148px and wrapped "Contact"). */
.tmpart-header-cta{
  position:absolute;
  right:16px;
  top:50%;
  transform:translateY(-50%);
  margin-left:0;
  z-index:21;
}
@media (min-width:1025px){
  .elementor-location-header .elementor-element-d2fa39c .elementor-widget-container{
    position:relative;
    padding-right:140px;
    box-sizing:border-box;
  }
  .elementor-location-header .elementor-nav-menu--main > .elementor-nav-menu{
    flex-wrap:nowrap !important;
    white-space:nowrap;
  }
}

/* Homepage hero had 132px padding on all sides with no mobile override,
   leaving ~126px of text width and mid-word wraps on phones. */
@media (max-width:1024px){
  .elementor-16 .elementor-element.elementor-element-173bafc7{
    padding:100px 28px 80px 28px !important;
  }
}
@media (max-width:767px){
  .elementor-16 .elementor-element.elementor-element-173bafc7{
    padding:88px 16px 72px 16px !important;
  }
}
