/* Water Hygiene Services: small additions to the original theme (static site) */

/* Skip link: shown when it receives keyboard focus */
.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 100000; padding: 10px 16px; background: #002e5b; color: #fff; font-weight: 600; text-decoration: none; outline: 2px solid #cc428f; }
main:focus { outline: none; }

/* Cookie notice: hidden once the visitor has accepted (see whs-consent.js) */
.whs-consented #stm_gdpr_popup-main { display: none !important; }

/* Homepage hero: static replacement for the Revolution Slider (same text, link and images).
   Sizes scale exactly as the slider did: by width/1170 on desktop, width/750 up to 768px. */
.whs-hero { --u: min(1px, calc(100vw / 1170)); position: relative; overflow: hidden; width: 100vw; margin-left: calc(50% - 50vw); height: calc(574 * var(--u)); background: #102a8c; }
.whs-hero__bg img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.whs-hero__inner { position: relative; width: calc(1170 * var(--u)); height: 100%; margin: 0 auto; }
.whs-hero__text { position: absolute; left: calc(32 * var(--u)); top: calc(113 * var(--u)); margin: 0; padding: 0; color: #fff; font-family: "Open Sans", sans-serif; font-weight: 600; font-size: calc(35 * var(--u)); line-height: calc(55 * var(--u)); white-space: nowrap; }
.whs-hl { color: #cc428f; }
.whs-br-m { display: none; }
.whs-hero__btn { position: absolute; left: calc(35 * var(--u)); top: calc(314 * var(--u)); display: block; padding: calc(13 * var(--u)) calc(30 * var(--u)); background: #dc3092; color: #fff; font-family: "Open Sans", sans-serif; font-size: calc(20 * var(--u)); line-height: calc(25 * var(--u)); white-space: nowrap; text-decoration: none; transition: background-color .3s; }
.whs-hero__btn:hover, .whs-hero__btn:focus { background: #000; color: #fff; text-decoration: none; }
@media only screen and (max-width: 768px) {
  .whs-hero { --u: calc(100vw / 750); height: calc(700 * var(--u)); }
  .whs-hero__inner { width: 100%; }
  .whs-hero__text { left: calc(36 * var(--u)); top: calc(166 * var(--u)); line-height: calc(45 * var(--u)); }
  .whs-hl { color: inherit; }
  .whs-br-m { display: inline; }
  .whs-br-d { display: none; }
  .whs-hero__btn { left: calc(67 * var(--u)); top: calc(540 * var(--u)); font-size: calc(19 * var(--u)); font-weight: 600; }
}

/* Heading levels fixed (h6/h5/h4 to h2/h3, no skipped levels) without changing their look.
   Values are the computed styles of the original tags. */
.whs-hfix-service { font-size: 16px !important; font-weight: 700 !important; line-height: 20px !important; color: #fff !important; margin-bottom: 0 !important; padding-top: 0 !important; letter-spacing: -0.32px !important; vertical-align: middle !important; }
.whs-hfix-service::after { margin-top: 17px !important; }
.whs-hfix-name { font-size: 20px !important; line-height: 22px !important; color: #002e5b !important; margin-bottom: 6px !important; padding-top: 0 !important; letter-spacing: -0.8px !important; }
.whs-hfix-name::after { margin-top: 13px !important; }
.whs-hfix-news { font-size: 18px !important; line-height: 22px !important; color: #002e5b !important; margin-bottom: 20px !important; padding-top: 0 !important; letter-spacing: -0.72px !important; }
.whs-hfix-news::after { width: 47px !important; height: 5px !important; margin-top: 14px !important; }
.whs-hfix-footer { line-height: 28px !important; padding-top: 23px !important; letter-spacing: -0.8px !important; }
.whs-hfix-footer::after { margin-top: 13px !important; }

/* Homepage answer sections (key points, questions, steps, facts) */
.whs-content { max-width: 900px; margin: 0 auto 40px; padding: 0 15px; font-size: 16px; line-height: 26px; color: #555; }
.whs-content h2 { margin: 30px 0 10px; padding: 0; font-size: 24px; line-height: 32px; color: #002e5b; text-transform: none; letter-spacing: -0.5px; }
.whs-content h2::after { display: none; }
.whs-content p { margin: 0 0 12px; }
.whs-content ul, .whs-content ol { margin: 0 0 16px 20px; padding: 0; }
.whs-content li { margin-bottom: 6px; }
.whs-content a { color: #cc428f; }
.whs-keypoints { background: #f2f2f2; border-left: 5px solid #cc428f; padding: 10px 25px 5px; }
.whs-keypoints h2 { margin-top: 10px; }
.whs-quote { margin: 20px 0 0; padding: 15px 25px; border-left: 5px solid #002e5b; background: #f2f2f2; font-style: italic; }
.whs-quote footer { margin-top: 8px; font-style: normal; font-size: 14px; color: #002e5b; }

/* Second H1 in page content became H2 (one H1 per page); keeps the original H1 look */
.whs-hfix-h1 { font-size: 45px !important; line-height: 60px !important; padding-top: 0 !important; letter-spacing: -2.7px !important; }
.whs-hfix-h1::after { margin-top: 4px !important; }

/* Cookie choices and click to load maps (1 Nov 2026) */
#stm_gdpr_popup-main .stm_gdpr_popup-links{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
#stm_gdpr_popup-main .stm_gdpr_popup-accept{min-width:110px;text-align:center}
#stm_gdpr_popup-main .whs-decline{margin-left:0}
.whs-cmap__note{background:#f6f6f6;border:1px solid #ddd;padding:16px 18px;margin:0 0 12px;color:#333}
.whs-cmap__note p{margin:0}
.whs-cmap__show{background:#002e5b;color:#fff;border:0;padding:8px 16px;font-weight:600;cursor:pointer}
.whs-cmap iframe[data-whs-src]{display:none}
.whs-cmap--on .whs-cmap__note{display:none}
.whs-privacy-table{width:100%;border-collapse:collapse;margin:0 0 20px;font-size:15px}
.whs-privacy-table th,.whs-privacy-table td{border:1px solid #ddd;padding:8px 10px;text-align:left;vertical-align:top}
.whs-privacy-table th{background:#002e5b;color:#fff}

/* Bottom contact bar on phones and tablets: bigger and bolder (Ebi, 20 Nov 2026). This is the template for every
   client site. The bar (Call | Email | Ask AI | Get a quote) is 54px tall with 15 to 16px bold labels and larger
   icons. The page keeps matching space at the bottom (--whs-mbar-h is measured by the script next to the bar), the
   cookie notice always sits clear above the bar, and the iPhone home indicator area is allowed for. Selectors use
   "nav.whs-mbar" so they win over the older bar rules in each page and the size the chat script sets. Desktop
   (992px and wider) is unchanged. Keep this block in every build. */
@media only screen and (max-width: 991px) {
  nav.whs-mbar { box-shadow: 0 -3px 12px rgba(0,0,0,.3); padding-bottom: env(safe-area-inset-bottom, 0px); }
  nav.whs-mbar a { flex: 1 1 auto !important; display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 54px; padding: 6px 6px !important; font-size: 16px !important; line-height: 20px !important; font-weight: 700 !important; letter-spacing: 0; white-space: nowrap; color: #fff !important; border-right: 1px solid rgba(255,255,255,.28); }
  nav.whs-mbar a:last-child { border-right: 0; }
  nav.whs-mbar a .fa { font-size: 19px !important; margin-right: 6px !important; line-height: 1; }
  nav.whs-mbar a:active { background: rgba(255,255,255,.14); }
  nav.whs-mbar a.whs-mbar__quote:active { background: #b3367b; }
  body { padding-bottom: calc(var(--whs-mbar-h, 54px) + 8px) !important; }
  html #stm_gdpr_popup-main { bottom: calc(var(--whs-mbar-h, 54px) + 12px) !important; max-height: calc(100vh - var(--whs-mbar-h, 54px) - 24px); overflow-y: auto; }
}
@media only screen and (max-width: 389px) {
  nav.whs-mbar a { font-size: 15px !important; padding: 6px 4px !important; }
  nav.whs-mbar a .fa { font-size: 17px !important; margin-right: 5px !important; }
}

/* Chat button on desktop: a tab on the left side of the screen, bolder and easier to see (Ebi, 22 Nov 2026).
   Standard for every site. On desktop screens the "Ask our AI assistant" button from the chat script is a
   vertical tab fixed to the left edge, half way up, and the chat panel opens at the bottom left. The tab is hidden
   while the cookie notice is showing (the notice sits on that side) and while the chat is open, then comes back.
   The page layout is not changed. On phones and tablets (up to 991px) there is no floating button: the chat opens
   from Ask AI in the bottom bar above. The tab starts at 1240px wide, where the page has a clear left margin for it,
   so it never sits over page text; from 992px to 1239px the chat opens from Ask our AI assistant in the top bar.
   Keep this block in every build. */
@media only screen and (min-width: 1240px) {
  #lia-btn, #lia-btn.hide { display: inline-flex !important; align-items: center; white-space: nowrap !important; writing-mode: vertical-rl !important; left: 0 !important; right: auto !important; top: 50% !important; bottom: auto !important; transform: translateY(-50%) !important; width: auto !important; height: auto !important; max-width: none !important; min-height: 0 !important; padding: 20px 13px !important; font: 700 17px/1 "Open Sans", system-ui, sans-serif !important; letter-spacing: .3px; text-transform: none !important; border: 2px solid #fff !important; border-left: 0 !important; border-radius: 0 12px 12px 0 !important; box-shadow: 3px 4px 16px rgba(0,0,0,.4) !important; transition: padding .15s ease, background .15s ease; }
  #lia-btn::before { content: "\f086"; font: normal 21px/1 FontAwesome; margin-bottom: 10px; writing-mode: horizontal-tb; }
  #lia-btn:hover, #lia-btn:focus-visible { background: #cc428f !important; padding-left: 18px !important; }
  html:not(.whs-consented) #lia-btn, html:not(.whs-consented) #lia-btn.hide, #lia.open ~ #lia-btn, #lia.open ~ #lia-btn.hide { display: none !important; }
  #lia { left: 20px !important; right: auto !important; bottom: 20px !important; max-height: calc(100vh - 40px) !important; }
}
@media only screen and (max-width: 1239px) {
  #lia-btn, #lia-btn.hide { display: none !important; }
}
@media print { #lia-btn, #lia, nav.whs-mbar { display: none !important; } }
