/* ==========================================================================
   JYB WATER - WATER TREATMENT UV ROOM THEME
   Dark tank-navy body #0D2C3F, runoff-white text #EAF2F8,
   UV-lamp primary #8FB4E8, filter-slate #14303F panels, well-black #061219 wells.
   ========================================================================== */

:root {
  --tank-navy:   #0D2C3F;   /* body background  */
  --filter-slate:#14303F;   /* panels           */
  --well-black:  #061219;   /* deep wells       */
  --uv-lamp:     #8FB4E8;   /* primary accent   */
  --mist-drop:   #C6D8EA;   /* soft condensation band */
  --gull-grey:   #8FA6B5;   /* secondary text   */
  --runoff-white:#EAF2F8;   /* headings / text  */
  --steel:       #B9C8D4;   /* stainless chamber tone */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--tank-navy);
  color: var(--runoff-white);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;               /* LITERAL 16px, do not change */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--runoff-white);
  font-weight: 700;
  line-height: 1.2;
}

p { color: var(--runoff-white); }

a {
  color: var(--uv-lamp);
  text-decoration: none;
}

a:hover { color: #BFD6F2; }

img { max-width: 100%; }

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -------------------------------------------------------------------------
   MANIFOLD-RAIL NAVIGATION
   ------------------------------------------------------------------------- */
.manifold-rail-nav {
  background-color: var(--filter-slate);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* pipe run band across the top */
.pipe-run-band {
  height: 22px;
  background-color: var(--well-black);
  position: relative;
  overflow: hidden;
}

.pipe-run-band .run {
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #223E4D;
}

.pipe-run-band .valve-wheel {
  position: absolute;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gull-grey);
  background-color: var(--tank-navy);
}

.pipe-run-band .valve-wheel::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 12px;
  background-color: var(--gull-grey);
  transform: translate(-50%, -50%) rotate(45deg);
}

.pipe-run-band .valve-wheel::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background-color: var(--gull-grey);
  transform: translate(-50%, -50%) rotate(45deg);
}

.pipe-run-band .valve-wheel.vw1 { left: 30%; }
.pipe-run-band .valve-wheel.vw2 { left: 66%; }

/* flange stubs */
.pipe-run-band .stub {
  position: absolute;
  top: 12px;
  width: 2px;
  height: 8px;
  background-color: #223E4D;
}

.pipe-run-band .stub.s1 { left: 20%; }
.pipe-run-band .stub.s2 { left: 50%; }
.pipe-run-band .stub.s3 { left: 80%; }

.pipe-run-band .stub .flange {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 3px;
  background-color: var(--uv-lamp);
  border-radius: 2px;
}

.nav-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 62px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drop-valve-glyph {
  width: 26px;
  height: 30px;
  position: relative;
}

.drop-valve-glyph .drop {
  position: absolute;
  top: 2px;
  left: 7px;
  width: 12px;
  height: 20px;
  background-color: var(--uv-lamp);
  border-radius: 50% 50% 50% 6px;
  transform: rotate(45deg);
}

.drop-valve-glyph .drop::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  border: 2px solid var(--well-black);
  border-radius: 50%;
  background-color: var(--well-black);
  transform: translate(-50%, -50%);
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.wordmark .name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--runoff-white);
}

.wordmark .sub {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gull-grey);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gull-grey);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--uv-lamp);
}

.nav-links .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--uv-lamp);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--runoff-white);
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 0 14px;
    gap: 2px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links .dot {
    display: none;
  }
}

/* -------------------------------------------------------------------------
   UV-STERILIZER HERO
   ------------------------------------------------------------------------- */
.uv-sterilizer-hero {
  background-color: var(--tank-navy);
  padding: 78px 0 0;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  background-color: var(--uv-lamp);
  color: var(--well-black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 2px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 46px;
  max-width: 880px;
  margin: 0 auto 18px;
}

.hero-title .uv {
  color: var(--uv-lamp);
}

.hero-sub {
  font-size: 18px;
  color: var(--gull-grey);
  max-width: 760px;
  margin: 0 auto 34px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--uv-lamp);
  color: var(--well-black);
  border: 1px solid var(--uv-lamp);
}

.btn-primary:hover {
  background-color: #BFD6F2;
  color: var(--well-black);
}

.btn-outline {
  background-color: transparent;
  color: var(--runoff-white);
  border: 1px solid var(--runoff-white);
}

.btn-outline:hover {
  background-color: var(--runoff-white);
  color: var(--well-black);
}

/* UV ROOM BAND (lower deck) */
.uv-room-band {
  background-color: var(--filter-slate);
  border-top: 1px solid var(--uv-lamp);
  border-bottom: 1px solid var(--uv-lamp);
  padding: 22px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
}

.uv-room-art {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 150px;
}

@media (max-width: 960px) {
  .uv-room-art {
    flex-direction: column;
    align-items: center;
  }
}

/* UV sterilizer chamber */
.sterilizer-chamber {
  position: relative;
  width: 300px;
  height: 100px;
  background-color: var(--steel);
  border-radius: 50px;
  flex-shrink: 0;
}

.sterilizer-chamber .end-cap {
  position: absolute;
  top: 18px;
  width: 26px;
  height: 64px;
  background-color: #8FA3B4;
  border-radius: 6px;
}

.sterilizer-chamber .end-cap.left  { left: 8px; }
.sterilizer-chamber .end-cap.right { right: 8px; }

.sterilizer-chamber .lamp-window {
  position: absolute;
  top: 36px;
  left: 120px;
  width: 70px;
  height: 26px;
  background-color: var(--uv-lamp);
  border-radius: 13px;
}

.sterilizer-chamber .lamp-window::before,
.sterilizer-chamber .lamp-window::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: var(--uv-lamp);
  border-radius: 50%;
}

.sterilizer-chamber .lamp-window::before { left: -12px; top: 50%; }
.sterilizer-chamber .lamp-window::after  { right: -12px; top: 50%; }

/* gauges */
.gauge {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--runoff-white);
  border: 3px solid var(--gull-grey);
  flex-shrink: 0;
}

.gauge .needle {
  position: absolute;
  bottom: 50%;
  left: 50%;
  width: 3px;
  height: 16px;
  background-color: var(--well-black);
  transform-origin: bottom center;
}

.gauge .needle.n1 { transform: translateX(-50%) rotate(-40deg); }
.gauge .needle.n2 { transform: translateX(-50%) rotate(55deg); }

.gauge .hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--steel);
  transform: translate(-50%, -50%);
}

.gauge-top {
  position: absolute;
  top: -10px;
}

.gauge-top.g1 { left: 60px; }
.gauge-top.g2 { right: 60px; }

/* pipe manifold with flowing arrows */
.pipe-manifold {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 96%;
  left: 2%;
  height: 7px;
  background-color: var(--well-black);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.pipe-manifold .flow {
  font-size: 11px;
  color: var(--uv-lamp);
}

.chevron { color: var(--uv-lamp); font-size: 10px; }

/* membrane housing rack */
.membrane-rack {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: var(--well-black);
  border: 1px solid #223E4D;
  padding: 12px;
  border-radius: 4px;
}

.rack-cartridge {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--steel);
  width: 96px;
  height: 12px;
  border-radius: 6px;
}

.rack-cartridge .band {
  width: 6px;
  height: 14px;
  background-color: var(--uv-lamp);
  border-radius: 2px;
}

/* control panel with pilot lights */
.control-panel {
  flex-shrink: 0;
  background-color: var(--well-black);
  border: 1px solid #223E4D;
  padding: 14px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pilot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.pilot.on  { background-color: var(--uv-lamp); }
.pilot.dim { background-color: var(--gull-grey); }

/* -------------------------------------------------------------------------
   MEMBRANE-STAGE ROWS
   ------------------------------------------------------------------------- */
.membrane-stage-rows {
  background-color: var(--tank-navy);
  padding: 70px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-eyebrow {
  color: var(--uv-lamp);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: 34px;
  max-width: 760px;
  margin: 0 auto 14px;
}

.section-lead {
  color: var(--gull-grey);
  font-size: 17px;
  max-width: 720px;
  margin: 0 auto;
}

.stage-row {
  display: flex;
  align-items: stretch;
  gap: 22px;
  background-color: var(--filter-slate);
  border: 1px solid var(--uv-lamp);
  border-radius: 4px;
  padding: 26px;
  margin-bottom: 11px;
}

.housing-column {
  flex-shrink: 0;
  width: 64px;
  background-color: var(--well-black);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 12px;
  gap: 8px;
}

.clear-filter {
  position: relative;
  width: 100%;
  height: 100px;
  min-height: 100px;
  border: 2px solid #223E4D;
  border-radius: 28px;
  background-color: var(--mist-drop);
  overflow: hidden;
}

.clear-filter .cap-band {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: var(--uv-lamp);
  border-radius: 28px 28px 0 0;
}

.clear-filter .sediment {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #7C90A0;
}

.clear-filter .sediment.sed-40 { height: 40%; }
.clear-filter .sediment.sed-60 { height: 60%; }
.clear-filter .sediment.sed-25 { height: 25%; }
.clear-filter .sediment.sed-70 { height: 70%; }
.clear-filter .sediment.sed-35 { height: 35%; }
.clear-filter .sediment.sed-50 { height: 50%; }

.stage-body {
  flex: 1;
}

.stage-body h3 {
  font-size: 23px;
  margin-bottom: 10px;
}

.stage-body p {
  color: var(--gull-grey);
}

.stage-tag {
  flex-shrink: 0;
  align-self: center;
  background-color: var(--well-black);
  border: 1px solid #223E4D;
  color: var(--gull-grey);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 8px 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.stage-tag .u-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--uv-lamp);
}

@media (max-width: 680px) {
  .stage-row {
    flex-direction: column;
  }
  .housing-column {
    width: 100%;
    flex-direction: row;
    align-items: center;
  }
  .clear-filter {
    height: 40px;
    min-height: 40px;
    width: 56px;
    border-radius: 20px;
  }
  .cap-band { height: 6px; }
  .stage-tag {
    align-self: flex-start;
  }
}

/* -------------------------------------------------------------------------
   METRIC BAND
   ------------------------------------------------------------------------- */
.metric-band {
  background-color: var(--well-black);
  padding: 52px 0;
}

.metric-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.metric-cell {
  flex: 1 1 200px;
  text-align: center;
  padding: 10px 0;
}

.metric-num {
  font-size: 46px;
  font-weight: 700;
  color: var(--runoff-white);
  display: block;
}

.metric-label {
  color: var(--uv-lamp);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.metric-divider {
  width: 1px;
  background-color: var(--uv-lamp);
  margin: 12px 0;
}

@media (max-width: 900px) {
  .metric-divider {
    display: none;
  }
  .metric-grid {
    gap: 24px 0;
  }
}

/* -------------------------------------------------------------------------
   STATEMENT BAND
   ------------------------------------------------------------------------- */
.statement-band {
  background-color: var(--filter-slate);
  padding: 64px 0;
}

.statement-block {
  max-width: 880px;
  margin: 0 auto;
  border-left: 4px solid var(--uv-lamp);
  padding-left: 30px;
}

.statement-block p {
  font-size: 22px;
  color: var(--runoff-white);
  line-height: 1.55;
}

.statement-block .attr {
  margin-top: 18px;
  color: var(--gull-grey);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------
   CTA BAND
   ------------------------------------------------------------------------- */
.cta-band {
  background-color: var(--tank-navy);
  text-align: center;
  padding: 70px 0;
}

.cta-band h2 {
  font-size: 36px;
  color: var(--uv-lamp);
  margin-bottom: 16px;
}

.cta-band p {
  color: var(--gull-grey);
  font-size: 17px;
  max-width: 660px;
  margin: 0 auto 30px;
}

/* -------------------------------------------------------------------------
   PRESSURE-VESSEL FOOTER
   ------------------------------------------------------------------------- */
.pressure-vessel-footer {
  background-color: var(--well-black);
  position: relative;
  z-index: 1;
}

.gauge-sweep {
  height: 18px;
  background-color: var(--well-black);
  border-bottom: 1px solid #163040;
  position: relative;
}

.gauge-sweep .sweep-gauge {
  position: absolute;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--gull-grey);
  background-color: var(--tank-navy);
}

.gauge-sweep .sweep-gauge::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 5px;
  width: 1px;
  height: 5px;
  background-color: var(--gull-grey);
}

.gauge-sweep .sweep-gauge.sg1 { left: 18%; transform: rotate(20deg); }
.gauge-sweep .sweep-gauge.sg2 { left: 80%; transform: rotate(-50deg); }

.gauge-sweep .sweep-pipe {
  position: absolute;
  top: 8px;
  left: 26%;
  width: 52%;
  height: 2px;
  background-color: var(--gull-grey);
}

.footer-zones {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 36px;
  padding: 46px 0 40px;
}

@media (max-width: 900px) {
  .footer-zones {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-brand .wordmark { margin-top: 12px; }

.footer-desc {
  color: var(--gull-grey);
  font-size: 14px;
  margin-top: 10px;
  max-width: 280px;
}

.footer-zones h4 {
  font-size: 13px;
  color: var(--uv-lamp);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

.link-col {
  display: flex;
  gap: 40px;
}

.link-col ul {
  list-style: none;
}

.link-col li {
  margin-bottom: 8px;
}

.link-col a {
  color: var(--gull-grey);
  font-size: 14px;
}

.link-col a:hover { color: var(--uv-lamp); }

.footer-contact p {
  color: var(--gull-grey);
  font-size: 14px;
  line-height: 1.9;
}

.footer-contact a { color: var(--runoff-white); }
.footer-contact a:hover { color: var(--uv-lamp); }

.footer-legal {
  position: relative;
  z-index: 1;
  border-top: 1px solid #163040;
  text-align: center;
  padding: 20px 0;
}

.footer-legal p {
  color: var(--gull-grey);
  font-size: 13px;
}

/* -------------------------------------------------------------------------
   PAGE BLOCK for secondary pages
   ------------------------------------------------------------------------- */
.page-top {
  padding: 18px 0 64px;
}

/* -------------------------------------------------------------------------
   SERVICES PAGE
   ------------------------------------------------------------------------- */
.page-hero-secondary {
  background-color: var(--tank-navy);
  padding: 56px 0 8px;
  text-align: center;
}

.service-detail-rows {
  background-color: var(--tank-navy);
  padding: 30px 0 30px;
}

.service-block {
  background-color: var(--filter-slate);
  border: 1px solid #223E4D;
  border-left: 4px solid var(--uv-lamp);
  border-radius: 4px;
  padding: 30px;
  margin-bottom: 22px;
}

.service-block h3 {
  font-size: 24px;
  color: var(--uv-lamp);
  margin-bottom: 12px;
}

.service-block p {
  color: var(--gull-grey);
  margin-bottom: 12px;
}

.service-block p:last-child { margin-bottom: 0; }

.process-steps {
  padding: 0 0 20px;
}

.step-row {
  background-color: var(--well-black);
  border: 1px solid #163040;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 12px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--uv-lamp);
  border: 1px solid var(--uv-lamp);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-row h4 {
  color: var(--runoff-white);
  margin-bottom: 6px;
  font-size: 18px;
}

.step-row p { color: var(--gull-grey); font-size: 15px; }

/* -------------------------------------------------------------------------
   CONTACT PAGE
   ------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form-panel {
  background-color: var(--filter-slate);
  border: 1px solid #223E4D;
  border-radius: 4px;
  padding: 30px;
}

.form-panel label {
  display: block;
  color: var(--uv-lamp);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.form-panel input,
.form-panel textarea,
.form-panel select {
  width: 100%;
  background-color: var(--well-black);
  border: 1px solid #223E4D;
  color: var(--runoff-white);
  padding: 12px;
  border-radius: 3px;
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 18px;
}

.form-panel textarea {
  min-height: 130px;
  resize: vertical;
}

.form-status {
  margin-top: 12px;
  padding: 12px;
  border-radius: 3px;
  font-size: 14px;
  display: none;
}

.form-status.show { display: block; }
.form-status.success { background-color: var(--uv-lamp); color: var(--well-black); }
.form-status.error   { background-color: #C96A6A; color: var(--well-black); }

.info-block {
  background-color: var(--well-black);
  border: 1px solid #223E4D;
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 20px;
}

.info-block h4 {
  color: var(--uv-lamp);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.info-block p {
  color: var(--gull-grey);
  font-size: 15px;
  line-height: 1.8;
}

.info-block a { color: var(--runoff-white); }
.info-block a:hover { color: var(--uv-lamp); }

.faq-item {
  background-color: var(--well-black);
  border: 1px solid #223E4D;
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--runoff-white);
  font-size: 16px;
  font-weight: 600;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q .ind {
  color: var(--uv-lamp);
  font-size: 20px;
}

.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--gull-grey);
  font-size: 15px;
}

.faq-item.open .faq-a {
  display: block;
}

/* generic page copy */
.page-copy { padding: 20px 0 60px; }
.page-copy .lead {
  color: var(--gull-grey);
  font-size: 17px;
}

