/* 3i revamp — shared component layer. Loaded last in <head>. */
:root{ --r-brand:#f36621; --r-on-brand:#141414; --r-ease:cubic-bezier(.2,.7,.2,1); }

/* WhatsApp button — house default, bottom LEFT (right collides with
   back-to-top and most chat widgets). Number read from the page's own tel:
   link, never typed in. */
.u-wa{
  position:fixed !important; left:16px !important; right:auto !important; bottom:16px !important;
  width:62px; height:62px; border-radius:50%; background:#25D366;
  box-shadow:0 6px 20px -6px rgba(0,0,0,.45); z-index:9000; display:block; text-decoration:none;
  transition:transform .2s var(--r-ease), box-shadow .2s ease;
}
.u-wa::after{
  content:""; position:absolute; inset:0; margin:auto; width:34px; height:34px; background:#fff;
  -webkit-mask:var(--wa) center/contain no-repeat; mask:var(--wa) center/contain no-repeat;
}
.u-wa{ --wa:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12.04 2A9.9 9.9 0 0 0 2.1 11.9a9.8 9.8 0 0 0 1.35 4.96L2 22l5.3-1.38a9.9 9.9 0 0 0 4.74 1.21h.01A9.9 9.9 0 0 0 22 11.93 9.9 9.9 0 0 0 12.04 2zm5.8 14.06c-.24.68-1.4 1.3-1.94 1.35-.5.05-.96.23-3.23-.67-2.72-1.07-4.45-3.84-4.58-4.02-.13-.18-1.1-1.46-1.1-2.79s.7-1.98.95-2.25c.25-.27.54-.34.72-.34h.52c.17 0 .4-.06.62.47.24.57.8 1.97.87 2.11.07.14.12.3.02.48-.1.18-.15.3-.3.46l-.44.5c-.14.14-.3.3-.13.6.17.3.75 1.23 1.6 2 1.1.98 2.02 1.28 2.32 1.43.3.15.47.13.64-.08.18-.2.74-.86.94-1.16.2-.3.4-.25.66-.15.27.1 1.67.79 1.96.93.29.14.48.21.55.33.07.12.07.7-.17 1.38z'/></svg>"); }
.u-wa:hover{ transform:translateY(-3px); box-shadow:0 10px 26px -8px rgba(0,0,0,.5); }
.u-wa:focus-visible{ outline:3px solid #fff; outline-offset:3px; }
@media (max-width:767px){ .u-wa{ width:56px; height:56px; left:14px !important; bottom:14px !important; } }
@media (prefers-reduced-motion:reduce){ .u-wa{ transition:none; } .u-wa:hover{ transform:none; } }

/* Phone row in the mobile menu. The theme's own menu is left alone wherever it
   works; this is the one thing it lacks. Full menu width, 48px target. */
.u-menu-call{
  display:none; box-sizing:border-box; width:100%; align-items:center; gap:10px;
  min-height:48px; padding:12px 20px; background:var(--r-brand); color:var(--r-on-brand) !important;
  font-weight:600; text-decoration:none; white-space:nowrap;
}
.u-menu-call svg{ width:18px; height:18px; fill:currentColor; flex:0 0 auto; }
@media (max-width:980px){ .u-menu-call{ display:flex; } }
.u-menu-call-item{ list-style:none; }
.u-menu-call-item{ margin:0 !important; padding:0 !important; border:0 !important; }

/* Mobile type floor. These themes drop body copy to 13-14px on phones.
   Body text only; heading sizes stay the designer's, desktop is untouched. */
@media (max-width:767px){
  body{ font-size:16px; }
  p, li, td, .et_pb_text, .et_pb_text_inner{ font-size:16px; line-height:1.65; }
  footer p, footer li, footer a, #main-footer p, #main-footer li, #main-footer a{ font-size:15px; line-height:1.6; }
  small, .small{ font-size:14px; }
}

/* The enquiry form's reply box: success and failure printed in the same grey
   on every site seen so far. The live handler tags the FORM, so the states are
   styled from those classes. */
.wpcf7 form .wpcf7-response-output, form[data-3i] .wpcf7-response-output{
  margin:16px 0 0; padding:12px 16px; border:1px solid transparent; border-radius:10px;
  font-size:15px; line-height:1.5;
}
.wpcf7 form.sent .wpcf7-response-output, form[data-3i].sent .wpcf7-response-output{
  border-color:rgba(26,156,91,.40) !important; background:#effaf4 !important; color:#12623a !important;
}
.wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.invalid .wpcf7-response-output,
form[data-3i].failed .wpcf7-response-output{
  border-color:rgba(190,120,20,.45) !important; background:#fff8ec !important; color:#8a5a06 !important;
}



/* A number that was plain text must not start looking like a link - and must
   not start OCCUPYING a different box either. On welicronlifesciences.com the
   theme's own `.icon_box a{display:block}` (meant for an icon box that is
   wholly a link) caught our injected anchor, so a number that had been inline
   text inside `<div class="desc">` became a full-width block and added exactly
   one 28px line box: /contact-us/ grew 28px with not one computed style
   different, which is how a cascade FAIL with no style diff looks when the
   cause is a box-model change rather than a restyle. Plain text is inline, so
   pin inline. (The mobile menu's phone row is .u-menu-call, not this class, so
   it keeps its own flex box.) */
a.u-tel{font:inherit!important;color:inherit!important;line-height:inherit!important;
  letter-spacing:inherit!important;text-decoration:inherit!important;font-weight:inherit!important;
  display:inline!important;width:auto!important;padding:0!important;margin:0!important}

/* Promoted headings pinned to the look they had in the untouched build.
   Measured, not guessed: a wrong line-height shifts everything below it. */
h1.u-was-h2{font-size:40px!important;font-weight:800!important;line-height:50px!important;color:rgb(22, 25, 34)!important;margin:0px 0 15px!important;padding:0px 0 0px!important;letter-spacing:inherit!important;text-align:left!important}

/* 404 page, rebuilt from a real page's shell so it carries the site's own
   header, menu and footer instead of being a dead end. */
.u-404{padding:28px 0 40px}
.u-404 h1{margin:0 0 14px}
.u-404 p{max-width:68ch}
.u-404-links{list-style:none;margin:14px 0 22px;padding:0;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px 24px}
.u-404-links li{margin:0}
.u-404-links a{display:block;padding:7px 0;border-bottom:1px solid rgba(0,0,0,.08)}

/* The hero on phones. Smart Slider's own mobilePortrait size is 320x146, so at
   390px the slide renders 390x179 and its layers scale with it: the title drops
   to 14.4px and the two buttons to 5.6px - unreadable and untappable. Measured,
   not guessed. The plugin's layout maths stay untouched; the slide is given a
   real height and the layer text its desktop scale back, and the result is
   checked in a screenshot at 390 before it ships. */
@media (max-width:700px){
  /* The hero on phones. Smart Slider's own mobilePortrait size is 320x146, so
     at 390px the slide renders 390x179 and the layers scale with it: the title
     measured 14.4px and the two buttons 5.6px - unreadable and untappable.
     Scaling the type alone makes the layers collide, because the plugin pins
     each one at an absolute pixel offset computed for the small box and the
     title then wraps onto three lines (both tried, both looked at in a
     screenshot at 390). So at phone width the absolute composition is let go
     and the same three layers - title, sub-line, buttons - stack in normal
     flow over the same photograph, in the same order, with the same words. */
  #n2-ss-2 .n2-ss-slide,
  #n2-ss-2 .n2-ss-slider-3,
  #n2-ss-2 .n2-ss-slider-4{height:auto!important;min-height:0!important}
  #n2-ss-2 .n2-ss-layers-container{position:static!important;height:auto!important;
    width:auto!important;padding:54px 22px 58px!important;display:block!important}
  #n2-ss-2 .n2-ss-layers-container > .n2-ss-layer{position:static!important;
    transform:none!important;width:auto!important;height:auto!important;
    max-width:none!important;margin:0 0 14px!important;display:block!important;
    text-align:center!important;--ssfont-scale:1!important}
  #n2-ss-2 .n2-ss-layers-container .n2-ss-layer{position:static!important;
    transform:none!important;width:auto!important;height:auto!important;
    display:block!important;text-align:center!important;--ssfont-scale:1!important}
  #n2-ss-2 .n2-ss-section-main-content{display:block!important;width:auto!important;
    height:auto!important}
  #n2-ss-2 .n2-ss-button-container{display:inline-block!important;margin:10px 5px 0!important}
  #n2-ss-2 .n2-ss-layers-container{padding:44px 20px 46px!important}
  #n2-ss-2 .n2-ss-slide-background img,
  #n2-ss-2 .n2-ss-slide-background{height:100%!important}
}

@media (max-width:700px){
  /* The slide title: the export's own phone rule leaves it at 1em, i.e. the
     same size as the body line under it, so the hero reads as three identical
     lines. Desktop sets 43.2px; 28px is the same hierarchy at 390. */
  #n2-ss-2 .n2-ss-layer .n2-font-d33296ffe355633fbdfd7da4463bf90f-hover{font-size:28px!important;
    line-height:1.18!important}
  /* Tap targets: 62x21 is not a button on a phone. */
  #n2-ss-2 .n2-ss-button-container a{display:inline-block!important;
    padding:12px 22px!important;min-height:44px!important;line-height:20px!important}
}

@media (max-width:700px){
  /* Put the two hero buttons back on one line. :has() is the only way to reach
     the layer that holds a button without touching the markup; where it is not
     supported the buttons simply stay stacked, which still works. */
  #n2-ss-2 .n2-ss-layer:has(> .n2-ss-button-container){display:inline-block!important;
    margin:0 4px!important;vertical-align:middle!important}
  #n2-ss-2 .n2-ss-button-container a{border-radius:28px!important}
  /* a little air under the title before the sub-line */
  #n2-ss-2 .n2-ss-layer .n2-font-d33296ffe355633fbdfd7da4463bf90f-hover{margin-bottom:6px!important}
}

/* The footer's LinkedIn link is a 31x30 target. The icon keeps its size; the
   link around it gets a 44px box, which is the minimum a thumb can hit. */
#Footer ul.social a{display:inline-flex;align-items:center;justify-content:center;
  min-width:44px;min-height:44px}
#Footer ul.social{margin-right:-7px}

/* The mobile type floor raises body copy to 16px, and on this theme that left
   every h4 and h5 BELOW the text underneath it: footer column titles and card
   titles render 13px on a phone while their own list items render 15-16px, so
   the heading reads as a caption. Measured on all 20 pages. Raise only the
   headings that fell under the floor; desktop is untouched. */
@media (max-width:767px){
  #Content h4, #Content h5, #Content h6,
  #Footer h4, #Footer h5, #Footer h6{font-size:17px;line-height:1.35}
  #Content h3{font-size:19px;line-height:1.3}
  #Footer .widgets_wrapper h4{font-size:18px;margin-bottom:10px}
}

@media (max-width:767px){
  /* Our own DPDP consent line renders 13.5px on a phone - the smallest text on
     the page, and the one sentence that must be readable before someone agrees
     to it. */
  .dpdp-consent label, .dpdp-consent span, .dpdp-consent a{font-size:16px;line-height:1.5}
  .dpdp-footer-line, .dpdp-footer-line a{font-size:15px}
  /* The slide-out menu's own items sit at 13px. */
  #Side_slide #menu a, #Side_slide #menu span, #menu > li > a,
  .mfn-mobile-open #menu a, .mfn-mobile-open #menu span{font-size:16px}
}
