/* ── Scroll margin offset for all anchor sections ── */

/* Water Treatment Equipment page */
#filtration,
#cartridge,
#softeners,
#disinfection,
#ro-systems,
#cooling,
#demineralization,
#uf,
#self-cleaning,
#multimedia,
#carbon,
#iron-removal,
#afm,
#cartridge-filter,
#high-flow,
#bag-filter,
#spare,
#residential-softener,
#commercial-softener,
#industrial-softener,
#uv,
#copper-silver,
#ozone,
#chlorine-dioxide,
#chlorine-dosing,
#electro-chlorinators,
#brackish-ro,
#seawater-ro,
#medical-ro,
#residential-ro,
#side-stream,
#cyclone,
#disc-filters,
#screen-filters,
#bag-filter-cw,
#basin-sweeping,
#auto-dosing,
#cation-anion,
#mixed-bed,
#edi,
#uf-skid,
#uf-container,
#sc-disc,
#spun,
#wound,
#pleated,
#carbon-block {
  scroll-margin-top: 150px;
}

/* Wastewater Treatment page */
#stp,
#etp,
#tse-polishing,
#grey-water,
#vehicle-wash,
#lifting-station,
#sludge,
#neutralization,
#customized,
#zld {
  scroll-margin-top: 150px;
}

/* Water Treatment Chemicals page */
#general,
#ro,
#drinking-minerals,
#wastewater-chemicals,
#chilled,
#boiler,
#potable,
#pool,
#flushing,
#biocides,
#coagulants,
#post-treatment,
#antiscalants,
#cip,
#membrane-preservatives,
#magnesium-sulphate,
#calcium-chloride,
#magnesium-chloride,
#sodium-bicarbonate,
#potassium-bicarbonate,
#coagulants-poly,
#flocculants,
#odour-control,
#antifoaming,
#ph-correction {
  scroll-margin-top: 150px;
}

/* Pumps page */
#collection,
#distribution,
#large-scale,
#submersible,
#vertical-turbine,
#self-priming,
#seawater-intake,
#sewage-lifting,
#plumbing-skids,
#circulation,
#booster,
#constant-pressure,
#transfer,
#sump,
#hot-cold-circulation,
#vsd,
#irrigation,
#cip-sets {
  scroll-margin-top: 150px;
}

/* Dosing System page */
#water-dosing,
#desalination,
#remineralization,
#polymer,
#antiscalant,
#coagulant,
#pool-auto,
#dosing-pumps,
#dosing-tanks,
#stirrers,
#potable-dosing,
#pool-dosing,
#cooling-dosing,
#chilled-dosing,
#hot-dosing {
  scroll-margin-top: 150px;
}

/* Services page */
#amc,
#hvac-flushing,
#tank-cleaning,
#consultancy,
#testing,
#chilled-flushing,
#hot-flushing,
#flushing-pump-rental,
#side-stream-rental,
#testing-reagents,
#lovibond {
  scroll-margin-top: 150px;
}

/* Specialty Chemicals page */
#paper-chemicals,
#oilfield-chemicals,
#lake-chemicals {
  scroll-margin-top: 150px;
}

/* .customHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.customHeader.header-hidden {
  transform: translateY(-100%);
} */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --teal: #114c5f;
  --tl: #1e88a8;
  --tp: #eaf4f7;
  --tx: #0f2027;
  --mu: #5a6b72;
  --bd: rgba(17, 76, 95, 0.09);
}

/* ══ HEADER (logo left / contact + nav stacked right) ══ */
.wb-header {
  background: #fff;
  border-bottom: 2px solid var(--teal);
  /* position: sticky; */
  top: 0;
  z-index: 9000;
  font-family: "Poppins", sans-serif;
}
.wb-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.wb-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.wb-logo img {
  height: 46px;
  width: auto;
  display: block;
}
.wb-logo-fallback {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.5px;
  display: none;
}
.wb-logo-fallback span {
  color: var(--tl);
}

.wb-header-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.wb-top-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.wb-top-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tx);
  text-decoration: none;
  font-weight: 600;
  font-size: 12.5px;
  transition: color 0.2s;
  white-space: nowrap;
}
.wb-top-item:hover {
  color: var(--tl);
}
.wb-top-item-ic {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--tp);
  border: 1.5px solid rgba(17, 76, 95, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.wb-top-item:hover .wb-top-item-ic {
  background: var(--teal);
  border-color: var(--teal);
}
.wb-top-item-ic svg {
  width: 12px;
  height: 12px;
  stroke: var(--teal);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s;
}
.wb-top-item:hover .wb-top-item-ic svg {
  stroke: #fff;
}
.wb-top-divider {
  width: 1px;
  height: 18px;
  background: var(--bd);
}

/* ══ NAV ROW ══ */
.wbn {
  font-family: "Poppins", sans-serif;
}
.wbn-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid var(--bd);
  height: auto;
  position: relative;
}
.wbn-mob-close-bar {
  display: none;
}
@media (max-width: 768px) {
  .wbn-mob-close-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    background: #fff;
    border-bottom: 2px solid var(--teal);
    z-index: 10;
    flex-shrink: 0;
    width: 100%;
    box-shadow: 0 2px 8px rgba(17, 76, 95, 0.08);
  }
  .wbn-mob-close-bar span {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--teal);
  }
  .wbn-mob-close-btn {
    background: none;
    border: 1px solid var(--bd);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--teal);
  }
  .wbn-mob-close-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--teal);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}
.wbn-ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  list-style: none;
  width: 100%;
}
.wbn-ul > li {
  position: static;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.wbn-ul > li > a,
.wbn-ul > li > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 10px;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--tx);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}
.wbn-ul > li > a::after,
.wbn-ul > li > button::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--tl);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.wbn-ul > li > a:hover,
.wbn-ul > li > button:hover {
  color: var(--tl);
}
.wbn-ul > li > a:hover::after,
.wbn-ul > li > button:hover::after {
  transform: scaleX(1);
}
.wbn-chev {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.wbn-ul > li.wbn-open .wbn-chev {
  transform: rotate(180deg);
}

/* ══ MEGA MENU ══ */
.wbn-mega {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 3px solid var(--teal);
  border-bottom: 1px solid var(--bd);
  box-shadow: 0 20px 60px rgba(17, 76, 95, 0.15);
  z-index: 9998;
  animation: wbn-in 0.18s ease;
}
.wbn-ul > li.wbn-open .wbn-mega {
  display: block;
}
@keyframes wbn-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wbn-mi {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.wbn-col {
  border-right: 1px solid var(--bd);
}
.wbn-col:last-child {
  border-right: none;
}
.wbn-col-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--bd);
  min-height: 50px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.wbn-col-hd-ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--tl));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wbn-col-hd-ic svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wbn-col-hd-lbl {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--teal);
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s;
}
.wbn-col-hd-lbl:hover {
  color: var(--tl);
}
.wbn-col-scroll {
  max-height: 55vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 0 12px;
}
.wbn-col-scroll::-webkit-scrollbar {
  width: 3px;
}
.wbn-col-scroll::-webkit-scrollbar-thumb {
  background: rgba(17, 76, 95, 0.2);
  border-radius: 3px;
}
.wbn-col-sep {
  border-top: 2px solid var(--bd);
}
.wbn-col-sep .wbn-col-hd {
  position: relative;
  top: auto;
}

.wbn-l3-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  cursor: default;
  transition: background 0.15s;
}
.wbn-l3-row.active {
  background: var(--tp);
}
.wbn-l3-lbl {
  font-family: "Poppins", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
  flex: 1;
  line-height: 1.3;
  transition: color 0.15s;
}
.wbn-l3-lbl:hover {
  color: var(--tl);
}
.wbn-l3-ic {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: rgba(17, 76, 95, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.wbn-l3-ic svg {
  width: 8px;
  height: 8px;
  stroke: var(--teal);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wbn-l3-row.active .wbn-l3-ic {
  background: var(--teal);
}
.wbn-l3-row.active .wbn-l3-ic svg {
  stroke: #fff;
}

.wbn-flyouts-pool {
  display: contents;
}
.wbn-flyout {
  display: none;
  position: fixed;
  background: #fff;
  border: 1px solid var(--bd);
  border-top: 3px solid var(--teal);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(17, 76, 95, 0.15);
  padding: 6px 0;
  z-index: 9999;
  min-width: 220px;
  max-width: 260px;
  animation: wbn-in 0.15s ease;
}
.wbn-flyout.show {
  display: block;
}

.wbn-lk {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: "Poppins", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--tx);
  text-decoration: none;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
  transition:
    background 0.15s,
    color 0.15s,
    padding-left 0.15s;
}
.wbn-lk:hover {
  background: var(--tp);
  color: var(--teal);
  padding-left: 20px;
}
.wbn-lk .ai {
  width: 10px;
  height: 10px;
  stroke: var(--tl);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
  margin-left: auto;
}
.wbn-lk:hover .ai {
  opacity: 1;
}

.wbn-pl {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: "Poppins", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--tx);
  text-decoration: none;
  line-height: 1.3;
  transition:
    background 0.15s,
    color 0.15s,
    padding-left 0.15s;
}
.wbn-pl:hover {
  background: var(--tp);
  color: var(--teal);
  padding-left: 20px;
}
.wbn-pl .ai {
  width: 10px;
  height: 10px;
  stroke: var(--tl);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
  margin-left: auto;
}
.wbn-pl:hover .ai {
  opacity: 1;
}

.wbn-ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  margin-left: auto;
}
.wbn-ham span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.25s;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 1200px) {
  .wbn-ul > li > a,
  .wbn-ul > li > button {
    padding: 9px 5px;
    font-size: 9px;
    letter-spacing: 0.3px;
  }
  .wbn-mi {
    grid-template-columns: repeat(3, 1fr);
  }
  .wbn-col:nth-child(4) {
    border-top: 2px solid var(--bd);
  }
  .wbn-col:nth-child(5) {
    border-top: 2px solid var(--bd);
  }
}
@media (max-width: 960px) {
  .wb-top-divider {
    display: none;
  }
  .wb-top-right {
    gap: 16px;
  }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .wb-header-inner {
    padding: 10px 16px;
  }
  .wb-top-right {
    display: none;
  }
  .wb-logo img {
    height: 36px;
  }
  .wbn-inner {
    padding: 0 16px;
    padding-top: 0;
    border-top: none;
  }
  .wbn-ham {
    display: flex;
    margin-left: auto;
  }
  .wbn-ul {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    z-index: 10000;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .wbn.mob-open .wbn-ul {
    display: flex;
  }
  .wbn-mob-close-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    padding: 14px 20px;
    background: #fff;
    border-bottom: 2px solid var(--teal);
    z-index: 10001;
    flex-shrink: 0;
    list-style: none;
  }
  .wbn-mob-close-bar span {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--teal);
  }
  .wbn-mob-close-btn {
    background: none;
    border: 1.5px solid var(--bd);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }
  .wbn-mob-close-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--teal);
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .wbn-ul > li {
    height: auto;
    width: 100%;
    position: static;
    display: block;
  }
  .wbn-ul > li > a,
  .wbn-ul > li > button {
    width: 100%;
    padding: 15px 20px;
    height: auto;
    font-size: 13px;
    letter-spacing: 0.5px;
    justify-content: space-between;
    border-bottom: 1px solid rgba(17, 76, 95, 0.08);
    display: flex;
  }
  .wbn-ul > li > a::after,
  .wbn-ul > li > button::after {
    display: none;
  }
  .wbn-mega {
    position: static !important;
    top: auto !important;
    box-shadow: none;
    animation: none;
    border: none;
    background: #f5f9fb;
    width: 100%;
  }
  .wbn-mi {
    display: flex;
    flex-direction: column;
    padding: 0;
    width: 100%;
  }
  .wbn-col {
    border-right: none;
    border-bottom: 2px solid rgba(17, 76, 95, 0.1);
    width: 100%;
  }
  .wbn-col-hd {
    position: static;
    padding: 14px 20px;
    background: #fff;
    border-bottom: 1px solid rgba(17, 76, 95, 0.1);
  }
  .wbn-col-sep .wbn-col-hd {
    position: static;
    top: auto;
  }
  .wbn-col-hd-ic {
    width: 26px;
    height: 26px;
  }
  .wbn-col-hd-lbl {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .wbn-col-scroll {
    max-height: none;
    overflow: visible;
    padding: 4px 0 10px;
  }
  .wbn-col-sep {
    border-top: 2px solid rgba(17, 76, 95, 0.12);
  }
  .wbn-col-sep .wbn-col-hd {
    background: #eaf4f7;
  }
  .wbn-l3-row {
    padding: 11px 20px;
    border-bottom: 1px solid rgba(17, 76, 95, 0.05);
  }
  .wbn-l3-lbl {
    font-size: 11px;
    letter-spacing: 0.5px;
  }
  .wbn-l3-ic {
    display: none;
  }
  .wbn-pl,
  .wbn-lk {
    padding: 10px 20px;
    font-size: 13px;
    border-bottom: 1px solid rgba(17, 76, 95, 0.04);
  }
  .wbn-pl:hover,
  .wbn-lk:hover {
    padding-left: 28px;
  }
  .wbn-nested-row {
    padding: 10px 20px !important;
    border-bottom: 1px solid rgba(17, 76, 95, 0.04) !important;
  }
  .wbn-nested-row > span {
    display: none !important;
  }
  .wbn-nested-row > a {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    color: var(--teal) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
  }
  .wbn-l3-inline {
    display: block;
    background: rgba(17, 76, 95, 0.03);
    padding: 2px 0;
  }
  .wbn-l3-inline .wbn-lk,
  .wbn-l3-inline .wbn-pl {
    padding: 9px 20px 9px 32px !important;
    font-size: 12px !important;
    border-bottom: 1px solid rgba(17, 76, 95, 0.04);
  }
  .wbn-l3-inline .wbn-lk:hover,
  .wbn-l3-inline .wbn-pl:hover {
    padding-left: 40px !important;
  }
  .wbn-l3-inline .wbn-nested-row {
    padding: 9px 20px 9px 32px !important;
  }
  .wbn-l3-inline .wbn-nested-row > span {
    display: none !important;
  }
  .wbn-l3-inline .wbn-nested-row > a {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    color: var(--teal) !important;
    display: block !important;
  }
  .wbn-l3-row.mob-open .wbn-l3-ic {
    background: var(--teal) !important;
  }
  .wbn-l3-row.mob-open .wbn-l3-ic svg {
    stroke: #fff !important;
    transform: rotate(90deg);
  }
  .wbn-flyout {
    display: none !important;
  }
}
@media (min-width: 769px) {
  .wbn-mob-close-bar {
    display: none !important;
  }
}
